/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

/* Start Screen */
.start-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #FFB6C1 0%, #FFC0CB 50%, #FFE4E1 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    z-index: 100;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    overflow: hidden;
}

/* Enhanced Animated Background */
.start-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #FFB6C1 0%, #FFC0CB 25%, #FFE4E1 50%, #FFC0CB 75%, #FFB6C1 100%);
    background-size: 400% 400%;
    animation: gradientShift 20s ease infinite;
    z-index: 0;
}

.start-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.start-content {
    text-align: center;
    z-index: 2;
    animation: fadeInUp 0.8s ease;
    position: relative;
}

.made-for-daksha {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 10px rgba(255, 105, 180, 0.4);
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
    animation: fadeInUp 0.8s ease 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Floating Shapes Background */
.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.floating-shapes::before,
.floating-shapes::after,
.floating-shapes {
    position: absolute;
}

.floating-shapes::before {
    content: '';
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    top: 20%;
    left: 10%;
    animation: float 20s infinite ease-in-out;
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.2);
}

.floating-shapes::after {
    content: '';
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    bottom: 20%;
    right: 10%;
    animation: float 25s infinite ease-in-out 5s;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.15);
}

.floating-shapes {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: float 30s infinite ease-in-out 10s;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.1);
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
    25% {
        transform: translate(50px, -50px) scale(1.1);
        opacity: 0.5;
    }
    50% {
        transform: translate(-30px, -100px) scale(0.9);
        opacity: 0.4;
    }
    75% {
        transform: translate(-50px, 50px) scale(1.05);
        opacity: 0.5;
    }
}

/* Name Input */
.name-input-container {
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.name-input {
    padding: 1rem 1.5rem;
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    border: 3px solid rgba(255, 255, 255, 0.5);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.9);
    color: #FF69B4;
    text-align: center;
    width: 100%;
    max-width: 300px;
    outline: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.name-input:focus {
    border-color: #FFFFFF;
    background: #FFFFFF;
    box-shadow: 0 8px 25px rgba(255, 105, 180, 0.3);
    transform: scale(1.02);
}

.name-input::placeholder {
    color: rgba(255, 105, 180, 0.5);
}

.game-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    color: #FFFFFF;
    text-shadow: 0 4px 20px rgba(255, 105, 180, 0.5);
    margin-bottom: 3rem;
    letter-spacing: 0.1em;
    animation: titleFloat 3s ease-in-out infinite;
}

@keyframes titleFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.play-button {
    padding: 1.2rem 3rem;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 600;
    color: #FF69B4;
    background: #FFFFFF;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(255, 105, 180, 0.3);
    transition: all 0.3s ease;
    letter-spacing: 0.05em;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.play-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(255, 105, 180, 0.4);
    background: #FFE4E1;
}

.play-button:active {
    transform: translateY(-1px) scale(1.02);
}

.play-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Game Screen */
.game-screen {
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #FFE4E1 0%, #FFC0CB 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    overflow-y: auto;
    transition: opacity 0.5s ease;
    position: relative;
}

/* Fact Panels - Left Side */
.fact-panels-left {
    position: fixed;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 5;
    max-height: 80vh;
    overflow-y: auto;
}

/* Fact Panels - Right Side */
.fact-panels-right {
    position: fixed;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 5;
    max-height: 80vh;
    overflow-y: auto;
}

/* Fact Container */
.fact-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 0.8rem;
    width: 180px;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.25);
    animation: fadeIn 0.5s ease;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fact-container:hover {
    transform: translateX(5px) scale(1.02);
    box-shadow: 0 6px 20px rgba(255, 105, 180, 0.35);
}

.fact-panels-right .fact-container:hover {
    transform: translateX(-5px) scale(1.02);
}

.fact-header {
    font-size: 0.75rem;
    font-weight: 700;
    color: #FF69B4;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    text-align: center;
    padding-bottom: 0.3rem;
    border-bottom: 2px solid rgba(255, 105, 180, 0.2);
}

.fact-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    min-height: 60px;
}

.fact-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.fact-text {
    font-size: 0.85rem;
    color: #FF69B4;
    font-weight: 500;
    text-align: center;
    line-height: 1.3;
    animation: fadeIn 0.5s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.game-screen.hidden {
    display: none;
}

/* Top Bar */
.top-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

/* Score Container */
.score-container {
    text-align: center;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.2);
    transition: transform 0.3s ease;
}

.score-container:hover {
    transform: translateY(-2px);
}

/* Timer Container */
.timer-container {
    text-align: center;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.2);
    transition: all 0.3s ease;
}

.timer-container.warning {
    background: rgba(255, 182, 193, 0.9);
    animation: pulse 1s ease infinite;
}

