.layout__container {
  margin-left: 1rem;
  margin-right: 1rem;
  overflow-x: hidden;
}

.document__container {
  display: flex;
  justify-content: center;
  padding: 0 250px;
  box-sizing: border-box;
  margin-top: 30px;
  margin-left: 150px;
}



.section {
  margin-bottom: 3rem;
}

.section__title {
  margin-top: 0px;
  margin-left: 0px;
}

.section__subtitle {
  font-size: 1.4rem;
  font-weight: bold;
  margin-top: 1.5rem;
  margin-bottom: 20px;

}

.section__text {
  margin-bottom: 1rem;
  line-height: 1.7;
  font-size: 17px;
  font-weight: 400;
}



.example {
  margin: 0.5rem 0;
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
  margin-top: 20px;
}

.example__original {
  font-weight: 600;
  
}

.example__translation {
  font-weight: 300;
  margin-bottom: 10px;
  font-size: 16px;

}



.back_button {
  border: none;
  padding: 2px;
  font-size: 14px;
  font-family: "Roboto";
  background-color: #fff;
}

#firstSection {
  display: flex;
  margin-bottom: 10px;
  margin-top: 10px;
  border-radius: 20px;
}

.firstSection-title-container {
  display: flex;
  flex-direction: column;
}

.firstImage {
  height: 100px;
  width: 100px;
  margin-right: 10px;
  object-fit: cover;
  border-radius: 20px;
  display: none;
}

h2 {
  margin-bottom: 1rem;
}

h3 {
  margin-top: 10px;
  margin-bottom: 10px;
}

h4 {
  margin-bottom: 15px;
  margin-top: 10px;
}



.more-articles-div {
  display: flex;

}

.more-articles-title {
  text-align: center;
  margin-bottom: 20px;
}

.grammar__item {
  width: 100px;
  display: flex;
  flex-direction: column;
  text-align: left;
  margin-bottom: 25px;
  margin-right: 30px;
}

.grammar__image {
  width: 90px;
  height: 90px;
  border-radius: 100%;
  object-fit: cover;
}

.grammar__title {
  margin-top: 5px;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 10px;
  text-decoration: none;
  color: #131a2c;
}

.word-count-text {
  font-size: 12px;
  font-weight: 300;
  margin-top: 0px;
}

.header {
  display: none;
}




.play-audio {
  display: none;
}



.alphabet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 10px;
    padding: 10px 0;
  }
  .alphabet-item {
    padding: 5px 0;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
  }
  .alphabet-item .example__original {
    font-size: 30px;
    font-weight: bold;
    margin-right: 10px;
  }
@media (max-width:1200px) {

  body {
    overflow-x: hidden;
  }

  .language-list-container {
    display: none;
  }

  #table-of-contents {
    display: none;
  }

  .side-container {
    display: none;
  }
}

@media (max-width:1030px) {

  .header {
    display: block;
  }


  .layout__container {
    width: 100%;
    margin-right: 0px;
    margin-left: 0px;
  }

  .document__container {
    margin-right: 10px;
    margin-left: 10px;
    margin-top: 65px;
    padding: 0 10px;
  }

  .section__title {
    margin-top: 0px;
    font-size: 22px;
  }

  .firstImage {
    display: none;
  }

  .section__text {
    font-size: 15px;
    line-height: 27px;
  }

  .firstImage {
    height: 55px;
    width: 85px;
    border-radius: 10px;
  }

  thead {
    font-size: 14px;
  }

  h3 {
    margin-bottom: 16px;
  }

  h4 {
    margin-bottom: 16px;
  }

  .back_button {
    font-size: 11px;
    font-weight: 300;
  }

  p {
    font-weight: 300;
    font-size: 16px;
  }

  .example__translation {
    font-weight: 300;
    font-size: 14px;
    margin-left: 0px;
    margin-top: 5px;
  }

  .section__subtitle {
    font-size: 18px;
    margin-top: 1rem;
  }

  .example__original {
    font-size: 16px;
  }

  .example {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
  }

  .more-articles-div {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 10px;
    scroll-behavior: smooth;
  }

  .grammar__item {
    width: 110px;
    margin-right: 10px;
  }

  .grammar__image {
    height: 70px;
    width: 70px;
  }

  .more-articles-div {
    -webkit-overflow-scrolling: touch;
  }

  .grammar__item {
    flex: 0 0 auto;
    width: 100px;
  }

  .grammar__title {
    font-size: 13px;
  }

  .word-count-text {
    font-size: 10px;
  }

  .example {
    margin-top: 10px;
  }
}