@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.cdnfonts.com/css/barlow-semi-condensed');
@import url('https://fonts.cdnfonts.com/css/anton');
 
html {
    scroll-padding-top: 4.4rem;
    scroll-behavior: smooth;
    text-align: justify;
    overflow-x: hidden;
    width: 100vw;
}

body {
    margin: 0;
    padding: 0;
    font-family: "Poppins", sans-serif;
    color: #fff;
    position: relative;
    /* Needed for positioning pseudo-element */
    max-height: 100vh;
    overflow-x: hidden;
    width: 100vw;
}

body::before {
    content: "";
    position: absolute;
    top: 50px;
    /* Adds a margin of 50px at the top */
    left: 0;
    width: 100%;
    height: 120vh;
    background: url('../img/logo/hasailogo.png') no-repeat fixed;
    background-position: center bottom;
    /* Positions the image at the bottom */
    background-size: 32.5rem;
    opacity: 0.3;
    /* Adjusts transparency */
    filter: blur(5px);
    /* Adds a blur effect to the background */
    z-index: -1;
    /* Ensures it stays behind the content */
}


/* Default navbar background color */
#mainNav {
    background-color: rgb(12, 110, 3);
    width: 100%;
    position: fixed;
    transition: background-color 0.3s ease-in-out;
}

/* Darker navbar when scrolled */
#mainNav.scrolled {
    background-color: rgb(12, 110, 3);
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
}

/* Navigation list transition */
#navi {
    transition: background-color 0.3s ease-in-out;
    text-align: center;
}

/* Change color of navigation list on scroll */
#navi.scrolled {
    background-color: rgba(12, 110, 3, 0.9);
}

/* Navbar link styling */
.navbar-nav .nav-link {
    color: white !important;
}

/* Hamburger menu button */
.navbar-toggler {
    border: none;
    background-color: white;
}

/* Remove focus outline on toggler */
.navbar-toggler:focus {
    box-shadow: none;
}

nav li {
    margin-left: 90px;
}

nav li a {
    font-family: 'Barlow Semi Condensed';
}

nav li:hover {
    scale: 1.1;
    transition: 0.2s;
}

.logo {
    position: fixed;
}

main h2 {
    margin-top: 1em;
    display: flex;
    justify-content: center;
    color: #f9a72b;
    margin-bottom: 2rem;
}

/* information */
main {
    color: #108711;
    padding: 4rem 3rem 0rem 3rem;
    font-size: 17px;
    margin-top: 60px;
}

main ul a {
    text-decoration: none;
    list-style: none;
    text-align: right;
    color: #108711;
}

main li {
    margin-bottom: 15px;
}

main li:hover {
    color: #f5df1b;
}
.pt-5{
    margin-right: 60px;
}

#textbox {
    margin-left: 50px;
}

.parent {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, 1fr);
    grid-column-gap: 0px;
    grid-row-gap: 0px;
    color: #000;
}

.parent h3 {
    color: #108711;
}

.div1 {
    grid-area: 1 / 1 / 5 / 4;
}

.reg {
    overflow-y: scroll;
    max-height: 90vh;
}

.reg::-webkit-scrollbar {
    display: none;
}

.div2 {
    grid-area: 1 / 4 / 2 / 5;
}

.div3 {
    grid-area: 2 / 4 / 4 / 5;
}

@media (max-width: 1200px) {
    nav li {
        margin-left: 50px;
    }

    #img_bg {
        margin-top: 12.5em;
        width: 35rem;
    }
}

@media (max-width: 992px) {
    .cons {
        width: 100%;
        display: flex;
        justify-content: space-between;
    }

    nav li {
        margin-left: 0px;
    }

    /* Navbar default (transparent) */
    #mainNav {
        background-color: transparent;
        z-index: 102;
        width: 100%;
    }

    /* Background appears on scroll or when toggled */
    #mainNav.scrolled,
    .navbar-collapse.show+#mainNav {
        background-color: rgb(12, 110, 3);
        /* Green when scrolling/toggled */
        box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
    }

    /* Ensure the mobile menu has a background */
    .navbar-collapse {
        background-color: rgb(12, 110, 3);
    }

    #img_bg {
        margin-top: 15em;
        width: 35rem;
    }

    .filter h1 {
        font-size: 3rem;
    }

    #information {
        font-size: 15px;
        padding: 3rem 2rem;
    }

    #information ul a {
        font-size: 16px;
    }

}

@media (max-width: 768px) {
    #info {
        display: flex;
        flex-direction: column-reverse;
        justify-content: center;
    }

    #information ul {
        display: flex;
        width: 500px;
    }

    #information ul a {
        text-align: center;
        margin-right: 10px;
        font-weight: 600;
    }

    #img_bg {
        margin-top: 17.5em;
        width: 33rem;
    }

    .filter h1 {
        font-size: 2.5rem;
    }

    #information {
        font-size: 14px;
    }

    #information ul a {
        font-size: 14px;
    }
    .pt-5{
        margin-right: 0;
    }

    .parent {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: 0.3fr 1fr repeat(3, 0.5fr);
        grid-column-gap: 0px;
        grid-row-gap: 0px;
        }
        
        .div1 { grid-area: 2 / 1 / 5 / 4; }
        .div2 { grid-area: 1 / 1 / 2 / 4; }
        .div3 { grid-area: 5 / 1 / 6 / 4; }
}

@media (max-width: 620px) {
    main{
        margin-top: 80px;
    }
    #img_bg {
        display: none;
    }

    #information ul {
        margin-left: -30px;
    }

    #mailing {
        display: flex;
        align-items: center;
    }
    .div1 h3{
        font-size: 20px;
    }

}

@media (max-width: 576px) {
    #img_bg {
        display: none;
    }

    .filter h1 {
        font-size: 2rem;
        padding: 10px;
    }

    #information {
        padding: 2rem 1rem;
    }

    #footer {
        height: auto;
        padding: 20px;
        text-align: center;
    }

    #footer h1 {
        font-size: 1.5rem;
    }

    #mailing {
        flex-direction: column;
        gap: 20px;
    }

    #mailing div {
        width: 100%;
    }

    .creator {
        font-size: 14px;
        flex-direction: column;
        text-align: center;
    }

    @media (max-width: 470px) {
        #information ul {
            width: 450px;
        }
    }

    @media (max-width: 390px) {
        #information ul {
            width: 380px;
        }

        .col {
            margin: 0;
        }

    }
}