/*html,
body {
  width: 100%;
  height: 100%;
}*/
/*body {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  font-size: 1.5;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  background: #da513d;
  font-family: Lato, sans-serif;
}*/
.btn {
  display: block;
  padding: 1em 2em;
  background: transparent;
  outline: 0;
  text-transform: uppercase;
  cursor: pointer;
  -webkit-transition: 0.3s ease;
  transition: 0.3s ease;
  -webkit-appearance: none;
}
.btn:hover .recipes_text{
  background: #ff3636;
  z-index: 500;
}
.modal {
  overflow: scroll;
  z-index: 501;
  opacity: 0;
  visibility: hidden;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  -webkit-transition: 0.3s ease-in-out;
  transition: 0.3s ease-in-out;
}
.modal__box {
  padding: 1em;
  background: #fff;
  box-shadow: 0 0 10px 0 rgba(0,0,0,0.2);
  text-align: center;
  -webkit-transition: -webkit-all 0.3s -webkit-cubic-bezier(0.2, 0.9, 0.3, 1.5);
  -webkit-transition: all 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.5);
  transition: all 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.5);
  -webkit-transform: -webkit-rotate(5deg) -webkit-translate(-1em, 1em);
  -webkit-transform: rotate(5deg) translate(-1em, 1em);
          transform: rotate(5deg) translate(-1em, 1em);
  border-top: 5px solid #da513d;
  border-bottom: 5px solid #ddd;
  width: 75%;
  display: flex;
  flex-wrap: wrap;
}

.modal__box div {
  font-size: 14px;
  width: 50%;
  text-align: left;
}

.modal__box .recipes_photo{
  width: 310px;
  height: 310px;
  margin: 0 20px 15px 0;
}

.modal__box .recipes{
  /*padding-top: 15px;*/
  width: 100%;
  line-height: 1;
}

.few_ing .ingredients{
  display: flex;
}


/* modal magic */
.bt1:focus + .modal {
  opacity: 1;
  visibility: visible;
}
.bt1:focus + .modal .modal__box {
  -webkit-transform: -webkit-rotate(0deg) -webkit-translate(0, 0);
  -webkit-transform: rotate(0deg) translate(0, 0);
          transform: rotate(0deg) translate(0, 0);
}

@media (max-width: 980px) {

.modal__box .recipes_photo{
  width: 220px;
  height: 220px;
 }
.modal__box{
  width: 96%;
  justify-content: center;
}
.modal__box div, {
  width: 100%;
  font-size: 12px;
  
}

.modal__box li {
  line-height: 1;
  padding: 0 0 3px 0;
}

}

@media (max-width: 660px) {
  
  .modal__box .recipes_photo{
    display: none;
  }
  .modal__box div{
  width: 100%;
  font-size: 11px;
  line-height: 0.9;
}
}
