/* style.css */

body { /* Страницата */
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #fff;
  color: #000;
  font-size: 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
}

header { /* Горната част на страницата */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 17.5px;
  border-bottom: 1px solid #E4E7ED;
  background: #fff;
  color: #000;
  position: sticky;
  top: 0px;
  z-index: 1;
}
.logo a { /* Горе вляво ("лого") */
  color: #000;
  margin: 0 1vw;
  border-radius: 5px;
  transition: color 0.3s ease-in-out;
  font-weight: bold;
  font-size: 48px;
}
.logo a:hover {
  color: #777;
}

/* Размери на текст за съвместимост */
h1 {
  font-size: 36px;
}
h2 {
  font-size: 28px;
}
h3 {
  font-size: 24px;
  font-weight: normal;
}

footer { /* Footer - долната част на страницата */
  background-color: #f3f3f3;
  color: #000;
  padding: 10px;
  text-align: center;
  font-size: 22px;
  margin-top: auto;
  display: none;
}
footer a {
  color: #4d73c6;
}
footer a:hover {
  color: #6193ff;
}

nav a { /* Линкове в горната част на страницата */
  color: #000;
  margin: 0 1vw;
  border-radius: 5px;
  transition: color 0.3s ease-in-out;
  font-weight: normal;
  font-size: 28px;
}
nav a:hover {
  color: #777;
}

main { /* Основна част */
  display: none;
  padding: 10px;
  min-height: 100vh;
}

button { /* Бутоните в задачите след всеки урок */
  background-color: #BCD3FF;
  color: #000;
  padding: 10px 20px;
  text-align: center;
  margin: 5px;
  text-decoration: none;
  display: inline-block;
  border-radius: 10px;
  font-size: 16px;
  cursor: pointer;
  border: 0;
}

.landing-button { /* Бутона на началната страница */
  background-color: #fff;
  color: #000;
  border-radius: 4rem;
}

.subject-content { /* Отделна част, "кутия" */
  margin-top: 20px;
  position: relative;
  text-align: left;
  background: #F9F9FB;
  padding: 10px;
  padding-left: 40px;
  border-radius: 24px;
  border: 1px solid #CFD2D8;
  /* box-shadow: 0 0 10px rgba(0, 0, 0, 0.3); */
}
.lesson-section, .lesson-section2 { /* "Кутия" вид 3 */
  /* margin-top: 20px; */
  position: relative;
  display: inline-block;
  text-align: left;
  background: #DDE9FC;
  margin-bottom: 20px;
  padding: 1.5vw;
  border-radius: 24px;
  width: 35%;
}
.lesson-section2 { /* "Кутия" 3 - жълт цвят */
  background: #FFF4C9;
}

main a {
  color: #ffffff;
}

.pointer-cursor:hover { /* Бутоните за уроците да действат като линкове */
  cursor: pointer;
}

p, li, td {
  font-size: 20px;
  line-height: 1.3em;
}

.content { /* Вътрешната част на кутиите */
  margin-top: 20px;
}

.lesson-img { /* Снимките вътре в уроците */
  width: 400px;
}

.center { /* Центриран елемент */
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 50%;
}

ol { /* Списък на уроците */
  list-style-type: none;
  padding-inline-start: 0;
}
.lesson-section ol, .lesson-section2 ol {
  list-style-type: decimal;
  padding-inline-start:20px;
}

.landing-img { /* Снимката на началната страница */
  position: absolute;
  top: 100px;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(45%);
}
.overlay-container { /* Текста на началната страница */
  position: absolute;
  top: 50%; 
  left: 50%; 
  transform: translate(-50%, -50%); 
  color: #fff; 
  padding: 10px 20px; 
  font-size: 72px; 
  text-align: center;
  font-size: 0;
}

#contentLit, #contentBulg, #contentMat { /* Скрива съдържанието във всеки урок, докато се избере това, което ни трябва, за по-гладко зареждане */
  visibility: hidden;
}

a {
  text-decoration: none;
}
table, th, td { /* Таблица */ 
  width: 35%;
  margin: auto;
  border: 1px solid lightgray;
  border-collapse: collapse;
}
.lesson { /* Урок в списъка */
  max-width: 30%;
  margin: 0 auto !important; /* За да остане центриран хоризонтално */
  font-weight: normal;
}
.lesson-txt {
  margin: 15px;
}

hr { /* Хоризонтална черта */
  width: 30%;
  height: 3px;
  background-color: #ececec;
  border: none;
  appearance: none;
}

.subject-section { /* Раздел в списъка */
  max-width: 30%;
  margin: 0 auto !important; /* За да остане центриран хоризонтално */
}
.overlay-bottom-text { /* Малкия текст на началната страница */
  margin: 2px;
  font-weight: normal;
}

.nopadding {
  padding: 0px;
  margin: 0px;
}
.sticktop {
  top: 0px;
}

/* Размери за съвместимост с мобилни устройства */
@media only screen and (max-height: 600px) {
  nav a {
    font-size: 18px;
  }
  .logo a {
    font-size: 32px;
  }
  .overlay-top-text { /* Големия текст на началната страница */
    font-size: 24px;
  }
  button {
    font-size: 10px;
    padding: 1vw;
  }
  .overlay-bottom-text {
    font-size: 14px;
  }
}

@media only screen and (max-width: 800px) {
  body {
    font-size: 14px;
  }
  h1 {
    font-size: 22px;
  }
  h2 {
    font-size: 20px;
  }
  h3 {
    font-size: 16px;
  }
  hr {
    width: 90%;
    height: 2px;
  }
  li hr {
    width: 50%;
  }
  .landing-button {
    padding: 10px;
  }
  .overlay-top-text { /* Големия текст на началната страница */
    font-size: 48px;
  }
  .lesson {
    max-width: 90%;
  }
  .subject-section {
    max-width: 90%;
  }
  .lesson-section {
    max-width: 80%;
    padding: 3vw;
  }
  .lesson-section2 {
    max-width: 80%;
    padding: 3vw;
  }
  nav a {
    margin: 0 1vw;
    font-size: 16px;
    font-weight: normal;
  }
  .logo a {
    margin: 0 1vw;
    font-size: 28px;
  }
  main {
    padding: 10px;
  }
  .lesson-img {
    width: 250px;
  }
  footer {
    padding: 10px;
    text-align: center;
    font-size: 16px;
  }
  .intro, .subject-content, .subject-section-title {
    width: 90%;
    padding-left: 20px;
    margin: 15px auto;
  }
  .subject-content img {
    position: relative;
    right: auto;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 10px;
  }
  button {
    padding: 1.5vw;
    font-size: 12px;
    min-width: 50px;
  }
  p, li, td, .lesson-section, .lesson-section2 {
    font-size: 12px;
    line-height: 1.5em;
  }
  .lesson-section, .lesson-section2 {
    width: 75%;
  }
}  