*,
*:before,
*:after {
  box-sizing: border-box;
  font-family: "Plus Jakarta Sans", sans-serif;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  width: 100%;
  height: 100%;
  background-color: rgb(0, 0, 26);
  color: white;
}

body {
  overflow-x: hidden;
}

input {
  display: none;
}

.container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
}

/* media */

@media (max-width: 1440px) {
  .header__content {
    justify-content: center !important;
    max-width: 90% !important;
    flex-direction: column !important;
  }

  .header__btn button {
    font-size: 0.9rem !important;
  }

  .main__countdown-timer {
    font-size: 3.5rem !important;
  }

  .current-moon-info {
    padding: 10px !important;
    font-size: 0.7rem !important;
  }

  .calendar-grid {
    padding: 20px 1% !important;
  }

  .footer__btn button {
    font-size: 0.7rem !important;
  }

  .main__quizzes-btn button {
    font-size: 1rem !important;
    padding: 10px 0px !important;
  }

  .answer-1,
  .answer-2,
  .answer-3,
  .answer-4 {
    font-size: 0.8rem;
  }

  .answer-1:hover,
  .answer-1:has(input:checked),
  .answer-2:hover,
  .answer-2:has(input:checked),
  .answer-3:hover,
  .answer-3:has(input:checked),
  .answer-4:hover,
  .answer-4:has(input:checked) {
    font-size: 0.7rem !important;
  }
}

@media (max-width: 768px) {
  .header__content {
    justify-content: center !important;
  }

  .header__btn {
    display: none !important;
  }

  .main__countdown-timer {
    font-size: 3.5rem !important;
  }

  .current-moon-info {
    padding: 10px !important;
    font-size: 0.7rem !important;
  }

  .calendar-grid {
    padding: 20px 1% !important;
  }

  .footer__btn button {
    font-size: 0.7rem !important;
  }

  .main__quizzes-btn button {
    font-size: 1rem !important;
    padding: 10px 0px !important;
  }

  .answer-1,
  .answer-2,
  .answer-3,
  .answer-4 {
    font-size: 0.8rem;
  }

  .answer-1:hover,
  .answer-1:has(input:checked),
  .answer-2:hover,
  .answer-2:has(input:checked),
  .answer-3:hover,
  .answer-3:has(input:checked),
  .answer-4:hover,
  .answer-4:has(input:checked) {
    font-size: 0.7rem !important;
  }
}

@media (max-width: 670px) {
  footer {
    display: none !important;
  }

  .main__countrdown-date {
    font-size: 0.8rem !important;
  }

  .main__countdown-title {
    font-size: 0.4rem !important;
  }

  .main__home-logo {
    font-size: 3rem !important;
  }

  .main__home-title p {
    font-size: 1.5rem !important;
  }

  .main__home-subtitle p {
    font-size: 1rem !important;
  }

  .parallax__title {
    font-size: 2.5rem !important;
  }

  .header__content {
    justify-content: center !important;
  }

  .header__btn {
    display: none !important;
  }

  .main__countdown-timer {
    font-size: 1.5rem !important;
  }

  .main__countdown-info {
    width: 100% !important;
    flex-direction: column !important;
  }

  .current-moon-info {
    padding: 10px !important;
    font-size: 0.7rem !important;
  }

  .calendar-grid {
    padding: 20px 1% !important;
  }

  .footer__btn button {
    font-size: 0.7rem !important;
  }

  .main__quizzes-btn button {
    font-size: 1rem !important;
    padding: 10px 0px !important;
    margin: 30px auto !important;
    width: 50% !important;
  }

  .answer-1,
  .answer-2,
  .answer-3,
  .answer-4 {
    font-size: 0.8rem;
  }

  .answer-1:hover,
  .answer-1:has(input:checked),
  .answer-2:hover,
  .answer-2:has(input:checked),
  .answer-3:hover,
  .answer-3:has(input:checked),
  .answer-4:hover,
  .answer-4:has(input:checked) {
    font-size: 0.7rem !important;
  }

  .main__quizzes {
    height: 100% !important;
  }

  .quiz__answers {
    grid-template-columns: 1fr !important;
  }

  .calendar-grid div {
    height: 40px !important;
    width: 100% !important;
  }

  .calendar-grid .moon {
    font-size: 1.5rem !important;
    top: -2px !important;
  }

  .calendar-grid .day {
    font-size: 1rem !important;
  }
}

