body{
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    background: linear-gradient(135deg, #a105e9, #03793e);
}

#gameContainer {
    position: relative;
    width: 400px;
    height: 600px;
    background: linear-gradient(to bottom, #17e404 0%, #0313fa 100%);
    border: 3px solid #23114b; 
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

#player {
    position: absolute;
    width: 50px;
    height: 50px;
    background: #18e798;
    border-radius: 0.01% 0.01% 0.01% 0.01;
}

#player::before,
#player::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: #333;
    border-radius: 50%;
    top: 15px;
}

#player::before{
    left: 12px;
}

#player::after{
    right: 12px;
}

.platform {
    position: absolute;
    width: 70px;
    height: 15px;
    background: linear-gradient(to bottom, #884513, #A0522D);
    border-radius: 5px;
    border: 1px solid #884513;
}

.breaking-platform{
    background: red;
    border: 1px solid rgba(105, 22, 22, 0.822);
}

.breaking-platform.breaking{
    background-color:aquamarine;
    opacity: 0.5;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: scale(0.8 );
}


#score {
    position: absolute;
    top:550px;
    left: 20px;
    font-size: 24px;
    font-weight: bold;
    color:#07dacf;
    z-index: 100;
}

#gameOver {
    position: absolute;
    top: 50%;
    left: 50%;
    transform:translate(-50%, -50%);
    text-align:center;
    background: #8012da;
    padding: 30px;
    border-radius: 10px;
    display: none;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    z-index: 100;
}

#gameOver h2 {
    margin: 0 0 10px 0;
    color: #0ac229;
}

#gameOver button {
    margin-top: 20px;
    padding: 10px 30px;
    font-size: 18px;
    background: #6546ad;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#gameOver button:hover {
    background: rgb(1, 55, 155);
}

#startScreen {
    position: absolute;
    top: 50%;
    left: 50%;
    transform:translate(-50%, -50%);
    text-align:center;
    background: #0e0303;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

#startScreen h1 {
    margin: 0 0 20px 0;
    color: #6f04e9;
}

#startScreen p {
    margin: 10px 0;
    color: #666;
}

#startScreen button {
    margin-top: 20px;
    padding: 10px 30px;
    font-size: 18px;
    background: #4CAF50;
    color: rgb(77, 15, 221);
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#startScreen button:hover {
    background: #45a049;
}

.background-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.1),
        rgba(255, 255, 255, 0.1) 20px,
        transparent 20px,
        transparent 40px
    );
    pointer-events: none; /* lets clicks go through */
}

.bouncy-platform{
    background: #667eea;
}

@keyframes crackPlatform {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(0.95) rotate(2deg); opacity: 0.7; }
    100% { transform: scale(0.9) rotate(-2deg); opacity: 0; }
}

.speed-platform {
    background: orange;
    border: 2px solid darkorange;
}

.negative-platform {
    background: rgb(252, 6, 92);
    border: 2px solid #750675;
}

.positive-platform {
    background: rgb(6, 252, 39);
    border: 2px solid #067566;
}

.superbouncy-platform {
    background: rgb(6, 195, 252);
    border: 2px solid #2c0fbd;
}

.tp-platform {
background: #310264;
border: #c708f1;
}

.death-platform {
    background: #8b0404;
    border: #333;
}

.slow-platform {
    background: #051b63;
    border: #333
}

#settings {
    position: absolute;
    color: rgb(40, 3, 248);
    left: 650px;
    top: 400px;
    width: 600px;
    height: 200px;
    background: #333;
    border-radius: 10px;
    border: 2px solid #333;
    display: none;
}

#close {
    background:#ee0808;
    border: none;
}

#player1{
    width: 50px;
    height: 50px;
    background: #7702fd;
}