@font-face {
  font-family: Font1;
  src: url(ChaseZenJackulator.ttf);
}

@font-face {
  font-family: Font2;
  src: url(Mostwasted.ttf);
}

@font-face {
  font-family: Font3;
  src: url(FancyQuisley.ttf);
}

@font-face {
  font-family: Font4;
  src: url(AGENCYB.TTF);
}

@font-face {
  font-family: Font5;
  src: url(rockwellCondensed.ttf);
}

* {
  margin: 0px;
  padding: 0px;
  list-style: none;
}

body {
  margin: 0px;
  padding: 0px;
  font-family: MS Gothic;
  color: white;
  box-sizing: border-box;
  background-size: cover;
  background: url("./Images/wallp1.jpg");
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.header {
  color: maroon;
  font-family: Font1;
  text-align: center;
  font-size: 100px;
  text-shadow: 0px 5px 10px black;
  margin-bottom: 180px;
}

/*clock*/
.container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 27%;
  width: 25%;
  margin: 0px 25px;
  margin-top: -150px;
  margin-left: 38px;
}

.display-box {
  height: 50%;
  width: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(12, 12, 12, 0.041);
  border-radius: 3px;
  padding: 10px;
  font-family: Font5;
  font-weight: bold;
  background-color: rgba(0, 0, 0, 0.5);
}

#hrs,
#min,
#sec {
  height: 100%;
  width: 25%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 50px;
  border-radius: 5px;
  font-size: 20px;
}

.display-box span {
  display: inline-block;
  margin: 0px 5px;
  color: white;
  font-size: 20px;
  margin-bottom: -5px;
  margin-top: -10px;
}

#ampm {
  margin-left: 15px;
  font-size: 15px;
  letter-spacing: 2px;
  text-shadow: 0px 5px 10px black;
}

/*clock ends*/

.main {
  width: 94%;
  margin-left: 37px;
  height: 700px;
  margin: 0 auto;
  background: rgba(0, 0, 0, 0.877);
  margin-top: 40px;
  border-radius: 0px 0px 5px 5px;
}

/*carousel*/
.carousel {
  width: 93.9%;
  height: 570px;
  overflow: hidden;
  margin-top: -650px;
  position: relative;
  margin-left: 38.3px;
}

.carousel .list .item {
  position: absolute;
  inset: 0 0 0 0;
}

.carousel .list .item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel .list .item .content {
  position: absolute;
  top: 20%;
  width: 1140px;
  max-width: 80%;
  left: 50%;
  transform: translateX(-50%);
  padding-right: 30%;
  box-sizing: border-box;
  color: white;
  font-family: Font5;
  text-shadow: 0px 2px 3px black;
}

.carousel .list .item .content .author {
  font-weight: bold;
  letter-spacing: 10px;
  color: orange;
}

.carousel .list .item .content .title {
  color: bisque;
}

.carousel .list .item .content .title,
.carousel .list .item .content .topic {
  font-weight: bold;
  font-size: 5em;
  list-style: 1.3em;
}

.carousel .list .item .content .topic {
  color: teal;
}

.des{
  color: beige;
  text-shadow: 0px 2px 3px black;
}

.carousel .list .item .content .buttons {
  display: grid;
  grid-template-columns: repeat(2, 130px);
  grid-template-rows: 40px;
  gap: 5px;
}

.carousel .list .item .content button {
  border: none;
  background: white;
  letter-spacing: 3px;
  font-family: Font5;
  font-weight: 500;
}

.carousel .list .item .content button:nth-child(2) {
  background-color: transparent;
  color: white;
  border: 1px solid white;
}

/*thumbnail*/
.thumbnail {
  position: absolute;
  bottom: 20px;
  left: 79.4%;
  width: max-content;
  z-index: 100;
  display: flex;
  gap: 20px;
}

.thumbnail .item {
  width: 150px;
  height: 110px;
  flex-shrink: 0;
  position: relative;
}

.thumbnail .item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 5px;
  box-shadow: 0px 3px 4px black;
}

.thumbnail .item .content {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  font-family: Font5;
  color: bisque;
  text-shadow: 0px 2px 3px black;
}

.thumbnail .item .content .title {
  font-weight: bold;
  color: orange;
}

/*arrows*/
.arrows {
  position: absolute;
  top: 47%;
  right: 70%;
  width: 300px;
  max-width: 30%;
  display: flex;
  gap: 1007px;
  align-items: center;
  text-shadow: 0px 2px 3px black;
}

.arrows #Prev {
  margin-left: -35px;
}

.arrows #Next {
  margin-left: 75px;
}

.arrows .bi {
  width: 40px;
  height: 40px;
  border: none;
  color: grey;
  font-weight: bold;
  font-size: 30px;
  transition: 0.5s;
  z-index: 100;
}

.arrows .bi:hover {
  color: white;
}


