:root {
  --color-primary: #5ec576;
  --color-secondary: #ffcb03;
  --color-tertiary: #ff585f;
  --color-primary-darker: #4bbb7d;
  --color-secondary-darker: #ffbb00;
  --color-tertiary-darker: #fd424b;
  --color-primary-opacity: #5ec5763a;
  --color-secondary-opacity: #ffcd0331;
  --color-tertiary-opacity: #ff58602d;
  --gradient-primary: linear-gradient(to top left, #39b385, #9be15d);
  --gradient-secondary: linear-gradient(to top left, #ffb003, #ffcb03);
}

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

html {
  font-size: 62.5%;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
  background-color: #202132;
  line-height: 1.9;
}

/* GENERAL ELEMENTS */
.section {
  padding: 15rem 3rem;
  border-top: 1px solid black;

  transition: transform 1s, opacity 1s;
}

#section--1 {
  background-color: #202132;
}

.section--hidden {
  opacity: 0;
  transform: translateY(8rem);
}

.section__title {
  max-width: 80rem;
  margin: 0 auto 8rem auto;
}

.section__description {
  font-size: 1.8rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1rem;
  text-align: center;
}

.section__header {
  font-size: 4rem;
  line-height: 1.3;
  font-weight: 500;
  text-align: center;
  color: #fff;
}

.btn {
  display: inline-block;
  background-color: #523db8;
  font-size: 1.6rem;
  font-family: inherit;
  font-weight: 500;
  border: none;
  padding: 1.25rem 4.5rem;
  border-radius: 10rem;
  cursor: pointer;
  transition: all 0.3s;
}

.btn:hover {
  background-color: #7564c6;
}

.btn-in-modal {
  display: inline-block;
  background-color: #523db8;
  font-size: 1.6rem;
  font-family: inherit;
  font-weight: 500;
  border: none;
  padding: 1.25rem 4.5rem;
  border-radius: 10rem;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-in-modal:hover {
  background-color: #7564c6;
}

.btn--text {
  display: inline-block;
  background: none;
  font-size: 1.7rem;
  font-family: inherit;
  font-weight: 500;
  color: #fff;
  border: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  cursor: pointer;
  transition: all 0.3s;
}

p {
  color: #666;
}

button:focus {
  outline: none;
}

img {
  transition: filter 0.5s;
}

.lazy-img {
  filter: blur(20px);
}

/* NAVIGATION */
.nav {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 6rem;
  padding: 0 6rem;
  z-index: 100;
  background-color: rgba(0, 0, 0, 0.3);
  width: 100%;
}

/* nav and stickly class at the same time */
.nav.sticky {
  position: fixed;
  background-color: rgba(255, 255, 255, 0.95);
}

.nav__logo {
  height: 4.5rem;
  transition: all 0.3s;
}

.nav__links {
  display: flex;
  align-items: center;
  list-style: none;
}

.nav__item {
  margin-left: 4rem;
  color: #fff;
}

.nav__link:link,
.nav__link:visited {
  font-size: 2rem;
  font-weight: 400;
  color: inherit;
  text-decoration: none;
  display: block;
  transition: all 0.3s;
}

.nav__link--btn:link,
.nav__link--btn:visited {
  padding: 0.3rem 1rem;
  border-radius: 3rem;
  background-color: #523db8;
  color: #fff;
  font-size: 16px;
}

.nav__link--btn:hover,
.nav__link--btn:active {
  color: inherit;
  background-color: #423193;
  color: #fff;
}
/* HEADER */
.header {
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-image: url(img/Trees-space.jpg);

  background-size: cover;
  background-position: center;
}

.header__title {
  max-width: 115rem;
  display: grid;
  row-gap: 3rem;
  align-self: center;
  align-content: center;
  justify-content: center;
  align-items: start;
  justify-items: start;
  margin-top: 150px;
  padding: 15px;
  border-radius: 20px;
  transform: translateX(-10rem);
}

h1 {
  font-size: 5.5rem;
  line-height: 1.35;
  color: #f9f9ed;
}

h4 {
  font-size: 2.4rem;
  font-weight: 500;
  color: #f9f9ed;
}

.header__img {
  width: 100%;
  grid-column: 2 / 3;
  grid-row: 1 / span 4;
  transform: translateY(-6rem);
}

.highlight {
  position: relative;
}

.highlight::after {
  display: block;
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: -1;
  opacity: 0.7;
  transform: scale(1.07, 1.05) skewX(-15deg);
}

/* FEATURES */
.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin: 0 12rem;
}

.features__img {
  width: 100%;
}

.features__feature {
  align-self: center;
  justify-self: center;
  width: 70%;
  font-size: 1.5rem;
}

.features__feature p {
  color: #fff;
  font-size: 18px;
}

.features__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fff;
  height: 5.5rem;
  width: 5.5rem;
  border-radius: 50%;
  margin-bottom: 2rem;
  color: #071336;
}

.features__icon svg {
  height: 2.5rem;
  width: 2.5rem;
  fill: #071336;
}

