@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

#warning-message {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  padding: 0 25px;
  height: 100%;
  font-size: 30px;
  font-weight: bold;
  background-color: red;
  color: #fff;
  z-index: 999;
  overflow: hidden;
}
#warning-content {
  position: relative;
  top: 35%; /* 25% from the top */
  width: 100%; /* 100% width */
  text-align: center; /* Centered text/links */
  margin-top: 30px; /* 30px top margin to avoid conflict with the close button on smaller screens */
}
@media only screen and (orientation: portrait) and (max-height: 425px) {
  #warning-message {
    display: none;
  }
}
@media only screen and (orientation: landscape) and (max-height: 425px) {
  #warning-message {
    display: block;
  }
}

body {
  margin: 0;
  background-color: #00916e;
  color: #eee;
  font-family: Poppins;
  font-size: 12px;
}
a {
  text-decoration: none;
}
header {
  width: 1140px;
  max-width: 80%;
  margin: auto;
  height: 50px;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 100;
}
header a {
  color: #eee;
  margin-right: 40px;
}
/* carousel */
.carousel {
  height: 100vh;
  /* margin-top: -50px; */
  width: 100vw;
  overflow: hidden;
  position: relative;
}
.carousel .list .item {
  width: 100%;
  height: 100%;
  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: #fff;
  text-shadow: 0 5px 10px #0004;
}
.carousel .list .item .author {
  font-weight: bold;
  letter-spacing: 10px;
}
.carousel .list .item .title,
.carousel .list .item .topic {
  font-size: 5em;
  font-weight: bold;
  line-height: 1.3em;
}
.carousel .list .item .topic {
  color: #f1683a;
}
.carousel .list .item .buttons {
  display: grid;
  grid-template-columns: repeat(2, 130px);
  grid-template-rows: 40px;
  gap: 5px;
  margin-top: 20px;
}
.carousel .list .item .buttons button {
  border: none;
  background-color: #eee;
  letter-spacing: 3px;
  font-family: Poppins;
  font-weight: 500;
}
.carousel .list .item .buttons button:nth-child(2) {
  background-color: transparent;
  border: 1px solid #fff;
  color: #eee;
}
/* thumbail */
.thumbnail {
  position: absolute;
  bottom: 50px;
  left: 50%;
  width: max-content;
  z-index: 100;
  display: flex;
  gap: 20px;
}
.thumbnail .item {
  width: 150px;
  height: 220px;
  flex-shrink: 0;
  position: relative;
}
.thumbnail .item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}
.thumbnail .item .content {
  color: #fff;
  position: absolute;
  bottom: 10px;
  left: 35px;
  right: 10px;
}
.thumbnail .item .content .title {
  font-weight: 500;
}
.thumbnail .item .content .description {
  font-weight: 300;
}
/* arrows */
.arrows {
  position: absolute;
  top: 80%;
  right: 52%;
  z-index: 100;
  width: 300px;
  max-width: 30%;
  display: flex;
  gap: 10px;
  align-items: center;
}
.arrows button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #eee4;
  border: none;
  color: #fff;
  font-family: monospace;
  font-weight: bold;
  transition: 0.5s;
}
.arrows button:hover {
  background-color: #fff;
  color: #000;
}

/* animation */
.carousel .list .item:nth-child(1) {
  z-index: 1;
}

/* animation text in first item */

.carousel .list .item:nth-child(1) .content .author,
.carousel .list .item:nth-child(1) .content .title,
.carousel .list .item:nth-child(1) .content .topic,
.carousel .list .item:nth-child(1) .content .des,
.carousel .list .item:nth-child(1) .content .buttons {
  transform: translateY(50px);
  filter: blur(20px);
  opacity: 0;
  animation: showContent 0.5s 1s linear 1 forwards;
}
@keyframes showContent {
  to {
    transform: translateY(0px);
    filter: blur(0px);
    opacity: 1;
  }
}
.carousel .list .item:nth-child(1) .content .title {
  animation-delay: 1.2s !important;
}
.carousel .list .item:nth-child(1) .content .topic {
  animation-delay: 1.4s !important;
}
.carousel .list .item:nth-child(1) .content .des {
  animation-delay: 1.6s !important;
}
.carousel .list .item:nth-child(1) .content .buttons {
  animation-delay: 1.8s !important;
}
/* create animation when next click */
.carousel.next .list .item:nth-child(1) img {
  width: 150px;
  height: 220px;
  position: absolute;
  bottom: 50px;
  left: 50%;
  border-radius: 30px;
  animation: showImage 0.5s linear 1 forwards;
}
@keyframes showImage {
  to {
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
  }
}

.carousel.next .thumbnail .item:nth-last-child(1) {
  overflow: hidden;
  animation: showThumbnail 0.5s linear 1 forwards;
}
.carousel.prev .list .item img {
  z-index: 100;
}
@keyframes showThumbnail {
  from {
    width: 0;
    opacity: 0;
  }
}
.carousel.next .thumbnail {
  animation: effectNext 0.5s linear 1 forwards;
}

@keyframes effectNext {
  from {
    transform: translateX(150px);
  }
}

/* running time */

.carousel .time {
  position: absolute;
  z-index: 1000;
  width: 0%;
  height: 3px;
  background-color: #f1683a;
  left: 0;
  top: 0;
}

.carousel.next .time,
.carousel.prev .time {
  animation: runningTime 3s linear 1 forwards;
}
@keyframes runningTime {
  from {
    width: 100%;
  }
  to {
    width: 0;
  }
}