/* header */

header {
  background-color: rgb(0, 0, 26);
  position: fixed;
  width: 100vw;
  padding: 0.1% 0;
  z-index: 1000;
}

.header__content {
  max-width: 75%;
  margin: 0 auto;
  padding: 0 0.1%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header__title {
  color: white;
  display: flex;
}

.header__title h1 {
  font-weight: 200;
  position: relative;
  display: inline-block;
  cursor: pointer;
  font-size: 2em;
}

.header__title h1::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4%;
  height: 1%;
  width: 0;
  background-color: rgb(255, 255, 255, 0.8);
  transition: width 0.4s ease;
}

.header__title h1:hover::after {
  width: 100%;
}

.header__logo img {
  max-width: 45px;
  opacity: 0.95;
}

.header__btn button {
  all: unset;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.2rem;
  padding: 0.7rem;
  transition: all 0.3s ease;
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.header__btn button::after {
  content: "";
  position: absolute;
  left: 6%;
  bottom: 15%;
  height: 1%;
  width: 0;
  background-color: rgb(255, 255, 255, 0.8);

  transition: width 0.4s ease;
}

.header__btn button:hover::after {
  width: 87%;
}

.header__btn button:hover {
  color: white;
  /* background-color: rgba(255, 255, 255, 0.1); */
}

/* main */

main {
  padding-top: 59px; /* чтобы не залезать под фиксированный header */
}

/* main home */

.main__home {
  background: url("https://starwalk.space/assets/intro/background-city.jpeg")
    center / cover;
  width: 100%;
  height: 100vh;

  justify-content: center;
  align-items: center;
  display: flex;
  flex-direction: column;
}

.main__home-logo {
  font-size: 8rem;
  color: #fff;
  font-weight: 200;
  padding-bottom: 40px;
}

.main__home-title p {
  font-size: 2.5rem;
  color: #fff;
}

.main__home-subtitle p {
  font-size: 1.5rem;
  color: #fff;
  text-decoration: dotted;
  padding-bottom: 250px;
}

/* parallax */

section.parallax {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: start;
  padding-left: 10%;
  justify-content: center;
  overflow: hidden;
  perspective: 1px;
  gap: 15px;
}

.parallax .content {
  font-size: 3rem;
  z-index: 2;
  text-align: center;
  padding: 2rem;
}

.parallax--1,
.parallax--2,
.parallax--3,
.parallax--4,
.parallax--5 {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: start;
  color: white;
  flex-direction: column;
}

.parallax--1::after,
.parallax--2::after,
.parallax--3::after,
.parallax--4::after,
.parallax--5::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 26, 0.4); /* Тёмное полупрозрачное наложение */
  z-index: 1;
}

.parallax--1 > *,
.parallax--2 > *,
.parallax--3 > *,
.parallax--4 > *,
.parallax--5 > * {
  position: relative;
  z-index: 2;
}

.parallax--1 {
  background: url("https://avatars.mds.yandex.net/i?id=f677307c77ce9c5c0450881f4d8bd751_l-9029247-images-thumbs&n=13")
    center / cover fixed;
}
.parallax--2 {
  background: url("https://i.pinimg.com/originals/e8/36/10/e83610c8b610e1fdd227d6b946f99132.jpg")
    center / cover fixed;
}
.parallax--3 {
  background: url("https://i.pinimg.com/originals/66/21/62/662162b208d9707946d4efea1f5f89f0.jpg")
    center / cover fixed;
}
.parallax--4 {
  background: url("https://i.pinimg.com/originals/09/a0/cb/09a0cb13560064442b96daea2d47de4c.jpg")
    center / cover fixed;
}
.parallax--5 {
  background: url("https://i.pinimg.com/originals/b1/0b/f4/b10bf456977f6b636dcda734f32b5f58.jpg")
    center / cover fixed;
}

