/* General Styles */
body {
    background: #00091b;
    color: #fff;
    font-family: "Poppins", sans-serif;
    margin: 0;
    padding: 0;
}

.counter {
    font-size: 18px;
    font-weight: 400;
    text-align: center;
    margin-top: 10px;
    display: none;
    /* Initially hidden */
}

#counterText {
    color: #fff;
    /* White color for the "Total Flips:" label */
}

#counterValue {
    color: #ff2e9a;
    /* Color for the counter value */
    font-weight: bold;
}

@keyframes fadeInOpacity {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes verticalFlip {
    0% {
        transform: rotateX(0);
    }

    15% {
        transform: rotateX(90deg);
    }

    30% {
        transform: rotateX(180deg);
    }

    45% {
        transform: rotateX(270deg);
    }

    60% {
        transform: rotateX(360deg);
    }

    100% {
        transform: rotateX(360deg);
        /* Smooth final position */
    }
}

button.flip-animation {
    animation: verticalFlip 3s ease-in-out;
    /* Smooth and consistent easing */
    pointer-events: none;
}

button[aria-disabled="true"] {
    cursor: not-allowed;
    opacity: 0.7;
}

h1 {
    text-align: center;
    line-height: 1;
    font-size: 60px;
    margin-bottom: 0;
    font-weight: 700;
}

a,
div,
p,
input,
button {
    text-align: center;
    font-weight: normal;
}

.container {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 80%;
    max-width: 600px;
    transform: translate(-50%, -50%);
    animation: fadeInOpacity 2s ease;
    text-align: center;
}

.dot {
    color: #ff2e9a;
}

button {
    margin-top: 10%;
    background-color: #ff2e9a;
    color: #fff;
    border: none;
    border-radius: 50%;
    padding: 20px;
    font-size: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10% auto 0;
    box-shadow: 0 0 100px -5px #ff2e9a;
    transition: all 0.3s ease;
}

button:hover {
    background-color: #ff007a;
}

button:active {
    transform: scale(0.98);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.text {
    margin-top: 20px;
    font-size: 18px;
    font-weight: 400;
    text-align: center;
}

.counter {
    font-size: 18px;
    font-weight: 400;
    text-align: center;
    margin-top: 10px;
}

.footer {
    text-align: center;
    margin-top: 20%;
    padding-bottom: 10px;
}

.footer hr {
    border: 1px solid #ff2e9a;
    margin: 0 auto;
}

.footer-content {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer a {
    color: #fff;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

#result {
    font-size: 18px;
    font-weight: normal;
    text-align: center;
    transition: opacity 0.3s ease-in-out;
}

#result.show-result {
    font-size: 24px;
    /* Make result text more prominent */
    font-weight: 700;
    /* Make it bold */
    color: #ff2e9a;
    /* Set a distinct color for the result */
}

@media (max-width: 768px) {
    h1 {
        font-size: 40px;
    }

    button {
        font-size: 40px;
    }

    .footer {
        margin-top: 30%;
    }
}

@media (max-width: 480px) {
    button {
        font-size: 30px;
    }

    .footer {
        margin-top: 40%;
    }
}