/* Reset the default box-sizing property of all elements to border-box */
* {
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
}

body {
  font-size: 1.6rem;
  width: 100vw;
  max-width: 100%;
  background-color: #f2f2f2;
}

.wrapper {
  width: 80vw;
  max-width: 100%;
  margin: auto;
  text-align: center;
}

.title-img {
  width: 30%;
}

h1 {
  margin: 0 0 1rem 0;
  font-family: 'Gloock', serif;
  font-size: 3.5vw;
}

#input {
  font-size: 1.5rem;
  padding: .7rem .7rem;
  border-radius: 5px;
  border: 1px solid #ccc;
  margin-bottom: 1rem;
  width: 40%;
  line-height: 1.5;
}

button {
  padding: .7rem;
  border-radius: 5px;
  border: none;
  background-color: #333;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  margin-right: 1rem;
}

button:hover {
  background-color: #666;
}

#random-btn {
  display: block;
  margin: 0 auto;
}

.hide {
  display: none;
}

.show {
  display: initial;
}
#result-container {
  margin: 3rem 0;
}
.row {
  display: flex;
  flex-wrap: wrap;
}

.col-1 {
  flex: 1;
  text-align: left;
  margin-right: 2rem;
}

.col-2 {
  flex: 1;
  text-align: right;
}

.img-result {
  width: 40vw;
}


@media screen and (max-width: 500px) {
  #drinkName {
    margin: .5rem 0;
  }
  .col-1 {
    display: flex;
    flex-direction: column;
    text-align: center;
    width: 100%;
  }
  .col-2 {
    text-align: center;
  }
  .row {
    flex-direction: column-reverse;
    
  }
  .img-result {
    width: 80vw;
  }
}
/*Where image starts overflowing vh */
@media screen and (min-width: 865px) {
  .img-result {
    width: 37vw;
  }

}

@media screen and (min-width: 920px) {
  .img-result {
    width: 31vw;
  }

}


