@import url('https://fonts.googleapis.com/css2?family=Pacifico&display=swap');
*{
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body{
  width: 100%;
  font-family: sans-serif;
  font-size: 18px;
    background: url(../img/pochemu-sushi.jpg) no-repeat #f3edf4;
    background-size: cover;

}
.home{
  text-align: center;
}
.on_menu{
  margin-top: 370px;
  display: flex;
  justify-content: space-around;
  align-content: space-around;
  flex-wrap: wrap;
}

.card, .hidden {
  width: 300px;
  height: 200px;
  margin-bottom: 20px;
  /* margin: 0 auto; */
  position: relative;/*относительное позиционирование родительского элемента,
  чтобы дочерние .product, .description располагать внутри card*/
  border: 1px solid #f5dde1;
  font-style: 0.7em;
}
.card .description h2{
  font-size: 1.2em;
  color:#8c247a;
  font-family: 'Pacifico', cursive;
}
.card .description p{
    font-size: 0.8em;
    margin-bottom: 0;
}
.product, .description {
  width: 100%;/*ширина 100% родителя*/
  height: 100%;/*высота 100% родителя*/
    border-radius: 10px;
  position: absolute;/*абсолютное позиционирование элементов внутри родителя с классом card*/
  left: 0;/*координата позиционирвоания слева 0px*/
  top: 0;/*координата позиционирвоания сверху 0px*/
  text-align:center;
  backface-visibility: hidden;/*скрывает обратную сторону во время переворота*/
  background-color: #fff;
  transition: 1s;
 }

.button1{
  /* display:inline-block; */
  /* padding: 10px 30px; */
  margin-top:8px;
  /* width: auto; */
  font-size: 0.7em;
  /* text-decoration:none; */
  text-transform:uppercase;
  /* color:#fff; */
  /* background-color: #f5dde1; */
}
.description {
  box-sizing:border-box;
  padding:10px;
  transform: rotateY(180deg); /*поврот блока с описание на 180 град, прячем в начальном состоянии, без наведения курсора мыши*/
}
.card:hover .product {
  transform: rotateY(180deg); /*разворачиваем блок с изображением на 180 градусов*/
}
.card:hover .description {
  transform: rotateY(360deg); /*возвразщаем блок с описанием*/
}
.product img{
  width: 100%;
  height: 100%;
}
.hidden .description {
   display: none;
}
.hidden:hover .product, {
     transform:none;
}
.hidden:hover .description{
    transform: none;
}
.hidden{
  filter: contrast(50%);
}
/* .container{
  width: 70%;
} */

/* Слайдер */
.mySlides {display: none}
img {vertical-align: middle;}

/* Slideshow container */
.slideshow-container {
  max-width: 800px;
  position: relative;
  margin: auto;
}

/* Next & previous buttons */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -22px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  text-decoration: none;
}


/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover, .next:hover {
  background-color: rgba(171, 208, 159, 0.69);
}

/* Caption text */
.text {
  color: #000;
  background-color: rgba(171, 208, 159, 0.69);
  font-size: 18px;
  padding: 8px 12px;
  position: absolute;
  bottom: 8px;
  width: 100%;
  text-align: center;
}

/* Number text (1/3 etc) */
.numbertext {
  color: #000;
  font-size: 18px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

/* The dots/bullets/indicators */
.dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.activ, .dot:hover {
  background-color: #a4655f;
}

/* Fading animation */
.fade {
  -webkit-animation-name: fade;
  -webkit-animation-duration: 1.5s;
  animation-name: fade;
  animation-duration: 1.5s;
}

@-webkit-keyframes fade {
  from {opacity: .4}
  to {opacity: 1}
}

@keyframes fade {
  from {opacity: .4}
  to {opacity: 1}
}

/* On smaller screens, decrease text size */
@media only screen and (max-width: 300px) {
  .prev, .next,.text {font-size: 11px}
}


@media screen and (max-width:735px) {
  .container{
    width: 100%;
}
