/* styles.css */

  body {
    margin: auto;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    overflow: auto;
    background: linear-gradient(315deg, rgba(101,0,94,1) 3%, rgba(60,132,206,1) 38%, rgba(48,238,226,1) 68%, rgb(90, 180, 79) 98%);
    animation: gradient 15s ease infinite;
    background-size: 400% 400%;
    background-attachment: fixed;
}

@keyframes gradient {
    0% {
        background-position: 0% 0%;
    }
    50% {
        background-position: 100% 100%;
    }
    100% {
        background-position: 0% 0%;
    }
}

.wave {
    background: rgb(255 255 255 / 25%);
    border-radius: 1000% 1000% 0 0;
    position: fixed;
    width: 200%;
    height: 12em;
    animation: wave 10s -3s linear infinite;
    transform: translate3d(0, 0, 0);
    opacity: 0.8;
    bottom: 0;
    left: 0;
    z-index: -1;
}

.wave:nth-of-type(2) {
    bottom: -1.25em;
    animation: wave 18s linear reverse infinite;
    opacity: 0.8;
}

.wave:nth-of-type(3) {
    bottom: -2.5em;
    animation: wave 20s -1s reverse infinite;
    opacity: 0.9;
}

@keyframes wave {
    2% {
        transform: translateX(1);
    }

    25% {
        transform: translateX(-25%);
    }

    50% {
        transform: translateX(-50%);
    }

    75% {
        transform: translateX(-25%);
    }

    100% {
        transform: translateX(1);
    }
}

  /* overlay-bar  */
.overlay-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 20px;
    z-index: 1000;
}

@media (max-width: 768px) {
    .logo {
        display: none;
    }
}

/* Kesan hover untuk card */
.card:hover {
    transform: translateY(-10px);
    transition: all 0.3s ease-in-out;
  }
  
  /* Kesan hover untuk butang */
  .btn-primary:hover {
    background-color: #0056b3;
    transition: background-color 0.3s ease;
  }
  

.iframe-container {
    display: flex;
    justify-content: center; /* Letakkan iframe di tengah */
    align-items: center;
    margin-top: 60px; /* Untuk memastikan iframe tidak terlindung oleh overlay bar */
    height: calc(100vh - 60px); /* Tinggi penuh mengurangkan ketinggian bar */
}

iframe {
    width: 100%;
    max-width: 100%;
    height: 100%; /* Tinggi penuh iframe */
    border: none;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2); /* Letakkan bayang untuk menonjolkan iframe */
}

/* Hapuskan ruang putih selepas bar ditutup */
.hide-bar {
    display: none; /* Sembunyikan bar sepenuhnya */
    margin-top: 0; /* Hapuskan kesan margin */
}

/* Pindahkan iframe ke atas selepas bar ditutup */
.hide-bar + #iframeContainer {
    margin-top: 0; /* Pastikan iframe berada di atas */
    height: 100vh;
}

/* Default saiz iframe untuk desktop */
iframe.desktop {
    width: 100%;
    max-width: 100%;
}

/* Saiz iframe untuk tablet */
iframe.tablet {
    width: 768px;
}

/* Saiz iframe untuk mobile */
iframe.mobile {
    width: 375px;
}


/* Overlay Bar */
#overlayBar {
    padding: 5px 0 !important; /* Mengurangkan padding di sekitar navbar */
    height: 60px !important; /* Menetapkan ketinggian navbar */
}

#overlayBar .navbar-nav .btn {
    padding: 2px 10px !important; /* Mengurangkan padding dalam butang */
    font-size: 14px !important; /* Mengurangkan saiz fon pada butang */
}

#overlayBar .logo {
    height: 30px !important; /* Mengurangkan saiz logo */
    width: auto !important; /* Menetapkan auto supaya logo diatur secara proporsional */
}

#overlayBar .navbar-toggler {
    padding: 3px 8px !important; /* Menjadikan butang hamburger lebih kecil */
}

#overlayBar .navbar-nav .btn i {
    font-size: 18px !important; /* Mengurangkan saiz ikon dalam butang */
}

#overlayBar .d-flex span {
    font-size: 14px !important; /* Mengurangkan saiz teks 'Ini adalah versi DEMO' */
    margin-left: 10px !important; /* Kurangkan ruang antara logo dan teks */
}

@media (max-width: 768px) {
    /* Sembunyikan logo dan teks "Ini adalah versi DEMO" di skrin kecil */
    .logo-demo {
        display: none;
    }

    /* Sembunyikan butang Desktop, Tablet, dan Phone di skrin kecil */
    #desktopBtn, #tabletBtn, #mobileBtn, #textDemo {
        display: none;
    }

    /* Pastikan butang Prev, Up, Next, dan Close tetap melintang di sebelah kanan */
    #navbarContent {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        flex-direction: row;
        width: 100%; /* Buat lebar penuh untuk memastikan baris butang penuh */
    }

    /* Butang dalam #subContent */
    #subContent {
        display: flex; /* Gunakan flexbox untuk susunan melintang */
        justify-content: flex-end; /* Letakkan butang di sebelah kanan */
        align-items: center; /* Pastikan butang berada di tengah secara vertikal */
        flex-direction: row; /* Susunan melintang */
        width: auto;
        flex-wrap: nowrap; /* Pastikan butang tidak berpindah ke baris lain */
    }

    /* Pastikan butang berada dalam satu baris dengan margin */
    .navbar-nav .btn {
        margin: 0 5px;
        padding: 5px 15px;
        font-size: 14px !important;
    }

    /* Hilangkan margin automatik */
    .navbar-nav {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: auto;
        justify-content: flex-end;
    }
}

