html {
  overflow-x: hidden;
}

body {
  color: #232323;
  font-family: 'Crimson Pro', serif;
  font-size: 24px;
  font-weight: 400;
  margin: 0;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  /* aspect ratio of bg image is 1772 / 1345 */
  --imageHeight: calc(100vw * 1345 / 1772);
  background-color: #0686B2;
}

.bg {
  position: fixed;
  align-self: center;
  z-index: -1;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: url(img/box-art.webp);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;

  /* This is to ensure on mobile that nav bar does not mess with bg image w/ cover  */
  height: 100vh;
}

.top-content {
  margin-top: 30px;
  /* margin-bottom: 70px; */
  flex-direction: row;
  display: flex;
  align-items: center;
  width: 90%;
  max-width: 1400px;
  justify-content: space-between;
}

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

/* .crimson-pro-<uniquifier> {
  font-family: "Crimson Pro", serif;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
} */


.video-container {
  height: min(500px, 60vh);
  width: calc(min(500px, 60vh) * 9 / 16);
  display: inline-block;
  position: relative;
}

.video-container img {
  position: absolute;

  top: calc((1920 - 2140) / 2 / 2140 * 112%);
  left: calc((1080 - 1300) / 2 / 1300 * 120.5%);

  width: calc(1300/1080 * 100%);
  height: calc(2140/1920 * 100%);

  z-index: 0;
}

.store-badge-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.store-badge {
  height: 60px;
  margin: 20px;
}

.video-frame {
  position: absolute;
  display: block;
  height: 100%;
  width: 100%;

  z-index: 1;
}

/* SCROLLING CLOUDS */
.cloud-upper {
  position: fixed;
  z-index: -1;
}

/* 90s */
.cloud-upper {
  top: 0px;
  animation: cloudmove-upper 80s infinite linear;
  animation-delay: -25s;
  height: 100vh;
  opacity: 0.8;
}

@keyframes cloudmove-upper {
  from { left: -900px; }
  to { left: calc(100vw + 100px); }
}

/* BOUNCING BUILDINGS */
.building-church,
.building-stable {
  position: absolute;
  z-index: -1;
}

.building-church {
  left: -30%;
  top: -5%;
  transform: scale(0.8);
}

.building-stable {
  top: -30%;
  right: -50%;
  transform: scale(0.6);
}

.full-width-previews {
  width: 100%;
  padding: 40px 0px;
  flex-direction: row;
}

.phone-preview {
  position: relative;
  display: inline-block;
  margin: 30px 20px;
}

.gif-image-top {
  position: absolute;
  width: 100%;
  background-color: #006DA1;
  border-top-left-radius: 30px;
  border-top-right-radius: 30px;

  /* This is section of "sky" that goes behind top bar on iPhone */
  height: 5.3%;
}

.phone-preview img {
  position: relative;
  width: 250px;
  justify-content: center;
  z-index: 2;
}

.full-width-preview img {
  position: relative;
  width: 90%;
  justify-content: center;
  z-index: 2;
}

.phone-preview .background {
  position: absolute;

  /* offset based on how far top of phone frame extends down */
  top: 1.5%;
  left: 50%;
  width: 92%;
  height: 100%;
  z-index: 1;
  transform: translateX(-50%);
}

.phone-preview .background img {
  /* move the actual gif downward to be below the top sky section */
  top: 5.1%;
  width: 100%;
  border-bottom-left-radius: 30px;
  border-bottom-right-radius: 30px;
}

.game-title {
  margin-top: 20px;
  width: 65vw;
  max-width: 700px;
  position: relative;
  display: inline-block;
}

.game-title-mobile {
  display: none;
}

.game-title img {
  max-width: 100%;
  max-height: 100%;
}

a {
  color: #232323;;
  text-decoration: none;
}

li a {
  color: #232323;
  text-decoration: none;
}

p {
  letter-spacing: 1px;
  margin: 0px;
}

.text-box {
  padding: 40px;
  padding-top: 20px;
  margin-top: 50px;
  max-width: 700px;
  width: 90%;
  background-color: #E6E1D2CC;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 30px;
  /* background-image: url(https://i.postimg.cc/SQYH5s2p/envelope-bg.png); */
  border: 1.5px #4D4D43 solid;

  /* background-repeat: no-repeat; */
  box-shadow: 0 2px 4px 0 rgba(0,0,0,.1);
}

.text-box p {
  font-size: 22px;
  line-height: 30px;
  text-align: left;
}

.text-box-header {
  display: inline-block;
  position: relative;
  font-weight: 700;
  width: 100%;
  height: 80px;
  margin-top: 30px;
  margin-bottom: 30px;
  /* border-bottom: 2px #008162 solid; */
}

.text-box-content {
  position: relative;
  display: flex;
  flex-direction: row;
}