.features__header {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #fff;
}

/* OPERATIONS */

#section--2 {
  background-image: url(img/Purple-space.jpg);
  background-position: center;
  background-size: cover;
}
.operations {
  max-width: 100rem;
  margin: 12rem auto 0 auto;

  background-color: #202132;
}

.operations__tab-container {
  display: flex;
  justify-content: center;
}

.operations__tab {
  margin-right: 2.5rem;
  transform: translateY(-50%);
}

.operations__tab span {
  margin-right: 1rem;
  font-weight: 600;
  display: inline-block;
}

.operations__tab--1 {
  background-color: #fff;
}

.operations__tab--1:hover {
  background-color: #fff;
}

.operations__tab--2 {
  background-color: #fff;
}

.operations__tab--2:hover {
  background-color: #fff;
}

.operations__tab--3 {
  background-color: #fff;
  margin: 0;
}

.operations__tab--3:hover {
  background-color: #fff;
}

.operations__tab--active {
  transform: translateY(-80%);
}

.operations__content {
  display: none;
  font-size: 1.7rem;
  padding: 2.5rem 7rem 6.5rem 7rem;
}

.operations__content iframe {
  max-width: 100%;
}

.operations .operations__content--active {
  display: grid;
  grid-template-columns: 7rem 1fr;
  column-gap: 3rem;
  row-gap: 0.5rem;
}

.operations__header {
  font-size: 2.25rem;
  font-weight: 500;
  align-self: center;
  color: #fff;
}

.operations__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 7rem;
  width: 7rem;
  border-radius: 50%;
}

.operations__icon svg {
  height: 2.75rem;
  width: 2.75rem;
}

.operations__content p {
  grid-column: 2;
  color: #fff;
}

.operations__icon--1 {
  background-color: #fff;
  font-size: 23px;
}
.operations__icon--2 {
  background-color: #fff;
  font-size: 23px;
}
.operations__icon--3 {
  background-color: #fff;
  font-size: 30px;
}

/* SIGNUP */
.section--sign-up {
  border-top: none;
  border-bottom: 1px solid #444;
  text-align: center;
  padding: 10rem 3rem;
  background: linear-gradient(to bottom right, #071336, #6a6ca0);
}

.section--sign-up .section__header {
  color: #fff;
  text-align: center;
}

.section--sign-up .section__title {
  margin-bottom: 6rem;
}

.section--sign-up .btn {
  font-size: 1.9rem;
  padding: 2rem 5rem;
}

.search-container {
  margin-bottom: 20px;
}

.search-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.date-input-label {
  color: #fff;
  font-size: 25px;
  margin-bottom: 10px;
}

#dateInput {
  padding: 10px;
  border-radius: 20px;
  font-size: 20px;
  border: none;
  width: 50%;
  margin-bottom: 10px;
}

#searchButton {
  font-size: 20px;
  padding: 5px 20px;
  background-color: #fff;
  color: #202132;
  border-radius: 20px;
}

#searchButton:hover {
  background-color: #d2d3d6;
  cursor: pointer;
}

.apod-container {
  max-width: 90%;
  margin: 0 auto;
  border: 1px solid #fff;
  padding: 20px;
  opacity: 0;
}

.apod-title {
  font-size: 35px;
  margin-bottom: 10px;
  color: #d2d3d6;
}
.apod-info {
  font-size: 17px;
  color: #fff;
  margin-bottom: 10px;
}

.apod-image {
  max-width: 100%;
}

/* SLIDER */
.slider {
  max-width: 100rem;
  height: 50rem;
  margin: 0 auto;
  position: relative;

  background-color: #363747;
  overflow: hidden;
}

.slide {
  position: absolute;
  top: 0;
  width: 100%;
  height: 50rem;

  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 1s;
}

