/* 
   Rabbit & Carrot Math Adventure - Styles
   A child-friendly math game with responsive design
*/

/* ===== Base Styles ===== */
:root {
    /* Color palette based on child-friendly design principles */
    --primary-blue: #4a9ff5;
    --secondary-green: #5dca88;
    --accent-orange: #ff9f40;
    --accent-yellow: #ffde59;
    --accent-red: #ff6b6b;
    --light-bg: #f5f9ff;
    --white: #ffffff;
    --dark-text: #333333;
    --light-text: #ffffff;
    --shadow: rgba(0, 0, 0, 0.1);
    --grass-green: #8BC34A;
    --sky-blue: #E3F2FD;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Comic Neue', cursive;
    background-color: var(--sky-blue);
    color: var(--dark-text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background-image: url('images/carrot.png');
    background-repeat: repeat-x;
    background-position: bottom;
    background-size: 80px;
    background-attachment: fixed;
    position: relative;
    overflow-x: hidden;
}

/* Add grass at the bottom */
body::after {
    content: '';
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background-color: var(--grass-green);
    z-index: -1;
}

/* Add floating clouds */
@keyframes float-cloud {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100vw); }
}

@-webkit-keyframes float-cloud {
    0% { -webkit-transform: translateX(-100%); }
    100% { -webkit-transform: translateX(100vw); }
}

@-moz-keyframes float-cloud {
    0% { -moz-transform: translateX(-100%); }
    100% { -moz-transform: translateX(100vw); }
}

.cloud {
    position: fixed;
    background-color: white;
    border-radius: 50%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    opacity: 0.8;
    z-index: -1;
}

.cloud-1 {
    top: 15%;
    width: 100px;
    height: 60px;
    animation: float-cloud 60s linear infinite;
    -webkit-animation: float-cloud 60s linear infinite;
    -moz-animation: float-cloud 60s linear infinite;
}

.cloud-2 {
    top: 30%;
    width: 150px;
    height: 90px;
    animation: float-cloud 80s linear infinite;
    -webkit-animation: float-cloud 80s linear infinite;
    -moz-animation: float-cloud 80s linear infinite;
    animation-delay: 10s;
    -webkit-animation-delay: 10s;
    -moz-animation-delay: 10s;
}

/* ===== Game Container ===== */
.game-container {
    background-color: var(--white);
    border-radius: 20px;
    -webkit-border-radius: 20px;
    -moz-border-radius: 20px;
    box-shadow: 0 10px 30px var(--shadow);
    -webkit-box-shadow: 0 10px 30px var(--shadow);
    -moz-box-shadow: 0 10px 30px var(--shadow);
    width: 100%;
    max-width: 900px;
    overflow: hidden;
    position: relative;
    padding: 20px;
    border: 5px solid var(--accent-orange);
}

/* ===== Header Styles ===== */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 3px dashed var(--accent-orange);
    margin-bottom: 20px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo h1 {
    font-family: 'Bubblegum Sans', cursive;
    color: var(--primary-blue);
    font-size: 1.8rem;
    text-shadow: 2px 2px 0 var(--accent-yellow);
}

.rabbit-logo {
    width: 60px;
    height: 60px;
    background-image: url('images/happy_rabbit.jpg');
    background-size: contain;
    background-repeat: no-repeat;
    margin-left: 15px;
    border-radius: 50%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    transition: transform 0.3s ease;
    -webkit-transition: -webkit-transform 0.3s ease;
    -moz-transition: -moz-transform 0.3s ease;
}

.rabbit-logo:hover {
    transform: scale(1.1) rotate(5deg);
    -webkit-transform: scale(1.1) rotate(5deg);
    -moz-transform: scale(1.1) rotate(5deg);
}

.score-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.score {
    display: flex;
    align-items: center;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--secondary-green);
}

.score-icon {
    width: 40px;
    height: 40px;
    margin-right: 5px;
    border-radius: 50%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-orange);
}

.level {
    font-size: 1rem;
    color: var(--primary-blue);
    font-weight: bold;
    padding: 5px 10px;
    background-color: var(--accent-yellow);
    border-radius: 10px;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    margin-top: 5px;
}

