main {
  overflow: hidden;
}

body {
  padding: 0;
  margin: 0;
  color: #fff;
  background-color: #010711;
  text-align: center;
  font-family: "Barlow", sans-serif, "Roboto";
  font-size: 18px;
  letter-spacing: 0.05em;
}

@media only screen and (max-width: 1200px) {
  body {
    font-size: 16px;
  }
}

@media (min-width: 2040px) {
  body {
    font-size: 24px;
  }
}

h1 {
  font-family: "Lalezar", sans-serif, "Roboto";
  font-size: 1.7rem;
}

h2 {
  font-family: "Lalezar", sans-serif, "Roboto";
  font-size: 1.2em;
}

p {
  font-family: "Barlow", sans-serif, "Roboto";
  margin: 1.5rem 0;
  font-size: 1em;
}

.animated {
  opacity: 0;
}

.button {
  max-width: 100%;
}

.button:hover {
  cursor: pointer;
}

.videoContainer {
  --video--width: 1920;
  --video--height: 1080;

  position: relative;
  padding-bottom: calc(
    var(--video--height) / var(--video--width) * 100%
  ); /* 41.6% */
  overflow: hidden;
  max-width: 100%;

  background-image: url("./Assets/bg-1.jpg");
  object-fit: contain;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.videoContainer iframe,
.videoContainer object,
.videoContainer embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.centeredLogo {
  width: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.mainDiv {
  text-align: center;
  padding: 3% 3% 10% 3%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  background-image: url("./Assets/bg-3.jpg");
  object-fit: contain;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.videoTrailer {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nexusLogo {
  width: 100%;
}

footer .NexusLogo {
  width: 20%;
}

.second-area {
  display: flex;
  justify-content: space-between;
  max-width: 60%;
}

@media only screen and (max-width: 1681px) {
  .second-area {
    max-width: 80%;
  }
}

@media only screen and (max-width: 600px) {
  .second-area {
    margin: 6% 0;
    max-width: 100%;
  }
}

@media (min-width: 2040px) {
  .second-area {
    max-width: 80%;
  }
}

.slideDiv {
  width: 50%;
  position: relative;
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  margin-right: 2em;
  min-height: 50vh;
}

.slideDiv h2 {
  text-align: right;
}

.slide {
  position: absolute;
  display: block;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.carouselDiv {
  display: flex;
  justify-content: center;
  position: relative;
  width: 100%;
  height: 100%;
}

.textDiv {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 50%;
  margin-left: 2em;
  text-align: left;
}

.storeButtons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;

  img {
    /* gotta hard-code these so apple and google buttons are of the same size,
     * since of course they have to be 10px different in height.
     */
    height: 70px;
    @media only screen and (max-width: 530px) {
      height: 50px;
    }
  }
}

.textDiv h1 {
  line-height: 2.4rem;
}

.textDivImageDiv img {
  max-width: 60%;
}

.socialIconsDiv img {
  width: 4em;
}

.socialIconsDiv a {
  text-decoration: none;
}

.socialIconsDiv {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-direction: column;
}

.icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

#wishlist_button_mobile {
  display: none !important;
}

#wishlist_button_desktop {
  display: block !important;
}

@media only screen and (max-width: 991px) {
  .textDiv h2 {
    text-align: center;
    font-size: 1.8em;
  }

  .textDivImageDiv {
    display: flex;
    justify-content: center;
  }

  .textDivImageDiv img {
    max-width: 70%;
  }

  .second-area {
    flex-direction: column;
    align-items: center;
  }

  .slideDiv {
    width: 100%;
    order: 2;
    margin: 2em 0 0 0;
  }

  .carouselDiv {
    min-height: 50vh;
  }

  .socialIconsDiv {
    margin-top: 2em;
  }

  .textDiv {
    width: 100%;
    order: 1;
    margin: 0;
  }

  .slideDiv h2 {
    text-align: center;
  }

  #wishlist_button_mobile {
    display: inline-block !important;
  }

  #wishlist_button_desktop {
    display: none !important;
  }
}

