*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins',sans-serif;
}

body{
    overflow:hidden;
    background:#111;
    color:white;
}

/* PAGE */
.page{
    width:100%;
    height:100vh;
    display:none;
    justify-content:center;
    align-items:center;
    flex-direction:column;
    padding:20px;
}

.active{
    display:flex;
}

/* GAME PAGE */
#gamePage{
    background:linear-gradient(135deg,#1e1e1e,#2d0b52);
}

h1{
    margin-bottom:10px;
    text-align:center;
}

.score{
    margin-bottom:15px;
    font-size:20px;
}

canvas{
    background:#000;
    border:4px solid white;
    border-radius:20px;
    box-shadow:0 0 20px rgba(255,255,255,0.3);
}

.info{
    margin-top:20px;
    opacity:0.8;
    text-align:center;
}

/* BUTTON HP */
.controls{
    margin-top:20px;
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:10px;
}

.middle{
    display:flex;
    gap:10px;
}

.controls button{
    width:70px;
    height:70px;
    border:none;
    border-radius:20px;
    font-size:30px;
    background:white;
    cursor:pointer;
    transition:0.2s;
}

.controls button:active{
    transform:scale(0.9);
}

/* PAGE MAAF */
#sorryPage{
    background:linear-gradient(135deg,#ffb6d9,#ffcce6);
    overflow-y:auto;
}

.container{
    max-width:700px;
    background:white;
    color:#333;
    padding:30px;
    border-radius:30px;
    text-align:center;
    box-shadow:0 10px 30px rgba(0,0,0,0.2);
    animation:fade 1s ease;
}

@keyframes fade{
    from{
        opacity:0;
        transform:translateY(20px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }
}

.gif{
    width:220px;
    border-radius:20px;
    margin-bottom:20px;
}

.title{
    font-size:35px;
    margin-bottom:20px;
    color:#ff4f8b;
}

.text{
    font-size:18px;
    line-height:1.8;
    max-height:300px;
    overflow-y:auto;
    padding-right:10px;
}

.text::-webkit-scrollbar{
    width:8px;
}

.text::-webkit-scrollbar-thumb{
    background:#ff8ab5;
    border-radius:20px;
}

/* RESPONSIVE */
@media(max-width:500px){

    canvas{
        width:320px;
        height:320px;
    }

    .controls button{
        width:60px;
        height:60px;
        font-size:25px;
    }

    .title{
        font-size:28px;
    }

    .text{
        font-size:16px;
    }

    .gif{
        width:180px;
    }
}