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

/* :root{
  --white:#ffffff;
  --black:#212a31;
  --lightblack:#2e3944;
  --darkblue:#124e66;
  --darkgrey:#748d92;
  --lightgrey:#d3d9d4;
} */


:root{
  --merryred:#8d0202;
  --black:#000000;
  --peechwhite:#dacece;
  --white:#ffffff;
  --skinsandy:#ffecd9;
}

::-webkit-scrollbar{
  width: 10px;
}
::-webkit-scrollbar-button{
  background-color:var(--merryred);
}
::-webkit-scrollbar-thumb{
  background-color:#222;
}
::-webkit-scrollbar-track{
  background-color:var(--peechwhite);
}

body{
  background-color:var(--white);
}

header{
  position: sticky;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  background:var(--merryred);
  backdrop-filter:blur(10px);
  justify-content: space-between;
  align-items: center;
  height:70px;
  z-index: 999;
  box-shadow: 0px 10px 10px rgba(0, 0, 0, 0.463);
}

.logo-group{
  width: 30%;
  display: flex;
  align-items: center;
  justify-content:space-evenly;
}

.logo-group img{
  width: 50px;
  height: 50px;
  border-radius: 100%;
  border: 2px solid var(--white);
}

.logo-group span{
  font-size: 1.5rem;
  color:var(--white);
  font-weight: 600;
}

.logo-group a{
  text-decoration-line: none;
}

.logo-group a:active span{
  color: black;
}

.nav{
  display: flex;
  width: 50%;
  justify-content: center;
}

.nav ul{
  width: 100%;
  display: flex;
  justify-content: space-evenly;
}

.nav ul li{
  list-style-type: none;
  padding: 5px 10px;
  transition: .5s;
}

.nav ul li:hover{
  /* border-bottom: 1px solid var(--white); */
  transform: scale(1.05);
  transition: .5s;
}

.nav ul li:hover a{
  color: var(--black);
  transition: .5s;
}

.nav ul li a{
  text-decoration-line: none;
  font-size: 14px;
  color:var(--skinsandy);
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  transition: .5s;
}

.nav ul li a:active{
  color:var(--white);
}

.hamburger{
  display: none;
}

.author-info{
  padding: 30px 10px;
  background-image: url(./imgs/bg3.jpg);
  background-color:var(--merryred);
  background-repeat: no-repeat;
  background-size:cover;
  background-position: center;
  display: grid;
  grid-template-columns:1fr 2fr;
  justify-content: right;
  margin-top:0px;
  height:auto;
}

.author-detl{
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 5px 20px;
  border-radius: 0px 50px;
   box-shadow: 0 0 20px 10px  var(--merryred);
  /* background-color:#8d020219; */
  background-color: #00000038;
  backdrop-filter: blur(10px);
  padding: 30px;
}

.author-detl p{
  font-size: 22px;
  color:var(--white);
  font-family: "open-sans", sans-serif;
  font-weight: 500;
  text-align: left;
  margin-top: 10px;
}

.author-detl p span{
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size:24px;
  font-weight: 600;
  font-style: italic;
  color:var(--white);
  letter-spacing: 1px;
  line-height: 30px;
}

.author-img{
  display: flex;
  justify-content:center;
  grid-column: 2/3;
  align-items: center;
}

.author-img img{
  display: grid;
  width: 300px;
  height: 300px;
  border-radius: 100%;
  border: 2px solid var(--black);
  /* -webkit-box-shadow:0 0 2px 2px var(--black);
  -moz-box-shadow:0 0 2px 2px var(--black);
  box-shadow: 0 0 100px 30px var(--black); */
  box-shadow: 2px 20px 20px var(--black);
}

.dow-box-container{
  display: grid;
  justify-content:center;
  align-items: center;
}

.download-box{
  width:fit-content;
  /* margin: 30px; */
  padding: 20px;
  height: auto;
}

.download-box p{
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 20px;
  text-align: center;
  transition: .2s;
}

.download-box:hover p{
  letter-spacing: 2px;
  transition: .2s;
}

.download-box .btns{
  padding: 20px 10px;
}

.download-box .btns button{
  width: 150px;
  height: 30px;
  border: 1px solid var(--black);
  background-color: var(--skinsandy);
  transition: .3s;
}

#eng:hover{
  height: 40px;
  transition: .3s;
  background-color: var(--black);
}

#eng:hover a{
  color: var(--skinsandy);
}

