body {
  margin: 0px;
}

html {
  height: 100%;
}

.container {
  position: absolute;
  min-height: 100vh;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}

/* desktop*/
@media screen and (min-width: 1024px) and (orientation: landscape) {
  @media screen and (max-height: 810px){
    .logo-container > img {
      max-width: 150px !important;
    }
    .text-container {
      padding: 10px 40px 20px 80px !important;
    }
    .container {
      grid-template-rows: auto 150px !important;
    }
  }

  .container {
    display: grid;
    grid-template-columns: auto;
    grid-template-rows: auto minmax(100px, 200px);
    grid-template-areas:
      "hero"
      "footer";
  }

  .footer .logo-container {
    display: none;
  }

  .hero {
    display: grid;
    grid-template-columns: 6fr 4fr;
    grid-template-rows: auto;
    grid-template-areas: "splash image";
  }

  .text-container {
    display: flex;
    justify-content: flex-end;
    padding: 80px 40px 80px 80px;
    flex-direction: column;
  }

  .headline {
    color: #ffffff;
    font-size: 41px;
    font-family: Lemon Milk-Regular;
    font-weight: 600;
  }

  .subtext {
    margin-top: 20px;
    font-size: 21px;
    color: #449B48;
  }

  .logo-container {
    padding: 40px 0px 0px 80px;
  }

  .logo-container > img {
    max-width: 200px;
  }

  .input > input {
    height: 30px;
    padding: 10px;
    font-size: 16px;
    width: calc(100% - 20px);
  }

  .input {
    width: 100%;
    height: 50px;
    display: flex;
    justify-content: center;
    padding: 10px 10px;
  }

  .footer {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #D2D3B2;
  }

  .submit-button {
    display: flex;
    align-items: center;
    margin: 0px 10px;
  }

  .submit-button > button {
    height: 55px;
    width: 100%;
    min-width: 80px;
    font-size: 20px;
  }

.input-container {
    display: flex;
    justify-content: center;
    width: 100vw;
    box-sizing: border-box;
    padding: 0px 25px;
}

  .footer .text-container {
    display: none;
  }

  .splash {
    background: url("./Dark_Green_Pattern_Background.jpg") no-repeat;
    background-size: cover;
    display: grid;
    grid-template-columns: auto;
    grid-template-rows: auto auto;
    grid-template-areas:
      "logo"
      "text";
  }

  .image {
    grid-area: image;
    background: url("./bg.jpg") no-repeat, url("./bg-small.jpg") no-repeat;

    background-position: 75% 10%;
    background-size: cover;
  }

  .input > input {
    color: #ffffff;
    background-color: #00000030;
    border: 1px solid #00000020;
    border-radius: 5px;
  }

  .input > input::placeholder{
    color: #ffffffbd;
  }
  .dropdown select {
    background-color: #AAAB90;
    border: 1px solid #00000020;
    border-radius: 5px;
    padding: 16px;
  }

  .dropdown {
    max-width: none;
  }
}

