@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

.mario-page {
    padding: 20px 0;
    background:
        radial-gradient(2px 2px at 20px 30px, #fff, transparent),
        radial-gradient(2px 2px at 90px 80px, #fff, transparent),
        radial-gradient(1px 1px at 150px 40px, #fff, transparent),
        radial-gradient(1px 1px at 220px 120px, #fff, transparent),
        radial-gradient(2px 2px at 300px 60px, #fff, transparent),
        radial-gradient(1px 1px at 380px 20px, #fff, transparent),
        linear-gradient(to bottom, #0b0f3b, #3d1a5b 60%, #6c2a7a);
    font-family: 'Press Start 2P', 'Courier New', monospace;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.mario-page h1 {
    color: #ffe66d;
    text-shadow: 0 0 6px #ff6bd6, 0 0 14px #ff6bd6, 2px 2px 0 #000;
    letter-spacing: 2px;
}

.game-container {
    background: #14102b;
    border: 3px solid #00e5ff;
    border-radius: 14px;
    padding: 10px;
    box-shadow: 0 0 10px #00e5ff, 0 0 30px rgba(0, 229, 255, 0.4), inset 0 0 12px rgba(0, 229, 255, 0.15);
}

.ui {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 12px;
    color: #ffe66d;
    text-shadow: 1px 1px 0 #000;
    min-width: 800px;
}

#game-area {
    position: relative;
    width: 800px;
    height: 400px;
    background: linear-gradient(to bottom, #1b1140 75%, #ff6bd6 75%, #7a2a8a 100%);
    border: 2px solid #00e5ff;
    border-radius: 6px;
    overflow: hidden;
}

#mario {
    position: absolute;
    width: 20px;
    height: 20px;
    background-size: cover;
    background-repeat: no-repeat;
    background-image: url('/mario-src/Zara.png');
    filter: drop-shadow(0 0 4px #00e5ff);
    z-index: 100;
}

#mario.big {
    width: 50px;
    height: 50px;
    background-image: url('/mario-src/Zara.png');
    filter: drop-shadow(0 0 6px #ffe66d);
}

.platform {
    position: absolute;
    width: 20px;
    height: 20px;
    background-repeat: repeat;
    background-image: url('https://i.imgur.com/M6rwarW.png');
    filter: hue-rotate(200deg) saturate(1.4);
}
.platform.ground {
    position: absolute;
    background-size: 20px 20px;
    background-repeat: repeat;
    background-image: url('https://i.imgur.com/pogC9x5.png');
    filter: hue-rotate(220deg) saturate(1.6) brightness(0.85);
    box-shadow: 0 -2px 6px rgba(0, 229, 255, 0.3);
}
.platform.floating {
    position: absolute;
    background-size: 20px 20px;
    background-repeat: repeat;
    background-image: url('https://i.imgur.com/pogC9x5.png');
    filter: hue-rotate(280deg) saturate(1.6) brightness(0.95);
    box-shadow: 0 0 6px rgba(255, 107, 214, 0.4);
}

.platform.blue {
    position: absolute;
    background-repeat: repeat;
    background-size: 20px 20px;
    background-image: url('https://i.imgur.com/fVscIbn.png');
    filter: hue-rotate(140deg) saturate(1.5);
}

.enemy.brown {
    position: absolute;
    width: 20px;
    height: 20px;
    background-image: url('https://i.imgur.com/KPO3fR9.png');
    filter: hue-rotate(260deg) saturate(2) brightness(0.9);
}

.enemy.purple {
    position: absolute;
    background-size: cover;
    background-repeat: no-repeat;
    width: 20px;
    height: 20px;
    background-image: url('https://i.imgur.com/SvV4ueD.png');
    filter: hue-rotate(60deg) saturate(1.6);
}

.mushroom {
    position: absolute;
    width: 20px;
    height: 20px;
    background-image: url('https://i.imgur.com/0wMd92p.png');
    filter: hue-rotate(210deg) saturate(1.8) drop-shadow(0 0 4px #00e5ff);
}

.coin {
    position: absolute;
    width: 20px;
    height: 20px;
    background-image: url('https://i.imgur.com/wbKxhcd.png');
    filter: hue-rotate(90deg) saturate(1.6) drop-shadow(0 0 4px #ffe66d);
    animation: coinSpin 1s linear infinite;
}
@keyframes coinSpin {
    0% {
        transform: rotateY(0deg);
    }
    100% {
        transform: rotateY(360deg);
    }
}

.surprise-block {
    position: absolute;
    width: 20px;
    height: 20px;
    background-image: url('https://i.imgur.com/gesQ1KP.png');
    filter: hue-rotate(180deg) saturate(1.8);
    animation: blockPulse 1.4s ease-in-out infinite;
}

@keyframes blockPulse {
    0%, 100% {
        filter: hue-rotate(180deg) saturate(1.8) brightness(1);
    }
    50% {
        filter: hue-rotate(180deg) saturate(1.8) brightness(1.3);
    }
}

.surprise-block.hit {
    position: absolute;
    width: 20px;
    height: 20px;
    background-image: url('https://i.imgur.com/bdrLpi6.png');
    filter: grayscale(0.6) brightness(0.7);
    animation: none;
}

.pipe {
    position: absolute;
    width: 40px;
    height: 40px;
    filter: hue-rotate(220deg) saturate(1.8) drop-shadow(0 0 6px rgba(0, 229, 255, 0.5));
}

.pipe-top {
    position: absolute;
    top: 0;
    left: 0;
    background-size: cover;
    background-repeat: no-repeat;
    width: 20px;
    height: 20px;
    background-image: url('https://i.imgur.com/ReTPiWY.png');
}
.pipe-top-right {
    position: absolute;
    top: 0;
    right: 0;
    background-size: cover;
    background-repeat: no-repeat;
    width: 20px;
    height: 20px;
    background-image: url('https://i.imgur.com/hj2GK4n.png');
}
.pipe-bottom {
    position: absolute;
    top: 0;
    left: 0;
    background-size: cover;
    background-repeat: no-repeat;
    width: 20px;
    height: 20px;
    background-image: url('https://i.imgur.com/c1cySbt.png');
}
.pipe-bottom-right {
    position: absolute;
    top: 0;
    right: 0;
    background-size: cover;
    background-repeat: no-repeat;
    width: 20px;
    height: 20px;
    background-image: url('https://i.imgur.com/nqQ79e.png');
}

.controls {
    margin-top: 15px;
    text-align: center;
    font-size: 10px;
    color: #b9a3ff;
    line-height: 1.8;
}

#game-over {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: 3px solid #ff6bd6;
    background: rgba(11, 15, 59, 0.92);
    color: #ffe66d;
    padding: 30px;
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 0 20px #ff6bd6, 0 0 50px rgba(255, 107, 214, 0.4);
    z-index: 1000;
    display: none;
}

#game-over h2 {
    text-shadow: 0 0 8px #ff6bd6;
}

#restart-button {
    background: linear-gradient(180deg, #00e5ff, #0088a3);
    color: #0b0f3b;
    border: none;
    border-radius: 6px;
    font-family: 'Press Start 2P', 'Courier New', monospace;
    font-size: 12px;
    padding: 10px 16px;
    margin: 14px 0 0;
    cursor: pointer;
    box-shadow: 0 0 8px rgba(0, 229, 255, 0.6);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
#restart-button:hover {
    background: linear-gradient(180deg, #6bffe0, #00b3d9);
    box-shadow: 0 0 14px rgba(0, 229, 255, 0.9);
    transform: translateY(-2px);
}