/* ===== Main Game Area ===== */
main {
    padding: 20px 0;
}

.instructions {
    text-align: center;
    padding: 20px;
    background-color: var(--light-bg);
    border-radius: 15px;
    -webkit-border-radius: 15px;
    -moz-border-radius: 15px;
    margin-bottom: 30px;
    border: 2px dashed var(--accent-orange);
    position: relative;
}

.instructions::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    -webkit-transform: translateX(-50%);
    -moz-transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background-image: url('images/carrot.png');
    background-size: contain;
    background-repeat: no-repeat;
}

.instructions h2 {
    color: var(--primary-blue);
    margin-bottom: 10px;
    font-family: 'Bubblegum Sans', cursive;
}

.problem-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px 0;
}

.problem-display {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    padding: 20px;
    background-color: var(--accent-yellow);
    border-radius: 15px;
    -webkit-border-radius: 15px;
    -moz-border-radius: 15px;
    box-shadow: 0 5px 0 rgba(0, 0, 0, 0.1);
    -webkit-box-shadow: 0 5px 0 rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 0 5px 0 rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    position: relative;
    transition: transform 0.3s ease;
    -webkit-transition: -webkit-transform 0.3s ease;
    -moz-transition: -moz-transform 0.3s ease;
}

.problem-display:hover {
    transform: scale(1.02);
    -webkit-transform: scale(1.02);
    -moz-transform: scale(1.02);
}

#operator {
    color: var(--accent-red);
    font-size: 3rem;
}

#question-mark {
    color: var(--primary-blue);
    font-size: 2.8rem;
    animation: pulse 1.5s infinite;
    -webkit-animation: pulse 1.5s infinite;
    -moz-animation: pulse 1.5s infinite;
}

.answer-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
    max-width: 300px;
}

#answer-input {
    font-size: 1.8rem;
    padding: 10px 15px;
    border: 3px solid var(--primary-blue);
    border-radius: 10px;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    width: 100%;
    text-align: center;
    font-family: 'Comic Neue', cursive;
    font-weight: bold;
    transition: all 0.3s ease;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
}

#answer-input:focus {
    outline: none;
    border-color: var(--accent-orange);
    box-shadow: 0 0 15px rgba(255, 159, 64, 0.5);
    -webkit-box-shadow: 0 0 15px rgba(255, 159, 64, 0.5);
    -moz-box-shadow: 0 0 15px rgba(255, 159, 64, 0.5);
    transform: scale(1.05);
    -webkit-transform: scale(1.05);
    -moz-transform: scale(1.05);
}

.feedback {
    margin-top: 20px;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feedback-message {
    font-size: 1.2rem;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 10px;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    -webkit-transition: opacity 0.3s ease, -webkit-transform 0.3s ease;
    -moz-transition: opacity 0.3s ease, -moz-transform 0.3s ease;
}

.feedback-message.correct {
    background-color: var(--secondary-green);
    color: var(--white);
    opacity: 1;
    transform: scale(1.1);
    -webkit-transform: scale(1.1);
    -moz-transform: scale(1.1);
}

.feedback-message.incorrect {
    background-color: var(--accent-red);
    color: var(--white);
    opacity: 1;
    transform: scale(1.1);
    -webkit-transform: scale(1.1);
    -moz-transform: scale(1.1);
}

.feedback-animation {
    height: 100px;
    width: 100px;
    position: relative;
    margin-top: 10px;
}

/* ===== Visual Math Representation ===== */
.visual-math-container {
    margin: 20px 0;
    padding: 15px;
    background-color: var(--light-bg);
    border-radius: 15px;
    -webkit-border-radius: 15px;
    -moz-border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 120px;
    border: 2px dashed var(--accent-orange);
}

.visual-problem {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.visual-item {
    width: 40px;
    height: 40px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.3s ease;
    -webkit-transition: -webkit-transform 0.3s ease;
    -moz-transition: -moz-transform 0.3s ease;
}

.visual-item.carrot {
    background-image: url('images/carrot.png');
}

.visual-item.rabbit {
    background-image: url('images/happy_rabbit.jpg');
    border-radius: 50%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
}

.visual-operator {
    font-size: 2rem;
    font-weight: bold;
    color: var(--accent-red);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
}

/* ===== Progress Bar ===== */
.progress-container {
    margin: 30px 0;
    text-align: center;
}

.progress-bar {
    height: 20px;
    background-color: #e0e0e0;
    border-radius: 10px;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
    border: 2px solid var(--primary-blue);
    position: relative;
}

.progress {
    height: 100%;
    background-color: var(--secondary-green);
    width: 0%;
    transition: width 0.5s ease;
    -webkit-transition: width 0.5s ease;
    -moz-transition: width 0.5s ease;
    position: relative;
    overflow: hidden;
}

.progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.2) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.2) 75%,
        transparent 75%
    );
    background-size: 20px 20px;
    animation: progress-animation 1s linear infinite;
    -webkit-animation: progress-animation 1s linear infinite;
    -moz-animation: progress-animation 1s linear infinite;
}