.text-box-text-container {
  position: relative;
  display: inline-block;
}

.previews {
  display: inline-block;
  align-self: center;
  padding: 20px 0px;
  align-items: center;
  justify-content: center;
}

.previews img {
  width: 100%
}

.previews p {
  width: 100%;
  font-size: 14px;
  text-align: center;
}

.header-svg {
  position: absolute;
  top: -50px;
  right: -10px;
}

.header-svg img {
  height: 160px;
}

.header-title-container {
  position: absolute;
  left: 0;
  bottom: 0;
}

.header-title-container h2 {
  font-size: 40px;
  color: #010101;
  margin: 5px;
}

.award-container {
  flex-direction: row;
  display: flex;
}

.award {
  height: 200px;
  display: block;
  margin-right: 20px;
  align-items: center;
  justify-content: center;
}

.award-container p {
  margin: 0;
}

.award img {
  height: 100%;
}


.publishers {
  margin-top: 40px;
  margin-bottom: 70px;
  /* height: 150px; */
  display: flex;
  justify-content: center;
}

.publisher {
  height: 150px;
  display: block;
  margin: 0 40px;
}

.publisher-image {
  max-height: 100%;
  max-width: 100%;
}

.logo {
  height: 56px;
  margin-top: 2px;
  margin-right: 10px;
}

.content {
  position: relative;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px 20px 500px 20px;
  box-sizing: border-box;
}

.hero-container {
  /* margin: 0px 100px; */
  margin-top: 50px;
  margin-bottom: 50px;
  width: 65vw;
  max-width: 700px;
}

.hero-container-mobile {
  display: none;
}

.email-container-mobile {
  display: none;
}

.hero {
  margin: 10px 0px 0px 0px;
  font-size: 28px;
  font-weight: bold;
  line-height: 30px;
  letter-spacing: 1px;
  color: black;
  text-shadow:
    0px 1px 2px #F2D46E,
    1px 0px 2px #F2D46E,
    1px -1px 2px #F2D46E,
    -1px -1px 2px #F2D46E;
  /* text-shadow:
    0px 1px 2px #FFF,
    1px 0px 2px #FFF,
    1px -1px 2px #FFF,
    -1px -1px 2px #FFF; */
}

.top-left {
  position: absolute;
  top: 12px;
  left: 12px;
  height: 48px;
  width: 48px;
  border-radius: 24px;
  z-index: 10;
  box-shadow: 0 2px 4px 0 rgba(0,0,0,.1);
  justify-content: center;
}