/* prev click */

.carousel.prev .list .item:nth-child(2) {
  z-index: 2;
}

.carousel.prev .list .item:nth-child(2) img {
  animation: outFrame 0.5s linear 1 forwards;
  position: absolute;
  bottom: 0;
  left: 0;
}
@keyframes outFrame {
  to {
    width: 150px;
    height: 220px;
    bottom: 50px;
    left: 50%;
    border-radius: 20px;
  }
}

.carousel.prev .thumbnail .item:nth-child(1) {
  overflow: hidden;
  opacity: 0;
  animation: showThumbnail 0.5s linear 1 forwards;
}
.carousel.next .arrows button,
.carousel.prev .arrows button {
  pointer-events: none;
}
.carousel.prev .list .item:nth-child(2) .content .author,
.carousel.prev .list .item:nth-child(2) .content .title,
.carousel.prev .list .item:nth-child(2) .content .topic,
.carousel.prev .list .item:nth-child(2) .content .des,
.carousel.prev .list .item:nth-child(2) .content .buttons {
  animation: contentOut 1.5s linear 1 forwards !important;
}

@keyframes contentOut {
  to {
    transform: translateY(-150px);
    filter: blur(20px);
    opacity: 0;
  }
}
@media screen and (max-width: 678px) {
  .carousel .list .item .content {
    padding-right: 0;
  }
  .carousel .list .item .content .title {
    font-size: 30px;
  }
}

/* about */

.background-section {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("img/bgwebroemah.jpeg") no-repeat center center/cover;
  transition: filter 2s;
}

.background-image.dimmed {
  filter: brightness(50%);
}

.content-about {
  position: relative;
  color: white;
  text-align: center;
  padding-top: 6vh;
  padding-bottom: 6vh;
}

.text-about {
  padding-left: 40px;
  padding-right: 40px;
}

.icon-fixed1 {
  position: fixed;
  right: -500px;
  bottom: 35px;
  height: 200px;
  width: 200px;
  /* min-height: 0vh; */
  z-index: 5;
}
.icon-fixed2 {
  position: fixed;
  left: -500px;
  top: 35px;
  height: 250px;
  width: 250px;
  /* min-height: 0vh; */
  z-index: 5;
}

.about-img {
  width: 80%;
}

/* testimoni */

.testimoni-section {
}

@keyframes slideRight {
  100% {
    left: 0vh;
  }
}
@keyframes slideLeft {
  100% {
    right: 0vh;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .slideRight {
    animation: slideRight 2s forwards;
  }
  .slideLeft {
    animation: slideLeft 2s forwards;
    animation-delay: 0.5s;
  }
}
/* 
@media screen and (max-width: 678px) {
    padding-left: 50px;
    padding-right: 50px;
} */

/* about page */

@media screen and (min-width: 400px) {
  .teks-kontak {
    font-size: 30px;
  }
}

@media screen and (min-width: 768px) {
  .garis {
    display: none;
  }
  .about-title {
    font-size: 4em;
  }
  .text-about {
    font-size: 1.5em;
  }
  .content-about {
    padding-top: 10vh;
    padding-bottom: 10vh;
  }
  .icon-fixed1 {
    height: 300px;
    width: 300px;
  }
  .icon-fixed2 {
    height: 250px;
    width: 250px;
  }
}
@media screen and (min-width: 992px) {
  .img-gradient {
    display: block !important;
    height: 100%;
    transform: translate(-30px);
  }

  .teks-kontak {
    font-size: 40px;
  }
  .icon-cover {
    width: 40px !important;
    height: 40px !important;
  }
  .info-contact {
    margin-bottom: 15px !important;
  }
  .info-contact .teks-icon {
    font-size: 1.4em !important;
  }
  .contact-page {
    padding-bottom: 80px !important;
    padding-top: 50px !important;
  }
  .about-title {
    font-size: 4.5em;
  }
  .text-about {
    font-size: 1.55em;
  }
  .content-about {
    padding-top: 15vh;
    padding-bottom: 15vh;
    padding-right: 50px;
    padding-left: 50px;
  }
  .icon-fixed1 {
    height: 400px;
    width: 400px;
  }
  .icon-fixed2 {
    height: 350px;
    width: 350px;
  }
  .testimoni-section {
    padding-top: 100px !important;
    padding-bottom: 100px !important;
  }
}

@media screen and (min-width: 1440px) {
  .carousel .list .item .content {
    transform: translateX(-50%);
  }
  .carousel .list .item .title,
  .carousel .list .item .topic {
    font-size: 6.5em;
    font-weight: bold;
    line-height: 1.3em;
  }
  .carousel .list .item .des {
    font-size: 1.4em;
  }
  .carousel .list .item .author {
    font-size: 1.8em;
  }
  .content-about {
    padding-top: 20vh;
    padding-bottom: 20vh;
  }
  .icon-fixed1 {
    height: 500px;
    width: 500px;
  }
  .icon-fixed2 {
    height: 500px;
    width: 500px;
  }
}

@media screen and (min-width: 1900px) {
  .carousel .list .item .content {
    transform: translateX(-60%);
  }
}

@media screen and (max-width: 992px) {
  .background-image {
    filter: brightness(50%);
    transition: filter 2s;
  }
}
@media screen and (max-width: 768px) {
  .icon-cover {
    background: none !important;
  }
}