@keyframes progress-animation {
    0% { background-position: 0 0; }
    100% { background-position: 20px 0; }
}

@-webkit-keyframes progress-animation {
    0% { background-position: 0 0; }
    100% { background-position: 20px 0; }
}

@-moz-keyframes progress-animation {
    0% { background-position: 0 0; }
    100% { background-position: 20px 0; }
}

.progress-text {
    font-size: 0.9rem;
    color: var(--dark-text);
    font-weight: bold;
}

/* ===== Game Controls ===== */
.game-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 3px dashed var(--accent-orange);
}

.difficulty {
    display: flex;
    align-items: center;
    gap: 10px;
}

#difficulty-select {
    padding: 8px;
    border-radius: 8px;
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    border: 2px solid var(--primary-blue);
    font-family: 'Comic Neue', cursive;
    font-size: 0.9rem;
    background-color: var(--light-bg);
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
}

#difficulty-select:focus {
    outline: none;
    border-color: var(--accent-orange);
    box-shadow: 0 0 10px rgba(255, 159, 64, 0.5);
    -webkit-box-shadow: 0 0 10px rgba(255, 159, 64, 0.5);
    -moz-box-shadow: 0 0 10px rgba(255, 159, 64, 0.5);
}

/* ===== Carrot Collection Area ===== */
.carrot-collection {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    min-height: 60px;
    padding: 10px;
    background-color: var(--light-bg);
    border-radius: 15px;
    -webkit-border-radius: 15px;
    -moz-border-radius: 15px;
}

.carrot {
    width: 40px;
    height: 40px;
    background-image: url('images/carrot.png');
    background-size: contain;
    background-repeat: no-repeat;
    animation: pop-in 0.5s ease;
    -webkit-animation: pop-in 0.5s ease;
    -moz-animation: pop-in 0.5s ease;
    transition: transform 0.3s ease;
    -webkit-transition: -webkit-transform 0.3s ease;
    -moz-transition: -moz-transform 0.3s ease;
}

.carrot:hover {
    transform: scale(1.2) rotate(10deg);
    -webkit-transform: scale(1.2) rotate(10deg);
    -moz-transform: scale(1.2) rotate(10deg);
}

