@import url('https://fonts.googleapis.com/css2?family=Fredoka+One&display=swap');

body {
    font-family: 'Fredoka One', cursive;
    background: linear-gradient(to bottom, #87CEEB, #E0F7FA);
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: #333;
}

.game-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    width: 90%;
    max-width: 540px;
}

.header {
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.header h1 {
    margin: 0;
    font-size: 2.5em;
    color: #E67E22;
}

.game-info {
    display: flex;
    justify-content: space-around;
    font-size: 1.2em;
    margin-top: 10px;
}

canvas {
    background-color: #F0F8FF; /* Light sky blue */
    border-radius: 10px;
    width: 100%;
    max-width: 500px;
}

.modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    text-align: center;
    z-index: 10;
    width: 80%;
    max-width: 400px;
}

.modal.hidden {
    display: none;
}

.modal h2 {
    margin-top: 0;
    font-size: 2em;
    color: #E67E22;
}

.birthday-message {
    color: #E74C3C; /* A festive red */
    font-size: 2.2em;
    margin-bottom: 10px;
    animation: pulse 2s infinite;
}

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

.modal p {
    font-size: 1.1em;
    line-height: 1.5;
}

.final-score {
    font-weight: bold;
    font-size: 1.3em;
    color: #27AE60;
}

.btn {
    background: linear-gradient(135deg, #F39C12, #E67E22);
    color: white;
    border: none;
    padding: 15px 30px;
    font-family: 'Fredoka One', cursive;
    font-size: 1.2em;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 20px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.4);
}

.character-selection {
    margin: 20px 0;
}

.character-selection p {
    margin-bottom: 10px;
    font-size: 1.1em;
}

.char-btn {
    background: #eee;
    border: 2px solid #ddd;
    color: #555;
    padding: 10px 20px;
    font-family: 'Fredoka One', cursive;
    font-size: 1em;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    margin: 0 5px;
}

.char-btn.active, .char-btn:hover {
    background: #E67E22;
    color: white;
    border-color: #D35400;
    transform: scale(1.05);
}

/* Touch Controls */
.touch-controls {
    display: none; /* Hidden by default */
    justify-content: space-between;
    margin: 20px auto 0;
    width: 80%;
    max-width: 300px;
}

.control-btn {
    width: 80px;
    height: 80px;
    font-size: 3em;
    background: linear-gradient(135deg, #F39C12, #E67E22);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(230, 126, 34, 0.3);
    transition: all 0.2s ease;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.control-btn:active {
    transform: scale(0.95);
    box-shadow: 0 2px 5px rgba(230, 126, 34, 0.3);
}

@media (hover: none) and (pointer: coarse) {
    .touch-controls {
        display: flex;
    }
}

.powerup-sign {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4em;
    font-weight: bold;
    color: #FFD700; /* Gold */
    text-shadow: 3px 3px 0 #D35400, -1px -1px 0 #D35400, 1px -1px 0 #D35400, -1px 1px 0 #D35400, 1px 1px 0 #D35400;
    z-index: 20;
    pointer-events: none; /* So it doesn't block clicks */
    display: none; /* Ensure it is hidden by default */
}


