*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}
html{
    font-size: 62.5%;
}
body{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background: linear-gradient(to right, #ADD8E6, #00008B);
    background-size: 400% 400%;
    animation: movement 8s ease infinite alternate;
}
@keyframes movement {
    0%{ background-position: 0% 0%;}
    50%{ background-position: 50% 50%;}
    100%{ background-position: 100% 100%;}
}

.section1 {
  padding-top: 10rem;
}

.section1 > h1{
    display: flex;
    justify-content: center;
    color: white;
    padding-top: 4rem;
    padding-bottom: 1.5rem;
    font-size: 3rem;
    text-align: center;
}

.section1 > h2{
    display: flex;
    justify-content: center;
    color: firebrick;
    padding-bottom: 1.5rem;
    font-size: 3rem;
    text-align: center;
}



.container{
   background-color: rgba(108, 137, 223, 0.462);
   padding: 10rem 15rem;
   display: flex;
   flex-direction: column;
   gap: 1.5rem;
   align-items: center;
   font-size: 2.5rem;
   box-shadow: 0 4px 8px 3px rgba(0, 0, 0, 0, 0.2);
   border-radius: 2rem;
   line-height: 2;
   color: rgba(255, 255, 255, 0.837);
   
}

.container > h3 {
    text-align: center;
}

@media(max-width: 43.75rem){
    .container > input{
       width: 20rem;
    }

    .section1 {
        padding: 3rem 3rem;
        padding-left: 8rem;
    }
}
.container > input{
    width: 35rem;
    height: 3.5rem;
    border-radius: 1rem;
    border: none;
    text-align: center;
}


@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.buttons{
    display: flex;
    justify-content: center;
    padding-top: 3rem;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-weight: 1000;
}

.buttons > button{
    font-size: 2rem;
    width: 15rem;
    height: 2.5rem;
    border-radius: 2rem;
    border: none;
    transition: width 1s ease-out;
    cursor: pointer;
    
}

#guessbtn{
    background-color: rgba(132, 225, 132, 0.36);
}

#guessbtn:hover{
   background-color: green;
   transition: 0.5s ease-out;
   color: white;
   width: 15rem;
   height: 3rem;
}
#newgamebtn{
    background-color: rgba(225, 132, 132, 0.36);
}
#newgamebtn:hover{
   background-color: rgb(128, 0, 0);
   transition: 0.5s ease-out;
   color: white;
   width: 15rem;
   height: 3rem;
}
#message{
    display: flex;
    justify-content: center;
    transition: all 0.4s ease-in-out;
    text-align: center;
}
.attempts {
  display: flex;
  justify-content: center;
  font-size: 3rem;
}

.footer {
  margin-top: 3rem;
  font-size: 2rem;
  font-family: cursive;
  font-style: italic;
  font-weight: 700;
  /* margin-bottom: 3rem; */
  padding-bottom: 2rem;
}

.gameOver {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    text-align: center;
    color: firebrick;
    font-size: 8rem;
    transform: translateY(10px);
    animation: fadeIn 1.2s ease-in-out;
    display: none;
}

/* 📱 Small android screens */
    @media (max-width: 480px) {
      html {
        font-size: 55%;
      }

      .container {
        padding: 3rem 2rem;
        gap: 3rem;
      }

      .section1 > h1 {
        font-size: 2.2rem;
      }

      

      .buttons > button {
        width: 100%;
        height: 3.2rem;
      }

      .gameOver {
        font-size: 4rem;
        padding-top: 10rem;
      }
    }

    /* 💻 Tablets */
    @media (max-width: 900px) {
      html {
        font-size: 58%;
      }

      .container {
        padding: 5rem 4rem;
      }

      .section1 {
        padding-left: 6rem;
      }

      .gameOver {
        font-size: 5rem;
        transform: translateY(40px);
      }
    }

    @media (max-width: 355px) {
      .gameOver {
        font-size: 3rem;
      }
    }

