@import url('https://fonts.googleapis.com/css2?family=Jost:wght@300&family=Playfair+Display&family=Vidaloka&display=swap');
/* @import url(https://fonts.googleapis.com/css?family=Poiret+One); */

*,
*::after,
*::before {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden; /* Prevent horizontal overflow */
}

.container, .container-fluid, .container-lg, .container-md, .container-sm, .container-xl {
  width: 100%;
  padding-right: 0;
  padding-left: 0;
  margin-right: 0;
  margin-left: 0;
}


    #map {
        top:0;
        height: 100vh;
        width:100vw;
        position: fixed;
    }
   
      @keyframes bounce {
          0%, 20%, 50%, 80%, 100% {
              transform: translateY(0);
          }
          40% {
              transform: translateY(-20px);
          }
          60% {
              transform: translateY(-10px);
          }
      }

      .mapboxgl-popup {        
        font-size: 14px;
        border-radius: 5px;
        padding: 3px;
      }
      
      .mapboxgl-popup-content {
        max-width: 200px;
        background-color: #03012e6b;
        color: #ffffff;
        padding: 5px;
      }

      .mapboxgl-popup-tip {
        display: none;
      }
      

    #mapInset {
        bottom:50px;
        right:30px;
        height: 100px;
        width:100px;
        max-width:100%;
        position: fixed;
        z-index: 1;
        opacity: 1;
        transition: opacity 0.5s ease-in-out;
        pointer-events: none;
    }
    #mapInset .mapboxgl-ctrl-bottom-left{
        display: none;
    }


    #features {
        padding-top: 10vh;
        padding-bottom: 10vh;
    }


    .hidden {
        visibility: hidden;
    }
    .centered {
        width: 50vw;
        margin: 0 auto;
    }
    .lefty {
        width: 33vw;
        margin-left: 5vw;


    }
    /* buat ketinggian slide  */
    .kanany {
      width: 33vw;
      margin-left: 5vw;
    }

    .righty {
        width: 33vw;
        margin-left: 62vw;


    }
    .fully {
        width: 100%;
        margin: auto;
    }
    .light {
        color: #444;
        background-color: #fafafa;
    }
    .dark {
        color: #fafafa;
        background-color: #444;
    }
    .step {
        padding-bottom: 50vh;
        opacity: 0.25;

    }
    .step.active {
        opacity: 0.9;

    }

    .step div {
  border: 0px solid #ccc;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin: 10px;

}

/* Gaya untuk gambar */
.step img {
  width: 100%;
  height: 300px; /* Tinggi gambar */
  margin: 0;
  padding: 0;
  object-fit: cover; /* Menjaga rasio aspek gambar */
}

.step h3 {
  position: relative;
  margin-top: -7px;
  color: #003366;
  text-align: justify;
  font-family: 'Playfair Display';
  font-size: 1.3em;
  background-color: #add8e6;
  padding: 2%;
}
.step h3::after {
  content: '';
  position: absolute;
  bottom: 0;  /* Menempatkan di bagian bawah elemen h3 */
  left: 0;
  width: 100%; /* Lebar sesuai dengan kotak .step */
  height: 1px; /* Ketebalan garis */
  background-color: #add8e6; /* Warna garis */
}

.polygon-divider {
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  height: 20px;
  width: 35px;
  background-color: #add8e6;
  position: absolute;
  top: -11px;
  left: 3%;
}

/* Gaya untuk teks paragraf p */
.step p {
  padding: 0px 20px;
    text-align: justify;
    font-size: 0.8em;
}


/* popup tooltip */
.custom-popup {
  background: rgba(255, 255, 255, 0.8); /* Warna putih dengan transparansi 80% */
  border: none; /* Hilangkan border jika diinginkan */
}

.custom-popup .leaflet-popup-content-wrapper {
  background: rgba(255, 255, 255, 0.8); /* Warna putih dengan transparansi 80% */
}

.custom-popup .leaflet-popup-tip {
  background: rgba(255, 255, 255, 0.8); /* Warna putih dengan transparansi 80% */
}



/* heading kontener */
.heading-container {
  position: relative;
  width: 100vw;
  height: 100vh; /* Sesuaikan dengan tinggi gambar Anda */
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-color);
  background-image: url('https://old.leppastudio.org/feature.jpg'); /* Ganti URL gambar */
  z-index: 6;
  margin-bottom: 150px;
  margin-top: -100px;
}

.heading-text {
  background-color: rgba(255, 255, 255, 0.8); /* Latar belakang putih transparan */
  padding: 20px;
  border-radius: 10px;
}

.heading-text h1 {
  font-family: var(--font-quote);
  font-size: 4em; /* Sesuaikan dengan kebutuhan */
  margin: 10px 0;
  line-height: 1.3;
}

.heading-text p {
  font-family: var(--font-secondary);
  font-size: 1.2em; /* Sesuaikan dengan kebutuhan */
  margin: 10px 0;
}

.heading-text .paragraph {
  font-family: var(--font-primary);
  font-size: 1em; /* Sesuaikan dengan kebutuhan */
  margin: 10px 0;
}


/* KOLOM DATA */
.nautica_ship_data {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  font-family: var(--font-accent);
  font-size: 12px;
  padding: 0;
  z-index: 5;
}