.slide > img {
  /* Only for images that have different size than slide */
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slider__btn {
  position: absolute;
  top: 50%;
  z-index: 10;

  border: none;
  background: rgba(255, 255, 255, 0.7);
  font-family: inherit;
  color: #333;
  border-radius: 50%;
  height: 5.5rem;
  width: 5.5rem;
  font-size: 3.25rem;
  cursor: pointer;
}

.slider__btn--left {
  left: 6%;
  transform: translate(-50%, -50%);
}

.slider__btn--right {
  right: 6%;
  transform: translate(50%, -50%);
}

.dots {
  position: absolute;
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
}

.dots__dot {
  border: none;
  background-color: #b9b9b9;
  opacity: 0.7;
  height: 1rem;
  width: 1rem;
  border-radius: 50%;
  margin-right: 1.75rem;
  cursor: pointer;
  transition: all 0.5s;
}

.dots__dot:last-child {
  margin: 0;
}

.dots__dot--active {
  background-color: #fff;

  opacity: 1;
}

/* TESTIMONIALS */
.testimonial {
  width: 65%;
  position: relative;
  max-width: 100%;
}

.testimonial::before {
  content: '\201C';
  position: absolute;
  top: -5.7rem;
  left: -6.8rem;
  line-height: 1;
  font-size: 20rem;
  font-family: inherit;
  color: var(--color-primary);
  z-index: -1;
}

.testimonial__header {
  font-size: 2.25rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  color: #fff;
}

.testimonial__text {
  font-size: 1.7rem;
  margin-bottom: 3.5rem;
  color: #fff;
}

.testimonial__author {
  margin-left: 3rem;
  font-style: normal;

  display: grid;
  grid-template-columns: 6.5rem 1fr;
  column-gap: 2rem;
}

.testimonial__photo {
  grid-row: 1 / span 2;
  width: 8rem;
  height: 8rem;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial__name {
  font-size: 1.7rem;
  font-weight: 500;
  align-self: end;
  margin: 0;
  color: #fff;
}

.testimonial__location {
  font-size: 1.5rem;
  color: #cccccc;
}

.section__title--testimonials {
  margin-bottom: 4rem;
}

/* FOOTER */
.footer {
  padding: 2rem 2rem;
  background-color: #202132;
  border-top: 1px solid #fff;
}

.footer__nav {
  list-style: none;
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.footer__item {
  margin-right: 4rem;
}

.footer__link {
  font-size: 1.6rem;
  color: #eee;
  text-decoration: none;
}

.footer__logo {
  height: 5rem;
  display: block;
  margin: 0 auto;
  margin-bottom: 2rem;
}

.footer__copyright {
  font-size: 1.4rem;
  color: #aaa;
  text-align: center;
}

.footer__copyright .footer__link {
  font-size: 1.4rem;
}

/* MODAL WINDOW */
.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 60rem;
  background-color: #202132;
  padding: 5rem 6rem;
  box-shadow: 0 4rem 6rem rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transition: all 0.5s;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 100;
  transition: all 0.5s;
}

.modal__header {
  font-size: 3.25rem;
  margin-bottom: 4.5rem;
  line-height: 1.5;
  color: #fff;
}

.modal__form {
  margin: 0 3rem;
  display: grid;
  grid-template-columns: 1fr 2fr;
  align-items: center;
  gap: 2.5rem;
}

.modal__form label {
  font-size: 1.7rem;
  font-weight: 500;
  color: #fff;
}

.modal__form input {
  font-size: 1.7rem;
  padding: 1rem 1.5rem;
  border: 1px solid #ddd;
  border-radius: 0.5rem;
}

.modal__form button {
  grid-column: 1 / span 2;
  justify-self: center;
  margin-top: 1rem;
}

.btn--close-modal {
  font-family: inherit;
  color: inherit;
  position: absolute;
  top: 0.5rem;
  right: 2rem;
  font-size: 4rem;
  cursor: pointer;
  border: none;
  background: none;
  color: #fff;
}

.hidden {
  visibility: hidden;
  opacity: 0;
}

/* COOKIE MESSAGE */
.cookie-message {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  width: 100%;
  background-color: white;
  color: #bbb;
  font-size: 1.5rem;
  font-weight: 400;
}

/* Media Queries */

@media (max-width: 975px) {
  .features {
    display: flex;
    flex-direction: column;
  }
}

@media (max-width: 930px) {
  .header__title {
    transform: translateX(0);
  }
}

@media (max-width: 832px) {
  .btn {
    padding: 0.7rem 3rem;
  }
}

@media (max-width: 754px) {
  .features__feature {
    width: 100%;
  }
}

@media (max-width: 744px) {
  .nav {
    padding: 0;
  }
  .nav__item {
    margin-left: 1.5rem;
  }
}

@media (max-width: 698px) {
  .btn {
    padding: 0.7rem 2rem;
  }
}

@media (max-width: 601px) {
  #secttion--2 {
    padding-left: 0;
  }
  .btn {
    padding: 0.4rem 1rem;
    font-size: 13px;
    margin-right: 10px;
  }
  .operations .operations__content--active {
    padding-left: 0;
    padding-right: 0;
    grid-template-columns: 4em 1fr;
    column-gap: 0;
  }

  .operations {
    padding-left: 10px;
    padding-right: 10px;
    margin-left: 0;
    margin-right: 0;
  }
  .operations__icon {
    height: 5rem;
    width: 5rem;
  }
}

@media (max-width: 500px) {
  .nav__link:link,
  .nav__link:visited {
    font-size: 15px;
  }

  .operations__tab-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .btn {
    margin-bottom: 30px;
    width: 80%;
  }

  .section__title {
    margin-top: 20px;
  }
}
@media (max-width: 409px) {
  .nav__link:link,
  .nav__link:visited {
    font-size: 13px;
  }
  #section--1.section {
    padding: 0;
  }

  .features {
    margin-right: 8px;
    margin-left: 8px;
    text-align: center;
  }

  .features__feature {
    width: 90%;
    margin: 0 auto;
    text-align: center;
    margin-bottom: 40px;
  }

  .features__icon {
    margin: 0 auto;
  }
}
