* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}
body {
  width: 100%;
  height: 100dvh;
  font-family: "Cairo play", sans-serif;
  font-size: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-transform: capitalize;
}
.slider {
  width: 100%;
  height: 100dvh;
  margin: auto;
  position: relative;
}
.nav-menu {
  display: none;
}
.header{
  background: #012635c9;
  width: 100%;
  height: 4rem;
  top:0;
  position: fixed;
  z-index: 900;
}
.header nav {
  justify-content: center;
  gap: 1rem;
  align-items: center;
  display: flex;
  width: 100%;
  position: fixed;
  transition: 0.5s ease-in-out;
  z-index: 100;
  top: 1rem;
}
.header nav a {
  color: antiquewhite;
  border-radius: 10px;
  padding: 0 5px;
  z-index: 12;
  align-items: center;
  text-decoration: none;
  transition: 0.5s ease-in-out;
}
.header nav a:hover,
.header .active {
  transform: scale(1.1);
  background: #fdb514;
  border-radius: 10px;
  padding: 0 5px;
}
.menu .nav-menu nav {
  display: grid;
  background: #f1f1f1d8;
  padding: 1rem;
  gap: 1rem;
  top: 1.5rem;
  margin-left: 2rem;
  border-radius: 1rem;
  position: absolute;
  z-index: 999;
  padding-top: 2.5rem;
  display: none;
  transition: 0.5s ease-in-out;
}
.menu .nav-menu a {
  color: #01132b;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
  padding: 5px;
  border-radius: 1rem;
  transition: 0.5s ease-in-out;
}
.menu .nav-menu a:hover,
.menu .nav-menu a.active {
  transform: scale(1.1);
  background: #fdb514;
}
#open-menu,
#close-menu {
  color: #001f3a;
  background: #f1f1f1d3;
  padding: 2px;
  border-radius: 0.5rem;
  font-size: 2rem;
  left: 2rem;
  top: 1.5rem;
  position: absolute;
  z-index: 1000;
  cursor: pointer;
  transition: 0.5s ease-in-out;
}
#close-menu {
  display: none;
}
#open-menu:hover,
#close-menu:hover {
  transform: scale(1.1);
  transform: translateX(3px);
}

.slider .list .item {
  position: absolute;
  inset: 0 0 0 0;
  overflow: hidden;
  opacity: 0;
  transition: 0.5s ease-in-out;
}
.slider .list .item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right;
}
.slider .list .item::after {
  content: "";
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  bottom: 0;
  background-image: linear-gradient(to top, #000e14fa 5%, transparent);
}
.slider .list .item .content {
  position: absolute;
  color: #f1f1f1;
  left: 10%;
  top: 15%;
  z-index: 1;
  width: 500px;
  max-width: 80%;
  user-select: none;
}

.slider .list .item .content h2 {
  color: #fff7ea;
  text-shadow: #001e31 2px 2px 15px;
  font-size: clamp(1vw, 3rem, 10vw);
  margin-bottom: 0.3rem;
  line-height: 2.2rem;
}
.slider .list .item .content span{
  color: #02c59b;
}

.slider .list .item.active {
  opacity: 1;
  z-index: 10;
}
.slider .list .item .content .beBtn {
  background: #fdb514;
  padding: 0 5px;
  width: 10rem;
  border-radius: 2rem;
  text-align: center;
  cursor: pointer;
  opacity: 0.7;
  transition: 0.5s ease-in-out;
}
.slider .list .item .content .beBtn a {
  color: #001e31;
  font-size: 1rem;
  text-decoration: none;
  font-weight: 600;
}

@keyframes showContent {
  to {
    transform: translateY(0);
    filter: blur(0);
    opacity: 1;
  }
}
.slider .list .item.active h2,
.slider .list .item.active p:nth-child(2),
.slider .list .item.active .beBtn {
  transform: translateY(30px);
  filter: blur(20px);
  opacity: 0;
  animation: showContent 0.5s 0.7s ease-in-out 1 forwards;
}
.slider .list .item.active h2 {
  animation-delay: 1s;
}
.slider .list .item.active p:nth-child(2),
.slider .list .item .active .beBtn {
  animation-delay: 1.3s;
}

.arrows #next,
#prev {
  color: #001f3a;
  position: absolute;
  font-size: clamp(30px, 5vw, 20px);
  text-align: center;
  z-index: 901;
  background: #faeee3;
  padding: 7px;
  top: 1rem;
  border-radius: 50%;
  opacity: 0.6;
  cursor: pointer;
  transition: 0.5s ease-in-out;
  right: 2rem;
}
.arrows #prev {
  right: 6rem;
}
.arrows #next:hover,
#prev:hover {
  transform: scale(1.2);
  opacity: 1;
  border: solid 1px #014572;
}
.thumbnail {
  position: absolute;
  bottom: 4rem;
  z-index: 11;
  width: 100%;
  display: flex;
  gap: 1rem;
  padding: 0 50px;
  box-sizing: border-box;
  overflow: auto;
  justify-content: center;
}
.thumbnail::-webkit-scrollbar {
  width: 0;
}
.thumbnail .item {
  width: clamp(150px, 5vw, 50px);
  height: clamp(200px, 5vw, 50px);
  border-radius: 1rem;
  overflow: hidden;
  display: inline-block;
  border: #0498fa solid;
  filter: brightness(0.7);
  transition: 0.5s;
  flex-shrink: 0;
  cursor: pointer;
  text-align: center;
  flex-wrap: nowrap;
  animation: slider 80s linear infinite ;
  transition: 0.5s ease-in-out;
}

.thumbnail .item::before {
  content: "";
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  bottom: 0;
  background-image: linear-gradient(to top, #000a14fa 1%, transparent);
}
.thumbnail .item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.thumbnail .item.active {
  filter: brightness(1.3);
}
.thumbnail .content {
  font-size: clamp(1rem, 5vw, 0.5rem);
  position: absolute;
  inset: auto 10px 20px 10px;
  color: aliceblue;
}
.thumbnail:hover{
  .item{animation-play-state: paused};
}
@keyframes slider{
  form{
    transform: translateX(0);
  }
  to{
    transform: translateX(calc(-150px * 8));
    transition: 0.5s ease-in-out;
  }
} 
.backBtn {
  background: #fdb514;
  padding: 2px 15px;
  border-radius: 2rem;
  right: 50%;
  transform: translateX(50%);
  margin-top: 1rem;
  z-index: 100;
  position: absolute;
  bottom: 1rem;
  outline: none;
  opacity: 0.7;
  transition: 0.5s ease-in-out;
}
.backBtn:hover {
  opacity: 1;
  color: #f1f1f1;
  background:#02558d;
  color: #01132b;
}
.backBtn a {
  text-decoration: none;
  color: #001e31;
  font-size: 1rem;
  font-weight: 600;
}
@media screen and (max-width: 678px) {
  .thumbnail {
    justify-content: start;
  }
  .slider .list .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .slider .list .item .content {
    margin-top: 15%;
    text-align: center;
  }
  .slider .list .item .content .beBtn {
    left: 50%;
    place-self: center;
  }

  .nav-menu {
    display: block;
  }
  .header .navbar {
    display: none;
  }
}

@media screen and (max-width: 465px) {
  .slider .list .item .content {
    margin-top: 40%;
  }
}
