/* Page styling */
body{
display: flex;
flex-direction: column;
align-items: center;
background-color: hsl(60, 27%, 66%);

}

/* Page heading */
#myH1{
    font-size: 4rem;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    color: hsl(180, 28%, 41%);

}

/* Stopwatch box */
#container{
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 5px solid;
    border-radius: 50px;
    background-color: hsl(0, 9%, 91%);


}

#display{
    font-size: 5rem;
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    color: hsl(209, 12%, 41%);
    text-shadow: 2px 2px 2px hsla(0, 0%, 0%, 0.628) ;
    margin-bottom: 25px;
}

#controls button{
    font-size: 1.5rem;
    font-weight: bold;
    padding: 10px 20px;
    margin: 5px;
    min-width: 125px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    color: white;
    transition: background-color 0.5s ease;
}

#startBtn{
    background-color: hsl(168, 66%, 19%);
}
#startBtn:hover{
    background-color: hsl(120, 21%, 30%);
}


#stopBtn{
    background-color: hsl(0, 77%, 48%);
}
#stopBtn:hover{
    background-color: hsl(4, 83%, 36%);
}


#resetBtn{
    background-color: hsl(39, 56%, 23%);
}
#resetBtn:hover{
    background-color: hsl(50, 66%, 23%);
}

/* mobile interraction */

@media (max-width: 768px) {
    #myH1 {
        font-size: 2.5rem;
        text-align: center;
    }

    #display {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }

    #controls {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    #controls button {
        font-size: 1.2rem;
        min-width: 100px;
        padding: 8px 15px;
        margin: 8px 0;
    }

    #container {
        width: 90%;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    #myH1 {
        font-size: 2rem;
    }

    #display {
        font-size: 2rem;
    }

    #controls button {
        font-size: 1rem;
        min-width: 80px;
        padding: 6px 12px;
    }
}