/* tablet / mobile */
@media only screen and (max-width: 1023px), screen and (orientation: portrait) {  .container{
    grid-template-rows: minmax(200px, auto) auto;
  }

  /* Mobile */
  @media only screen and (max-width: 719px) {
    @media only screen and (max-height: 650px){
      .headline{
        font-size: 26px !important;
      }
    }
    .footer {
      padding-top: 10px;
    }

    .text-container {
      padding: 5px 10px 10px 10px !important;
    }

    .input-container {
      padding: 0px 10px !important;
    }

    .headline{
      font-size: 28px;
      line-height: 1;
    }
    .opt-in-text{
      padding: 5px 10px !important;
    }    

  }

  /* Tablet */
  @media only screen and (min-width: 720px) {
    .container{
      grid-template-rows: minmax(200px, 1fr) 1fr;
    }
    .footer {
      padding: 20px 160px;
      display: flex;
      justify-content: center;
    }

    .footer-container{
      max-width: 400px !important;
    }

    .submit-button > button {
      min-width: initial !important;
      max-width: initial !important;
      width: 150px !important;
    }


    .footer .logo-container {
      display: none;
    }

    .headline{
      margin-top: 40px;
      font-size: 39px;
    }
    .opt-in-text{
      padding: 5px 20px !important;
    }    
  }
  .hero .text-container {
    display: none;
  }

  .container {
    min-height: 100vh;
    display: grid;
    grid-template-columns: auto;
    grid-template-areas: "hero" "footer";
  }

  .hero {
    background: url("./bg.jpg") no-repeat, url("./bg-small.jpg") no-repeat;

    background-size: cover;
    background-position: 75% 10%;
    display: flex;
    align-items: flex-end;
  }

  .logo-container {
    display: none;
  }

  .splash .logo-container {
    display: none;
  }

  .logo-container > img {
    max-height: 100px;
  }

  .footer .logo-container {
    display: none;
  }

  .text-container {
    display: flex;
    padding: 5px 20px 10px 20px;
    flex-direction: column;
  }

  .subtext {
    color: #449B48;
    margin-top: 10px;
    font-size: 21px;
  }

  .headline {
    color: #ffffff;
    font-family: Futura Condensed Medium;
  }

  .footer {
    background-color: #D2D3B2;
  }

  .input-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0px 20px;
  }

  .input {
    width: 100%;
    padding: 5px 0px;
  }

  .input input {
    width: calc(100% - 20px);
    height: 20px;
    padding: 10px;
    font-size: 16px;
    color: #ffffff;
    background-color: #00000030;
    border: 1px solid #00000020;
    border-radius: 5px;
  }

  .input > input::placeholder{
    color: #ffffffbd;
  }

  .submit-button {
    margin-top: 0px;
  }

  .submit-button > button {
    height: 40px;
    min-width: 50%;
    font-size: 18px;
  }
  .dropdown select{
    padding: 12px;
    background-color: #AAAB90;
  }
}

.hero {
  grid-area: hero;
}

.splash {
  grid-area: splash;
}

.logo-container {
  grid-area: logo;
}

.text-container {
  grid-area: text;
}

.subtext {
  font-family: SF Compact Display;
}

.footer {
  grid-area: footer;
  display: grid;
  grid-template-columns: auto;
  grid-template-rows: auto 24px;
  grid-template-areas:
  "footer-container"
  "tos-links"  
}

.submit-button > button {
  color: #ffffff;
  background-color: #449B48 ;
  border-radius: 5px;
  border: none;
}

@font-face {
  font-family: "Lemon Milk-Regular";
  src: url("../__assets__/LEMONMILK-Regular.otf");
}

@font-face {
  font-family: SF Compact Display;
  src: url("../__assets__/SF-Compact-Display-Regular.ttf");
}

@font-face {
  font-family: "Futura Condensed Medium";
  src: url("../__assets__/Futura-Condensed-Medium.otf");
}

.input > input:focus, .dropdown > select:focus {
  outline: none;
}

.input > button:focus {
  outline: none;
}

.invalid-input {
  border: 1px solid red !important;
}

.submit-button.disabled > button {
  cursor: default;
}

.hidden {
  display: none;
}

input {
  font-family: SF Compact Display;
}

button {
  font-family: SF Compact Display;
}

.dropdown {
  display: flex;
  flex-direction: column;
}

.dropdown select{
  border: 1px solid #00000020;
  border-radius: 5px;
  color: #ffffff;
  font-size: 14px;
  margin: 0px;
}

select {
  -webkit-appearance: none;
  -moz-appearance: none;
  background: transparent;
  background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
  background-repeat: no-repeat;
  background-position-x: 100%;
  background-position-y: 50%;
}

select:invalid{
  color: #ffffffbd;
}

::placeholder, ::-webkit-input-placeholder {
  color: #ffffffbd;
}


.tos-links {
  font-size: 18px;
  font-family: SF Compact Display;
  width: 100%;
  grid-area: tos-links;
  display: flex;
  justify-content: center;
}

.footer-container{
  grid-area: footer-container;
}

.tos-links a{
   color: #000000;
}

.opt-in-text {
  font-family: SF Compact Display;
  padding: 5px 30px;
  margin-bottom: 10px;
}