.timer-container.critical {
    background: rgba(255, 105, 180, 0.9);
    animation: pulse 0.5s ease infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.timer-label {
    font-size: 0.9rem;
    color: #FF69B4;
    font-weight: 600;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.timer-value {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #FF69B4;
    font-variant-numeric: tabular-nums;
}

.score-label {
    font-size: 0.9rem;
    color: #FF69B4;
    font-weight: 600;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.score-value {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: #FF69B4;
    transition: transform 0.3s ease;
}

.score-value.animate {
    transform: scale(1.2);
}

/* Game Container */
.game-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 1rem;
}

@media (min-width: 1200px) {
    .game-container {
        margin-left: 200px;
        margin-right: 200px;
    }
}

/* Game Board */
.game-board {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(12, 1fr);
    gap: 2px;
    background: rgba(255, 255, 255, 0.3);
    padding: 8px;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(255, 105, 180, 0.2);
    aspect-ratio: 1;
    width: 100%;
    max-width: min(90vw, 500px);
    max-height: min(90vw, 500px);
}

.board-cell {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 4px;
    transition: all 0.2s ease;
    position: relative;
}

.board-cell.filled {
    background: #FF69B4;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.board-cell.filled.pink-1 {
    background: #FF69B4;
}

.board-cell.filled.pink-2 {
    background: #FFB6C1;
}

.board-cell.filled.pink-3 {
    background: #FFC0CB;
}

.board-cell.filled.pink-4 {
    background: #FF91A4;
}

.board-cell.filled.pink-5 {
    background: #FF1493;
}

.board-cell.valid-drop {
    background: rgba(255, 182, 193, 0.5);
    border: 2px dashed #FF69B4;
}

.board-cell.clearing {
    animation: clearLine 0.5s ease forwards;
}

@keyframes clearLine {
    0% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(255, 105, 180, 0.7);
    }
    50% {
        transform: scale(1.2);
        box-shadow: 0 0 20px 10px rgba(255, 105, 180, 0.7);
    }
    100% {
        transform: scale(0);
        opacity: 0;
        box-shadow: 0 0 0 0 rgba(255, 105, 180, 0);
    }
}

/* Block Tray */
.block-tray {
    width: 100%;
    max-width: 600px;
    margin: 1.5rem auto 0;
    padding: 1rem;
}

.block-tray-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.block-item {
    cursor: grab;
    user-select: none;
    transition: transform 0.2s ease;
    touch-action: none;
}

.block-item:active {
    cursor: grabbing;
}

.block-item.dragging {
    opacity: 0.5;
    transform: scale(0.95);
}

.block-preview {
    display: grid;
    gap: 2px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.2);
}

.block-preview-cell {
    width: clamp(20px, 4vw, 30px);
    height: clamp(20px, 4vw, 30px);
    border-radius: 3px;
    min-width: 20px;
    min-height: 20px;
}

