@import url("https://fonts.googleapis.com/css?family=Lato:300,400|Poppins:300,400,800&display=swap");

body {
  font-family: "Poppins";
  background-color: #edece8;
}

* {
  margin: 0;
  padding: 0;
  animation: fadeIn 1.5s ease-in-out;
}

.container {
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #edece8;
  position: relative;

  .box {
    width: 0%;
    height: 620px;
    background: #fff;
    position: absolute;
    animation: openBox 1s cubic-bezier(0.74, 0.06, 0.4, 0.92) forwards;

    .product__img {
      width: 600px;
      position: absolute;
      left: 50px;
      top: 50px;
      opacity: 0;
      animation: fadeImg 1s ease-in-out forwards;
      animation-delay: 1s;
    }
    .product__video {
      width: 320px;
      height: 100px;
      position: absolute;
      left: 50px;
      bottom: 50px;

      .video {
        display: flex;
        align-items: center;
        position: absolute;
        bottom: 0px;
        opacity: 0;
        animation: upVideo 1s cubic-bezier(0.74, 0.06, 0.4, 0.92) forwards;
        animation-delay: 1.2s;

        i {
          width: 70px;
          height: 70px;
          display: flex;
          justify-content: center;
          align-items: center;
          font-size: 12px;
          color: #f71568;
          border: 2px solid #f71568;
          -webkit-border-radius: 50%;
          -moz-border-radius: 50%;
          border-radius: 50%;
          transition: ease-in-out 220ms;
          cursor: pointer;

          &:hover {
            background: #f71568;
            color: #fff;
            box-shadow: 0 0 26px #f71568;
          }
        }
        p {
          margin-left: 25px;
          font-family: "Poppins";
        }
      }
    }

    .product__disc {
      width: 0px;
      height: 430px;
      background: #ffca1b;
      display: flex;
      align-items: center;
      justify-content: center;
      position: absolute;
      left: 0px;
      top: 50px;
      animation: showDisc 1s cubic-bezier(0.74, 0.06, 0.4, 0.92) forwards;

      .product__disc--content {
        width: 80%;
        height: 80%;
        display: flex;
        justify-content: space-between;
        flex-direction: column;
        animation: fadeContent 1s ease-in-out forwards;
        animation-delay: 1s;
        opacity: 0;

        .disc__content--about {
          width: 100%;

          h1 {
            font-size: 32px;
            font-family: "Poppins";
          }

          span {
            font-family: "Lato";
            font-size: 14px;
            letter-spacing: 2px;
            text-transform: uppercase;
            display: flex;
            opacity: 0.5;
          }

          p {
            margin-top: 35px;
            font-size: 14px;
            font-family: "Poppins";
          }
        }

        .product__view--more {
          width: 100%;
          display: flex;
          align-items: center;
          position: relative;
          cursor: pointer;

          &:hover {
            .view__more--block {
              width: 220px;
              height: 35px;
            }
          }

          .view__more--block {
            width: 10px;
            height: 15px;
            position: absolute;
            background: #f6f6f6;
            z-index: 1;
            transition: cubic-bezier(0.68, -0.55, 0.27, 01.55) 320ms;
          }

          p {
            font-size: 12px;
            text-transform: uppercase;
            letter-spacing: 2px;
            display: flex;
            z-index: 2;
            margin-left: 15px;
            font-family: "Poppins";
          }
        }
      }
    }

    .product_buttons {
      width: 500px;
      height: 100px;
      bottom: 50px;
      right: -50px;
      position: absolute;

      .btn {
        width: 240px;
        height: 70%;
        font-size: 16px;
        font-weight: bold;
        font-family: "Poppins";
        -webkit-transition: ease-in-out 220ms;
        -moz-transition: ease-in-out 220ms;
        -ms-transition: ease-in-out 220ms;
        -o-transition: ease-in-out 220ms;
        transition: ease-in-out 220ms;
        cursor: pointer;
      }

      .wishlist {
        border: 2px solid #f71568;
        background: transparent;
        color: #f71568;
        position: absolute;
        bottom: -25px;
        left: 0;
        opacity: 0;
        animation: fadeWish 1s cubic-bezier(0.74, 0.06, 0.4, 0.92) forwards;
        animation-delay: 1s;

        &:hover {
          background: #f71568;
          color: #fff;
          box-shadow: 0 0 26px #f71568;
        }
      }

      .buy {
        border: none;
        background: #f71568;
        color: #fff;
        position: absolute;
        right: 0;
        bottom: 0;
        opacity: 0;
        animation: fadeBuy 1s cubic-bezier(0.74, 0.06, 0.4, 0.92) forwards;
        animation-delay: 1s;

        &:hover {
          box-shadow: 0 0 26px #f71568;
        }
      }
    }
  }
}

/*
  keyframes
 */

@keyframes openBox {
  0% {
    width: 0px;
    left: 15%;
  }

  100% {
    width: 900px;
    left: 15%;
  }
}