.parallax__title {
  font-size: 4rem;
}

.parallax__subtitle {
  color: #9cacc3;
  font-size: 1.5rem;
  width: 75%;
}

/* stellarium */

.main__stellarium {
  width: 100%;
  height: 100vh;
}

/* countdown */

.main__countdown {
  max-width: 100%;
  height: 100%;
  margin: 20px auto;
  padding: 15px;
  background: #0b1a2b;
  color: #e0e7ff;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 100, 255, 0.6);
}

.main__countdown-title,
.main__countrdown-date {
  text-align: center;
}

.main__countdown-title p {
  font-size: 1.5rem;
}

.main__countrdown-date {
  font-size: 1rem;
}

.main__countdown-timer {
  font-size: 7rem;
  font-weight: bold;
  margin: 15px 0;
  text-align: center;
}

.main__countdown-info {
  width: 570px;
  margin: 0 auto;
  display: flex;
}

/* info */

.info__pack-title h3 {
  margin-top: 20px;
  color: #9cacc3;
  font-size: 2rem;
}

.info__pack-subtitle p {
  font-size: 1.2rem;
  line-height: 1.4;
  margin-bottom: 10px;
}

.info_img img {
  margin-top: 10px;
  display: block;
}

/* quizzes */

.main__quizzes {
  height: 400px;
  transition: all 0.5s ease;
}

.main__quizzes.active {
  height: 140px;
  padding-bottom: 10px;
  padding-top: 10px;
}

.main__quizzes-title p {
  margin-bottom: 20px;
  font-size: 3rem;
  text-align: center;
}

/* quiz  */

.quiz__title {
  font-size: 1.5rem;
  margin-bottom: 20px;
  text-align: center;
  color: #9cacc3;
}

.quiz__answers {
  list-style: none;
  padding: 0 1vw;
  gap: 1em;
  display: grid;
  grid-template-columns: 1fr 1fr;
  text-align: center;
}
.quiz__answers li {
  margin: 10px 0;
  justify-content: center;
  align-items: center;
  display: flex;
}

.quiz__answers label {
  border: 1px solid white;
  padding: 1em;
  border-radius: 15px;
  width: 45%;
  display: block;
  cursor: pointer;
  transition: all 0.2s ease;
}

.answer-1 {
  background-color: rgb(255, 102, 102, 0.5);
}
.answer-1:hover {
  background-color: rgb(255, 102, 102);
  font-size: 1.1rem;
  font-weight: bold;
  border: 2px white solid;
}
.answer-1:has(input:checked) {
  background-color: rgb(255, 102, 102);
  font-size: 1.1rem;
  font-weight: bold;
  border: 2px white solid;
}

.answer-2 {
  background-color: rgb(102, 204, 255, 0.5);
}
.answer-2:hover {
  background-color: rgb(102, 204, 255);
  font-size: 1.1rem;
  font-weight: bold;
  border: 2px white solid;
}
.answer-2:has(input:checked) {
  background-color: rgb(102, 204, 255);
  font-size: 1.1rem;
  font-weight: bold;
  border: 2px white solid;
}

.answer-3 {
  background-color: rgb(153, 255, 153, 0.5);
}
.answer-3:hover {
  background-color: rgb(153, 255, 153);
  font-size: 1.1rem;
  font-weight: bold;
  border: 2px white solid;
}
.answer-3:has(input:checked) {
  background-color: rgb(153, 255, 153);
  font-size: 1.1rem;
  font-weight: bold;
  border: 2px white solid;
}

.answer-4 {
  background-color: rgb(255, 204, 102, 0.5);
}
.answer-4:hover {
  background-color: rgb(255, 204, 102);
  font-size: 1.1rem;
  font-weight: bold;
  border: 2px white solid;
}
.answer-4:has(input:checked) {
  background-color: rgb(255, 204, 102);
  font-size: 1.1rem;
  font-weight: bold;
  border: 2px white solid;
}

