body {
    margin: 0;
    background-color: #000;
    background-image: images/background.jpg; / * source pexels.com  */
    background-size: cover;
    color: #eee;
    font-family: Poppins;
    font-size: 0.8em;

}
a {
    text-decoration: none;
    color: #f1683a;
    text-align: center;
}
p{
  margin-top: 1rem;
  text-align: center;
  font-size: 1rem;
  color: #333;
}
header {
    width: 100vw;
    max-width: 80%;
    margin: auto;
    margin-top: 0;
    height: 50px;
    display: flex;
    align-items: center;
}
header a {
    color: #D04848 !important;
    padding-right: 40px;
}
header nav {
    position: relative;
    z-index: 1;
}
main {
    height: 100vh;
    margin-top: -50px;
    width: 100vw;
    overflow: hidden;
    position: relative;
}
main .list .item {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
}
main .list .item img, main .list .item video{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
main .list .item .content {
    position: absolute;
    top: 20%;
    width: 100vw;
    max-width: 80%;
    left: 50%;
    transform: translateX(-50%);
    padding-right: 30%;
    box-sizing: border-box;
    color: #f1683a;
    text-shadow: 0 5px 10px #0004 !important;
}
main .list .item .content-box {
  color: #f1683a;
  position: fixed;
  background-color: white;
  max-width: 80%;
  width: 80%;
  max-height: 80%;
  height: 70%;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

main .list .item .title,
main .list .item .topic {
    font-size: 5em;
    font-weight: bold;
    line-height: 1.3em;
}
main .list .item .topic {
    color: #fff;
}
main .list .item .content-box .title{
  font-size: 3em;
}
main .list .item .buttons {
    display: grid;
    grid-template-columns: repeat(2, 130px);
    grid-template-rows: 40px;
    gap: 5px;
    margin-top: 20px;
}
main .list .item .buttons a {
    padding-top: 11px;
    border: none;
    background-color: #D04848;
    color: #fff;
    letter-spacing: 3px;
    font-family: Poppins;
    font-weight: 500;
}
main .list .item .buttons a:nth-child(2) {
    background-color: transparent;
    border: 1px solid #D04848 !important;
    color: #D04848 !important;
}

.main .list .item.content {
    position: relative;
    overflow: hidden;
}


#popup{
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    z-index: 200;
}

#popup .popup-content {
    position: relative;
    width: 70vw;
    height: 70vh;
    margin: auto;
    padding: 10px;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
    align-items: center;
    justify-content: center;
    display: flex;
   flex-direction: column;
    overflow: hidden;
}

#map{
  width: 100%;
  height: 300px;
  border-radius: 8px;
}


#popup a.close-popup{
    position: absolute;
    top: 0;
    right: 0;
    text-decoration: none;
    padding: 16px;
    color: #333;
    font-weight: bold;
    font-size: 18px;
}

#popup:target {
    display: flex;
}

.carousel_container_img {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  height: 70vh;
  overflow: hidden;
}

.carousel_container_img img.carousel {
  max-width: 80%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: none;
  border-radius: 5px;
}


.prev_btn, .next_btn {
  position: absolute;
  top: 45%;
  width: auto;
  padding: 5px;
  color: #333;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  user-select: none;
}

.prev_btn {
  left: 0;
  border-radius: 0 3px 3px 0;
}

.next_btn {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.prev_btn:hover, .next_btn:hover, {
  background-color: rgba(0,0,0,0.8);
}


/* animation text  */
main .list .item:nth-child(1) .content .title,
main .list .item:nth-child(1) .content .topic,
main .list .item:nth-child(1) .content .des,
main .list .item:nth-child(1) .content .buttons
{
    transform: translateY(50px);
    filter: blur(20px);
    opacity: 0;
    animation: showContent .5s 1s linear 1 forwards;
}
@keyframes showContent{
    to{
        transform: translateY(0px);
        filter: blur(0px);
        opacity: 1;
    }
}
main .list .item:nth-child(1) .content .title{
    animation-delay: 1.2s!important;
}
main .list .item:nth-child(1) .content .topic{
    animation-delay: 1.4s!important;
}
main .list .item:nth-child(1) .content .des{
    animation-delay: 1.6s!important;
}
main .list .item:nth-child(1) .content .buttons{
    animation-delay: 1.8s!important;
}

.popup-closed {
  animation: none;
}


/*  responsiveness  */
@media (max-width: 768px) {
  main .list .item .content {
    padding-right: 0;
  }

  main .list .item .content .title {
    font-size: 30px;
  }
  main .list .item .content-box .title{
  font-size: 1.5em;
  text-align: center;
}

  .carousel_container_img {
    height: auto;
    max-height: 50vh;
  }

  .carousel_container_img img.carousel {
    max-width: 100%;
    max-height: 100%;

  }

    .prev_btn,
    .next_btn{
      background-color: white;
      top: 50%;
      padding: 5px;
      font-size: 16px;
    }
    
    header {
    width: 100vw;
    max-width: 90%;
    margin-left: 10%;
    }


}

@media (max-width: 480px) {

  header a {
      padding-right: 5px;
  }
  
  main .list .item .content-box {
  width: 70%;
  left: 50%;
}

  #popup .popup-content{
      height: 60vh;
    }

  .carousel_container_img {
    max-height: 40vh;
  }

  .carousel_container_img img.carousel {
    max-width: 100%;
    max-height: 100%;

  }

  .prev_btn,
  .next_btn {
    background-color: white;
    font-size: 14px;
  }
}

@media (min-width: 2560px) {
  main .list .item .content, header {
      width: 2560px;
    }

    main .list .item .title,
    main .list .item .topic {
      font-size: 8em;
    }

    main .list .item .des{
      font-size: 2.5em;
    }
    a {
        font-size: 2em;
    }

    main .list .item .buttons {
      grid-template-columns: repeat(2, 260px);
      grid-template-rows: 80px;
    }

    main .list .item .buttons a{
      padding-top: 22px;
    }

    .prev_btn,
    .next_btn,
    #popup a.close-popup{
      font-size: 40px;
    }

}
