/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/
body {
  font-family: 'Poppins', sans-serif;
  color: #444444;
  background-color: #056b3a;
}

a {
  text-decoration: none;
}

.samping {
  border: 1px solid black;
}
/* --------------- End General ---------------- */

#navbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  height: 12vh;
  background-color: #056b3a;
}

#hilang {
  display: none;
  width: 100px;
  border: 2px solid black;
}

#logo {
  display: block;
  max-width: 100%;
  height: auto;
}

#navbar ul {
  display: flex;
  justify-content: flex-end;
  background-color: rgb(5, 107, 58, 0.8);
  border-radius: 20px;
}

#navbar ul li {
  margin: 5px;
  margin-right: 10px;
}

#navbar ul li #btn {
  color: rgb(0, 0, 0);
  background-color: white;
  font-weight: bold;
}

#navbar ul li #btn:hover {
  color: rgb(255, 255, 255);
  background-color: #fb9d14;
  font-weight: bold;
}

#navbar ul #login {
  width: 100px;
  text-align: center;
  background-color: #ffffff;
  color: rgb(0, 0, 0);
}

#navbar ul #login:hover {
  width: 100px;
  text-align: center;
  background-color: #fb9d14;
  color: white;
}

#navbar a,
#navbar span {
  color: white;
  font-weight: bold;
}

.content {
  margin-top: 10vh;
}

.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
  background-color: transparent;
  color: #000000;
  border-bottom: 5px solid #fb9d14;
}

.scrollspy-example {
  margin-top: 9vh;
}

#logo-container {
  display: inline-block;
  overflow: hidden;
  width: 0;
  transition: width 0.3s ease;
}

#logo {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Responsive navbar */
@media (max-width: 991px) {
  #navbar {
    display: flex;
    justify-content: space-between;
  }

  #span-cari {
    display: none;
  }
}

@media (max-width: 768px) {
}

@media (max-width: 575px) {
}

/*--------------------------------------------------------------
  # Hero Section
  --------------------------------------------------------------*/
#hero {
  width: 100%;
  height: 90vh;
  background-image: url(../img/bg-public.png);
  background-size: cover;
  background-repeat: no-repeat;
}

#hero .container {
  padding: 72px;
  background-color: transparent;
}

#hero .logo {
  width: clamp(300px, 50%, 800px);
  max-width: 100%;
  /* Membatasi lebar maksimum agar sesuai dengan lebar viewport */
  height: auto;
  margin-top: -10vh;
}

#hero .logo-text {
  width: 600px;
  height: 250px;
}

#hero h1 {
  margin: 0 0 10px 0;
  font-size: 48px;
  font-weight: 700;
  line-height: 56px;
  color: #fff;
}

#hero h2 {
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 50px;
  font-size: 24px;
}

.img-fluid {
  float: right;
  margin-right: -10vh;
  width: clamp(500px, 50%, 800px);
  max-width: 100%;
  /* Membatasi lebar maksimum agar sesuai dengan lebar viewport */
  height: auto;
}

#hero .animated {
  animation: up-down 2s ease-in-out infinite alternate-reverse both;
}

.tujuan {
  color: white;
}

@keyframes moveUpDown {
  0%,
  100% {
    transform: translateY(0);
    /* Posisi awal dan akhir: tidak bergerak (translasi 0) */
  }

  50% {
    transform: translateY(-50px);
    /* Posisi tengah: translasi ke atas 50px */
  }
}

.animated-image {
  animation: moveUpDown 5s infinite;
  /* Animasi berlangsung selama 2 detik, diulang terus-menerus */
}
/* End section Hero */

/* ============= Section Resources Us ======== */
#resources {
  /* border: 1px solid black; */
  background-color: whitesmoke;
  height: auto;
}

#resources .container-fluid {
  width: 100%;
}

#resources .container-fluid .carousel-inner {
  width: 100%;
  margin-top: 10px;
  border-radius: 20px;
  background-color: rgb(250, 244, 244);
  box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.3);
}

#resources .container-fluid .carousel-inner .carousel-item .satu,
#resources .container-fluid .carousel-inner .carousel-item .dua {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  padding: 10px;
}

#resources .container-fluid .carousel-inner .carousel-item .satu img,
#resources .container-fluid .carousel-inner .carousel-item .dua img {
  width: 173px;
  height: 230px;
}

#resources .container-fluid .carousel-inner .carousel-item .satu .portrait-1,
#resources .container-fluid .carousel-inner .carousel-item .dua .portrait-1 {
  background-color: rgb(255, 255, 255);
  max-width: 100%; /* Membatasi lebar maksimum agar sesuai dengan lebar viewport */
  border-radius: 20px;
  margin: auto;
}

