@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;
}

main h1 {
  color: white;
  text-align: center;
}

.square {
max-width: 105%;
min-width: 45%;
border: 2px solid white;
margin-top: 0;
margin-left: 0;
min-height: 80vh;
max-height: 480vh;
border: 2px solid rgba(255, 255, 255, 0.686);
display: none; 
background-color: rgba(255, 255, 255, 0.1); 
position: relative; 
z-index: 1; 
}


.link {
  display: flex;
  justify-content: center;
  font-size: 2.1rem;
  padding: 140px;
}

.link a {
  text-decoration: none;
  color: aliceblue;
}

.rectangle {
  display: flex;
  justify-content: space-between;
  color: aliceblue;
  border: 2px solid rgba(255, 255, 255, 0.686);
  min-height: 10vh;
  max-height: 30vh ;
  cursor: pointer;
  margin-top: 10px;
}

.rectangle h2 {
  font-family: "Sofadi One", system-ui;
  font-weight: 400;
  font-style: normal;
  letter-spacing: 4px;
  padding-left: 19px;
}

.cursor {
  margin-top: 30px;
  margin-right: 20px;
}

.content {
  color: aliceblue;
  padding: 0px 40px;
  line-height: 1.5rem;
  width: 94%;
  
}

.lesson p{
  text-align: justify;
}

p::first-letter {
  margin-left: 20px;
}

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;
  }

  .content {
    color: aliceblue;
    padding: 0px 20px;
    line-height: 1.5rem;
    max-width: 90%;
  }

 .rectangle h2{
    font-family: "Sofadi One", system-ui;
  font-weight: 400;
  font-style: normal;
  letter-spacing: 2px;
  padding-left: 19px;
  font-size: 1.3rem;
  }


 footer{
  height:380px;
  
 }
 .nav1{
  flex-direction: row;
  flex-wrap: wrap;
 }
 
}
