body {
    font-family: 'Rubik', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Prevent horizontal scroll */
}
header {
    width: 100%;
    background-color: #007BFF;
    color: white;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000; /* Ensure header stays on top */
}
.logo {
    margin-right: auto; /* Pushes logo to the left */
    width: 60px; /* Adjust width as needed */
}
.menu-toggle {
    display: none; /* Hide by default on larger screens */
}
.menu {
    list-style-type: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
    justify-content: flex-end; /* Align menu to the right */
}
.menu li {
    font-size: 16px;
    position: relative;
}
.menu li a {
    color: white;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s;
}
.menu li a:hover {
    background-color: #0056b3;
}
.dropdown {
    position: relative;
}
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    top: 100%; /* Adjust dropdown position */
    left: 0;
}
.dropdown:hover .dropdown-content {
    display: block;
}
.search-icon {
    display: block;
    color: white;
    font-size: 20px;
    cursor: pointer;
}
.search-container {
    display: none;
    position: absolute;
    top: 50px;
    right: 20px;
    background-color: #007BFF;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 999; /* Ensure search bar stays on top */
}
.search-container.active {
    display: flex;
}
.search-input {
    flex: 1;
    margin-right: 10px;
    border: none;
    padding: 6px 10px;
    border-radius: 5px;
    font-size: 14px;
}
.search-button {
    padding: 6px 12px;
    background-color: #0056b3;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
.search-button:hover {
    background-color: #003d80;
}

.image-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 80px; /* Added gap between header and images */
    padding: 20px; /* Added padding for better spacing */
}

.image-wrapper {
    text-align: center;
    position: relative;
    max-width: 300px;
    opacity: 0;
    transition: opacity 0.5s ease-in-out; /* Added fade-in transition */
}

.image-wrapper img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 5px;
}

.image-wrapper img.visible {
    opacity: 1;
}

.image-caption {
    margin-top: 10px;
    font-weight: bold;
}

.button-container {
    text-align: center;
    margin-top: 10px;
}

.button {
    padding: 8px 16px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.button:hover {
    background-color: #0056b3;
}
.footer-icons {
    display: flex;
    justify-content: center; /* Untuk mengatur ikon di tengah */
    gap: 20px; /* Jarak antar ikon */
}

.footer-icons a {
    color: #007BFF;
    font-size: 24px;
    transition: color 0.3s;
}

.footer-icons a:hover {
    color: #0056b3;
}

/* Gaya tambahan jika perlu */
.footer-icons a i {
    /* Atur ukuran, warna, dsb. sesuai kebutuhan */
}

/* Gaya untuk teks hak cipta */
.copyright {
    margin: 0;
    text-align: center;
    color: #555;
    font-size: 14px;
}

@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    .menu {
        display: none; /* Hide menu items by default on smaller screens */
        flex-direction: column;
        gap: 10px;
        position: absolute;
        top: 50px;
        right: 0;
        width: 100%;
        background-color: #007BFF;
        padding: 10px;
        box-sizing: border-box;
        z-index: 999; /* Ensure menu is on top */
    }

    .menu li {
        text-align: center; /* Center align menu text */
        width: 100%; /* Full width for menu items */
    }

    .menu li a {
        color: white;
        text-decoration: none;
        padding: 10px;
        display: block;
    }

    .menu-toggle {
        display: block; /* Display toggle button for menu on smaller screens */
        color: white;
        font-size: 20px;
        cursor: pointer;
        margin-right: 10px;
    }

    .dropdown {
        position: relative;
        display: inline-block;
    }

    .dropdown-content {
        top: calc(100% + 5px); /* Adjust dropdown position */
        min-width: 100%; /* Ensure dropdown width covers full screen */
        text-align: center; /* Center align dropdown items */
    }

    .dropdown-content a {
        padding: 10px;
        display: block;
    }

    .search-icon {
        display: block;
    }

    .search-container {
        display: none;
    }
}