/* ===== Modal Styles ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: var(--white);
    padding: 30px;
    border-radius: 20px;
    -webkit-border-radius: 20px;
    -moz-border-radius: 20px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    -webkit-box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    -moz-box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    border: 5px solid var(--accent-yellow);
    animation: modal-appear 0.5s ease;
    -webkit-animation: modal-appear 0.5s ease;
    -moz-animation: modal-appear 0.5s ease;
}

@keyframes modal-appear {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@-webkit-keyframes modal-appear {
    from { -webkit-transform: scale(0.8); opacity: 0; }
    to { -webkit-transform: scale(1); opacity: 1; }
}

@-moz-keyframes modal-appear {
    from { -moz-transform: scale(0.8); opacity: 0; }
    to { -moz-transform: scale(1); opacity: 1; }
}

.close-button {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark-text);
    transition: transform 0.3s ease;
    -webkit-transition: -webkit-transform 0.3s ease;
    -moz-transition: -moz-transform 0.3s ease;
}

.close-button:hover {
    transform: scale(1.2);
    -webkit-transform: scale(1.2);
    -moz-transform: scale(1.2);
    color: var(--accent-red);
}

.modal h2 {
    color: var(--primary-blue);
    margin-bottom: 20px;
    font-family: 'Bubblegum Sans', cursive;
}

.results {
    margin: 20px 0;
    padding: 15px;
    background-color: var(--light-bg);
    border-radius: 10px;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    border: 2px dashed var(--accent-orange);
}

.modal-footer {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* ===== Button Styles ===== */
button {
    cursor: pointer;
    font-family: 'Comic Neue', cursive;
    font-weight: bold;
    border: none;
    border-radius: 10px;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
    -webkit-transition: -webkit-transform 0.2s, box-shadow 0.2s;
    -moz-transition: -moz-transform 0.2s, box-shadow 0.2s;
}

