       @media (prefers-reduced-motion: no-preference) {
  * {
    scroll-behavior: smooth;
  }
}
 
body{
    margin: 0;
    padding: 0;
    height: 100vh;
    background-color: #1B1D25;
    overflow: auto; 
}

body::-webkit-scrollbar {
  display: none;
}

header{
  background-color: aliceblue;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
  margin: 20px 40px 0 40px;
  border-radius: 5px;
  position: fixed;
  width: 95%;
  top:0;
}

header span{
    color:rgb(223, 16, 116);
}

header div{
  margin-left: 20px;
}

.logo a{
  text-decoration: none;
  color: black;
  line-height: 2rem;
  font-family: Comic Sans MS, Comic Sans, cursive;
  font-size: 1.5rem;
}

header ul{
  margin-right: 20px;
  
}
.nav{
  display: flex;
  gap: 50px;
  overflow: hidden;
}

.nav a{
  text-decoration: none;
  color: black;
}

.nav a:hover{
  border-bottom: 2px solid rgb(227, 61, 19);
  color:rgb(223, 16, 116) ; 

}

.nav li{
  display: inline-flex;
}

.menu{
    display: none;
    border: 2px solid black;
    background: transparent;
    cursor: pointer;
    padding: 8px;
    border-radius: 5px;
    
  }

  .menu span {
    width: 25px;
    height: 3px;
    background: #ee55a2ad;
    display: block;
    margin: 5px 0;
  }

  .line{
    height:3px;
    width:20px;
    background-color: black;
    margin-bottom: 3px;
    
  }


  main{
    margin: 120px 40px 0 40px;
    text-align: center;
    color: #e5e7eb;
    
  }
  main h1{
    font-size: 2rem;
  }
  main p{
    text-align: center;
    font-size: 2rem;
  }

  .boxes{
    display: grid;
    justify-content:center;


  }
  .box{
    color: #e5e7eb;
    background-color: #23252e;
    margin-top: 30px;
    height: 10vh;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    justify-content: space-around;
    padding: 20px;
    align-items: center;
    box-sizing: border-box;
    gap:5px;
}

 .box select{
  color: aliceblue;
  width: 12%;
  height: 4vh;
  text-align: center;
  background-color: #2a2b30;
  border: 2px solid rgba(255, 255, 255, 0);
 }

 
  .box input{
    color: aliceblue;
    width: 20%;
    height: 20px;
    margin-left: 20px;
    text-align: center;
    font-size: 1rem;
    background-color: #2a2b30;
    border: 2px solid rgba(255, 255, 255, 0);
  }

  .button{
    display: flex;
    justify-content: center;
  }
  .button button{
    font-size: 1.2rem;
    cursor: pointer;
    padding: 10px;
    background-color: #1B1D25;
    color: aliceblue;
    margin-top: 50px;
    height: 8vh;
    width: 120px;
    border: 3px solid rgb(223, 16, 116) ;
    border-radius: 375rem;
  }
  .button button:hover{
    border-radius: 375rem;
    background-image:linear-gradient(to right, rgb(223, 16, 116), rgb(227, 61, 19))  ;
  }

  .answer{
    margin-top: 20px;
  }
  .result{
    text-align: center;
    font-size: 30px;
    color:rgb(223, 16, 116);
}

  footer{
    margin-top: 330px;
    background-color: rgb(22, 23, 30);
    height:150px;
    color: rgb(156 163 175);
    text-align: center;
    padding-top: 20px;
  }

  footer hr{
    width:95%;
  }

  footer a{
    color:rgb(156 163 175);
    text-decoration: none;
  }
  
  footer a:hover{
    color:#e5e7eb;
  }


  .footer{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin: 20px 40px 0 40px;
    top:60px;
  }

  .logo2 a{
    color: #e5e7eb;
    font-size: 2.5rem;
    line-height: 2rem;
    text-decoration: none;
    font-family:Montserrat, sans-serif;

  }

.nav1 {
  display: flex;
  gap: 30px;
  overflow: hidden;
}

.nav1 a{
  text-decoration: none;
  color: rgb(156 163 175);
}

.nav1 li{
  display: block;
}

input[type=number]::-webkit-outer-spin-button,
        input[type=number]::-webkit-inner-spin-button {
            -webkit-appearance: none;
            margin: 0;
        }

        input[type=number] {
            appearance: textfield;
          }

          @media all and (max-width: 640px) {

            header{
              width: 90%;
              margin-left: 20px;
            }
          
           
            
            .nav{
              flex-direction: column;
               max-height: 0;
               background-color: aliceblue;
               width: 90%;
               position: absolute;
               top: 60px;
               left: 0;
               gap: 0px;
               margin-right: 20px;
           }
          
            .nav li{
              display:block;
              padding: 10px 0;
          
            }
          
            .nav.open {
              max-height: 300px;
          }
          
            ul{
              text-align: center;
            }
          
            .menu{
              display:block;
              position: absolute;
              right: 20px;
            }

             .box select{
            min-width: 25%;
           } 
                 
                 
           footer{
            height:380px;
            
           }
           .nav1{
            flex-direction: row;
            flex-wrap: wrap;
           }

           .sem{
            width: 100%;
           }
          
          
            
          }
          
