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

/* Navigation */
nav {
    background-color: #333;
    padding: 15px 0;
}

.nav-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: white;
    font-size: 1.5rem;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
}

nav ul li a:hover {
    color: #87CEEB;
}

/* Game Layout */
.big-box {
    background-color: #222;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    color: white;
}

.game-container {
    width: 800px;
    margin: 20px auto;
}

.game-info {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    background-color: #333;
    border-radius: 5px 5px 0 0;
    font-size: 18px;
    position: relative;
    z-index: 10;
}

#game {
    position: relative;
    width: 800px;
    height: 500px;
    background-color: #87CEEB;
    overflow: hidden;
    border: 2px solid #444;
}

#game-world {
    position: absolute;
    width: 3000px;
    height: 2000px;
    background: linear-gradient(to bottom, #1E90FF, #87CEEB);
}

/* Game Elements */
#player {
    position: absolute;
    width: 40px;
    height: 40px;
    background-color: #FF5252;
    border-radius: 15px 5px 5px 5px;
    transition: border-radius 0.1s, height 0.2s, margin-top 0.2s;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.3);
    z-index: 5;
}

.platform {
    position: absolute;
    background: linear-gradient(to bottom, #8BC34A, #689F38);
    border-top: 3px solid #8BC34A;
    border-radius: 4px;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.3);
}

.coin {
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: gold;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 3;
}

.special-coin {
    width: 25px !important;
    height: 25px !important;
    background-color: #FFD700 !important;
    box-shadow: 0 0 10px 5px rgba(255, 215, 0, 0.5);
    animation: specialSpin 1.5s linear infinite;
}

.enemy {
    position: absolute;
    width: 30px;
    height: 30px;
    background-color: #9C27B0;
    border-radius: 50%;
    z-index: 4;
}

.controls {
    margin-top: 20px;
    background-color: #333;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 15px 0;
    margin-top: 20px;
    width: 100%;
}

/* Animations */
@keyframes spin {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

@keyframes specialSpin {
    0% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.3) rotate(180deg); }
    100% { transform: scale(1) rotate(360deg); }
}

/* Heart styling - updated size */
.heart {
    position: absolute;
    width: 40px;  /* Increased from 25px */
    height: 40px; /* Increased from 25px */
    background-color: #FF5252;
    clip-path: path('M20,6 C16,6 14,8 14,12 C14,18 20,22 20,22 C20,22 26,18 26,12 C26,8 24,6 20,6 Z');
    animation: heartBeat 1.5s ease-in-out infinite;
    z-index: 3;
    box-shadow: 0 0 15px 5px rgba(255, 82, 82, 0.4); /* Enhanced glow effect */
}

/* Heart pickup effect */
.effect.heart-pickup {
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, rgba(255,82,82,0.8) 0%, rgba(255,82,82,0) 70%);
    border-radius: 50%;
    animation: heartCollect 0.5s ease-out;
    z-index: 6;
    pointer-events: none;
}

/* Heart animations */
@keyframes heartBeat {
    0% { transform: scale(1) translateY(0); }
    25% { transform: scale(1.1) translateY(-3px); }
    50% { transform: scale(1) translateY(0); }
    75% { transform: scale(0.9) translateY(3px); }
    100% { transform: scale(1) translateY(0); }
}

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

/* Notification styling */
#notification {
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 16px;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 100;
}

#notification.show {
    opacity: 1;
}

/* Player invulnerability effect */
#player.invulnerable {
    animation: flash 0.2s linear infinite;
}

@keyframes flash {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Double Jump power-up styling */
.double-jump {
    position: absolute;
    width: 30px;
    height: 30px;
    background-color: #00FF00;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    animation: doubleJumpFloat 2s ease-in-out infinite;
    z-index: 3;
    box-shadow: 0 0 10px 5px rgba(0, 255, 0, 0.4);
}

/* Dash power-up styling */
.dash {
    position: absolute;
    width: 30px;
    height: 30px;
    background-color: #00FFFF;
    border-radius: 5px;
    animation: dashPulse 1.5s ease-in-out infinite;
    z-index: 3;
    box-shadow: 0 0 8px 4px rgba(0, 255, 255, 0.5);
}

/* Double Jump effect */
.effect.double-jump-effect {
    position: absolute;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(0,255,0,0.8) 0%, rgba(0,255,0,0) 70%);
    border-radius: 50%;
    animation: doubleJumpEffect 0.4s ease-out;
    z-index: 2;
    pointer-events: none;
}

/* Dash effect */
.effect.dash-effect {
    position: absolute;
    background-color: rgba(0, 255, 255, 0.3);
    border-radius: 5px;
    animation: dashEffect 0.3s ease-out;
    z-index: 2;
    pointer-events: none;
}

/* Double Jump pickup effect */
.effect.double-jump-pickup {
    width: 50px;
    height: 50px;
    background: radial-gradient(circle, rgba(0,255,0,0.8) 0%, rgba(0,255,0,0) 70%);
    border-radius: 50%;
    animation: powerupCollect 0.5s ease-out;
    z-index: 6;
    pointer-events: none;
}

/* Dash pickup effect */
.effect.dash-pickup {
    width: 50px;
    height: 50px;
    background: radial-gradient(circle, rgba(0,255,255,0.8) 0%, rgba(0,255,255,0) 70%);
    border-radius: 50%;
    animation: powerupCollect 0.5s ease-out;
    z-index: 6;
    pointer-events: none;
}

/* Double Jump animations */
@keyframes doubleJumpFloat {
    0% { transform: rotate(0deg) scale(1) translateY(0); }
    33% { transform: rotate(120deg) scale(1.1) translateY(-5px); }
    66% { transform: rotate(240deg) scale(0.9) translateY(5px); }
    100% { transform: rotate(360deg) scale(1) translateY(0); }
}

@keyframes doubleJumpEffect {
    0% { transform: scale(0.3); opacity: 1; }
    100% { transform: scale(2); opacity: 0; }
}

/* Dash animations */
@keyframes dashPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

@keyframes dashEffect {
    0% { opacity: 0.8; }
    100% { opacity: 0; }
}

/* Powerup collect animation */
@keyframes powerupCollect {
    0% { transform: scale(0.5); opacity: 1; }
    100% { transform: scale(2.5); opacity: 0; }
}

/* Game HUD for abilities */
.abilities-hud {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 5px 15px;
    border-radius: 20px;
    z-index: 10;
}

.ability-icon {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    border-radius: 5px;
    opacity: 0.4;
    transition: opacity 0.3s;
}

.ability-icon.active {
    opacity: 1;
    box-shadow: 0 0 5px 2px rgba(255, 255, 255, 0.5);
}

.double-jump-icon {
    background-color: #00FF00;
}

.dash-icon {
    background-color: #00FFFF;
}

/* Cooldown overlay for dash */
.cooldown-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    transition: height 1s linear;
}