body, html {
    height: 100%;
    margin: 0;
    font-family: Arial, sans-serif;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Navbar styles */
nav {
    background-color: #333;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    overflow-x: auto; /* Allow horizontal scroll */
    white-space: nowrap; /* Prevent items from wrapping */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

/* Hide scrollbar for Webkit browsers */
nav::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for Firefox */
nav {
    scrollbar-width: none; /* Hide scrollbar in Firefox */
}

.navbar {
    display: inline-flex; /* Align items horizontally */
    list-style: none;
    padding: 0;
    margin: 0;
}

.navbar li {
    padding: 10px 20px;
    color: white;
    background-color: #444;
    margin: 5px;
    border-radius: 5px;
    cursor: pointer;
    display: inline-block; /* Ensure items are inline and allow scrolling */
    transition: background-color 0.3s, color 0.3s, box-shadow 0.3s; /* Smooth transition */
}

.navbar li.active {
    background-color: #000000;
    box-shadow: 0 4px 8px rgb(0, 217, 255); /* Bayangan cyan */
    color: lime;
}

.navbar li:hover {
    background-color: #007bff; /* Background biru saat hover */
    color: white; /* Warna teks putih saat hover */
    box-shadow: 0 4px 8px rgba(0, 255, 0, 0.8); /* Bayangan hijau dengan transparansi */
}

.tab-container {
    margin-top: 50px; /* Adjust for navbar height */
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: calc(100vh - 50px); /* Adjust height for navbar */
    overflow: hidden;
}

.iframe-container {
    display: none;
    width: 100vw;
    height: calc(100vh - 50px); /* Adjust height for navbar */
    position: absolute;
    top: 50px; /* Adjust for navbar height */
    left: 0;
    background-color: white;
    overflow: hidden;
    z-index: 1; /* Ensure iframe is below navbar */
}

.iframe-container.active {
    display: block;
}

iframe {
    width: 100%;
    height: 100%;
    border: none;
    object-fit: contain;
}