@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap');
body {
    font-family: 'Inter', sans-serif;
    background-color: #0d1117;
    color: #c9d1d9;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    overflow: hidden;
    flex-direction: column;
}
.container {
    background-color: #161b22;
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    max-width: 90%;
    width: 500px;
    transition: all 0.5s ease-in-out;
    position: relative;
}
.start-btn {
    padding: 1rem 2.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffffff;
    background-color: #238636;
    border-radius: 9999px;
    box-shadow: 0 4px 15px rgba(35, 134, 54, 0.4);
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
    cursor: pointer;
}
.start-btn:hover {
    background-color: #2ea043;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 160, 67, 0.5);
}
.start-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(35, 134, 54, 0.3);
}
.question-card {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    animation: fadeIn 0.8s ease-out;
}
.image-container {
    max-height: 40vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
}
.image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 0.75rem;
}
.options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
.option-btn {
    padding: 1rem;
    background-color: #1f272e;
    border-radius: 0.75rem;
    transition: transform 0.1s, background-color 0.2s, box-shadow 0.2s;
    cursor: pointer;
    word-break: break-word;
}
.option-btn:hover {
    background-color: #2d3640;
    transform: scale(1.03);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
.option-btn:active {
    transform: scale(0.98);
}
.option-btn.correct {
    background-color: #238636;
    color: white;
}
.option-btn.wrong {
    background-color: #da3633;
    color: white;
}
.option-btn.revealed {
    background-color: #238636;
    color: white;
    animation: correctGlow 1s infinite alternate;
}
.result-screen {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    animation: slideInUp 0.6s ease-out;
}
.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: #ffd700;
    border-radius: 50%;
    opacity: 0;
    transform-origin: center;
}
.congrats {
    font-size: 2.5rem;
    font-weight: bold;
    color: #238636;
    animation: zoomIn 0.5s ease-out;
}
.fail {
    font-size: 2rem;
    font-weight: bold;
    color: #da3633;
    animation: shake 0.5s;
}
.timer {
    font-size: 1.5rem;
    margin-top: 1rem;
    color: #8b949e;
}
.next-btn {
    padding: 0.75rem 1.5rem;
    font-size: 1.2rem;
    font-weight: bold;
    color: #ffffff;
    background-color: #007bff;
    border-radius: 9999px;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
    cursor: pointer;
}
.next-btn:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 86, 179, 0.5);
}
.next-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0, 123, 255, 0.3);
}
.note {
    position: absolute;
    font-size: 2rem;
    animation: floatUp 5s ease-in-out infinite;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s;
}
@keyframes floatUp {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes slideInUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
@keyframes zoomIn {
    from { transform: scale(0.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
@keyframes shake {
    0% { transform: translateX(0); }
    20% { transform: translateX(-10px); }
    40% { transform: translateX(10px); }
    60% { transform: translateX(-10px); }
    80% { transform: translateX(10px); }
    100% { transform: translateX(0); }
}
@keyframes correctGlow {
    from { box-shadow: 0 0 10px #238636, 0 0 20px #238636; }
    to { box-shadow: 0 0 20px #2ea043, 0 0 30px #2ea043; }
}