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

html,
body{
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    font-family: Arial, Helvetica, sans-serif;
}

/* BODY */
body{
    background:
        linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.35)),
        url("./images/2.jpg");
    background-color: #76c260;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;
    padding: 20px;
}

/* TITLE */
h1{
    color: #ffffff;
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

/* SCOREBOARD */
.scoreboard{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

/* BUTTON */
input[type="button"]{
    padding: 12px 22px;
    border-radius: 14px;
    border: none;
    outline: none;
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(8px);
    color: #ffffff;
    transition: 0.25s ease;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
}

input[type="button"]:hover{
    background: #ffffff;
    color: #2f7d32;
    transform: translateY(-3px);
}

input[type="button"]:active{
    transform: scale(0.96);
}

/* NUMBER INPUT */
input[type="number"]{
    padding: 12px 16px;
   
    border: none;
    outline: none;
   
    backdrop-filter: blur(8px);
    color: #ffffff;
    transition: 0.25s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    font-size: 18px;
    text-align: center;
    width: 120px;
    margin-bottom: 20px;
}

input[type="number"]::placeholder{
    color: rgba(255,255,255,0.7);
}

input[type="number"]:focus{
    background: rgba(255,255,255,0.28);
    transform: scale(1.03);
}

/* CANVAS */
canvas{
    background: rgba(255, 255, 255, 0.95);
    
    box-shadow: 0 15px 35px rgb(175 182 173);
   
    width: 100%;
    max-width: 600px;
    height: auto;
    margin: 10px auto;
}

/* SCORE */
#score,
#maxScore{
    color: #fff333;
    font-family: sans-serif;
    font-size: 1.4rem;
    font-weight: bold;
    background: rgba(0,0,0,0.25);
    padding: 10px 16px;
    border-radius: 12px;
    margin-left: 0;
}

/* RESPONSIVE */
@media (max-width: 768px){

    body{
        padding: 15px;
    }

    h1{
        font-size: 2.3rem;
    }

    .scoreboard{
        gap: 14px;
    }

    canvas{
        border-radius: 18px;
    }

    #score,
    #maxScore{
        font-size: 1.1rem;
    }
}

@media (max-width: 480px){

    body{
        padding: 12px;
    }

    h1{
        font-size: 1.8rem;
    }

    .scoreboard{
        flex-direction: column;
        gap: 12px;
    }

    input[type="button"],
    input[type="number"]{
        width: 100%;
        max-width: 250px;
        font-size: 16px;
    }

    #score,
    #maxScore{
        width: 100%;
        max-width: 250px;
        font-size: 1rem;
    }

    canvas{
        border-radius: 16px;
    }
}