* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }




  @font-face {
    font-family: 'AppleGaramond';
    src: url('AppleGaramond.ttf');
}

@font-face {
  font-family: 'Didot';
  src: url('Didot.otf');
}

@font-face {
  font-family: 'godf';
  src: url('./godf.ttf');
}



@font-face {
  font-family: 'futur';
  src: url('./futura.ttf') format('truetype');
}

@font-face {
  font-family: 'yasashii';
  src: url('./yasashii.ttf');
}




  .slideshow-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
  }

  .slide {
    position: absolute;
    width: 100%;
    height: 100%;
    transform: translateX(100%);
    transition: transform 0.7s ease-in-out;
    display: flex;
    /* justify-content: center;
    align-items: center; */
  }

  .slide.active {
    transform: translateX(0);
    z-index: 2;
  }

  .slide.previous {
    transform: translateX(-100%);
    z-index: 1;
  }

  .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .slide-text {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 24px;
    text-align: center;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 5px;
    max-width: 80%;
    z-index: 3;
    /* Add text animation */
    opacity: 0;
    transition: opacity 0.5s ease-in-out 0.3s;
  }

  .slide.active .slide-text {
    opacity: 1;
  }

  .nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 15px 25px;
    cursor: pointer;
    border: none;
    font-size: 18px;
    transition: all 0.3s;
    z-index: 10;
    border-radius: 50px;
    /* Add subtle shadow */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  }

  .nav-button:hover {
    background-color: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
  }

  #prev {
    left: 20px;
  }

  #next {
    right: 20px;
  }

  /* Add progress dots */
  .dots-container {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
  }

  .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
  }

  .dot.active {
    background-color: white;
    transform: scale(1.2);
  }




  .slide-text1 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%);
    color:aliceblue;
    font-size: 40px;
    text-align: center;
    padding: 20px;
    /* background-color: rgba(0, 0, 0, 0.1); */
    border-radius: 5px;
    max-width: 80%;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.5s ease-in-out 0.3s;
    font-family: 'yasashii';
  }

  .slide.active .slide-text1 {
    opacity: 1;
  }



  .slide-text2 {
    font-family: 'futur';
    position: absolute;
    width: 100%; /* Add this to span full width */
    color: aliceblue;
    /* height: 50px; */
    font-size: 24px;
    /* padding: 20px; */
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.5s ease-in-out 0.3s;
    display: flex; /* Add this */
    justify-content: space-between; /* Add this */
    max-width: 100%; /* Change this from 80% */
    top: 30%;
}

  .slide.active .slide-text2 {
    opacity: 1;
  }

  .rightt {
    font-family: 'futur';
    width: 90px;
    margin-right: 150px;
    color: orange;
    position: absolute; /* Added to enable positioning */
    right: 0; /* Push all the way to the right */
  }

  .leftt {
    font-family: 'futur';
    width: 90px;
    color: orange;
    margin-left: 100px ;
    position: absolute; /* Added to enable positioning */
    left: 0; /* Push all the way to the left */
  }




  .slide-text3 {
    font-family: 'futur';
    position: absolute;
    width: 100%; /* Add this to span full width */
    color:lightgrey;
    font-size: 24px;
    border-radius: 5px;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.5s ease-in-out 0.3s;
    display: flex; /* Add this */
    max-width: 100%; /* Change this from 80% */
    top: 30%;
    display: block;
    margin-left: 20px;
}

  .slide.active .slide-text3 {
    opacity: 1;
  }






  .slide-text4 {
    font-family: 'godf';
    position: absolute;
    width: 500px; /* Add this to span full width */
    color: wheat;
    font-size: 50px;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.5s ease-in-out 0.3s;
    display: flex; /* Add this */
    max-width: 100%; /* Change this from 80% */
    top: 30%;
    display: block;
    /* left: 10px; */
    right: 50px;
  }

  .slide.active .slide-text4 {
    opacity: 1;
  }


  
  .slide-text5 {
    font-family: 'Didot';
    position: absolute;
    width: 900px; /* Add this to span full width */
    color:slategrey;
    font-size: 50px;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.5s ease-in-out 0.3s;
    display: flex; /* Add this */
    max-width: 100%; /* Change this from 80% */
    top: 600px;
    display: block;
    left: 290px;
  }

  .slide.active .slide-text5 {
    opacity: 1;
  }


    
  .slide-text6 {
    font-family: 'AppleGaramond';
    position: absolute;
    width: 500px; /* Add this to span full width */
    color:darkolivegreen;
    font-size: 40px;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.5s ease-in-out 0.3s;
    display: flex; /* Add this */
    max-width: 100%; /* Change this from 80% */
    top: 20px;
    display: block;
    left: 50px;
  }

  .slide.active .slide-text6 {
    opacity: 1;
  }


  .slide-text7 {
    font-family: 'AppleGaramond';
    position: absolute;
    width: 500px; /* Add this to span full width */
    color:aliceblue;
    font-size: 40px;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.5s ease-in-out 0.3s;
    display: flex; /* Add this */
    max-width: 100%; /* Change this from 80% */
    top: 400px;
    display: block;
    left: 650px;
  }

  .slide.active .slide-text7 {
    opacity: 1;
  }

  .custom-link {
    color: inherit;           /* Inherits the parent element's color */
    text-decoration: none;    /* Removes the underline */
  }



  .slide-text8 {
    font-family: 'AppleGaramond';
    position: absolute;
    width: 500px; /* Add this to span full width */
    color:rgb(17, 68, 17);
    font-size: 40px;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.5s ease-in-out 0.3s;
    display: flex; /* Add this */
    max-width: 100%; /* Change this from 80% */
    top: 300px;
    display: block;
    left: 920px;
  }

  .slide.active .slide-text8 {
    opacity: 1;
  }




  /* Existing styles remain the same until media queries */