#tam:hover{
  height: 40px;
  transition: .3s;
  background-color: var(--black);
}

#tam:hover a{
  color: var(--skinsandy);
}

.download-box .btns button a{
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 20px;
  color:var(--merryred);
  text-decoration-line: none;
}

.lesson-container{
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 30px;
  margin:0 30px;
  /* margin-top: 300px; */
}

.inner-section-grid{
  display: grid;
  grid-template-columns: repeat(2,1fr);
  justify-content:space-around;
  align-items: center;
  margin-top: 10px;
  padding: 10px;
  border-radius: 10px;
  background-color:var(--skinsandy);
}

.inner-section-grid p{
  font-size: 18px;
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  color: #8d0202;
}

section{
  position: relative;
  height:260px;
  border: 2px solid var(--merryred);
  line-height: 20px;
  padding: 0px 10px;
  text-align: center;
  transition: .2s;
  overflow: hidden;
}

section:hover{
  border:none;
  -webkit-box-shadow:0 0 20px 2px var(--merryred);
  -moz-box-shadow:0 0 20px 2px var(--merryred);
  box-shadow: 0 0 20px 2px  var(--merryred);
 transition: .2s;
  
}

.lesson-container section img{
  width: 100px;
  height: 100px;
  border: 2px solid var(--peechwhite);
  -webkit-box-shadow:0 0 20px 2px var(--merryred);
  -moz-box-shadow:0 0 20px 2px var(--merryred);
  box-shadow: 0 0 10px 2px  var(--merryred);
  transition: .2s;
  border-radius: 100%;
}

.overlay{
  position:absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.042);
  transition: .2s;
}

section:hover .overlay{
  background-color: rgba(0, 0, 0, 0.554);
  z-index: 3;
}

section:hover img{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: .2s;
  border: none;
  border-radius:0px;
  margin-top: 0px;
}

.lesson-container section .lsstil{
  position: absolute;
  top:60%;
  left: 50%;
  height: 40px;
  display: grid;
  align-items: center;
  transform: translate(-50%,-50%);
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 18px;
  width: 100%;
  background-color:rgba(0, 0, 0, 0.13);
}

section:hover .lsstil{
  position: absolute;
  top:40%;
  left: 50%;
  width: 80%;
  transform: translate(-50%,-50%);
  background-color: transparent;
  color:var(--white);
  z-index: 4;
}

.lesson-container section .samplePara{
  font-family: "open-sans", sans-serif;
  font-weight: 500;
  position: absolute;
  top: 85%;
  left: 50%;
  transform: translate(-50%,-50%);
  width: 100%;
  text-align: justify;
  padding: 20px;
  color:var(--black);
  opacity: 1;
  transition:4s;
}

section:hover .samplePara{
  opacity: 0;
  transition: 1s;
}

section a{
  position: absolute;
  top: 70%;
  left: 50%;
  width: 130px;
  height: 40px;
  transform: translate(-50%,-50%);
  text-decoration-line: none;
  color:var(--bluezodiac);
  text-decoration-line: underline;
  background-color:var(--white);
  color: var(--merryred);
  font-family: "open-sans", sans-serif;
  font-weight:600;
  font-size: 15px;
  text-decoration-line: none;
  visibility: hidden;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: .5s;
}

section:hover a{
  visibility: visible;
  z-index: 4;
  transition: 1s;
  border: 1px solid var(--black);
}

section a:hover{
  background-color: var(--merryred);
  color: var(--white);
  transition:.2s;
}

section a:active{
  background-color: var(--white);
  color: black;
}


section .card{
  position: absolute;
  top: 70%;
  left: 50%;
  width: 130px;
  height: 40px;
  transform: translate(-50%,-50%);
  background-color:var(--skinsandy);
  z-index: 5;
  visibility: hidden;
  border-radius: 20px;
  transition:.5s;
  display: flex;
  justify-content: center;
  align-items: center;
  display: none;
}

section .card i{
  font-size: 20px;
  padding:3px 0px;
  color:var(--black);
}

section:hover .card{
  visibility: visible;
  transition:1s;
  width: 40px;
  margin-top: 30px;
  rotate: 360deg;
  border: 1px solid var(--merryred);
}

section:hover .card i{
  rotate: 360deg;
  transition: 2s;
  transform: scale(1.5);

  
}

.copyright{
  margin-top: 20px;
  padding: 5px 0;
  text-align: center;
  color: white;
  background-color: black;
}











