/******************************************
/* CSS
/*******************************************/

/* Box Model Hack */
*{
  box-sizing: border-box;
}

/******************************************
/* ANIMATIONS
/*******************************************/

@keyframes show {
  100% {
    opacity: 1;
    transform: none;
  }
}

@keyframes slideInFromRight {
  0% {
      transform: translateX(+100%);
  }
  100% {
      transform: translateX(0);
  }
}
/******************************************
/* LAYOUT
/*******************************************/
html{
  font-size: 62.5%;
  color: #181b1f;;
} 

body{
  font-family: "Source Serif Pro";
  font-size: 1.6rem;
  background-color: gray;
  background: url("../img/wood.jpg");
  background-size: 100%;
  background-repeat: no-repeat;
  background-attachment: fixed;
  margin-top: 2%;
}

h1{
  font-size: 4.5rem;
  font-family: 'Playfair Display', serif;
  color: #342217;
}

.name{
  font-size: 4rem;
  font-family: 'Playfair Display', serif;
  color: #342217;
}

.ingredients, .instructions{
  padding-top: 10px;
  border-top: solid black 3px;
  font-size: 2.2rem;
}


.drinkInfo{
  float:left;
  width: 45%;
  margin-left: 5%;
  background-color: #aaa;
  background: url("../img/grey.jpg");
  background-size: 100%;
  background-repeat: no-repeat;
  border-radius: 10%;

  animation: show 1000ms 100ms cubic-bezier(0.38, 0.97, 0.56, 0.76) forwards;

  opacity: 0;

  transform: rotateX(-90deg);
  transform-origin: top center;
}


/* Search Bar*/

.search{
  padding: 0 5% 2%;
}

.custom-field {
  font-size: 14px;
  position: relative;
  --field-padding: 10px;
  border-top: 20px solid transparent;
}

.custom-field input {
  border: none;
  -webkit-appearance: none;
  -ms-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background: #f2f2f2;
  padding: 12px;
  border-radius: 5px;
  width: 250px;
  font-size: 14px;
  padding: var(--field-padding);
}

.custom-field .placeholder {
  position: absolute;
  left: 12px;
  top: 10px;  
  transform: translateY(-50%);
  width: calc(100% - 24px);  
  color: #aaa;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  left: var(--field-padding);
  width: calc(100% - (var(--field-padding) * 2));
  transition: 
  top 0.3s ease,
  color 0.3s ease,
  font-size 0.3s ease;
}

.custom-field input:focus + .placeholder, .custom-field input:valid + .placeholder {
  top: -20px;
  font-size: 15px;
  color: #222;
}

#search {
  height: 37px;
  padding: 9px;
  background: #272d33;
  color: white;
  font-size: 14px;
  border: 1px solid grey;
  border-radius: 5px;
  border-left: none;
  cursor: pointer;
}

/**************/
.details{
  float:left;
  padding:0 5% 5%;
}

ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.pics{
  float:left;
  width: 50%;
  padding-left: 3%;
}

.pics img{
  display: block;
  margin: auto;
  height:700px;
  border-radius: 5%;
  animation: 1.5s ease-out 0s 1 slideInFromRight;
}

.movement{
  float:left;
  text-align: center;
  width:30%;
  margin: 100px 35% 0;
}

.left img, .right img{
  height:100px;
  transition: height .50s .25s;
}

.left img:hover{
  height:110px;
}

.left{
  float: left;
  margin-left: 30%;
  padding-right: 7%;
}

.right{
  float: left;
  padding-left: 7%;
}

.right img:hover{
  height:110px;
}

#prev{
  padding-right: 5%;
}

#next{
  padding-left: 5%;
}

/******************************************
/* ADDITIONAL STYLES
/*******************************************/