#resources .container-fluid .carousel-inner .carousel-item .landscape-1 .thumbnail-landscape {
  border-radius: 20px;
  width: 237px;
  max-width: 100%; /* Membatasi lebar maksimum agar sesuai dengan lebar viewport */
  height: 133px;
  margin: auto;
}

#resources .container-fluid .carousel-inner .carousel-item .portrait-1 .thumbnail-portrait {
  border-radius: 20px;
  margin: auto;
  width: 173px;
  max-width: 100%; /* Membatasi lebar maksimum agar sesuai dengan lebar viewport */
  height: 230px;
}

#resources .container-fluid .carousel-inner .carousel-item .satu .landscape-1,
#resources .container-fluid .carousel-inner .carousel-item .dua .landscape-1 {
  background-color: rgb(255, 255, 255);
  max-width: 100%; /* Membatasi lebar maksimum agar sesuai dengan lebar viewport */
  border-radius: 20px;
  margin: auto;
}

#resources .container-fluid button {
  width: 50px;
}

.carousel-tablet,
.carousel-mobile,
.carousel-phone {
  display: none;
}

/* Menu Resources */

.menu {
  background-color: rgb(249, 242, 242);
}

.menu .header {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin-top: 10vh;
  padding: 5px;
}

.menu .header .form {
  border: 1px solid black;
  padding: 5px;
  width: 220px;
  height: 6vh;
  border-radius: 10px;
  text-align: center;
}

.menu .header .form {
  border: 1px solid lightblue;
  width: 220px;
  height: 6vh;
  border-radius: 10px;
  background-color: white;
  color: black;
}

.menu .header .form:hover {
  background-color: #fb9d14;
  color: white;
}

.menu .header .form a {
  border: 1px solid lightblue;
  width: 220px;
  height: 6vh;
  border-radius: 10px;
  background-color: white;
  color: black;
}

.menu .header .form form label {
  color: grey;
  padding: 8px;
  font-size: 1.2rem;
  font-weight: bold;
}

.menu .header .form form select {
  color: grey;
  padding: 10px;
  font-size: 15px;
  font-weight: bold;
  width: 10vw;
  height: 6vh;
  border-radius: 10px;
  background-color: #c5fff8;
}

.menu .header .seacrh {
  border: 1px solid lightblue;
  width: 220px;
  height: 6vh;
  border-radius: 10px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  background-color: white;
}

.menu .header .seacrh .cari {
  width: 100%;
  height: 5vh;
  margin-left: 2rem;
  margin-top: 2px;
  border: none;
}

.menu .header .seacrh .cari:focus {
  border: 1px solid blue;
}

a {
  text-decoration: none;
}

.nama {
  font-size: 13px;
  color: rgb(226, 8, 8);
}

.menu-mobile,
.menu-tablet {
  display: none;
}

/* pop up menu cari */

.menu .popup-menu {
  width: 100vw;
  height: 100vh;
  border-radius: 20px;
  z-index: 99999999;
  position: fixed;
  transition: 2s;
  margin: auto;
  display: none;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background-color: rgb(37, 36, 36, 0.7);
}

.popup-menu:target {
  display: flex;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
}

.popup-menu .form {
  width: 25vw;
  height: 30vh;
  margin: auto;
}