.carousel .list .item:nth-child(1) {
  z-index: 1;
}

.carousel .list .item:nth-child(1) .author,
.carousel .list .item:nth-child(1) .title,
.carousel .list .item:nth-child(1) .topic,
.carousel .list .item:nth-child(1) .des,
.carousel .list .item:nth-child(1) .buttons {
  transform: translateY(50px);
  filter: blur(20px);
  opacity: 0;
  animation: showContent 0.5s 1s linear 1 forwards;
}

.des {
  margin-top: 10px;
}

@keyframes showContent {
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

.carousel .list .item:nth-child(1) .title {
  animation-delay: 1.2s;
}

.carousel .list .item:nth-child(1) .topic {
  animation-delay: 1.4s;
}

.carousel .list .item:nth-child(1) .des {
  animation-delay: 1.6s;
}

.carousel .list .item:nth-child(1) .buttons {
  animation-delay: 1.8s;
}

/*effect next click*/
.carousel.Next .list .item:nth-child(1) img {
  width: 150px;
  height: 110px;
  position: absolute;
  left: 50%;
  bottom: 50px;
  border-radius: 5px;
  animation: showImage 0.5s linear 1 forwards;
}

@keyframes showImage {
  to {
    width: 100%;
    height: 100%;
    left: 0;
    bottom: 0;
    border-radius: 0;
  }
}

.carousel.Next .thumbnail .item:nth-child(1) {
  width: 0;
  overflow: hidden;
  animation: showThumbnail 0.5s linear 1 forwards;
}
@keyframes showThumbnail {
  to {
    width: 150px;
  }
}
.carousel.Next .thumbnail {
  transform: translateX(150px);
  animation: transformThumbnail 0.5s linear 1 forwards;
}
@keyframes transformThumbnail {
  to {
    transform: translateX(0);
  }
}
/*effect prev click*/
.carousel.Prev .list .item:nth-child(2) {
  z-index: 2;
}

.carousel.Prev .list .item:nth-child(2) img {
  position: absolute;
  bottom: 0;
  left: 0;
  animation: outImage 0.5s linear 1 forwards;
}
@keyframes outImage {
  to {
    width: 150px;
    height: 110px;
    border-radius: 5px;
    left: 79.4%;
    bottom: 20px;
  }
}

.carousel.Prev .thumbnail .item:nth-child(1) {
  width: 0;
  overflow: hidden;
  opacity: 0;
  animation: showThumbnail 0.5s linear 1 forwards;
}

.carousel.Prev .list .item:nth-child(2) .author,
.carousel.Prev .list .item:nth-child(2) .title,
.carousel.Prev .list .item:nth-child(2) .topic,
.carousel.Prev .list .item:nth-child(2) .des,
.carousel.Prev .list .item:nth-child(2) .buttons {
  animation: contentOut 1.5s linear 1 forwards;
}
@keyframes contentOut {
  to {
    transform: translateY(-150px);
    filter: blur(20px);
    opacity: 0;
  }
}

.carousel.Next .arrows .bi,
.carousel.Prev .arrows .bi {
  pointer-events: none;
}

/*time*/
.time {
  width: 100%;
  height: 5px;
  background-color: red;
  position: absolute;
  z-index: 100;
  top: 0;
  left: 0;
}

.carousel.Next .time,
.carousel.Prev .time {
  width: 100%;
  animation: timeRunning 2s linear 1 forwards;
}

@keyframes timeRunning {
  to {
    width: 0;
  }
}

.navigation {
  width: 94%;
  margin-left: 37.5px;
  background: rgba(0, 0, 0, 0.877);
  margin-top: 5px;
  border-radius: 5px 5px 0px 0px;
  height: 60px;
  margin-bottom: -40px;
}

.navigation ul {
  list-style: none;
}

.navigation ul li {
  float: none;
  text-decoration: none;
  font-size: 25px;
  font-family: Font5;
  color: white;
  display: inline-block;
  padding-top: 15px;
  padding-bottom: 6px;
  padding-right: 25px;
  padding-left: 25px;
  line-height: 15px;
  text-align: center;
  margin: 10px 36.4px 10px 51px;
  text-shadow: 0px 5px 5px black;
}

.navigation ul li:hover {
  background: rgba(0, 0, 0, 0.5);
  color: red;
  border-bottom: 1px solid maroon;
  transition: 1s;
  height: 20px;
  margin-top: 10px;
  border-radius: 3px;
  text-decoration: none;
}

.navigation ul li:active {
  background: rgba(0, 0, 0, 0.5);
  color: red;
  border-bottom: 1px solid maroon;
  transition: 1s;
  height: 20px;
  margin-top: 10px;
  text-decoration: none;
}

.footer {
  font-family: Font2;
  font-size: 50px;
  color: maroon;
  text-align: center;
  margin-top: 195px;
  text-shadow: 0px 2px 3px black;
}