/* ... (all your existing CSS) ... */

/* Mobile-specific styles */
@media screen and (max-width: 768px) {
  .slide-text1 {
    font-size: 24px;
    max-width: 90%;
    padding: 10px;
  }

  .slide-text2 {
    font-size: 18px;
    top: 25%;
  }

  .rightt {
    margin-right: 20px;
    width: 70px;
  }

  .leftt {
    margin-left: 20px;
    width: 70px;
  }

  .slide-text3 {
    font-size: 18px;
    margin-left: 10px;
  }

  .slide-text4 {
    width: 300px;
    font-size: 32px;
    right: 20px;
    top: 40%;
  }

  .slide-text5 {
    width: 100%;
    font-size: 32px;
    left: 0px;
    padding: 0 20px;
    top: 500px;
    text-align: center;
  }

  .slide-text6 {
    width: 300px;
    font-size: 28px;
    position: absolute;
  }

  .slide-text7 {
    width: 300px;
    font-size: 28px;
    left: 20px;
    top: 350px;
  }

  .slide-text8 {
    width: 300px;
    font-size: 28px;
    left: 20px;
    top: 250px;
  }

  .nav-button {
    padding: 10px 15px;
    font-size: 16px;
  }

  #prev {
    left: 10px;
  }

  #next {
    right: 10px;
  }

  .dots-container {
    bottom: 10px;
  }

  .dot {
    width: 8px;
    height: 8px;
  }
}

/* Small mobile devices */
@media screen and (max-width: 480px) {
  .slide-text1 {
    font-size: 20px;
  }

  .slide-text2,
  .slide-text3 {
    font-size: 16px;
  }

  .slide-text4,
  .slide-text5 {
    font-size: 28px;
  }

  .slide-text6,
  .slide-text7,
  .slide-text8 {
    font-size: 24px;
    width: 250px;
  }

  .nav-button {
    padding: 8px 12px;
    font-size: 14px;
  }
}

/* Handle landscape orientation */
@media screen and (max-height: 480px) and (orientation: landscape) {
  .slide-text1,
  .slide-text2,
  .slide-text3,
  .slide-text4,
  .slide-text5,
  .slide-text6,
  .slide-text7,
  .slide-text8 {
    transform: scale(0.8);
  }

  .slide-text5 {
    top: 400px;
  }

  .slide-text7 {
    top: 300px;
  }
}