@keyframes fadeImg {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes upVideo {
  0% {
    opacity: 0;
    bottom: -20px;
  }

  100% {
    opacity: 1;
    bottom: 0px;
  }
}

@keyframes showDisc {
  0% {
    width: 0px;
    left: 450px;
  }

  100% {
    width: 500px;
    left: 450px;
  }
}

@keyframes fadeContent {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes fadeWish {
  0% {
    opacity: 0;
    bottom: -25px;
  }

  100% {
    opacity: 1;
    bottom: 0;
  }
}

@keyframes fadeBuy {
  0% {
    opacity: 0;
    bottom: -25px;
  }

  100% {
    opacity: 1;
    bottom: 0;
  }
}

.side-menu {
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 1;
  top: 0;
  right: 0;
  background-color: #edece8;
  /* Change background color */
  color: black;
  /* Change text color */
  overflow-x: hidden;
  border: 1px solid black;
  /* Add black border */
  transition: 0.5s;
  padding-top: 60px;
  animation: fadeIn 1.5s ease-in-out;
}

.side-menu a {
  padding: 10px 15px;
  text-decoration: none;
  font-size: 25px;
  color: #818181;
  display: block;
  transition: 0.3s;
}

.side-menu a:hover {
  color: black;
}

.side-menu .closebtn {
  position: absolute;
  top: 0;
  right: 25px;
  font-size: 36px;
  margin-left: 50px;
  color: black;
  /* Change X button color */
}

.navbar {
  overflow: hidden;
  background-color: #edece8;
  font-family: "Poppins", sans-serif;
  /* Change font to Poppins */
  padding-top: 4px;
}

.navbar a {
  float: left;
  font-size: 16px;
  color: black;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
}

.navbar a:hover {
  background-color: #ffffff;
  border-radius: 15px;
}

button {
  position: relative;
  float: right;
  /* Change position to float left */
  margin-left: 10px;
  /* Add margin-left */
  display: inline-block;
  cursor: pointer;
  outline: none;
  border: 0;
  vertical-align: middle;
  text-decoration: none;
  background: transparent;
  padding: 0;
  font-size: inherit;
  font-family: inherit;
}

button.learn-more {
  width: 12rem;
  height: auto;
}

button.learn-more .circle {
  transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
  position: relative;
  display: block;
  margin: 0;
  width: 3rem;
  height: 3rem;
  background: #282936;
  border-radius: 1.625rem;
}

button.learn-more .circle .icon {
  transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
  position: absolute;
  top: 0;
  bottom: 0;
  margin: auto;
  background: #fff;
}

button.learn-more .circle .icon.arrow {
  transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
  left: 0.625rem;
  width: 1.125rem;
  height: 0.125rem;
  background: none;
}

button.learn-more .circle .icon.arrow::before {
  position: absolute;
  content: "";
  top: -0.29rem;
  right: 0.0625rem;
  width: 0.625rem;
  height: 0.625rem;
  border-top: 0.125rem solid #fff;
  border-right: 0.125rem solid #fff;
  transform: rotate(45deg);
}

button.learn-more .button-text {
  transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.75rem 0;
  margin: 0 0 0 1.85rem;
  color: #282936;
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
  text-transform: uppercase;
}

button:hover .circle {
  width: 100%;
}

button:hover .circle .icon.arrow {
  background: #fff;
  transform: translate(1rem, 0);
}

button:hover .button-text {
  color: #fff;
}

.search {
  position: relative;
  float: right;
  padding-top: 7px;
  margin-right: 10px;
  /* Add margin-right */
  justify-content: space-between;
  text-align: center;
}

.search__input {
  font-family: inherit;
  font-size: inherit;
  background-color: #f4f2f2;
  border: none;
  color: #282936;
  padding: 0.7rem 1rem;
  border-radius: 30px;
  width: 12em;
  animation: fadeIn 1.5s ease-in-out;
}

.search__button {
  border: none;
  background-color: #f4f2f2;
  margin: 0;
  /* Changed margin-top to margin */
  animation: fadeIn 1.5s ease-in-out;
}

.boxes-container {
  position: absolute;
  right: 0;
  top: 58%;
  transform: translateY(-50%);
  width: 580px;
  height: fit-content;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  padding: 20px;
  opacity: 0; /* Start with opacity 0 */
  animation: fadeInAndSlide 1.5s cubic-bezier(0.68, -0.55, 0.27, 1.55) forwards; /* Add animation */
}

@keyframes fadeInAndSlide {
  0% {
    transform: translateY(-50%) scale(0.5); /* Initial state: scaled down and translated up */
    opacity: 0; /* Initial opacity */
  }
  50% {
    opacity: 0.5; /* Gradually increase opacity */
  }
  100% {
    transform: translateY(-50%) scale(1); /* Final state: regular size and position */
    opacity: 1; /* Fully visible */
  }
}

.fox {
  width: calc(100% - 40px);
  max-width: 100%;
  height: 150px;
  background: #ffffff;
  border-radius: 15px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 50px;
  padding: 20px;
  transition: transform 0.3s ease;
}

.fox:hover {
  transform: scale(1.05);
}

.fox h3 {
  margin-bottom: 10px;
  font-size: 18px;
}

.fox p {
  font-size: 14px;
  margin-bottom: 20px;
}

.fox button {
  background-color: #f71568;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s ease;
}

.fox button:hover {
  background-color: #d60c59;
}
