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

.game-board{
    width: 100%;
    height: 500px;
    border-bottom: 15px solid rgb(41, 184, 41);
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    background: linear-gradient(#87CEEB, #E0F6FF);
}

body{
    background-image: linear-gradient(rgb(182, 134, 72),rgb(44, 25, 9),rgb(182, 134, 72));
}

.pipe{
    position: absolute;
    bottom: 0;
    width: 80px;
    animation: pipe-animation 2s infinite linear paused;
    
}  

.mario{
    width: 150px;
    position: absolute;
    bottom: 0;
    
}

.jump{
    animation: jump 500ms ease-out;
}

.clouds{
    width: 550px;
    position: absolute;
    animation: clouds-animation 30s infinite linear;
}

.coin{
    width: 50px;
    position: absolute;
    right: -50px;
    display: none;
    animation: coin-float 1s infinite ease-in-out;
}

@keyframes coin-move{
    from{
        right: -50px;
    }
    to{
        right: 100%;
    }
}

.score{
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    margin-top: 20px;
    text-align: center;
}

@keyframes jump{
   0%{
    bottom: 0px;
   }
   40%{
    bottom: 180px;
   }

   50%{
    bottom: 180px;
   }
   60%{
    bottom: 180px;
   }
   100%{
    bottom: 0px;
   }
}

@keyframes pipe-animation{
    from{
        right: -80px;
    }

    to{
        right: 100%;
 }
}

@keyframes clouds-animation{
    from{right: -550px;}
    to {right: 100%}
}

@keyframes coin-float{
    0%, 100%{
        transform: translateY(0px);
    }
    50%{
        transform: translateY(-20px);
    }
}

.start-menu{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 200;
}

.game-title{
    font-size: 72px;
    color: #ff0000;
    font-family: 'Arial', sans-serif;
    font-weight: bold;
    text-shadow: 3px 3px 6px #000, 
                 -1px -1px 0 #fff,
                 1px -1px 0 #fff,
                 -1px 1px 0 #fff,
                 1px 1px 0 #fff;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

.subtitle{
    font-size: 20px;
    color: #fff;
    font-family: 'Arial', sans-serif;
    margin-bottom: 30px;
    animation: blink 1.5s infinite;
}

.instructions{
    font-size: 16px;
    color: #ccc;
    font-family: 'Arial', sans-serif;
    margin-top: 20px;
}

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

@keyframes blink{
    0%, 100%{
        opacity: 1;
    }
    50%{
        opacity: 0.3;
    }
}

#playBtn{
    padding: 20px 60px;
    font-size: 28px;
    background: linear-gradient(#4CAF50, #45a049);
    color: white;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    font-family: 'Arial', sans-serif;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.4);
}

#playBtn:hover{
    background: linear-gradient(#50c754, #4CAF50);
    transform: scale(1.1);
    box-shadow: 0 8px 10px rgba(0, 0, 0, 0.5);
}

#playBtn:active{
    transform: scale(0.95);
}

.game-over{
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.85);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    z-index: 100;
    border: 3px solid #fff;
}

.game-over h2{
    color: #ff0000;
    font-size: 48px;
    font-family: 'Arial', sans-serif;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px #000;
}

.game-over p{
    color: #fff;
    font-size: 24px;
    font-family: 'Arial', sans-serif;
    margin-bottom: 30px;
}

.game-over #finalScore{
    color: #FFD700;
    font-weight: bold;
    font-size: 28px;
}

#restartBtn{
    padding: 15px 40px;
    font-size: 20px;
    background: linear-gradient(#ff6b6b, #ee5a5a);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-family: 'Arial', sans-serif;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

#restartBtn:hover{
    background: linear-gradient(#ff5252, #ff3838);
    transform: scale(1.1);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.4);
}

#restartBtn:active{
    transform: scale(0.95);
}
