/* General styles */
body {
    font-family: "Montserrat", sans-serif;
    background-color: #000;
    color: #fff;
    margin: 0;
    padding: 0;
    position: relative;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', serif;
}

.h5, h5 {
  font-size: 1rem;
}

p{text-align: justify;}
.card-title{text-align: center;margin-bottom: 0;white-space: pre-line;white-space: pre-line;}
.card-text{text-align: center;}
.card-img-overlay {
    position: absolute;
    top: 0;
    right: 0;
    padding: 10px;
    z-index: 1;
}

.badge {
    background-color: green;
    color: white;
    border-radius: 5px;
    padding: 5px 10px;
    font-size: 0.9rem;
}

.slideshow-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}
/* Teks di tengah slider */
.slider-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    text-align: center;
    width: 80%;
    padding: 20px;
    z-index: 20; /* Z-index tinggi agar teks berada di atas slide */
}

.slider-text h1 {
    font-size: 2rem;
    font-family: 'Montserrat', serif;
    margin: 0;
    line-height: 1.4;
    font-weight: bold;
  text-transform: uppercase;
  background: rgba(255,255,255, 0.5);
  color: #000;
  backdrop-filter: blur(3px) !important;
  text-shadow: #fff 1px 0 10px;
  padding: 20px 0;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: 50px;
    height: 50px;
    margin-top: -25px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    background-color: #964B00;
    border: none;
    border-radius: 50%;
    text-align: center;
    line-height: 50px;
    z-index: 10;
    transition: background-color 0.3s;
    text-decoration: none;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Content overlay */
.content-overlay {
    position: absolute;
    top: -40px;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.5);

}

.cagarbudaya-content {
    max-width: 95%;
    width: 100%;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    animation: fadeIn 1s forwards;
    overflow: hidden;
    backdrop-filter: blur(3px) !important;
}

.history-content {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 95%;
    margin: 0 auto;
    padding: 20px 20px;
   background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    animation: fadeIn 1s forwards;
    backdrop-filter: blur(3px) !important;
}
.events-content{
    display: flex;
    
}

.content-sejarah {
    max-height: 600px; /* Atur tinggi maksimal sesuai kebutuhan */
    overflow-y: scroll; /* Menambahkan scroll vertical */
    padding-right: 10px; /* Menambahkan sedikit jarak pada scroll */

}

.scroll-indicator {
    text-align: center; /* Pusatkan teks */
    font-size: 10px; /* Ukuran ikon */
    margin-top: 10px; /* Jarak antara konten dan ikon */
    color: #fff; /* Warna ikon, sesuaikan sesuai desain */
}


.koleksimuseum-bg{align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
   background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    animation: fadeIn 1s forwards;
    backdrop-filter: blur(3px) !important;}
    
.kesenian-bg{align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
   background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    animation: fadeIn 1s forwards;
    backdrop-filter: blur(3px) !important;}

.events-bg{
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
   background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    animation: fadeIn 1s forwards;
    backdrop-filter: blur(3px) !important;
}

/* Styles for the Events page */
.events-content h1 {
    display: block;
    width: 100%;
    text-align: center;
    margin-bottom: 30px; /* Add some margin below the heading */
}

.events-content .card {
    margin-bottom: 20px; /* Add margin-bottom to each card */
}


/* Mengatur scroll-wrapper agar menampilkan 4 item per row secara vertikal */
.horizontal-scroll {
    overflow-y: auto; /* Mengganti scroll dari horizontal ke vertikal */
    padding-bottom: 20px; /* Optional: untuk memberikan jarak di bagian bawah */
    max-height: 600px; /* Menambahkan batas ketinggian untuk scroll */
    width: 100%; /* Pastikan lebar penuh */
}

.scroll-wrapper {
    display: flex;
    flex-wrap: wrap; /* Memungkinkan item untuk dibungkus menjadi beberapa baris */
    justify-content: space-between; /* Jarak yang sama di antara item */
}

.scroll-item {
    flex: 0 0 23%; /* Lebar setiap item sekitar 23% untuk menampilkan 4 item per row dengan jarak */
    margin-bottom: 20px; /* Jarak antar item secara vertikal */
}

.scroll-item img {
    width: 100%; /* Pastikan gambar dalam item mengambil seluruh lebar item */
    height: auto; /* Sesuaikan tinggi gambar secara otomatis */
}

.scroll-item:last-child {
    margin-right: 0; /* Menghapus margin di item terakhir dalam baris */
}

@media (max-width: 992px) {
    .scroll-item {
        flex: 0 0 48%; /* Lebar setiap item di layar lebih kecil akan menjadi 2 item per row */
    }
}

@media (max-width: 768px) {
    .scroll-item {
        flex: 0 0 100%; /* Lebar setiap item di layar kecil akan menjadi 1 item per row */
    }
}

/* Modal styling */
.modal-body img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}



.card{background: rgba(255,255,255,0.9);}

.card-img-top {
    width: 100%;
    height: auto;
    border-radius: 5px 5px 0px 0px;
}

.menu {
    position: fixed;
    bottom: 0;
    width: 100%;
    padding: 10px 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 10;
    backdrop-filter: blur(3px) !important;
}

.menu a {
    color: #fff;
    text-decoration: none;
    padding: 15px 25px;
    font-size: 18px;
    text-transform: uppercase;
    transition: background-color 0.3s;
    font-family: 'Montserrat', serif;
}

.menu a:hover {
    background-color: #964B00;
    color:#fff;
    
}

.menu a.active {
   background-color: #964B00;
    color:#fff;
}



/* Custom Modal Styles */
.modal-content {
    background: rgba(255,255,255,0.9);
    color: #000000; /* Black text color for contrast */
}

.modal-header {
    border-bottom: 1px solid #ddd; /* Light border for header */
}

.modal-title {
    color: #000000; /* Black text color for modal title */
}

.modal-body img {
    max-width: 100%; /* Ensure images do not overflow */
    height: auto;
}

.modal {
    z-index: 99999 !important; /* Bootstrap modals default z-index is 1050 */
}

.btn-close {
    color: #000000; /* Black close button color for visibility */
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3); /* Optional: Add shadow for better contrast */
  
    border: none; /* Remove any default border */
    font-size: 1.5rem; /* Adjust size if needed */
}

.btn-close:hover {
    color: #ff0000; /* Change color on hover if desired */
}

.btn-close:focus {
    box-shadow: none; /* Remove focus outline if needed */
}
/* Animation keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