.table-wrapper {
  display: flex;
  width: 100%;
  overflow: hidden;
  max-width: 600px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  background-color: #ffffff; /* Warna latar belakang saat hover */

}

#toggle-icon:hover {
  background-color: #ffbf00; /* Warna latar belakang saat hover */
}

#toggle-icon {
  cursor: pointer;
  text-align: center;
  background-color: #ffbf00;
  padding: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease;
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0; /* Tetap di bagian bawah layar */
}

.table {
  display: flex;
  flex-direction: row;
  width: 100%;
  padding: 0rem;
}

.nautica_ship_data .cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 7px;
  background: transparent;
  flex-grow: 1;
}

.nautica_ship_data .info {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 0px; /* Jarak bawah dari teks data */
}
.nautica_ship_data .cell:not(:last-child) {
  border-right: none;
}

.nautica_ship_data .icon img {
  padding: 2px;
  top: 2px;
}

.icon-lainnya {
  padding: 2px;
  top: 2px;
}
.icon-lainnya img {
  width: auto; /* Contoh: mengatur lebar yang berbeda */
  height: 30px;

}

.nautica_ship_data .icon {
  margin-right: 10px; /* Jarak kanan dari icon ke teks */
  margin-bottom: 5px; /* Jarak bawah dari icon */
  font-size: 13px;
  padding: 5px;
}

.number-lainnya {
  font-size: 60px; /* Atur ukuran font sesuai kebutuhan */
  margin-bottom: 5px; /* Jarak bawah dari teks ketiga */
}

.nautica_ship_data .cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 7px;
  background-color: transparent; /* Pastikan latar belakang transparan */
  flex-grow: 1;
}


.nautica_ship_data .title-kecepatan,
.nautica_ship_data .title-jarak,
.nautica_ship_data .title-estimasi,
.nautica_ship_data .title-lainnya {
  font-weight: bold;
  font-size: 80px; /* Ukuran kecil */
  padding: 0px;
}

/* ini teks bagian tengah jarak waktu dll */
.nautica_ship_data .number-kecepatan,
.nautica_ship_data .number-jarak,
.nautica_ship_data .number-estimasi,
.nautica_ship_data .number-lainnya {
  font-weight: bold;
  font-size: 12px; /* Ukuran besar */
  padding: 0px;

}

/* ini teks paling knot, mill, day hours */
.nautica_ship_data .text-kecepatan,
.nautica_ship_data .text-jarak,
.nautica_ship_data .text-estimasi,
.nautica_ship_data .text-lainnya {
  font-size: 10px; /* Ukuran kecil */
  font-style: italic; /* Huruf tipis */
  padding: 0px;

}

.nautica_ship_data .icon img {
  width: 40px; /* Mengurangi ukuran ikon */
  height: auto;
  padding: 0px;

}


/* BATAS DATA */
@media (max-width: 750px) {
        .centered, .lefty, .kanany, .righty, .fully {
            width: 70vw;
            margin: 0 auto;
        }
        .step h3 {
          font-size: 18px;
          margin-top: 2px;
        }
        .step p {
          margin-top: -20px;
          font-size: 0.8em;
          
        }

        .step img {
            height: 200px; /* Tinggi gambar pada layar kecil */
          }



      /* tabel nautica */
      .nautica_ship_data {
          bottom: 0; /* Menempelkan tabel ke bagian bawah layar */
          left: 0; /* Menempelkan tabel ke bagian kiri layar */
          right: 0; /* Menempelkan tabel ke bagian kanan layar */
          padding: 0px;
        }

        .nautica_ship_data .table {
          width: 100%; /* Membuat tabel memenuhi lebar layar */
          margin: 0; /* Menghilangkan margin tambahan */
        }

 
      
        .nautica_ship_data .icon img {
          width: 30px; /* Mengurangi ukuran ikon */
          height: 30px;
        }

          /* Sesuaikan ukuran font untuk elemen-elemen lain jika perlu */
          .nautica_ship_data .title-kecepatan,
          .nautica_ship_data .title-jarak,
          .nautica_ship_data .title-estimasi,
          .nautica_ship_data .title-lainnya,
          .nautica_ship_data .number-kecepatan,
          .nautica_ship_data .number-jarak,
          .nautica_ship_data .number-estimasi,
          .nautica_ship_data .number-lainnya,
          .nautica_ship_data .text-kecepatan,
          .nautica_ship_data .text-jarak,
          .nautica_ship_data .text-estimasi,
          .nautica_ship_data .text-lainnya {
            font-size: 10px; /* Menyesuaikan ukuran font untuk tampilan mobile */
          }

          #toggle-icon {
            
            bottom: 0px; /* Menempatkan ikon di bawah layar */
          }
          

          .heading-text {
            background-color: rgba(255, 255, 255, 0.8); /* Latar belakang putih transparan */
            border-radius: 0px;
            margin: 20px;
          }
    }

    /* Fix issue on mobile browser where scroll breaks  */
    .mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate.mapboxgl-touch-drag-pan,
    .mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate.mapboxgl-touch-drag-pan .mapboxgl-canvas {
        touch-action: unset;
}
