@import url("style.css");


.cursor p{
  font-size: 1em;
  text-align: center;
  font-family: "Manager";
}

/* --------------------------------- Parent Div--------------------------------- */
.sub-body3{
  position: fixed;
  width: 100%;
  height: 100%;
  background: #7CABF1;
  background: -webkit-radial-gradient(center, #7CABF1, #8AC5F7);
  background: -moz-radial-gradient(center, #7CABF1, #8AC5F7);
  background: radial-gradient(ellipse at center, #7CABF1, #8AC5F7);
  z-index: 1;
  
}

.title-d{
  position: absolute;
  bottom: 10%;
  left: 30px;
  font-family: 'Roboto', sans-serif;
  color: white;
  font-size: 3em;
  animation-duration: 1.5s;
  animation-name: slidein;
  animation-fill-mode: forwards;
  opacity: 0;
}

main{
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex ;
  justify-content: center;
  align-items: center;
  
}

.hover{
  pointer-events: none;
}

.line-title{
  width: 100px;
  height: 10px;
  background-color: white;
  position: absolute;
  left: 30px;
  bottom: 8%;
  animation-duration: 1s;
  animation-name: slidein;
  animation-fill-mode: forwards;
  opacity: 0;
  animation-delay: 1s;
}

@keyframes slidein {
  from {
    transform: translate3d(-650px,0,0)
  }

  to {
    transform: translate3d(0,0,0);
    opacity: 1
  }
}

.wrapper{
  width: 300px;
  height: 450px;
  position: relative;
  -ms-perspective: 800px;
  perspective: 800px;
}

.card {
  width: 100%;
  height: 100%;
  position: absolute;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border-radius: 30px;
  font-family: 'Roboto', sans-serif;
  transform: perspective(2000px)
}

.card .front, .card .back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  
}
.card .back {
  transform: rotateY(-180deg);
}
.card.flipped {
  transform: rotateY(-180deg);
}

.front .rank{
  position: absolute;
  width: 50%;
  top: -40px;
  left: -50px;
}

.front .img-bingsu{
  width: 50%;
}

.bingsu{
  background-color: rgb(244, 123, 123);
}

.front .img-bbtea{
  width: 120%;
}

.bbtea{
  background-color: burlywood;
}

.mango-rice{
  background-color: rgb(247, 181, 59);
}

.img-mango-rice{
  width: 70%;
}

.mochi{
  background-color: pink;
}

.img-mochi{
  width: 100%;
}

.taro{
  background-color: rgb(119, 77, 197);
}

.img-taro-ice{
  width: 60%;
}

.front .n-dessert{
  position: absolute;
  top: 40px;
  color: white;
}

.front .circle-bg{
  width: 200px;
  height: 200px;
  background: white;
  border-radius: 50%;
  position: absolute;
  top: 20%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.front .click-me{
  position: absolute;
  bottom: 50px;
  font-size: 1em;
  color: white;
}

.back .description{
  position: absolute;
  top: 20px;
  z-index: 5;
}

.back .d-infos{
  position: absolute;
  top: 50px;
  padding: 0 5%;
  font-size: 0.7em;
}

.exit{
  position: absolute;
  height: 50px;
  width: 50px;
  bottom: 10px;
  transition: all 0.5s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2em;
}

.exit:hover{
  transform: rotate(180deg);
}

.back-inner{
  width: 90%;
  height: 94%;
  border-radius: 20px;
  background: white;
  position: relative;
  overflow: scroll;
}


.card a{
  cursor: pointer;
  transition: all 0.5s ease-in-out;
}

.card a:hover{
  color: black;
  transform: scale(1.2);
}


/* --------------------------------- Slider --------------------------------- */
.glide{
  opacity: 0;
  animation: opacity 1s ease-in-out;
  animation-delay:2s ;
  animation-fill-mode: forwards;
}

@keyframes opacity {
  from {
    opacity: 0;
  }

  to {
    opacity: 1
  }
}

.glide__slides{
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;

}

.glide__slide{
  width: 70%;
  filter: blur(3px) grayscale(1);
  -webkit-filter: blur(3px) grayscale(1);
  transform: scale(1);
  transition: transform 800ms ease;
  cursor: pointer;
  display: flex;
  justify-content: center;
  padding: 0 38px;
}

.glide__slide--active{
  filter: none;
  transform: scale(1.2);
  transition: transform 800ms ease;
  cursor: pointer;
  -webkit-filter: blur(0) grayscale(0);
  filter: blur(0) grayscale(0);
  -webkit-transition: 1s ease-in-out;
  transition: 1s ease-in-out;
  z-index: 5;
}

@media only screen and (max-width: 1280px){
  .wrapper{
    transform: scale(0.8);
  }
}

@media only screen and (max-width: 834px){
  .wrapper{
    transform: scale(1.2);
  }
}

@media only screen and (max-width: 576px){
  .wrapper{
    transform: scale(0.8);
  }
}

@media only screen and (max-width: 375px){
  .wrapper{
    transform: scale(0.6);
  }
}