.popup-menu .form form {
  background-color: #fff;
  padding: 20px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  margin-top: -12vh;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

.popup-menu .form form a img {
  font-size: 20px;
  font-weight: bold;
  margin-left: 20vw;
  margin-top: -20px;
  color: white;
  width: 45px;
  height: 30px;
}

.popup-menu .form form label {
  font-size: 17px;
  margin-left: 10px;
  color: black;
  display: inline-block;
  margin-bottom: 8px;
  margin: auto;
  font-style: italic;
  font-weight: bold;
}

.popup-menu .form form select {
  font-size: 20px;
  width: 100%;
  background-color: rgb(255, 253, 253);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
  margin: auto;
  height: 5vh;
  border-radius: 20px;
  margin-top: 10px;
  margin-bottom: 15px;
  border: 1px solid lightblue;
}

.popup-menu .form form option {
  font-size: 20px;
  width: 100%;
  background-color: rgb(255, 253, 253);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  margin: auto;
  height: 5vh;
  border-radius: 20px;
  margin-top: 10px;
  margin-bottom: 15px;
}

.popup-menu .form form input {
  font-size: 20px;
  background-color: #ffde59;
  width: 10vw;
  height: 6vh;
  border-radius: 20px;
  font-weight: bold;
  color: rgb(0, 0, 0);
  font-style: italic;
  margin: auto;
  margin-top: -10px;
}

.popup-menu .form form input:hover {
  background-color: rgb(162, 114, 250);
  color: white;
  cursor: pointer;
}

/* book menu */

.book {
  position: relative;
  border-radius: 10px 27px 27px 10px;
  width: 173px;
  height: 230px;
  background-color: whitesmoke;
  -webkit-box-shadow: 3px 3px 10px #bebebe, -3px -3px 10px #ffffff;
  box-shadow: 3px 3px 10px #bebebe, -3px -3px 10px #ffffff;
  -webkit-transform: preserve-3d;
  -ms-transform: preserve-3d;
  transform: preserve-3d;
  -webkit-perspective: 2000px;
  perspective: 2000px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  border: 2px solid rgb(76, 73, 223, 0.2);
  flex-wrap: wrap;
  flex-direction: column;
  margin: auto;
}

.book-ppt {
  position: relative;
  border-radius: 10px 27px 27px 10px;
  width: 237px;
  height: 133px;
  background-color: whitesmoke;
  -webkit-box-shadow: 3px 3px 10px #bebebe, -3px -3px 10px #ffffff;
  box-shadow: 3px 3px 10px #bebebe, -3px -3px 10px #ffffff;
  -webkit-transform: preserve-3d;
  -ms-transform: preserve-3d;
  transform: preserve-3d;
  -webkit-perspective: 2000px;
  perspective: 2000px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  border: 2px solid rgb(76, 73, 223, 0.2);
  flex-wrap: wrap;
  flex-direction: column;
  margin: auto;
}

.book .pengarang,
.book-ppt .pengarang {
  width: 90%;
  height: 50%;
  margin: auto;
  display: flex;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}

.book .pengarang img,
.book-ppt .pengarang img {
  width: 30px;
  height: 30px;
}

.book .pengarang img:hover,
.book-ppt .pengarang img:hover {
  transform: scale(1.2);
}

.view {
  background-color: salmon;
  color: white;
  border-radius: 5px;
  padding: 2px;
  font-size: 15px;
}

.download {
  background-color: green;
  color: white;
  border-radius: 5px;
  padding: 2px;
  font-size: 15px;
}

.book .nama,
.book-ppt .nama {
  font-size: 17px;
  color: blue;
  margin: auto;
  width: 130px;
}

.cover {
  top: 0;
  position: absolute;
  background-color: rgb(250, 245, 245);
  width: 100%;
  height: 100%;
  border-radius: 10px 27px 27px 10px;
  cursor: pointer;
  -webkit-transition: all 0.5s;
  transition: all 0.5s;
  -webkit-transform-origin: 0;
  -ms-transform-origin: 0;
  transform-origin: 0;
  -webkit-box-shadow: 3px 3px 10px #bebebe, -3px -3px 10px #ffffff;
  box-shadow: 3px 3px 10px #bebebe, -3px -3px 10px #ffffff;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}

.cover img {
  display: inline-block;
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 10px 27px 27px 10px;
}

.cover span {
  position: absolute;
  top: 50%; /* Posisikan teks di tengah atas gambar */
  left: 50%;
  width: 80%;
  height: 50%;
  transform: translate(-50%, -50%);
  color: rgb(0, 0, 0); /* Warna teks */
  text-shadow: 4px 4px 4px rgba(242, 237, 237, 0.8);
  font-size: 25px; /* Ukuran teks */
  font-weight: bold; /* Ketebalan teks */
  text-align: center;
}

.book:hover .cover {
  -webkit-transition: all 0.5s;
  transition: all 0.5s;
  -webkit-transform: rotatey(-80deg);
  -ms-transform: rotatey(-80deg);
  transform: rotatey(-80deg);
}

.book-ppt:hover .cover {
  -webkit-transition: all 0.5s;
  transition: all 0.5s;
  -webkit-transform: rotatey(-80deg);
  -ms-transform: rotatey(-80deg);
  transform: rotatey(-80deg);
}

.cover span {
  font-size: 20px;
  font-weight: bolder;
}

/* =============== Media Query Responsive +++++++++++++++++++ */
@media (max-width: 992px) {
  #standart-text {
    display: none;
  }

  #gambar-samping {
    margin: auto;
  }

  .logo {
    margin: auto;
    width: 600px;
    height: 400px;
  }

  .img-fluid {
    margin: auto;
  }

  #navbar ul {
    width: 50%;
  }
}
