body {
    font-family: "Poppins", sans-serif;
    font-style: normal;
    background-color: #fff;
    margin: 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #1f8dff;
    padding: 0% 2%;
    color: white;
}

.navbar .icon {
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar .icon img {
    height: 40px;
    width: 40px;
}

.navbar h1 {
    margin: 0;
    font-size: 22px;
    color: white;
}

.navbar nav a {
    display: block;
    overflow: hidden;
    list-style: none;
    float: left;
    font-size: 1.2vw;
    margin: 0;
    padding: 20px;
    text-decoration: none;
    color: white;
}

.navbar nav a:hover {
    background-color: white;
    color: #1f8dff;
}

.navbar .btn-profile,
.navbar .btn-login {
    font-family: "Poppins", sans-serif;
    background: white;
    color: #1f8dff;
    border: none;
    padding: 6px 16px;
    margin: 15px 10px;
    border-radius: 20px;
    font-size: 1vw;
    font-weight: bold;
    cursor: pointer;
}

.navbar .btn-profile:hover,
.navbar .btn-login:hover {
    background-color: #004b96;
    color: white;
}

.hamburger-menu {
    display: none; 
}

.back-btn {
    font-size: 24px;
    background: none;
    color: #000;
    border: none;
    cursor: pointer;
    text-decoration: none
}

/* --- Konten Join Room --- */
.join-room-container {
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    height: 381px;
    align-items: center;
    justify-content: center;
}

.back-btn {
    align-self: flex-start;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    margin-bottom: 5px;
}

.join-box {
    background-color: #f0f0f0;
    display: flex;
    padding: 5px 40px 40px 40px;
    border-radius: 16px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 2px 13px rgba(0, 0, 0, 0.2);
    gap: 20px;
    justify-content: space-between;
}

.join-left {
    display: flex;
    flex-direction: column;
}

.join-left h2 {
    font-size: 28px;
    margin: 0px 0px 20px 0px;
}

.kode-input {
    font-size: 16px;
    padding: 10px 15px;
    border: 2px solid #999;
    border-radius: 12px;
    margin-bottom: 20px;
    width: auto;
}

.nama-input {
    font-size: 16px;
    padding: 10px 15px;
    border: 2px solid #999;
    border-radius: 12px;
    width: auto;
    margin-bottom: 20px;
}

.btn-join {
    font-family: "Poppins", sans-serif;
    background-color: #2196f3;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-size: 16px;
    width: auto;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
}

.btn-join:hover {
    background-color: #1976d2;
}

.join-right {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
}

.lock-icon {
    font-size: 60px;
    color: #00bcd4;
    margin-bottom: 10px;
}

.kode-petunjuk {
    background-color: gold;
    color: black;
    font-weight: bold;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 20px;
    margin: 0;
}

.join-right p {
    font-size: 14px;
    max-width: 180px;
    margin: 10px 0px;
}

/*modal style */
#modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#modal-dialog {
    background: #fff;
    padding: 2em;
    border-radius: 10px;
    max-width: 400px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    position: relative;
}

#modal-close {
    position: absolute;
    top: 10px;
    right: 16px;
    font-size: 1.5em;
    cursor: pointer;
}

#modal-title {
    margin: 0;
    font-size: 20px;
}

#modal-subtitle {
    margin: 0;
    font-size: 16px;
    color: #666;
}

#modal-content {
    margin-top: 10px;
}

/* --- Footer --- */
footer {
    background-color: #d9d9d9;
    text-align: center;
    padding: 10px 0;
    position: sticky;
    bottom: 0;
    width: 100%;
}

/* extra small (phone) */
@media only screen and (max-width: 600px) {

    /* 1. Tombol Hamburger: Tampilkan di mobile */
    .hamburger-menu {
        display: block;
        font-size: 30px;
        background: none;
        border: none;
        color: white;
        cursor: pointer;
        z-index: 1003;
    }

    /* 2. Sembunyikan Tombol Hamburger di Desktop */
    .navbar nav {
        /* Hapus properti float: left dan display: block/inline-block untuk mobile */
        display: flex;
        flex-direction: column;
        /* Menu berjejer vertikal */
        align-items: flex-start;
        /* Konten rata kiri */

        position: fixed;
        top: 0;
        right: -300px;
        /* Sembunyikan di luar layar */
        width: 300px;
        /* Lebar Side Bar */
        height: 100%;
        background-color: #1f8dff;
        box-shadow: -4px 0 15px rgba(0, 0, 0, 0.3);
        z-index: 1002;
        transition: right 0.3s ease-in-out;
        /* Animasi geser */
        padding-top: 60px;
        /* Ruang di atas */
    }

    /* 3. Kelas untuk Menampilkan Side Bar */
    nav.open {
        right: 0;
        /* Geser ke posisi terlihat */
    }

    /* 4. Gaya Item Menu di Side Bar */
    .navbar nav a {
        /* Override gaya desktop */
        float: none;
        width: 100%;
        padding: 15px 20px;
        text-align: left;
        box-sizing: border-box;
        font-size: 18px;
    }

    .navbar nav a:hover {
        background-color: white;
        color: #1f8dff;
    }

    /* 5. Gaya Tombol (Profil/Login) di Side Bar */
    .navbar .btn-profile,
    .navbar .btn-login {
        /* Override gaya desktop */
        width: 80%;
        font-size: 16px;
        margin: 20px 20px 15px;
    }

    .join-box {
        width: 88%;
    }

    footer {
        position: fixed;
        bottom: 0;
    }
}

/* small (portrait tablet & large phone) */
@media only screen and (min-width: 600px) {

    footer {
        position: fixed;
        bottom: 0;
    }
}

/* medium (landscape tablet) */
@media only screen and (min-width: 768px) {

    .join-box {
        width: 88%;
    }

    footer {
        position: fixed;
        bottom: 0;
    }
}

/* large (laptop/dekstop) */
@media only screen and (min-width: 992px) {
    footer {
        position: fixed;
        bottom: 0;
    }
}

/* extra large (laptop/dekstop, and up) */
@media only screen and (min-width: 1200px) {
    footer {
        position: fixed;
        bottom: 0;
    }
}