@media only screen and (max-width: 576px) {
  .socialIconsDiv {
    margin-top: 0;
  }

  .textDiv h2 {
    text-align: center;
    font-size: 1.5em;
  }
}

@media only screen and (min-width: 1268px) {
  .socialIconsDiv {
    margin-top: 1em;
    flex-direction: row;
  }
}

/* footer */

.footer {
  display: flex;
  justify-content: flex-end;
  width: 90%;
  margin-bottom: 2em;
}

@media only screen and (max-width: 700px) {
  body {
    font-size: 14px;
  }

  .eat-sleepLogo {
    width: 90%;
  }

  .textDiv {
    width: 90%;
  }

  .slide {
    max-height: 90%;
  }

  .textDivImageDiv img {
    max-width: 90%;
  }
}

/* Password page */

.mainDivPasswordPage {
  min-height: 100vh;
  padding: 0 3%;
  justify-content: start;
}

.passwordFormContainer {
  display: flex;
  flex-direction: column;
  justify-content: start;
}

.formGroup {
  display: flex;
  flex-direction: column;
  width: 100%;
  position: relative;
}

.formGroup * {
  margin-bottom: 1em;
}

.formGroup input {
  border-radius: 0;
  border: 2px solid #033043;
  font-size: 1em;
}

.formGroup svg {
  position: absolute;
  right: 0.6em;
  top: 0.6em;
}

#submitResultText {
  color: #fff;
  opacity: 0;
  text-shadow: 3px 3px 10px #000000;
  margin-bottom: 5em;
  transition: opacity 0.2s ease;
}

#submitResultText.visible {
  opacity: 1;
}

@media only screen and (max-width: 700px) {
  .formGroup svg {
    width: 20px;
    height: 20px;
  }
}

/* Mailchimp form */

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

.mailchimpDiv p {
  margin-top: 10px;
  margin-bottom: 25px;
  font-size: 0.8em;
  font-weight: 300;
}

form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
}

input {
  border: 1px solid rgb(220, 219, 235);
  border-radius: 1.5em;
  font-size: 0.8em;
  padding: 0.6em;
  color: #000;
  transition: all 0.15s ease-in;
}

input[type="email"] {
  width: 60%;
  border-radius: 0;
  border: 2px solid #033043;
}

input[type="submit"] {
  background-color: #526891;
  color: #fff;
  border: 1px solid transparent;
  padding: 10px 45px;
}

@media only screen and (max-width: 700px) {
  input[type="email"] {
    width: 60%;
  }
}

input[type="submit"]:focus {
  border: 1px solid #fff;
}

input:focus {
  border-color: rgb(53, 114, 210);
  box-shadow: 0 0 8px 2px rgba(53, 114, 210, 0.5);
  outline: none;
}

input::placeholder {
  color: #999;
}

#subscribe-result p {
  margin-top: 35px;
}

/* Loading indicator */

.loaderDiv {
  position: absolute;
  top: 50%;
  left: 50%;
  display: none;
}

.lds-ring {
  display: inline-block;
  position: relative;
  width: 80px;
  height: 80px;
}

.lds-ring div {
  box-sizing: border-box;
  display: block;
  position: absolute;
  width: 64px;
  height: 64px;
  margin: 8px;
  border: 8px solid #111;
  border-radius: 50%;
  animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  border-color: #111 transparent transparent transparent;
}

.lds-ring div:nth-child(1) {
  animation-delay: -0.45s;
}

.lds-ring div:nth-child(2) {
  animation-delay: -0.3s;
}

.lds-ring div:nth-child(3) {
  animation-delay: -0.15s;
}

@keyframes lds-ring {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* vimeo */

.vimeo-wrapper {
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.vimeo-wrapper iframe {
  width: 100vw;
  height: 56.25vw; /* 16:9, 9/16*100 = 56.25 */
  min-height: 100vh;
  min-width: 177.77vh; /* 16:9, 16/9*100 = 177.77 */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

footer {
  padding: 20px;
  text-align: center;
}

footer a {
  display: inline-block;
  margin: 1em 15px;
  text-decoration: none;
  color: #fff;
  font-weight: bold;
  white-space: nowrap;
}

footer a:hover {
  color: #515151;
}