.top-left img {
  display: inline-block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.top-left a {
  display: inline-block;
  padding: 4px 0 0 2px;
}

.top-right {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  z-index: 10;
  background-color: #F6F6F6B2;
  height: 48px;
  min-width: 48px;;
  padding: 0 10px;
  border-radius: 16px;
  align-items: center;
  box-shadow: 0 2px 4px 0 rgba(0,0,0,.1)
}

.top-right a,
.top-right img {
  height: 24px;
  font-size: 20px;
}
.top-right a {
  padding: 0px;
  margin: 0 8px;
}

.bottom-buttons-container {
  display: flex;
  flex-direction: row;
}

.press-kit-button {
  display: flex;
  width: 350px;
  height: 87.5px;
  background-color: transparent;
  align-items: center;
  justify-content: center;
  background-image: url("/the-guild-of-merchant-explorers-app/img/button-pink.webp");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
}

.press-kit-button p {
  font-size: 26px !important;
}

.press-kit-button:active {
  background-image: url("/the-guild-of-merchant-explorers-app/img/button-pink-pressed.webp");
}

.press-kit-button:active p {
  font-size: 24px !important;
  color: #4D4D43 !important;
}

.press-kit-button-container {
  margin-top: 100px;
  align-items: center;
  justify-content: center;
}

.landing-form {
  margin: 0 30px;
}

.email-form-container {
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  display: flex;
  padding: 20px;
  border-width: 2px;
  border-radius: 10px;
  /* margin: 30px 100px; */
  /* margin-top: 20px; */
  margin-bottom: 20px;
}

.email-form-container h2 {
  font-size: 20px;
  font-weight: bold;
  line-height: 24px;
  letter-spacing: 1px;
  color: white;
  /* text-shadow: 0px 1px 4px #000; */
  margin: 0px;
  margin-top: 10px;
}

/* LANDING FORM */
[data-form="f1895922-8cee-11f0-8975-0b66e85a405d"] *, [data-form="f1895922-8cee-11f0-8975-0b66e85a405d"] :after, [data-form="f1895922-8cee-11f0-8975-0b66e85a405d"] :before {
  font-size: 24px !important;
  font-family: 'Crimson Pro';
}

/* to hide the height of the EO footer */
.eo-form-wrapper .text-center {
  /* height: 1px; */
}

.email-octopus-success-message,
[data-form="f1895922-8cee-11f0-8975-0b66e85a405d"] .emailoctopus-success-message {
  color: #000 !important;
  font-family: 'Crimson Pro';
  /* text-shadow: 2px 2px 2px #000 !important; */
}

[data-form="f1895922-8cee-11f0-8975-0b66e85a405d"] .emailoctopus-form input[type=submit],[data-form="f1895922-8cee-11f0-8975-0b66e85a405d"] .emailoctopus-form input:not([type=submit]) {
  font-size: 24px !important;
  font-family: 'Crimson Pro';
  padding-left: 20px;
  padding-right: 20px;
  /* background-color: #E6E1D2CC !important; */

}

[data-form="f1895922-8cee-11f0-8975-0b66e85a405d"] .emailoctopus-form input:not([type=submit]) {
  /* border-color: #444 !important; */
  border-color: #4D4D43 !important;
  border-width: 1px;
}

[data-form="f1895922-8cee-11f0-8975-0b66e85a405d"] .btn:not(:disabled):not(.disabled) {
  height: 80px;
  width: 280px;
  background-color: transparent;
  border: none;
  background-image: url("/the-guild-of-merchant-explorers-app/img/button-green.webp");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
  font-size: 23px !important;
  margin-bottom: -7px !important;
}

[data-form="f1895922-8cee-11f0-8975-0b66e85a405d"] .btn-primary:not(:disabled):not(.disabled):active {
  height: 80px;
  width: 280px;
  background-color: transparent !important;
  border: none !important;
  background-image: url("/the-guild-of-merchant-explorers-app/img/button-green-pressed.webp");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
  font-size: 21px !important;
  outline: none !important;
  color: #4D4D43 !important;
  margin-bottom: -7px !important;
}

[data-form="f1895922-8cee-11f0-8975-0b66e85a405d"] .btn-primary:not(:disabled):not(.disabled):active:focus {
  color: #101010;
}

[data-form="f1895922-8cee-11f0-8975-0b66e85a405d"] .btn:not(:disabled):not(.disabled):focus {
  box-shadow: none !important;
}



.main-form .emailoctopus-form-row {
  text-align: left;
}

.emailoctopus-form label {
  font-family: 'Crimson Pro' !important;
  margin-bottom: 5px;
  display: inline-block;
  /* text-shadow: 1px 1px 2px #000; */
}

/* FOOTER */

footer h3 {
  margin-bottom: 0;
  font-size: 32px;
  color: #FFF;
}

.social-icon {
  width: 40px;
  height: 40px;
  margin: 10px;
}

footer {
  position: absolute;
  bottom: 0px;
  left: 0;
  background-color: #000;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  padding-bottom: 25px;
  width: 100%;
  display: flex;
}

footer ul {
  font-size: 12px;
  margin: 0;
  height: inherit;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
}
footer ul a {
  padding: 0 10px;
}

footer a {
  padding: 0px;
}

footer .socials {
  justify-content: center;
}

footer .privacy {
  margin-top: 10px;
  justify-content: center;
  flex-direction: row;
}

footer .privacy a {
  font-size: 14px;
  margin: 0 10px;
}

.copyright {
  font-size: 12px;
  color: white;
}

/* FOOTER FORM */

[data-form="cb5e9294-8cee-11f0-8dd8-936491a489ba"] *, [data-form="cb5e9294-8cee-11f0-8dd8-936491a489ba"] :after, [data-form="cb5e9294-8cee-11f0-8dd8-936491a489ba"] :before {
  font-size: 24px !important;
  font-family: 'Crimson Pro';
}

.email-octopus-success-message,
[data-form="cb5e9294-8cee-11f0-8dd8-936491a489ba"] .emailoctopus-success-message {
  color: #FFFFFF !important;
  font-family: 'Crimson Pro';
}

[data-form="cb5e9294-8cee-11f0-8dd8-936491a489ba"] .emailoctopus-form input[type=submit],[data-form="cb5e9294-8cee-11f0-8dd8-936491a489ba"] .emailoctopus-form input:not([type=submit]) {
  font-size: 24px !important;
  font-family: 'Crimson Pro';
  padding-left: 20px;
  padding-right: 20px;
}


[data-form="cb5e9294-8cee-11f0-8dd8-936491a489ba"] .btn-primary:not(:disabled):not(.disabled):active {
  /* height: 110%; */
  background-color: #F2D46E !important;
}

/* do not use for any other purpose */
.inline-container {
  padding: 0px !important;
}



.mobile-copyright {
  display: none;
}

/* RESPONSIVE QUERIES */

@media (min-width: 1080px) {
  [data-form="f1895922-8cee-11f0-8975-0b66e85a405d"] .form-container {
    max-width: 700px !important;
  }
}

@media (min-width: 1200px) {
  .video-container {
    margin-right: 10%;
  }
}

@media (max-width: 1300px) {
  .game-title {
    /* max-width: 30vw; */
  }
}

@media (max-width: 1080px) {
  .game-title {
    margin-top: 0px;
    max-width: 600px;
    width: 75vw;
  }

  .hero-container {
    margin: 10% 40px;
  }

  .hero {
    margin: 0px 10px;
    margin-top: 10px;
    font-size: 24px;
    line-height: 34px;
  }

  .email-form-container {
    /* padding: 0px 50px; */
    margin: 0px 50px
  }

  .store-badge {
    margin: 10px;
  }
}

@media (max-width: 900px) {
  .store-badge {
    height: 50px;
  }
}

@media (max-aspect-ratio: 1) {
  .video-container {
    margin-top: 40px;
    width: 30vw;
    height: calc(30vw * 16 / 9);
    display: inline-block;
    position: relative;
  }
}

@media (max-width: 768px) {
  .top-content {
    flex-direction: column;
    /* margin-top: 30px; */
  }

  .reiner-header {
    display: block;
    position: absolute;
    top: -55px;
  }

  .email-form-container {
    margin: 0px;
  }

  .reiner-header-text {
    margin-top: 30px;
    margin-bottom: 50px;
    font-size: 20px;
    font-weight: normal;
    line-height: 29px;
    letter-spacing: 1px;
    color: white;
    text-shadow: 0px 1px 4px #FFF;
    text-align: center;
  }

  .title-container-desktop {
    display: none;
  }

  .game-title-mobile {
    margin-top: 70px;
    margin-bottom: 40px;
    /* max-width: 300px; */
    width: 85vw;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .game-title-mobile img {
    max-width: 100%;
    max-height: 100%;
  }

  .hero-container-mobile {
    display: flex;
    flex-direction: column;
    width: min(80vw, 450px);
    margin-top: 40px;
    margin-bottom: 60px;
  }

  .email-container-mobile {
    width: 100%;
    display: block;
    margin-top: 20px;
    margin-bottom: 40px;
  }

  .email-container-mobile .email-form-container {
    padding: 20px;
  }

  .hero-container {
    margin: 80px 0px;
  }

  .hero {
    margin: 0px;
    /* text-shadow: 0px 1px 8px #000; */
  }

  .award-container {
    flex-direction: column;
  }

  .award {
    height: 150px;
    margin-bottom: 20px;
  }

  .header-svg {
    display: none;
  }

  .header-title-container {
    position: relative;
  }

  .full-width-preview img {
    width: 100%;
  }

  .text-box-header {
    height: auto;
  }

  .text-box {
    /* padding: 30px; */
    padding-top: 15px;
  }

  .hero {
    font-size: 24px;
    line-height: 32px;
  }

  .desktop-copyright {
    display: none;
  }

  .mobile-copyright {
    display: block;
  }

  .store-badge {
    height: 50px;
    margin: 20px 10px;
  }

  .bg {
    /* background-size: contain; */
  }

  .video-container {
    margin-top: 40px;
    width: min(75vw, 400px);
    height: calc(min(75vw, 400px) * 16 / 9);
    display: inline-block;
    position: relative;
  }

  .bottom-buttons-container {
    flex-direction: column;
    margin-top: 50px;
  }

  .press-kit-button-container {
    margin-top: 20px;
  }
}

@media (max-height: 600px) {
  /* Make images scaled based on image height instead of viewport height when image overflows on bottom via cover */
  .game-title-mobile {
    margin-top: 20px;
    width: 50vw;
  }
}

@media (max-width: 480px) {
  .top-content {
    margin-top: 40px;
  }

  .video-container {
    margin-top: 20px;
  }

  .video-frame {
    max-height: 100vh;
    max-width: 80vw;
  }

  .email-form-container {
    padding: 0px 20px;
  }

  .content {
    padding: 40px 0px 200px 0px;
  }

  .game-title-mobile {
    width: 85vw;
  }

  .text-box {
    border-radius: 0;

    /* width: 100%; */
  }

  .text-box p {
    font-size: 18px;
  }

  footer .email-form-container {
    margin-top: 30px;
  }

  .publishers {
    margin-top: 40px;
    margin-bottom: 30px;
    /* flex-direction: column; */
    /* height: 150px; */
    /* padding-bottom: 50px; */
  }

  .publisher {
    height: 110px;
  }

  .previews {
    flex-direction: column;
  }

  .previews p {
    width: 100%;
    font-size: 12px;
    text-align: center;
  }

  .phone-preview {
    margin: 20px 0 0 0;
  }

  .bottom-buttons-container {
    margin-bottom: 250px;
  }

  .building-church {
    left: -25%;
    top: 5%;
    transform: scale(0.7);
  }

  .building-stable {
    top: -35%;
    right: -35%;
    transform: scale(0.5);
  }
}
