body{
    margin: 0;
    padding: 0;
    background: linear-gradient(to bottom, #5C94FC, #87CEEB);
    font-family: 'Courier New', monospace;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100vh;
}

.game-container {
    background: #fff;
    border: 3px solid #000;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 4px 8px #000;
}

.ui {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: bold;
    min-width: 800px;
}

#game-area {
    position: relative;
    width: 800px;
    height: 400px;
    background: linear-gradient(to bottom, #5C94FC 80%, #228B22 80%, #228B22 100%);
    border: 2px solid #333;
    overflow: hidden;
}

#mario {
    position: absolute;
    width: 20px;
    height: 20px;
    background-size: cover;
    background-repeat: no-repeat;
    background-image: url('images/mario.png');
    z-index: 100;
}

#mario.big {
    width: 30px;
    height: 30px;
    background-image: url('images/mario.png');
}

.platform {
    position: absolute;
    background-size: 20px 20px;
    background-repeat: repeat;
    background-image: url('images/platform.png');
}

.platform.ground {
    position: absolute;
    background-size: 20px 20px;
    background-repeat: repeat;
    background-image: url('images/platform_ground.png');
}

.platform.floating {
    position: absolute;
    background-size: 20px 20px;
    background-repeat: repeats;
    background-image: url('images/platform_ground.png');
}


.platform.blue {
    position: absolute;
    background-size: 20px 20px;
    background-repeat: repeats;
    background-image: url('images/platform_blue.png');
}

.enemy.brown {
    position: absolute;
    width: 20px;
    height: 20px;
    background-image: url('images/enemy_brown.png');
}

.enemy.purple {
    position: absolute;
    background-size: cover;
    background-repeat: no-repeat;
    width: 20px;
    height: 20px;
    background-image: url('images/enemy_purple.png');
}

.mushroom {
    position: absolute;
    width: 20px;
    height: 20px;
    background-image: url('images/mushroom.png');    
}

.coin {
    position: absolute;
    width: 20px;
    height: 20px;
    background-image: url('images/coin.png');
    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('images/surprise_block.png');
}

.surprise-block.hit {
    position: absolute;
    width: 20px;
    height: 20px;
    background-image: url('images/surprise_block_hit.png');
}

.pipe{
    position: absolute;
    width: 40px;
    height: 40px;
}

.pipe-top {
    position: absolute;
    background-size: cover;
    background-repeat: no-repeat;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    background-image: url('images/pipe_top.png');
}

.pipe-top-right {
    position: absolute;
    top: 0;
    right: 0;
    background-size: cover;
    background-repeat: no-repeat;
    width: 20px;
    height: 20px;
    background-image: url('images/pipe_top_right.png');
}

.pipe-bottom {
    position: absolute;
    background-size: cover;
    background-repeat: no-repeat;
    bottom: 0;
    left: 0;
    width: 20px;
    height: 20px;
    background-image: url('images/pipe_bottom.png');
}

.pipe-bottom-right {
    position: absolute;
    background-size: cover;
    background-repeat: no-repeat;
    bottom: 0;
    right: 0;
    width: 20px;
    height: 20px;
    background-image: url('images/pipe_bottom_right.png');
}

.controls {
    margin-top: 15px;
    text-align: center;
    font-size: 14px;
}

#game-over {
    position: absolute;
    top: 20%;
    border: 3px solid #fff;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    z-index: 1000;
    display: none;
}

#restart-button {
    background-color: #ff6b6b;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    margin: 10px;
}

#restart-button:hover {
    background-color: #ff5252;
}