/**** Reset ****/

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

/**** Style général de la page ****/

body {
    width: 100%;
    min-height: 100vh;
    background-color: #f7f7f7;
    font-family: sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
}

.timer__container {
    max-width: 900px;
    width: 100%; 
    border: 2px solid #0ce6e6;
    border-radius: 12px;
    padding: 20px;
}
  
#timer {
    font-size: 7rem;
    font-weight: 700;
    color: #0ce6e6;
    width: 100%;
    text-align: center;
    margin: 0 auto;
}
  
#buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}
  
button {
    background-color: #0ce6e6;
    color: #ffffff;
    font-size: 2rem;
    font-weight: bold;
    padding: 1.5rem 4rem;
    margin: 1.2rem;
    border-radius: 30px;
    cursor: pointer;
    transform: scale(1);
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease-in-out;
}
  
button:hover {
    background-color: #0cc0c0;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    transform: scale(1.08);
}
  
button[disabled] {
    opacity: 0.5;
    cursor: default;
}

/**** Responsive design ****/
  
@media screen and (max-width: 800px) {
    #timer {
      font-size: 6rem; 
    }
  
    button {
      font-size: 1.5rem;
      padding: 1rem 2rem;
    }
}

@media screen and (max-width: 605px) {
    .timer__container {
        max-width: 450px;
        width: 100%;
    }

    #timer {
        font-size: 3.3rem;
    }

    button {
        font-size: 1rem;
        padding: 1rem;
        border-radius: 20px;
        margin-right: 1rem;
        margin-right: 1rem;
    }
}

@media screen and (max-width: 395px) {
    #timer {
        font-size: 2.2rem;
    }
}