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

html, body {
  font-family: 'Arial', sans-serif;
  direction: rtl;
  overflow-x: hidden;
}

header {
  border-radius: 10px;
  background-color: #fff;
  padding: 20px 30px;
  position: relative;
  box-shadow: 0px 2px 2px rgba(71, 71, 71, 0.5);
  margin-top: 30px;
  margin-bottom: -20px;
  transform: translateY(-25px);
}

.header-cont {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.logo img {
  width: 350px;
  height: 80px;
}

.ticket {
  background: linear-gradient(to left, #cdb892, #f3e7d3);
  padding: 15px 30px;
  font-size: 24px;
  font-weight: 600;
  border-radius: 30px;
  cursor: pointer;
  color: #3b2f2f;
  box-shadow: 2px 5px 5px rgba(71, 71, 71, 0.5);
}

.ticket:hover {
  transform: translateY(-2px);
  box-shadow: 0px 8px 15px rgba(180, 150, 100, 0.25);
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 10px 20px;
  z-index: 2;
  position: relative;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 50px;
  padding: 10px;
}

nav ul li a {
  text-decoration: none;
  color: white;
  font-weight: bold;
}

.switch-lang {
  color: #fff;
  padding-left: 100px;
  font-weight: bold;
}

main {
  background-image: url("../image/logo.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
  padding-top: 20px;
}

.background-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.overlay {
  color: white;
  padding: 30px;
  border-radius: 20px;
  max-width: 40%;
  position: absolute;
  top: 30%;
  right: 0;
  transform: translateY(-50%);
  z-index: 4;
}

.overlay h1,
.overlay h2,
.overlay h3 {
  font-family: 'Cairo', sans-serif;
  font-size: 28px;
  font-weight: bold;
  color: #fff;
  text-align: right;
  margin: 15px 0;
  white-space: normal;
  text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
}

.sidebar {
  position: absolute;
  top: 250px;
  left: 100px;
  display: flex;
  flex-direction: column;
  background-color: #faefec;
  padding: 10px;
  border-radius: 30px;
  align-items: center;
  gap: 30px;
  z-index: 3;
}

.sidebar img {
  width: 70px;
  height: 70px;
}

.banner-slider {
  width: 100%;
  overflow: hidden;
  position: relative;
  margin-top: 5px;
  background-color: #ffcb88;
  padding: 10px 0;
  direction: rtl;
}

.banner-slider .slides {
  display: flex;
  width: fit-content;
  animation: slideBanner 10s linear infinite;
}

.banner-slider .slides img {
  width: 100%;
  height: 75px;
  margin-right: 20px;
  flex-shrink: 0;
  object-fit: contain;
}

@keyframes slideBanner {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-450%);
  }
}

@media (max-width: 1024px) {
  .overlay {
    max-width: 60%;
    padding: 20px;
  }

  .ticket {
    font-size: 20px;
  }

  .switch-lang {
    padding-left: 40px;
  }

  nav ul {
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .header-cont {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .ticket {
    align-self: flex-start;
  }

  .top-bar {
    gap: 10px;
  }

  .overlay {
    position: relative;
    transform: none;
    max-width: 100%;
    padding: 20px;
    margin: 20px 0;
  }

  .sidebar {
    position: static;
    flex-direction: row;
    justify-content: center;
    width: 100%;
    margin-top: 20px;
    border-radius: 20px;
  }

  .sidebar img {
    width: 50px;
    height: 50px;
  }

  .banner-slider {
    order: 3;
  }
}

@media (max-width: 480px) {
    .header{
        margin-top: 70px;
        padding: 10px 30px;
    }
  .ticket {
    display: block;
    margin: 10px 117px;
    text-align: center;
    font-size: 18px;
    padding: 15px 25px;
  }

  .overlay h1 {
    font-size: 1.2rem;
  }

  .overlay h2,
  .overlay h3 {
    font-size: 1rem;
  }

  .sidebar img {
    width: 45px;
    height: 45px;
  }
  .banner-slider .slides img{
    width: 150px;
    height: 40px;
    margin-left: 10px;
  }
  .banner-slider .slides{
    animation-duration: 8s !important ;
  }
}