.ltr-text {
  direction: ltr !important;
  text-align: left !important;
}

.rtl-text {
  direction: rtl !important;
  text-align: right !important;
}

.translate-button {
    position: fixed;
    bottom: 16px;
    left: 14px;
    z-index: 9999;
    padding-top: 10px;
    padding-bottom: 10px;
    background-color: #0085fe;
    color: #fff;
    border: 2px solid #fff;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 800;
    transition: 150ms ease-in-out;
    font-family: 'ray';
    cursor: pointer;
    transition: 0.3s ease;
    animation: fadeIn  1s ease-in-out;
    animation-delay: 1s; 
    animation-fill-mode: backwards;
}
 @keyframes fadeIn {
    from { 
        opacity: 0;
     }
    to { 
        opacity: 1; 
    }
}
 
.translate-button svg {
    width: 20px;
    height: 20px;
    margin-left: 15px;
    vertical-align: middle;
    transition: 150ms ease-in-out;
}

.translate-button span {
    margin-right: 15px;
}

.translate-button:hover {
    transform: scale(1.01);
    color: #0085fe;
    background-color: #bfeeff;
}

.home-card-box {
    display: flex;
    justify-content: center;
    align-items: flex-start;   
}

.home-card {
    background-color: #0085fe;
    color: white;
    padding: 20px; 
    border-radius: 25px;
    text-align: center; 
    width: 90%; 
    max-width: 1200px; 
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}

#gallery  {
    position: relative;
    width: 100%;
    max-width: 250px;
    height: 350px;
    overflow: hidden;
    border-radius: 20px;
    margin-top: 10px;
    margin-bottom: 35px;
    align-self: center;
    transition: 0.3s ease;
    animation: fadezoomIn  1s ease-in-out;
}
 @keyframes fadezoomIn {
    from { 
        transform: scale(0.5);
        opacity: 0;
     }
    to { 
        transform: scale(1);
        opacity: 1; 
    }
}
 
#gallery:hover {
    transform: scale(1.02);
    margin-top: 20px;
}

.slide {
      position: absolute;
      top: 0; left: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      opacity: 0;
      transition: opacity 0.5s ease;
      z-index: 0;
    }

.slide.active {
      opacity: 1;
      z-index: 1;

    }

button {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      font-size: 1rem;
      background: rgba(0, 0, 0, 0);
      color: #ffffff7c;
      
      border: none;
      padding: 10px;
      cursor: pointer;
      z-index: 2;
    }
    #prev { left: 0px; }
    #next { right: 0px; }

h1 {
    line-height: 1.5;
    margin-top: 0;
    font-size: 5em;
    font-family: 'nian';
    font-weight: 800;
    margin-bottom: 35px;
    animation: slideInRight 0.9s ease-in-out;
    animation-delay: 0.3s;
    animation-fill-mode: backwards;
}
@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

h2 {
    line-height: 1.5;
    font-size: 3em;
    font-family: 'nian';
    font-weight: 600;
    margin-top: 0px;
    margin-bottom: 20px;
    animation: slideInLeft 0.9s ease-in-out;
    animation-delay: 0.9s;
    animation-fill-mode: backwards;
}
@keyframes slideInLeft {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

h3 {
    line-height: 2;
    font-family: 'ray';
    font-weight: 400;
    font-size: 20px; 
    text-align: right; 
    padding-left: 80px;
    padding-right: 80px;
    margin-top: 0px;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease-out;
    animation-delay: 1s;
    animation-fill-mode: backwards;
}
@keyframes fadeInUp {
    from { 
        opacity: 0;
        transform: translatey(100%);
     } 
    to {
         opacity: 1;
         transform: translatey(0%);
        } 
  }

.button-1 {
    font-family: 'ray';
    font-weight: 800;
    background-color: white;
    color: #007bff;
    border: none;
    padding: 10px 25px; 
    border-radius: 100px;
    text-decoration: none;
    margin: 15px;
    cursor: pointer;
    font-size: 24px;
    transition: 0.3s ease;
    animation: fadeIn 1s ease-in-out;
    animation-delay: 1.3s;
    animation-fill-mode: backwards;
}
@keyframes fadeIn {
    from { opacity: 0; } 
    to { opacity: 1; } 
  }

.button-1:hover {
    background-color: #bfeeff;
    transform: scale(1.1);
    margin: 25px;
}

.button-2 {
    font-family: 'ray';
    font-weight: 800;
    background-color: white;
    color: #007bff;
    border: none;
    padding: 10px 25px; 
    border-radius: 100px;
    text-decoration: none;
    margin: 15px;
    cursor: pointer;
    font-size: 24px;
    transition: 0.3s ease;
    animation: fadeIn 1s ease-in-out;
    animation-delay: 1.3s;
    animation-fill-mode: backwards;
}
@keyframes fadeIn {
    from { opacity: 0; } 
    to { opacity: 1; } 
  }

.button-2:hover {
    background-color: #bfeeff;
    transform: scale(1.1);
    margin: 25px;
}

.video-box {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background-color: #0085fe;
    padding-top: 50px;
    padding-bottom: 50px;
    margin-top: 25px; 
}

.video-container {
    position: relative;
    width: 640px; 
    height: 360px; 
    border-radius: 25px;
    overflow: hidden;
    transition: 0.3s ease-in-out;
  }
.video-container:hover {
    transform: scale(1.02);
}

.video-container video {
    width: 100%;
    height: 100%; 
    object-fit: cover; 
  }

  
  .video-container img {
    position: absolue;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; 
    opacity: 1; 
    transition: opacity 0.3s ease-in-out; 
  }
  
  .video-container video:playing + img {
    opacity: 0; 
  }
  
.video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #0085fe;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

@media (max-width: 768px) {
    h1 {
        font-size: 4em;
    }
    h2 {
        font-size: 2.5em;
    } 
    h3 {
        font-size: 18px;
        padding-left: 30px;
        padding-right: 30px;
    }   
    .home-card {
        padding: 15px;    
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2.7em;
        line-height: 0.8;
        text-align: center;
    }
    h2 {
        font-size: 2em;
    } 
    h3 {
        font-size: 18px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .button-1 {
        font-size: 18px;
        padding: 10px 20px;
    }
    .video-container {
        width: 350px; 
        height: 200px; 
        border-radius: 25px;
        overflow: hidden;
    }
    .video-box {
        padding-top: 50px;
        padding-bottom: 50px;
        padding-left: 15px;
        padding-right: 15px;
    }
    #gallery{
        margin-bottom: 45px;
    }
}
@media (max-width: 320px) {
    h1 {
        font-size: 2.4em;
        margin-bottom: 35px;
    }
    h2 {
        font-size: 1.7em;
    }
    h3 {
        font-size: 16px;
    }
    .video-container {
        width: 640px; 
        height: 180px;
    }
    #gallery{
        width: 95%;
    }
}