@import 'https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css';

body {
    background: linear-gradient(to bottom right, rgba(34, 197, 94, 0.05), rgba(127, 17, 224, 0.05), rgba(249, 115, 22, 0.05));
    min-height: 100vh;
    font-family: 'Satoshi', sans-serif;
    margin: 0;
    padding: 0;
    overflow: auto;
}

.dotted-background {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20'%3E%3Ccircle cx='10' cy='10' r='1' fill='%23F0F0F0'/%3E%3C/svg%3E");
    background-repeat: repeat;
    opacity: 0.5;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

.animate-shake {
    animation: shake 0.82s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes shake {
    10%, 90% {
        transform: translate3d(-1px, 0, 0);
    }
    20%, 80% {
        transform: translate3d(2px, 0, 0);
    }
    30%, 50%, 70% {
        transform: translate3d(-4px, 0, 0);
    }
    40%, 60% {
        transform: translate3d(4px, 0, 0);
    }
}

.font-inter {
    font-family: 'Inter', sans-serif;
}

.font-aeonik {
    font-family: 'Aeonik', sans-serif;
}

.choice-button {
    transition: all 0.3s ease;
}

.choice-button:hover {
    background-color: #f3f4f6;
}

.choice-button.correct {
    background-color: #10b981;
    color: white;
    animation: pulse 2s infinite;
}

.choice-button.incorrect {
    background-color: #ef4444;
    color: white;
    animation: shake 0.82s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.results-container {
    text-align: center;
}

.score {
    font-size: 48px;
    font-weight: bold;
    color: #4638C8;
}

.feedback {
    font-size: 24px;
    margin-bottom: 20px;
}

.try-presti-button {
    display: inline-block;
    padding: 12px 24px;
    background-color: #4638C8;
    color: white;
    text-decoration: none;
    border-radius: 9999px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.try-presti-button:hover {
    background-color: #4638C8;
}

#overlay {
    transition: opacity 0.3s ease;
}

#popup {
    max-width: 90%;
    width: 500px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#closePopup {
    font-size: 24px;
    line-height: 1;
}

#playAgain {
    background-color: #10b981;
}

#playAgain:hover {
    background-color: #059669;
}

.choice-button span {
    font-size: 0.8em;
    vertical-align: middle;
}

.choice-button .arrow {
    font-size: 0.8em;
    vertical-align: middle;
}

#nextButton {
    position: relative;
}

#nextButton i[data-lucide="corner-down-left"] {
    position: absolute;
    top: -12px;
    right: -16px;
    opacity: 0.6;
    width: 16px;
    height: 16px;
}

#timer-bar {
    transition: opacity 0.3s ease;
}

#timer-progress {
    transition: width 0.1s linear;
}

.try-it-button {
    border-color: #4638C8;
    color: #4638C8;
}
.try-it-button:hover {
    background-color: #4638C8;
    color: white;
}