button:hover {
    transform: translateY(-3px);
    -webkit-transform: translateY(-3px);
    -moz-transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

button:active {
    transform: translateY(0);
    -webkit-transform: translateY(0);
    -moz-transform: translateY(0);
    box-shadow: none;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
}

button:focus {
    outline: 3px solid var(--accent-orange);
    outline-offset: 2px;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 12px 25px;
    font-size: 1.1rem;
    box-shadow: 0 5px 0 rgba(0, 0, 0, 0.1);
    -webkit-box-shadow: 0 5px 0 rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 0 5px 0 rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    -webkit-border-radius: 100%;
    -moz-border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    -webkit-transform: scale(1, 1) translate(-50%);
    -moz-transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
    -webkit-transform-origin: 50% 50%;
    -moz-transform-origin: 50% 50%;
}

.btn-primary:focus:not(:active)::after {
    animation: ripple 1s ease-out;
    -webkit-animation: ripple 1s ease-out;
    -moz-animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    20% {
        transform: scale(25, 25);
        opacity: 0.3;
    }
    100% {
        opacity: 0;
        transform: scale(40, 40);
    }
}

@-webkit-keyframes ripple {
    0% {
        -webkit-transform: scale(0, 0);
        opacity: 0.5;
    }
    20% {
        -webkit-transform: scale(25, 25);
        opacity: 0.3;
    }
    100% {
        opacity: 0;
        -webkit-transform: scale(40, 40);
    }
}

@-moz-keyframes ripple {
    0% {
        -moz-transform: scale(0, 0);
        opacity: 0.5;
    }
    20% {
        -moz-transform: scale(25, 25);
        opacity: 0.3;
    }
    100% {
        opacity: 0;
        -moz-transform: scale(40, 40);
    }
}

.btn-secondary {
    background-color: var(--accent-yellow);
    color: var(--dark-text);
    padding: 10px 20px;
    font-size: 0.9rem;
    box-shadow: 0 3px 0 rgba(0, 0, 0, 0.1);
    -webkit-box-shadow: 0 3px 0 rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 0 3px 0 rgba(0, 0, 0, 0.1);
}

/* ===== Animations ===== */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@-webkit-keyframes pulse {
    0% { -webkit-transform: scale(1); }
    50% { -webkit-transform: scale(1.1); }
    100% { -webkit-transform: scale(1); }
}

@-moz-keyframes pulse {
    0% { -moz-transform: scale(1); }
    50% { -moz-transform: scale(1.1); }
    100% { -moz-transform: scale(1); }
}

@keyframes pop-in {
    0% { transform: scale(0); opacity: 0; }
    70% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

@-webkit-keyframes pop-in {
    0% { -webkit-transform: scale(0); opacity: 0; }
    70% { -webkit-transform: scale(1.2); opacity: 1; }
    100% { -webkit-transform: scale(1); opacity: 1; }
}

@-moz-keyframes pop-in {
    0% { -moz-transform: scale(0); opacity: 0; }
    70% { -moz-transform: scale(1.2); opacity: 1; }
    100% { -moz-transform: scale(1); opacity: 1; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-20px); }
    60% { transform: translateY(-10px); }
}

@-webkit-keyframes bounce {
    0%, 20%, 50%, 80%, 100% { -webkit-transform: translateY(0); }
    40% { -webkit-transform: translateY(-20px); }
    60% { -webkit-transform: translateY(-10px); }
}

@-moz-keyframes bounce {
    0%, 20%, 50%, 80%, 100% { -moz-transform: translateY(0); }
    40% { -moz-transform: translateY(-20px); }
    60% { -moz-transform: translateY(-10px); }
}

@keyframes grow {
    0% { transform: scale(0.5); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

@-webkit-keyframes grow {
    0% { -webkit-transform: scale(0.5); opacity: 0.5; }
    100% { -webkit-transform: scale(1); opacity: 1; }
}

@-moz-keyframes grow {
    0% { -moz-transform: scale(0.5); opacity: 0.5; }
    100% { -moz-transform: scale(1); opacity: 1; }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

@-webkit-keyframes shake {
    0%, 100% { -webkit-transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { -webkit-transform: translateX(-5px); }
    20%, 40%, 60%, 80% { -webkit-transform: translateX(5px); }
}

@-moz-keyframes shake {
    0%, 100% { -moz-transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { -moz-transform: translateX(-5px); }
    20%, 40%, 60%, 80% { -moz-transform: translateX(5px); }
}

@keyframes fade-out {
    0% { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(0.5); }
}

@-webkit-keyframes fade-out {
    0% { opacity: 1; -webkit-transform: scale(1); }
    100% { opacity: 0; -webkit-transform: scale(0.5); }
}

@-moz-keyframes fade-out {
    0% { opacity: 1; -moz-transform: scale(1); }
    100% { opacity: 0; -moz-transform: scale(0.5); }
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .logo h1 {
        font-size: 1.4rem;
    }
    
    .rabbit-logo {
        width: 50px;
        height: 50px;
    }
    
    .problem-display {
        font-size: 2rem;
        padding: 15px;
    }
    
    #answer-input {
        font-size: 1.5rem;
    }
    
    .game-controls {
        flex-direction: column;
        gap: 15px;
    }
    
    .difficulty {
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }
}

@media (max-width: 480px) {
    header {
        flex-direction: column;
        gap: 15px;
    }
    
    .score-container {
        align-items: center;
    }
    
    .logo h1 {
        font-size: 1.2rem;
    }
    
    .problem-display {
        font-size: 1.8rem;
        gap: 10px;
    }
    
    .btn-primary {
        padding: 10px 20px;
        font-size: 1rem;
    }
    
    .btn-secondary {
        padding: 8px 15px;
        font-size: 0.8rem;
    }
}

/* ===== Accessibility Enhancements ===== */
/* High contrast focus styles for keyboard navigation */
*:focus {
    outline: 3px solid var(--accent-orange);
    outline-offset: 2px;
}

/* Skip to content link for screen readers */
.skip-to-content {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-to-content:focus {
    position: fixed;
    top: 0;
    left: 0;
    width: auto;
    height: auto;
    padding: 10px;
    background-color: var(--white);
    color: var(--dark-text);
    font-weight: bold;
    z-index: 9999;
    outline: 3px solid var(--accent-orange);
}

/* Print styles */
@media print {
    body {
        background: white;
        color: black;
        font-size: 12pt;
        line-height: 1.5;
    }
    
    .game-container {
        border: 1px solid #000;
        box-shadow: none;
        width: 100%;
        max-width: 100%;
    }
    
    button, .game-controls, .feedback-animation {
        display: none;
    }
    
    .problem-display {
        border: 1px solid #000;
        background: none;
        color: black;
    }
    
    .visual-math-container {
        border: 1px solid #000;
        background: none;
    }
    
    .carrot-collection {
        border: 1px solid #000;
        background: none;
    }
    
    a {
        text-decoration: underline;
        color: black;
    }
    
    h1, h2 {
        color: black;
        text-shadow: none;
    }
}