* {
    margin: 0;
    padding: 0;
    font-family: "Kanit", sans-serif;
}

html {
    scroll-behavior: smooth;
}

/* Navbar */

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    background-color: white;
    /* Add a background color to make it visible */
    z-index: 999;
    /* Add a high z-index to ensure it stays on top of other elements */
}


.nav-title {
    font-size: 1.5rem;
    color: #000000;
    margin: 0;
    text-decoration: none;
}

.nav-title-link {
    text-decoration: none;
    color: #000000;
}

.nav-title-link:hover {
    color: #5a2ba5;
}

.nav-menu {
    display: flex;
    justify-content: center;
    list-style: none;
}

.nav-item {
    list-style: none;
    padding: 0 20px;
}

.nav-link {
    text-decoration: none;
    color: #000000;
    font-weight: 500;
}

.nav-link:hover {
    color: #5a2ba5;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    background-color: black;
}


/* Container + box */

.container {
    width: 96%;
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 130px;
    /* background-color: rgb(255, 244, 230); */
    border-radius: 5px;
    box-shadow: 5px 5px black;
    border: 2px solid black;
}

.box {
    margin-left: 1rem;
    margin-right: 1rem;
}

.box-title {
    font-size: 2rem;
    margin: 20px 0 20px;

}

.box-text {
    font-size: 1.3rem;
    margin-bottom: 20px;
}

/* Image gallery */

.container-img {
    max-width: 1200px;
    padding: 50px 20px;
    margin: 0 auto;
}

#gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.galleryImg {
    width: 300px;
    height: 200px;
    object-fit: cover;
    padding: 5px
}

.galleryImg:hover {
    cursor: pointer;
    opacity: 0.5;
    transition: 0.3s;
}

#popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateY(-100%);
    transition: 250ms transform;
    padding: 50px;

}

#selectedImage {
    max-width: 80%;
    height: auto;
    outline: 5px solid white;
}

/* Footer */

.footer-content, .footer-bottom {
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: 500px;
    margin: 10px auto;
    line-height: 28px;
    font-size: 15px;
}

.social-icons {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 16px 0 48px 0;
}

.icon-link {
    padding: 5px;
}

.icon-link svg:hover {
    fill: #5a2ba5;
}

/* MEDIA QUERIES */
/* Navbar + hamburger */

@media(max-width:676px) {
    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-menu {
        display: none;
        position: fixed;
        right: 0;
        top: 70px;
        gap: 0;
        flex-direction: column;
        width: 100%;
        text-align: right;
        transform: 0.9s;
    }

    .nav-item {
        margin: 10px 0;
    }

    .nav-menu.active {
        display: block;
        background-color: white;
        opacity: 0.98;
        height: 25%;
    }
}