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

body {
    font-family: 'Arial', sans-serif;
    background-color: #121212;
    color: white;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    touch-action: none; /* Prevents default touch actions on mobile */
}

#app {
    width: 100%;
    max-width: 500px;
    height: 100%;
    max-height: 800px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Game Container */
.game-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Game HUD */
.game-hud {
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
}

.score, .timer, .lives {
    font-size: 24px;
    font-weight: bold;
}

/* Arrow Styles */
.arrow-container {
    position: relative;
    width: 150px;
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.arrow {
    width: 100px;
    height: 100px;
    transition: transform 0.2s ease;
}

/* Game Controls */
.controls {
    margin-top: 40px;
    text-align: center;
}

.start-button, .restart-button {
    background-color: #4CAF50;
    border: none;
    color: white;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.start-button:hover, .restart-button:hover {
    background-color: #45a049;
}

/* Game Over Screen */
.game-over {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.game-over h2 {
    font-size: 48px;
    margin-bottom: 20px;
}

.game-over p {
    font-size: 24px;
    margin-bottom: 30px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .arrow {
        width: 80px;
        height: 80px;
    }

    .game-hud {
        top: 10px;
    }

    .score, .timer, .lives {
        font-size: 20px;
    }
}

/* Animation for correct/incorrect answers */
@keyframes correct {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

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

.correct {
    animation: correct 0.5s;
}

.incorrect {
    animation: incorrect 0.5s;
}

.mb-2 {
    margin-bottom: 1.2rem;
}
@keyframes slide-right-bounce {
    0%   { transform: translateX(0); }
    50%  { transform: translateX(10px); }
    100% { transform: translateX(0); }
}

.animate__slide-right-bounce {
    animation-name: slide-right-bounce;
    animation-duration: 1s;
    animation-timing-function: ease-in-out;
}
@keyframes slide-left-bounce {
    0%   { transform: translateX(0); }
    50%  { transform: translateX(-10px); }
    100% { transform: translateX(0); }
}



.animate__slide-up-bounce {
    animation-name: slide-up-bounce;
    animation-duration: 1s;
    animation-timing-function: ease-in-out;
}

@keyframes slide-up-bounce {
    0%   { transform: translateY(0); }
    50%  { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

.animate__slide-down-bounce {
    animation-name: slide-down-bounce;
    animation-duration: 1s;
    animation-timing-function: ease-in-out;
}
@keyframes slide-down-bounce {
    0%   { transform: translateY(0); }
    50%  { transform: translateY(10px); }
    100% { transform: translateY(0); }
}