@media(max-width:768px){

  body{
    height: 80vh;
  }

  header{
    height:50px;
  }

  .logo-group{
    width:fit-content;
    margin-left: 10px;
    gap: 10px;
  }

  .logo-group img{
    width: 35px;
    height: 35px;
  }

  .logo-group span{
    font-size: 17px;
  }

  .hamburger{
    display: block;
    color:var(--white);
    margin-right: 15px;
    font-size: 18px;
  }

  .nav{
    display:block;
    width:fit-content;
  }
  
  .nav ul{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display:block;
    justify-content:center;
    background-color: var(--white);
    margin-top: 50px;
    left: -1000px;
    transition:.8s;
  }

  .nav ul.slider{
    left: 0;
    transition:.8s;
  }

  .nav ul li{
    text-align: center;
    align-items: center;
    line-height: 5rem;
    border-bottom: 1px solid var(--bluezodiac);
    border-top: 1px solid var(--bluezodiac); 
    border-bottom: 1px solid var(--black); 
  }

  

  .nav ul li a{
    color:var(--merryred);
    text-align: center;
  }

  .author-info{
    display:grid;
    margin-top:0px;
    justify-content: center;
    gap:40px;
    margin-bottom: 10px;
  }

  .author-detl{
    display:grid;
    grid-column: 1/3;
    grid-row: 2/3;
    text-align: center;
    justify-content: center;
    border-radius: 20px 0;
    padding:5px 10px ;
    background-color:#8d020219;
    backdrop-filter: blur(10px);
  }

  .author-detl p{
    font-size: 18px;
    text-align: center;
  }

  .author-img{
    display: grid;
    grid-column: 1/3;
  }

  .author-img img{
    margin-left: 100px;
    width: 150px;
    height: 150px;
    border-radius: 100%;
    -webkit-box-shadow:0 0 2px 2px var(--merryred);
    -moz-box-shadow:0 0 2px 2px var(--merryred);
    box-shadow: 0 0 5px 2px var(--merryred);
  }

  .lesson-container{
    grid-template-columns: repeat(auto-fit,minmax(150px,1fr));
    text-align: center;
    justify-content: center;
    gap: 20px;
    margin: 0 10px;
  }

  .inner-section-grid{
    display: grid;
    grid-template-columns:1fr;
    justify-content:center;
    align-items: center;
    margin-top: 10px;
    gap: 25px;
  }
  
  .inner-section-grid p{
    grid-row: 2/3;
    justify-self: center;
    font-size: 15px;
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    color:var(--white);
    width: 100%;
    background-color:var(--merryred);
    border-radius: 5px;
  }

  section{
    height:200px;
  }
  
  section:hover{
    border-radius: 5px;
  }
  
  section:hover .overlay{
    border-radius:5px;
  }

  .lesson-container section img{
    width: 60px;
    height: 60px;
    justify-self: center;
  }
  
  section:hover img{
    height: 100%;
    width: 100%;
    border-radius: 5px;
  }
  
  .lesson-container section .lsstil{
    position: absolute;
    top: 90%;
    left: 50%;
    transform:translate(-50%,-50%) ;
    font-family: "Montserrat", sans-serif;
    font-weight: 500;
    font-size: 12px;
    height:50px;
  }
  
  section:hover .lsstil{
    width: 90%;
  }
  
  .lesson-container section .samplePara{
    visibility: hidden;
  }
  
  section:hover .samplePara{
    opacity: 0;
    transition: 1s;
  }
  
  section a{
    top: 50%;
    left: 50%;
    width: 80px;
    height: 25px;
    font-size: 12px;
    border-radius: 10px;
  }
  
  section:hover a{
    visibility: visible;
    z-index: 4;
    transition: 1s;
  }
  
  
  section .card{
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80px;
    height: 25px;
    border-radius: 20px;
  }
  
  section:hover .card{
    visibility: visible;
    transition:1s;
    width: 25px;
    margin-top: 20px;
    rotate: 360deg;
  }

  section .card i{
    font-size: 10px;
    padding:3px 0px;
  }
  
  .download-box{
    margin-top:0px;
    padding: 0px;
  }

  .download-box p{
    font-size: 17px;
  }

  .download-box .btns button{
    width: 100px;
    height: 25px;
  }

  .download-box .btns button a{
    font-size: 16px;
  }

  .copyright{
    width:200px;
    margin:0 auto;
    font-size: 12px;
  }
}


@media(max-width:320px){
  .author-img img{
    margin-left: 80px;
  }
}