@font-face {
  font-family: phonics-heading;
  src: url(../fonts/PoetsenOne-Regular.ttf);
}
@font-face {
  font-family: lesson-regular;
  src: url(../fonts/lesson-regular.ttf);
}
@font-face {
  font-family: lesson-thin;
  src: url(../fonts/lesson-thin.ttf);
}
@font-face {
  font-family: body-font;
  src: url(../fonts/Roboto-VariableFont-wdth-wght.ttf);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  font-size: 62.5%;
  font-family: body-font;
}
body {
  height: 100dvh;
}
a {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
h1,
p {
  margin: 0;
  padding: 0;
}
.flex-v {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.flex-h {
  display: flex;
  align-items: center;
  justify-content: center;
}
/*header*/
.header {
  background-color: #eee;
  height: 7dvh;
  box-shadow: 0px 0px 10px #606060;
  justify-content: space-between;
  position: relative;
}
/*logo*/
.header-logo {
  height: 50%;
  margin-left: 20px;
}
/*navbar*/
.nav_anchor {
  height: 100%;
  margin-right: 20px;
  color: #3c00ff;
  font-size: 1.5rem;
  cursor: pointer;
}
.nav_anchor:last-child {
  margin-right: 20px;
}
.nav_anchor:hover {
  color: black;
  font-weight: 900;
}
#nav_arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-left: 3px;
  transition: 0.3s;
}
.nav_arrow_open {
  transform: rotate(-90deg);
}
.nav_lessons-menu {
  position: absolute;
  top: 7dvh;
  width: 100%;
  background-image: radial-gradient(#159, #155);
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 10px;
  row-gap: 15px;
  z-index: 10;
  display: none;
}

.nav_lessons-menu_open {
  display: grid;
}
.lessons-menu_anchor {
  font-size: 1.5rem;
  color: #fff;
  padding: 8px 0px;
  box-shadow: 0.1px 0.1px 2px grey, 0.1px 0.1px 1px black inset;
  border-radius: 10px;
  font-weight: 300;
  transition: 0.2s;
}
.lessons-menu_anchor:hover {
  background-color: rgb(0, 34, 59);
  box-shadow: 0.1px 0.1px 5px #fff inset;
}
@media screen and (min-width: 768px) {
  /*logo*/
  .header-logo {
    margin-left: 40px;
  }
  /*navbar*/
  .nav_anchor {
    font-size: 2rem;
  }
  .nav_anchor:last-child {
    margin-right: 40px;
  }
  #nav_arrow {
    font-size: 2rem;
  }
  .nav_lessons-menu {
    grid-template-columns: repeat(3, 1fr);
    column-gap: 20px;
    row-gap: 20px;
  }
  .lessons-menu_anchor {
    font-size: 2rem;
  }
}

/*main*/
.main {
  min-height: 86dvh;
  background: url(../images/phonics-index-bg-small.webp);
  background-size: cover;
}
.main-heading {
  font-family: phonics-heading;
  font-size: 6rem;
  padding-top: 100px;
  margin-bottom: 20px;
  text-align: center;
  background: -webkit-linear-gradient(right, #3c00ff, #ff57f4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.main-para {
  padding: 30px;
  font-family: body-font;
  font-size: 1.7rem;
  line-height: 2;
  font-weight: 200;
}

@media screen and (min-width: 768px) {
  .main {
    background: url(../images/phonics-index-bg-tablet.webp);
    background-size: cover;
  }

  .main-heading {
    font-size: 10rem;
  }

  .main-para {
    padding: 30px 50px;
    font-size: 2rem;
  }
}
@media screen and (min-width: 1200px) {
  .main {
    background: url(../images/phonics-index-bg.webp);
    background-size: cover;
  }
}

/*footer*/
.footer {
  background-color: #222;
  height: 7dvh;
  justify-content: space-between;
  padding: 0px 30px;
}
.copyright-text {
  font-family: body-font;
  color: #ddd;
  font-weight: 300;
  font-size: 1.1rem;
  text-align: left;
}
.social_links {
  gap: 10px;
}
.social_links__icon {
  height: 20px;
}
@media screen and (min-width: 768px) {
  .footer {
    padding: 0px 50px;
  }
  .copyright-text {
    font-size: 1.5rem;
  }
}
/*words pages*/
.words-page-main_heading {
  font-family: phonics-heading;
  color: #3c00ff;
  font-size: 4rem;
  text-align: center;
  padding-top: 20px;
}
.phonics-lesson_heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0px 50px;
  margin-top: 30px;

  height: 75px;
  box-shadow: 0px 1px 1px #faf;
}
.words-page-main_sub-lesson {
  font-family: phonics-heading;
  color: red;
  font-size: 4rem;
  text-align: center;
}
.play-pause-container {
  background-color: #155;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}
.play-pause_icon {
  font-size: 4rem;
  color: #3c00ff;
  position: absolute;
  cursor: pointer;
}
.pause_icon {
  color: red;
  display: none;
}

.words-group_container {
  margin: 15px;
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 15px;
  row-gap: 20px;
  padding-bottom: 10px;
  border-bottom: 4px double #b1c1fb;
}
.word-group {
  display: flex;
  justify-content: space-between;
  padding: 10px 20px;
  margin-left: 10px;
  box-shadow: 1px 1px 1px #aaa;
  border-radius: 10px;
}
.word-group span {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.word_letters {
  font-size: 2.5rem;
  font-family: lesson-regular;
  color: rgb(0, 27, 54);
}

.word_symbols {
  color: #666;
}
.audio-container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.words_audio {
  height: 40px;
  width: 200px;
  display: none;
}
@media screen and (min-width: 540px) {
  .words_audio {
    width: 300px;
  }
}
@media screen and (min-width: 768px) {
  .words-page-main_heading {
    font-size: 6rem;
    padding-top: 40px;
  }
  .phonics-lesson_heading {
    padding: 0px 100px;
  }
  .words-page-main_sub-lesson {
    font-size: 5rem;
  }
  .play-pause_icon {
    font-size: 5rem;
  }
  .words-group_container {
    grid-template-columns: repeat(3, 1fr);
  }
  .word_letters {
    font-size: 3rem;
  }

  .word_symbols {
    font-size: 2rem;
  }
  .words_audio {
    width: 400px;
  }
}
@media screen and (min-width: 1200px) {
  .words-group_container {
    grid-template-columns: repeat(4, 1fr);
  }
  .word_letters {
    font-size: 4rem;
  }

  .word_symbols {
    font-size: 1.5rem;
  }
}
.word-group.active {
  background-color: #e6f3ff;
  border-radius: 4px;
  transform: scale(1.05);
  transition: all 0.3s ease;
}
.red {
  color: red;
}
