@import url('https://fonts.googleapis.com/css?family=Raleway:400,600,700&display=swap');

@media (max-width: 50em), (max-aspect-ratio: 3/2) {
  #container {
    flex-direction: column;
  }

  #preview {
    margin: 50px;
    text-align: center;
  }

  #preview-frame {
    width: 50vw;
    max-width: 15em;
  }
}

@media (min-width: 50em) and (min-aspect-ratio: 3/2) {
  #container {
    flex-direction: row;
  }

  #right-placeholder {
    width: 33vw;
    min-width: 52vh;
  }

  #badge-top {
    display: none;
  }

  #preview {
    margin: initial;
    text-align: initial;
    position: absolute;
    right: 0;
    top: 0;
    width: 33vw;
    min-width: 52vh;
    height: 100%;
    overflow: hidden;
  }

  #preview > div {
    top: 10vh;
  }

  #preview-frame {
    width: initial;
    max-width: initial;
    height: 99vh;
    min-height: 30em;
  }
}

body {
  margin: 0;
  font-family: 'Raleway';
  font-size: 1.1em;
  background-color: #234;
  color: white;
  position: relative;
}

#bg-overlay {
  background-image: url(img/congruent_pentagon.png);
  background-size: 2000px;
  opacity: 0.08;
  position: absolute;
  width: 100%;
  height: 100%;
  min-width: 100vw;
  min-height: 100vh;
  z-index: -1;
}

#container {
  display: flex;
  position: relative;
  flex: 1;
  min-height: 100vh;
}

#text-container {
  flex: 1;
  display: flex;
  align-items: center;
  flex-direction: column;
  margin: 8vh 8vw 4vh;
}

#main-text {
  flex: 1;
}

#preview > div {
  position: relative;
  display: inline-block;
}

#preview-screen {
  width: 90%;
  height: 96.5%;
  top: 1.7%;
  left: 5.4%;
  position: absolute;
          mask-image: url(img/mask.png);
  -webkit-mask-image: url(img/mask.png);
          mask-size: 100%;
  -webkit-mask-size: 100%;
}

#logo {
  width: 20em;
  max-width: 75vw;
  margin-bottom: 1em;
}

#privacy {
  font-size: 1rem;
}

a {
  color: #abc;
  display: block;
}

.badge-container {
  display: flex;
  flex-direction: row;
  margin: 2em 0;
  align-items: center;
}

.app-badge-apple {
  width: 8em;
}

.app-badge-google {
  width: 10em;
}

img {
  display: block;
}

#screens {
  display: none;
}
