/* B-OF.com */

body {
  margin: 0;
  background-color: white;
  overflow: hidden;
  font-family: 'Playfair Display';
  font-style: italic;
  color: black;}

h1 {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  overflow: hidden;}

input {
  outline: none !important;}


/* intro animation */
article {
  position: absolute;
  top: calc(50vh - 100vmax);
  left: calc(50vw - 100vmax);
  width: 200vmax;
  height: 200vmax;
  background-color: white;
  overflow: hidden;
  display: block;
  opacity: 1;
  z-index: 1000000;
  animation: away 0.5s 1.5s;}
@keyframes away {
  75% {opacity: 1;}}

.dot_grd1 {
  position: absolute;
  top: calc(100vmax - 2.5vmin);
  left: calc(100vmax - 9.5vmin);
  width: 5vmin;
  height: 5vmin;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFFF00, #F08C00);}

.dot_grd2 {
  position: absolute;
  top: calc(100vmax - 2.5vmin);
  left: calc(100vmax - 2.5vmin);
  width: 5vmin;
  height: 5vmin;
  border-radius: 50%;
  background: linear-gradient(135deg, #F000F0, #8C008C);}

.dot_grd3 {
  position: absolute;
  top: calc(100vmax - 2.5vmin);
  left: calc(100vmax + 4.5vmin);
  width: 5vmin;
  height: 5vmin;
  border-radius: 50%;
  background: linear-gradient(-45deg, #8CF0F0, #3CA0A0);}

.dot_anim {
  position: absolute;
  top: 0;
  left: 0;
  width: 200vmax;
  height: 200vmax;
  background-color: #C000C0;
  border-radius: 50%;
  transform: scale(0);
  animation: flash 1s 1s;}
@keyframes flash {
  100% {
    background-color: white;
    transform: scale(1);}}


/* bottom layer with logolist */
.result {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: white;}


/* middle layer with searching */
.searching {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: white;
  display: block;
  opacity: 1;
  transition: opacity 0.25s;}

.s_grayback {
  position: absolute;
  top: 5vmin;
  left: 5vmin;
  width: calc(100vw - 10vmin);
  height: calc(100vh - 10vmin);
  background-color: #EAEAEA;}


/* top layer with help text */
.help {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100vh;
  overflow: hidden;
  transition: width 0.5s;
  z-index: 1000000;
  background-color: white;}

.h_grayback {
  position: absolute;
  top: 5vmin;
  left: 5vmin;
  width: calc(100vw - 10vmin);
  height: calc(100vh - 10vmin);
  background-color: #EAEAEA;}

.h_text {
  position: absolute;
  top: 10vmin;
  left: 10vmin;
  width: calc(100vw - 10vmin);
  height: calc(100vh - 15vmin);}


a {
  letter-spacing: 0.15vmin;
  font-weight: 800;
  text-decoration: none;
  color: black;}
a:active, a:visited, a:link {
  color: black:}


/* styles for desktop */
@media (orientation: landscape) {
  .s_logotext {
    position: absolute;
    top: 9vmin;
    left: 10vmin;
    font-size: 4vmin;
    font-weight: 800;}

  .s_slogan {
    position: absolute;
    top: 16vmin;
    left: 10vmin;
    font-size: 4vmin;
    font-weight: 400;}

  .s_result {
    position: absolute;
    top: 47vmin;
    left: 10vmin;
    width: 80vmin;
    height: 3vmin;
    overflow: hidden;
    font-size: 2vmin;
    font-weight: 400;}

  .s_placeholder {
    position: absolute;
    top: 55vmin;
    left: 10vmin;
    font-size: 4vmin;
    font-weight: 600;
    color: #808080;
    transition: transform 0.25s;}

  .s_curtain {
    position: absolute;
    top: 60vmin;
    left: 10vmin;
    width: 80vmin;
    height: 10vmin;
    border-top: solid 0.5vmin #C000C0;
    border-bottom: none;
    border-left: none;
    border-right: none;
    transition: border-top 0.25s;
    background-color: #EAEAEA;}

  .s_tip {
    position: absolute;
    bottom: 9vmin;
    left: 10vmin;
    font-size: 3vmin;
    font-weight: 500;
    color: #808080;
    cursor: pointer;}
  .s_tip:hover {
    transition: color 0.25s;
    color: #C000C0;}

  #s_form {
    position: absolute;
    top: 54.5vmin;
    left: 10vmin;
    width: 80vmin;
    height: 7vmin;
    overflow: hidden;}

  #s_input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    background-color: rgba(0, 0, 0, 0);
    font-family: 'Playfair Display';
    font-size: 4vmin;
    font-weight: 600;}


  p {
    font-weight: 500;
    font-size: 4vmin;
    line-height: 6vmin;
    margin-top: 0;
    margin-bottom: 4vmin;}

  .h_close {
    position: absolute;
    bottom: 9vmin;
    left: 10vmin;
    width: calc(100vw - 10vmin);
    font-weight: 500;
    font-size: 3vmin;
    color: #808080;
    cursor: pointer;}


  .r_search {
    position: absolute;
    top: 4vmin;
    left: 5vmin;
    width: 100vmin;
    height: 5vmin;
    font-weight: 700;
    font-size: 4vmin;
    cursor: pointer;}

  .r_tip {
    position: absolute;
    top: 5vmin;
    right: 5vmin;
    font-weight: 400;
    font-size: 2vmin;
    color: black;
    cursor: pointer;}
  .r_tip:hover {
    transition: color 0.25s;
    color: #C000C0;}

  .r_grid {
    position: absolute;
    top: 13vmin;
    left: 5vmin;
    width: calc(100vw - 5vmin);
    height: calc(100vh - 13vmin);
    overflow: auto;}

  .r_logo {
    position: fixed;
    top: 13vmin;
    left: 5vmin;}

  .logo-preview {
    float: left;
    overflow: hidden;
    margin-right: 2.5vmin;
    margin-bottom: 2.5vmin;
    box-sizing: border-box;
    border: solid 1px black;
    cursor: pointer;}
  .logo-preview:first-child {
    border: none;}
  .logo-preview:last-child {
    margin-bottom: 5vmin;}
  .logo-preview:hover .logo-text {
    transform: scale(1);}

  .logo-text {
    position: relative;
    padding: 1vmin;
    width: calc(100% - 1vmin);
    height: calc(100% - 1vmin);
    background: rgba(255, 255, 255, 0.975);
    font-weight: 500;
    font-size: 2vmin;
    transform: scale(0);
    transition: transform 0.25s;}}



/* styles for mobile */
@media (orientation: portrait) {
  .s_logotext {
    position: absolute;
    top: 9vmin;
    left: 10vmin;
    font-size: 6vmin;
    font-weight: 800;}

  .s_slogan {
    position: absolute;
    top: 18vmin;
    left: 10vmin;
    font-size: 6vmin;
    font-weight: 400;}

  .s_result {
    position: absolute;
    top: 72vmin;
    left: 10vmin;
    width: 80vmin;
    height: 5vmin;
    overflow: hidden;
    font-size: 3vmin;
    font-weight: 400;}

  .s_placeholder {
    position: absolute;
    top: 83vmin;
    left: 10vmin;
    font-size: 6vmin;
    font-weight: 600;
    color: #808080;}

  .s_curtain {
    position: absolute;
    top: 90vmin;
    left: 10vmin;
    width: 80vmin;
    height: 10vmin;
    border-top: solid 0.5vmin #C000C0;
    border-bottom: none;
    border-left: none;
    border-right: none;
    transition: border-top 0.25s;
    background-color: #EAEAEA;}

  .s_tip {
    position: absolute;
    bottom: 9vmin;
    left: 10vmin;
    font-size: 4vmin;
    font-weight: 500;
    color: #808080;
    transition: 0.25s;
    cursor: pointer;}

  #s_form {
    position: absolute;
    top: 83.5vmin;
    left: 10vmin;
    width: 80vmin;
    height: 7vmin;
    overflow: hidden;}

  #s_input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    background-color: rgba(0, 0, 0, 0);
    font-family: 'Playfair Display';
    font-size: 6vmin;
    font-weight: 600;}


  p {
    font-weight: 500;
    font-size: 5vmin;
    line-height: 7.5vmin;
    margin-top: 0;
    margin-bottom: 5vmin;}

  .h_close {
    position: absolute;
    bottom: 9vmin;
    left: 10vmin;
    width: calc(100vw - 10vmin);
    font-weight: 500;
    font-size: 4vmin;
    color: #808080;}


  .r_search {
    position: absolute;
    top: 4vmin;
    left: 5vmin;
    width: calc(100vw - 10vmin);
    height: 6vmin;
    font-weight: 700;
    font-size: 5vmin;}

  .r_tip {
    position: absolute;
    top: 14vmin;
    left: 5vmin;
    font-weight: 400;
    font-size: 3vmin;
    line-height: 4.5vmin;
    color: black;}

  .r_grid {
    position: absolute;
    top: 28vmin;
    left: 5vmin;
    width: calc(100vw - 5vmin);
    height: calc(100vh - 28vmin);
    overflow: auto;}

  .r_logo {
    position: fixed;
    top: 28vmin;
    left: 5vmin;
    width: calc(85vmin / 3);
    height: calc(85vmin / 3);
    background-image: url('logo.svg');}

  .result-image {
    box-sizing: border-box;
    border: solid 1px black;
    width: calc(85vmin / 3);
    height: calc(85vmin / 3);}

  .logo-preview {
    float: left;
    width: calc(85vmin / 3);
    height: auto;
    margin-right: 2.5vmin;
    margin-bottom: 7.5vmin;}
  .logo-preview:last-child {
    margin-bottom: 5vmin;}

  .logo-end {
    width: 0;
    height: 0;
    clear: both;}

  .logo-text {
    position: relative;
    margin-top: 1vmin;
    width: 100%;
    font-style: 500;
    font-size: 3vmin;}}
