@tailwind base;
@tailwind components;
@tailwind utilities;

@font-face {
    font-family: 'josephine';
    src: url('../fonts/JosefinSans/JosefinSans-Bold.ttf');
    font-weight: bold;
}
@font-face {
    font-family: 'josephine';
    src: url('../fonts/JosefinSans/JosefinSans-Regular.ttf');

}
@font-face {
    font-family: 'josephine';
    src: url('../fonts/JosefinSans/JosefinSans-BoldItalic.ttf');
    font-weight: bold;
    font-style: italic;
}
@font-face {
    font-family: 'josephine';
    src: url('../fonts/JosefinSans/JosefinSans-Light.ttf');
    font-weight: lighter;

}

/*
  Based on TailwindCSS recommendations,
  consider using classes instead of the `@apply` directive
  @see https://tailwindcss.com/docs/reusing-styles#avoiding-premature-abstraction
*/
.menu {
  @apply fixed w-[300px] z-[100] overflow-hidden transition-transform duration-[0.6s] left-0 inset-y-[3em];

  -webkit-transform: translate3d(-150px, 0, 0);
  transform: translate3d(-150px, 0, 0);
  -webkit-transition: -webkit-transform 0.6s;
}
.menu.menu--open {
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
}
.main {
  @apply transition-opacity duration-[0.6s];
  -webkit-transition: opacity 0.6s;
}
.menu.menu--open + .main {
  @apply opacity-30 pointer-events-none;
}
.menu__inner {
  @apply w-[calc(100%_+_25px)] overflow-y-auto h-full relative z-[100] pl-0 pr-[140px] pt-0 pb-[.2em];
}
.menu ul {
  @apply m-0 p-0;
  list-style: none;
}
.menu ul li {
  @apply transition-transform duration-[0.6s] mt-0 mb-[2em] mx-0 first:delay-[0.3s];
  -webkit-transform: translate3d(-150px, 0, 0);
  transform: translate3d(-150px, 0, 0);
  -webkit-transition: -webkit-transform 0.6s;
}
.menu.menu--anim ul li {
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
}
.menu ul li:first-child {
  -webkit-transition-delay: 0.3s;
}
.menu ul li:nth-child(2) {
  @apply delay-[0.2s];
  -webkit-transition-delay: 0.2s;
}
.menu ul li:nth-child(3) {
  @apply delay-[0.1s];
  -webkit-transition-delay: 0.1s;
}
.menu ul li a {
  @apply block;
  outline: none;
}
.menu ul li .fa {
  @apply text-[2.5em] block text-[#5f656f] mx-auto my-0;
}
.menu ul li span {
  @apply font-[bold] text-[0.75em];
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.menu__handle {
  @apply w-[30px] h-6 absolute z-[2000] p-0 border-[none] right-[70px] top-[3px];
  background: rgba(226, 200, 114, 0.2);
  outline: none;
}
.menu__handle::before,
.menu__handle::after,
.menu__handle span {
  background: #86722e;
}
.menu__handle::before,
.menu__handle::after {
  @apply content-[''] absolute h-0.5 w-full origin-[50%_50%] transition-transform duration-[0.25s] left-0 top-2/4;
  -webkit-transform-origin: 50% 50%;
  -webkit-transition: -webkit-transform 0.25s;
}
.menu__handle span {
  @apply absolute w-full h-0.5 overflow-hidden indent-[200%] transition-opacity duration-[0.25s] left-0;
  -webkit-transition: opacity 0.25s;
}
.menu__handle::before {
  -webkit-transform: translate3d(0, -10px, 0);
  transform: translate3d(0, -10px, 0);
}
.menu__handle::after {
  -webkit-transform: translate3d(0, 10px, 0);
  transform: translate3d(0, 10px, 0);
}
.menu--open .menu__handle span {
  @apply opacity-0;
}
.menu--open .menu__handle::before {
  -webkit-transform: rotate3d(0, 0, 1, 45deg);
  transform: rotate3d(0, 0, 1, 45deg);
}
.menu--open .menu__handle::after {
  -webkit-transform: rotate3d(0, 0, 1, -45deg);
  transform: rotate3d(0, 0, 1, -45deg);
}
.morph-shape {
  @apply absolute w-60 h-full right-0 top-0;
}
.morph-shape svg path {
  @apply stroke-[#86722e] stroke-[5px];
}
@media screen and (max-width: 63em) {
  .main {
    @apply transition-opacity duration-[0.6s] px-[2em] py-0;
    -webkit-transition: opacity 0.6s;
  }
  .menu {
    -webkit-transform: translate3d(-170px, 0, 0);
    transform: translate3d(-170px, 0, 0);
  }
  .menu.menu--open + .main {
    @apply opacity-5;
  }
}

/*
  Based on TailwindCSS recommendations,
  consider using classes instead of the `@apply` directive
  @see https://tailwindcss.com/docs/reusing-styles#avoiding-premature-abstraction
*/
/* carousel */
.carousel1730553831864 {
  @apply h-screen mt-[-50px] w-screen overflow-hidden relative;
}
.carousel1730553831864 .list1730553831864 .item1730553831864 {
  @apply w-full h-full absolute inset-[0_0_0_0];
}
.carousel1730553831864 .list1730553831864 .item1730553831864 img {
  @apply w-full h-full object-cover;
}
.carousel1730553831864
  .list1730553831864
  .item1730553831864
  .content1730553831864 {
  @apply absolute w-[1140px] max-w-[80%] -translate-x-2/4 box-border text-white pr-[30%] left-2/4 top-[20%];
  text-shadow: 0 5px 10px #0004;
}
.carousel1730553831864
  .list1730553831864
  .item1730553831864
  .author1730553831864 {
  @apply font-[bold] tracking-[10px];
}
.carousel1730553831864
  .list1730553831864
  .item1730553831864
  .title1730553831864,
.carousel1730553831864
  .list1730553831864
  .item1730553831864
  .topic1730553831864 {
  @apply text-[5em] font-[bold] leading-[1.3em];
}
.carousel1730553831864
  .list1730553831864
  .item1730553831864
  .topic1730553831864 {
  @apply text-[#f1683a];
}
.carousel1730553831864
  .list1730553831864
  .item1730553831864
  .buttons1730553831864 {
  @apply grid grid-cols-[repeat(2,130px)] grid-rows-[40px] gap-[5px] mt-5;
}
.carousel1730553831864
  .list1730553831864
  .item1730553831864
  .buttons1730553831864
  button {
  @apply bg-[#eee] tracking-[3px] font-medium border-[none];
  font-family: Poppins;
}
.carousel1730553831864
  .list1730553831864
  .item1730553831864
  .buttons1730553831864
  button:nth-child(2) {
  @apply bg-transparent border text-[#eee] border-solid border-white;
}
/* thumbail */
.thumbnail1730553831864 {
  @apply absolute w-max z-[100] flex gap-5 left-2/4 bottom-[50px];
}
.thumbnail1730553831864 .item1730553831864 {
  @apply w-[150px] h-[220px] shrink-0 relative;
}
.thumbnail1730553831864 .item1730553831864 img {
  @apply w-full h-full object-cover rounded-[20px];
}
.thumbnail1730553831864 .item1730553831864 .content1730553831864 {
  @apply text-white absolute bottom-2.5 inset-x-2.5;
}
.thumbnail1730553831864
  .item1730553831864
  .content1730553831864
  .title1730553831864 {
  @apply font-medium;
}
.thumbnail1730553831864
  .item1730553831864
  .content1730553831864
  .des1730553831864cription {
  @apply font-light;
}
/* arrows */
.arrows1730553831864 {
  @apply absolute z-[100] w-[300px] max-w-[30%] flex gap-2.5 items-center right-[52%] top-[80%];
}
.arrows1730553831864 button {
  @apply w-10 h-10 bg-[#eee4] text-white font-[bold] transition-[0.5s] rounded-[50%] border-[none] hover:bg-white hover:text-black;
  font-family: monospace;
}

/* animation */
.carousel1730553831864 .list1730553831864 .item1730553831864:nth-child(1) {
  @apply z-[1];
}

/* animation text in first item */
.carousel1730553831864
  .list1730553831864
  .item1730553831864:nth-child(1)
  .content1730553831864
  .author1730553831864,
.carousel1730553831864
  .list1730553831864
  .item1730553831864:nth-child(1)
  .content1730553831864
  .title1730553831864,
.carousel1730553831864
  .list1730553831864
  .item1730553831864:nth-child(1)
  .content1730553831864
  .topic1730553831864,
.carousel1730553831864
  .list1730553831864
  .item1730553831864:nth-child(1)
  .content1730553831864
  .des1730553831864,
.carousel1730553831864
  .list1730553831864
  .item1730553831864:nth-child(1)
  .content1730553831864
  .buttons1730553831864 {
  @apply translate-y-[50px] blur-[20px] opacity-0 animate-[showContent_0.5s_1s_linear_1_forwards];
}
@keyframes showContent {
  to {
    @apply translate-y-0 blur-none opacity-100;
  }
}
.carousel1730553831864
  .list1730553831864
  .item1730553831864:nth-child(1)
  .content1730553831864
  .title1730553831864 {
  animation-delay: 1.2s !important;
}
.carousel1730553831864
  .list1730553831864
  .item1730553831864:nth-child(1)
  .content1730553831864
  .topic1730553831864 {
  animation-delay: 1.4s !important;
}
.carousel1730553831864
  .list1730553831864
  .item1730553831864:nth-child(1)
  .content1730553831864
  .des1730553831864 {
  animation-delay: 1.6s !important;
}
.carousel1730553831864
  .list1730553831864
  .item1730553831864:nth-child(1)
  .content1730553831864
  .buttons1730553831864 {
  animation-delay: 1.8s !important;
}
/* create animation when next click */
.carousel1730553831864.next
  .list1730553831864
  .item1730553831864:nth-child(1)
  img {
  @apply w-[150px] h-[220px] absolute animate-[showImage_0.5s_linear_1_forwards] rounded-[30px] left-2/4 bottom-[50px];
}
@keyframes showImage {
  to {
    @apply w-full h-full rounded-none left-0 bottom-0;
  }
}
.carousel1730553831864.next
  .thumbnail1730553831864
  .item1730553831864:nth-last-child(1) {
  @apply overflow-hidden animate-[showThumbnail_0.5s_linear_1_forwards];
}
.carousel1730553831864.prev .list1730553831864 .item1730553831864 img {
  @apply z-[100];
}
@keyframes showThumbnail {
  from {
    @apply w-0 opacity-0;
  }
}
.carousel1730553831864.next .thumbnail1730553831864 {
  @apply animate-[effectNext_0.5s_linear_1_forwards];
}
@keyframes effectNext {
  from {
    @apply translate-x-[150px];
  }
}

/* running time */
.carousel1730553831864 .time1730553831864 {
  @apply absolute z-[1000] w-[0%] h-[3px] bg-[#f1683a] left-0 top-0;
}
.carousel1730553831864.next .time1730553831864,
.carousel1730553831864.prev .time1730553831864 {
  @apply animate-[runningTime_3s_linear_1_forwards];
}
@keyframes runningTime {
  from {
    @apply w-full;
  }
  to {
    @apply w-0;
  }
}

/* prev click */
.carousel1730553831864.prev .list1730553831864 .item1730553831864:nth-child(2) {
  @apply z-[2];
}
.carousel1730553831864.prev
  .list1730553831864
  .item1730553831864:nth-child(2)
  img {
  @apply animate-[outFrame_0.5s_linear_1_forwards] absolute left-0 bottom-0;
}
@keyframes outFrame {
  to {
    @apply w-[150px] h-[220px] rounded-[20px] left-2/4 bottom-[50px];
  }
}
.carousel1730553831864.prev
  .thumbnail1730553831864
  .item1730553831864:nth-child(1) {
  @apply overflow-hidden opacity-0 animate-[showThumbnail_0.5s_linear_1_forwards];
}
.carousel1730553831864.next .arrows1730553831864 button,
.carousel1730553831864.prev .arrows1730553831864 button {
  @apply pointer-events-none;
}
.carousel1730553831864.prev
  .list1730553831864
  .item1730553831864:nth-child(2)
  .content1730553831864
  .author1730553831864,
.carousel1730553831864.prev
  .list1730553831864
  .item1730553831864:nth-child(2)
  .content1730553831864
  .title1730553831864,
.carousel1730553831864.prev
  .list1730553831864
  .item1730553831864:nth-child(2)
  .content1730553831864
  .topic1730553831864,
.carousel1730553831864.prev
  .list1730553831864
  .item1730553831864:nth-child(2)
  .content1730553831864
  .des1730553831864,
.carousel1730553831864.prev
  .list1730553831864
  .item1730553831864:nth-child(2)
  .content1730553831864
  .buttons1730553831864 {
  @apply animate-[contentOut_1.5s_linear_1_forwards];
}
@keyframes contentOut {
  to {
    @apply translate-y-[-150px] blur-[20px] opacity-0;
  }
}
@media screen and (max-width: 678px) {
  .carousel1730553831864
    .list1730553831864
    .item1730553831864
    .content1730553831864 {
    @apply pr-0;
  }
  .carousel1730553831864
    .list1730553831864
    .item1730553831864
    .content1730553831864
    .title1730553831864 {
    @apply text-3xl;
  }
}