.main__quizzes-btn button {
  background-color: #3b82f6;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  color: white;
  font-size: 1.3em;
  cursor: pointer;
  margin-top: 20px;
  display: block;
  width: 13%;
  margin: 0 auto;
  transition: all 0.3s ease;
}
.main__quizzes-btn button:hover {
  background-color: #2563eb;
  font-size: 1.4em;
}

.result {
  font-size: 1.4em;
  font-weight: bold;
  margin-top: 30px;
  text-align: center;

  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.result.active {
  opacity: 1;
  transform: translateY(0);
}

/* moon  */

.moon-phase-widget {
  width: 100%;
  border-radius: 16px;
  font-family: sans-serif;
  box-shadow: 0 0 15px rgba(0, 100, 255, 0.6);
  margin: 20px auto;
  padding: 15px;
  background: #0b1a2b;
  color: #e0e7ff;
}

.current-moon-info {
  text-align: center;
  background: #1f2a44;
  padding: 20px;
  border-radius: 12px;
  width: max-content;
  margin: 0 auto 20px auto;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.calendar-header button {
  background: #222b45;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 20px;
  cursor: pointer;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  padding: 20px 28%;
}

.calendar-grid div {
  position: relative;
  background-color: #0f0f1f;
  border-radius: 8px;
  overflow: hidden;
  height: 105px;
  /* width: 118.14px; */
  width: 100%;
}

.calendar-grid .day {
  font-size: 2.5rem;
  z-index: 3;
  justify-content: center;
  align-items: center;
  text-align: center;
  display: flex;
  opacity: 0.7;
}

.calendar-grid .moon {
  font-size: 5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: absolute;
  top: -5px;
  z-index: 2;
}

.calendar-grid .today {
  border: 2px solid #446790;
  outline: 2px solid #62aaff;
  font-weight: bold;
}

.calendar-grid .other-month {
  opacity: 0.3;
}

.description {
  background: #1f2a44;
  padding: 15px;
  border-radius: 12px;
  text-align: center;
  font-size: 16px;
  max-width: 875px;
  margin: 0 auto;
}

/* news */

.main__news {
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px;
}

.main__news-title p {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.main__news-content {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

/* news card */

.news-card {
  background-color: #1e1e1e;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
}
.news-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}
.news-content {
  padding: 15px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.news-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
}
.news-date {
  font-size: 12px;
  color: #999;
  margin-bottom: 10px;
}
.read-more {
  margin-top: auto;
  text-align: right;
}
.read-more a {
  background-color: #0077ff;
  color: #fff;
  padding: 6px 12px;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s;
}
.read-more a:hover {
  background-color: #005ccc;
}

/* footer */

footer {
  background-color: rgb(0, 0, 26);
  width: 100%;
  padding: 45px 0;
  z-index: 1000;
}

.footer__content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__title {
  color: white;
  display: flex;
}

.footer__title h1 {
  font-weight: 200;
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.footer__title h1::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px; /* расстояние от текста */
  height: 0.1px;
  width: 0;
  background-color: rgb(255, 255, 255, 0.8);
  transition: width 0.4s ease;
}

.footer__title h1:hover::after {
  width: 100%;
}

.footer__logo img {
  width: 45px;
  opacity: 0.95;
}

.footer__btn button {
  all: unset;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.2rem;
  padding: 7px;
  /* border: 1px solid rgba(255, 255, 255); */
  border-radius: 7px;
  transition: all 0.3s ease;
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.footer__btn button::after {
  content: "";
  position: absolute;
  left: 7px;
  bottom: 8px; /* расстояние от текста */
  height: 0.1px;
  width: 0;
  background-color: rgb(255, 255, 255, 0.8);

  transition: width 0.4s ease;
}

.footer__btn button:hover::after {
  width: 92%;
}

.footer__btn button:hover {
  color: white;
  /* background-color: rgba(255, 255, 255, 0.1); */
}