.block-preview-cell.filled {
    background: #FF69B4;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Drag Preview */
.drag-preview {
    position: fixed;
    pointer-events: none;
    z-index: 1000;
    display: grid;
    gap: 2px;
    opacity: 0.8;
    transform: translate(-50%, -50%);
}

.drag-preview-cell {
    width: clamp(20px, 4vw, 30px);
    height: clamp(20px, 4vw, 30px);
    background: #FF69B4;
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    min-width: 20px;
    min-height: 20px;
}

/* Footer */
.game-footer {
    width: 100%;
    padding: 1rem;
    text-align: center;
    margin-top: 1rem;
}

.footer-content {
    color: rgba(255, 105, 180, 0.8);
    font-size: 0.9rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

/* Made by T */
.made-by-t {
    position: fixed;
    bottom: 20px;
    right: 20px;
    color: rgba(255, 105, 180, 0.7);
    font-size: 0.85rem;
    font-weight: 500;
    z-index: 50;
    animation: fadeInRight 1s ease 0.5s both;
    pointer-events: none;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
/* Hide fact panels on smaller screens */
@media (max-width: 1199px) {
    .fact-panels-left,
    .fact-panels-right {
        display: none;
    }
}

/* Tablet Styles */
@media (min-width: 768px) and (max-width: 1024px) {
    .game-board {
        max-width: min(70vw, 450px);
        max-height: min(70vw, 450px);
    }

    .top-bar {
        gap: 1.5rem;
    }

    .score-container,
    .timer-container {
        padding: 0.9rem 1.8rem;
    }

    .block-tray-container {
        gap: 1.2rem;
    }

    .block-preview-cell,
    .drag-preview-cell {
        width: clamp(22px, 3vw, 28px);
        height: clamp(22px, 3vw, 28px);
        min-width: 22px;
        min-height: 22px;
    }

    .modal-content {
        padding: 2rem;
        max-width: 550px;
    }

    .made-by-t {
        bottom: 15px;
        right: 15px;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .game-board {
        max-width: min(95vw, 400px);
        max-height: min(95vw, 400px);
    }

    .top-bar {
        gap: 1rem;
        flex-direction: column;
    }

    .block-tray-container {
        gap: 1rem;
    }

    .block-preview-cell,
    .drag-preview-cell {
        width: clamp(18px, 5vw, 25px);
        height: clamp(18px, 5vw, 25px);
        min-width: 18px;
        min-height: 18px;
    }

    .score-container,
    .timer-container {
        padding: 0.8rem 1.5rem;
    }

    .modal-content {
        padding: 2rem 1.5rem;
    }

    .modal-buttons {
        flex-direction: column;
    }

    .modal-button {
        width: 100%;
    }

    .fact-panels-left,
    .fact-panels-right {
        display: none;
    }

    .game-container {
        margin-left: 0;
        margin-right: 0;
    }

    .quiz-answers {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .quiz-answer {
        padding: 1rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .game-board {
        max-width: min(98vw, 350px);
        max-height: min(98vw, 350px);
        gap: 1px;
        padding: 6px;
    }

    .block-tray-container {
        gap: 0.8rem;
    }

    .block-preview-cell,
    .drag-preview-cell {
        width: clamp(16px, 6vw, 22px);
        height: clamp(16px, 6vw, 22px);
        min-width: 16px;
        min-height: 16px;
    }
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal.hidden {
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: linear-gradient(135deg, #FFFFFF 0%, #FFE4E1 100%);
    border-radius: 25px;
    padding: 2.5rem;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease;
    position: relative;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-title {
    font-size: clamp(2rem, 5vw, 2.5rem);
    color: #FF69B4;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 700;
}

/* Instructions Modal */
.instructions-content {
    text-align: center;
}

.instructions-list {
    margin-bottom: 2rem;
}

.instruction-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    text-align: left;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 15px;
    animation: fadeInLeft 0.5s ease both;
}

.instruction-item:nth-child(1) { animation-delay: 0.1s; }
.instruction-item:nth-child(2) { animation-delay: 0.2s; }
.instruction-item:nth-child(3) { animation-delay: 0.3s; }
.instruction-item:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.instruction-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.instruction-item p {
    color: #FF69B4;
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
}

/* Game End Modal */
.game-end-content {
    text-align: center;
}

.game-end-stats {
    margin-bottom: 2rem;
}

.stat-item {
    margin-bottom: 1.5rem;
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 15px;
    animation: fadeInUp 0.5s ease both;
}

.stat-item:nth-child(1) { animation-delay: 0.1s; }
.stat-item:nth-child(2) { animation-delay: 0.2s; }
.stat-item:nth-child(3) { animation-delay: 0.3s; }

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 105, 180, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.stat-value {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    color: #FF69B4;
    font-weight: 700;
}

.modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.modal-button {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #FFFFFF;
    background: linear-gradient(135deg, #FF69B4 0%, #FF91A4 100%);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(255, 105, 180, 0.3);
    transition: all 0.3s ease;
    letter-spacing: 0.05em;
}

.modal-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(255, 105, 180, 0.4);
}

.modal-button:active {
    transform: translateY(-1px) scale(1.02);
}

.modal-button.secondary {
    background: linear-gradient(135deg, #FFC0CB 0%, #FFB6C1 100%);
}

/* Encouraging Pop-ups */
.encouragement-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2000;
    pointer-events: none;
}

.encouragement-popup {
    position: absolute;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    color: #FF69B4;
    text-shadow: 0 4px 20px rgba(255, 105, 180, 0.5);
    white-space: nowrap;
    animation: encouragementPop 2s ease forwards;
    transform: translate(-50%, -50%);
}

@keyframes encouragementPop {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5) rotate(-10deg);
    }
    20% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.2) rotate(5deg);
    }
    40% {
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
    }
    80% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8) translateY(-50px);
    }
}

/* Particle Effects */
.particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #FF69B4;
    border-radius: 50%;
    pointer-events: none;
    animation: particleFloat 1s ease-out forwards;
}

@keyframes particleFloat {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(var(--tx), var(--ty)) scale(0);
    }
}

/* Math Quiz Modal */
.quiz-content {
    text-align: center;
    max-width: 500px;
}

.quiz-question-container {
    margin-bottom: 2rem;
}

.quiz-question {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: #FF69B4;
    font-weight: 700;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 15px;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quiz-answers {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.quiz-answer {
    padding: 1.2rem 2rem;
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 600;
    color: #FFFFFF;
    background: linear-gradient(135deg, #FF69B4 0%, #FF91A4 100%);
    border: none;
    border-radius: 15px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.3);
    transition: all 0.3s ease;
    min-height: 60px;
}

.quiz-answer:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 105, 180, 0.4);
}

.quiz-answer:active {
    transform: translateY(-1px) scale(1.02);
}

.quiz-answer.correct {
    background: linear-gradient(135deg, #4CAF50 0%, #66BB6A 100%);
    animation: correctAnswer 0.5s ease;
}

.quiz-answer.incorrect {
    background: linear-gradient(135deg, #F44336 0%, #EF5350 100%);
    animation: shake 0.5s ease;
}

@keyframes correctAnswer {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-10px);
    }
    75% {
        transform: translateX(10px);
    }
}

.quiz-feedback {
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 1rem;
    min-height: 30px;
    animation: fadeIn 0.3s ease;
}

.quiz-feedback.correct {
    color: #4CAF50;
}

.quiz-feedback.incorrect {
    color: #F44336;
}


