/* CSS inspired by this fantastic code: https://github.com/eisenfox/css-coffee-icons */

h1.title {
  text-align: center;
}

.ingredients {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  /* fix spreading */
  grid-column-gap: 2px;
  padding-bottom: 30px;
  margin: 0 0 0 0;
}

.ingredients-inner {
  text-align: center;
  display: inline-block;
}

.drink-text {
  width: 100%;
  font: 12px monospace;
  font-weight: bold;
  background-color: var(--text-bg, #3b3b3b);
  color: var(--text-color, #fff);
}

.square {
  margin: 5px auto;
  /* fix box centering */
  height: 32px;
  width: 32px;
  vertical-align: top;
  text-align: center;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  background-color: #49362f;
  box-shadow: 0 0 0 2.5px var(--square-color, #111);
  line-height: 32px;
  /* fix vertical center */
}

.coffee-container {
  background-color: #3A3A3A;
  /*width: 320px;*/
  height: auto;
  margin: 30px auto 30px auto;
  border: 4px solid #111;
}

.coffee-header {
  font: 19px monospace;
  padding: 25px 10px;
}

.coffee-header,
.coffee-footer {
  color: #fff;
  font-weight: bold;
  text-align: center;
  background: #111;
}

.coffee-footer {
  font: 16px monospace;
  padding: 15px;
}

.coffee-footer a {
  color: #9a5e32;
  text-decoration-line: none;
}

.icons-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  width: 100%;
  align-items: center;
  padding: 0 0 20px 30px;
}

.coffee-icon {
  width: 172px;
  margin-bottom: 5px;
  position: relative;
}

.coffee-icon-1 {
  height: 174px;
}

.coffee-icon-1 .coffee-cup {
  width: 133px;
  height: 122px;
  position: absolute;
  left: 0px;
  bottom: 0px;
}


.coffee-icon-1 .coffee-cup:before {
  content: " ";
  display: block;
  width: 103px;
  position: absolute;
  left: var(--cup-bottom-left, 0px);
  bottom: 21px;
  height: 0px;
  border-bottom: 98px solid var(--rgba-color, rgba(220, 230, 235, .75));
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  transform: rotate(180deg);
  z-index: 0;
}

.coffee-icon-1 .coffee-cup:after {
  content: " ";
  display: block;
  position: absolute;
  left: 15px;
  bottom: 0px;
  height: 21px;
  width: 103px;
  background-color: var(--rgba-color, rgba(220, 230, 235, .75));
  border-radius: 0px 0px 5px 5px;
}

.coffee-icon-1 .coffee-cup .cup-lifter {
  width: 55px;
  height: 35px;
  position: absolute;
  top: 35px;
  right: -23px;
  border-top: 10px solid var(--rgba-color, rgba(220, 230, 235, .75));
  border-left: 10px solid var(--rgba-color, rgba(220, 230, 235, .75));
  border-radius: 50%;
  transform: rotate(120deg);
}

.coffee-icon-1 .coffee-cup .coffee {
  position: absolute;
  top: 15px;
  left: 12px;
  transform: rotate(180deg);
  z-index: 4;
}

.coffee-icon-1 .coffee-cup .coffee .coffee-part-4 {
  height: 0px;
  width: 97px;
  border-bottom: 22px solid #49362f;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  z-index: 3;
  border-top: 3px solid rgba(220, 230, 235, 0.2);
}

.coffee-icon-1 .coffee-cup .coffee .coffee-part-3 {
  content: "";
  display: block;
  position: absolute;
  top: -22px;
  left: 0;
  height: 0px;
  width: 85px;
  left: 6px;
  border-bottom: 22px solid #49362f;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  z-index: 2;
  border-top: 2px solid rgba(220, 230, 235, 0.2);
}

.coffee-icon-1 .coffee-cup .coffee .coffee-part-2 {
  position: absolute;
  top: -44px;
  left: 6px;
  height: 0px;
  width: 73px;
  left: 12px;
  border-bottom: 22px solid #49362f;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  z-index: 1;
  border-top: 1px solid rgba(220, 230, 235, 0.2);
}

.coffee-icon-1 .coffee-cup .coffee .coffee-part-1 {
  position: absolute;
  top: -66px;
  left: 6px;
  height: 0px;
  width: 61px;
  left: 18px;
  border-bottom: 22px solid #49362f;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
}

.coffee-icon-1 .cream {
  position: absolute;
  top: -55px;
  left: 0;
  right: 0;
  display: none;
  height: 55px;
  width: 111px;
  margin: auto;
  z-index: 1;
}

.coffee-icon-1 .cream .cream-part-1 {
  width: 100%;
  height: 38px;
  border-radius: 40px;
  background-color: #fffdd0;
  position: absolute;
  top: 37px;
  left: 0;
}

.coffee-icon-1 .cream .cream-part-2 {
  height: 38px;
  width: 60%;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  margin: auto;
}

.coffee-icon-1 .cream .cream-part-2:before {
  content: " ";
  display: block;
  position: absolute;
  top: 20px;
  right: 0;
  background-color: var(--background-color, #fffdd0);
  width: 70%;
  height: 50px;
  border-radius: 20px;
}

.coffee-icon-1 .cream .cream-part-2:after {
  content: " ";
  display: block;
  position: absolute;
  top: 15px;
  left: 0;
  background-color: var(--background-color, #fffdd0);
  /*background-color: #fffdd0;*/
  width: 80%;
  height: 60px;
  border-radius: 40px;
}

@keyframes milk-animation {
  0% {
    transform: rotate(-171deg);
  }
  100% {
    transform: rotate(-165deg);
  }
}

.coffee-icon-1 .cream .cream-part-3 {
  position: absolute;
  top: 0;
  left: -15px;
  width: 44px;
  /*border-top: 4px solid #fffdd0;
  border-left: 21px solid #fffdd0;*/
  box-shadow: var(--foam-color, -21px 0 #fffdd0);
  height: 65px;
  border-radius: 50%;
  transform: rotate(-171deg);
  animation: milk-animation 0.75s linear 0s infinite alternate;
}

.coffee-select {
  text-align: center;
  padding: 25px 0 35px 0;
}

/* DROP DOWN */

label.dropdown select {
  font-size: 20px;
  width: 80%;
  padding: 10px 62px 10px 30px;
  background: #f8f8f8;
  color: #49362f;
  font-weight: bold;
  border: 1px solid #aaa;
  border-radius: 0;
  display: inline-block;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  cursor: pointer;
  outline: none;
}

label.dropdown select:-moz-focusring {
  color: transparent;
  text-shadow: 0 0 0 #444;
}

label.dropdown select::-ms-expand {
  display: none;
}

label.dropdown:before {
  content: '';
  right: 5px;
  /*top: -7px;*/
  margin-top: 5px;
  width: 30px;
  height: 33px;
  background: #f8f8f8;
  position: absolute;
  pointer-events: none;
  display: block;
}

label.dropdown {
  position: relative;
}

label.dropdown:after {
  content: '>';
  font: 16px Consolas, monospace;
  color: #444;
  -webkit-transform: rotate(90deg);
  -moz-transform: rotate(90deg);
  -ms-transform: rotate(90deg);
  transform: rotate(90deg);
  right: 2px;
  /*top: -3px;*/
  margin-top: 10px;
  border-bottom: 1px solid #aaa;
  position: absolute;
  pointer-events: none;
  width: 34px;
  padding: 0 0 5px 0;
}

@media screen\0 {
  label.dropdown:after {
    width: 38px;
    text-indent: 15px;
    right: 0;
  }
}

@media screen and (min--moz-device-pixel-ratio: 0) {

  .coffee-icon-1 .cream .cream-part-3 { height: 95px; left: 4px; }

  label.dropdown select {
    padding-right: 40px;
  }
  label.dropdown:before {
    right: 0px;
    height: 0px;    
  }
  label.dropdown:after {
    text-indent: 5px;
    right: 0px;
    top: -10px;
    width: 36px;
    margin-top: 13px;    
  }
}

/* Choco*/

@keyframes choco-animation {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.coffee-icon-1 .cream .choco {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
}

.coffee-icon-1 .cream .choco .choco-item {
  width: 4px;
  height: 4px;
  background-color: #9a5e32;
  border-radius: 50%;
  animation: choco-animation 0.9s linear infinite alternate;
}

.coffee-icon-1 .cream .choco .choco-item-1 {
  position: absolute;
  top: 19px;
  left: 42px;
  animation-delay: 0.1s;
}

.coffee-icon-1 .cream .choco .choco-item-2 {
  position: absolute;
  top: 35px;
  left: 43px;
  animation-delay: 0.8s;
}

.coffee-icon-1 .cream .choco .choco-item-3 {
  position: absolute;
  top: 40px;
  left: 24px;
  animation-delay: 1.2s;
}

.coffee-icon-1 .cream .choco .choco-item-4 {
  position: absolute;
  top: 51px;
  left: 12px;
  animation-delay: 2s;
}

.coffee-icon-1 .cream .choco .choco-item-5 {
  position: absolute;
  top: 51px;
  left: 50px;
  animation-delay: 2.4s;
}

/* Steam */

.steam {
  position: absolute;
  height: 150px;
  width: 150px;
  border-radius: 50%;
  background-color: var(--steam-color, #fff);
  margin-top: -20px;
  margin-left: 85px;
  z-index: 0;
  opacity: 0;
  display: block;
}

#steam-one {
  -webkit-animation: steam-one 4s ease-out infinite;
  animation: steam-one 4s ease-out infinite;
}

#steam-three {
  -webkit-animation: steam-one 4s ease-out 1s infinite;
  animation: steam-one 4s ease-out 1s infinite;
}

@-webkit-keyframes steam-one {
  0% {
    transform: translateY(0) translateX(0) scale(0.25);
    opacity: 0.4;
  }
  100% {
    transform: translateY(-200px) translateX(-20px) scale(1);
    opacity: 0;
  }
}

@keyframes steam-one {
  0% {
    transform: translateY(0) translateX(0) scale(0.25);
    opacity: 0.4;
  }
  100% {
    transform: translateY(-200px) translateX(-20px) scale(1);
    opacity: 0;
  }
}

#steam-two {
  -webkit-animation: steam-two 4s ease-out 0.5s infinite;
  animation: steam-two 4s ease-out 0.5s infinite;
}

#steam-four {
  -webkit-animation: steam-two 4s ease-out 1.5s infinite;
  animation: steam-two 4s ease-out 1.5s infinite;
}

@-webkit-keyframes steam-two {
  0% {
    transform: translateY(0) translateX(0) scale(0.25);
    opacity: 0.4;
  }
  100% {
    transform: translateY(-200px) translateX(20px) scale(1);
    opacity: 0;
  }
}

@keyframes steam-two {
  0% {
    transform: translateY(0) translateX(0) scale(0.25);
    opacity: 0.4;
  }
  100% {
    transform: translateY(-200px) translateX(20px) scale(1);
    opacity: 0;
  }
}

/* Coco Bars*/

@keyframes choco-bar-1 {
  0% {
    transform: rotate(15deg);
  }
  100% {
    transform: rotate(20deg);
  }
}

@keyframes choco-bar-2 {
  0% {
    transform: rotate(35deg);
  }
  100% {
    transform: rotate(30deg);
  }
}

.coffee-icon-1 .choco-bars {
  position: absolute;
  top: -20px;
  right: 50px;
  z-index: 0;
  height: 80px;
  width: 40px;
}

.coffee-icon-1 .choco-bars:before,
.coffee-icon-1 .choco-bars:after {
  content: " ";
  display: block;
  width: 15px;
  height: 100%;
  background-color: #9a5e32;
  border-radius: 30px;
}

.coffee-icon-1 .choco-bars:before {
  position: absolute;
  top: 0px;
  left: 0;
  transform: rotate(15deg);
  animation: choco-bar-1 1s linear 0s infinite alternate;
}

.coffee-icon-1 .choco-bars:after {
  position: absolute;
  top: 10px;
  right: 5px;
  transform: rotate(35deg);
  animation: choco-bar-2 1s linear 0s infinite alternate;
}


/* wp spesific */

label.dropdown select {
    font-size: 14px;
 }

.coffee-container {
  max-width: 320px;
}

.coffee-icon-1 .coffee-cup:before {
    width: 133px;
}

.coffee-icon-1 .coffee-cup .coffee .coffee-part-4 {
    width: 107px;
}

.coffee-icon-1 .coffee-cup .coffee .coffee-part-3 {
    width: 95px;
}

.coffee-icon-1 .coffee-cup .coffee .coffee-part-2 {
    width: 83px;
}

.coffee-icon-1 .coffee-cup .coffee .coffee-part-1 {
    width: 71px;
}
 
label.dropdown { display: inline !important; }

.coffee-icon-1 .cream .cream-part-3 {
    width: 64px;
}

.steam {
    margin-left: 70px;
}


.ingredients {
 /*   padding-right: 10px;*/
}