* {
    margin: 0;
    padding: 0;
    font-family: 'Helvetica', sans-serif;
}

body {
    background: white;
    max-width: 100%;
    min-height: 100vh; /* Ensure that the body takes at least the full height of the viewport */
}

a, div {
    text-decoration: none;
    color: black;
}

/* Loader */


#loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    text-align: center;
}

.loading-content-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.loading-content-box h2 {
    margin-bottom: 60px;
    font-weight: normal;
}

.loading-content-box h1 {
    font-size: 2.5rem;
}

.loader-names {
    margin-top: 20px;
    font-size: 1.5rem;
    display: flex;
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
}



#loading-gif {
    margin-top: 20px;
    display: block;
    width: 80vw; 
    max-width: 700px; 
    height: auto; 
    border-radius: 10px;
}

/* Wrapper */

.wrapper {
    display: none;
    flex-direction: column;
    /*border: 1px solid red;*/
    max-width: 1400px;
    height: 100%;
    margin: auto;
    background-color: rgba(255,255,255,0.5);
}

/* Navigation Bar */

.navigation {
    position: sticky;
    top: 0;
    background-color: rgba(255,255,255,0.5); /* Semi-transparent white background */
    backdrop-filter: blur(5px); /* Adjust the blur intensity as needed */
    z-index: 100; /* Ensure it's above other elements */
}

.nav-container {
    max-width: 90rem;
    width: 100%;
    box-sizing: inherit;
    border-bottom: 2px solid #8ACAC1;
    
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1rem 2rem;
}

.nav-title {
    font-size: 1.3rem;
    font-weight: bold;
    transition: color 0.2s ease-in-out;
}

.nav-title:hover {
    color: #8ACAC1;
}

.nav-subtitle {
    display: block;
    font-size: 1.3rem;
}

.nav-list {
    display: none;
}

.list-item {
    margin-left: 2rem;
}

.navigation-link:hover{
    color: #8ACAC1;
}

.hamburger {
    display: none;
}

.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: #101010;
}

/* Content */

.content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center; /* Vertically center content */
    /*border: 1px solid green;*/
}

/* Grid */

.grid-container {
    min-width: 85%;
    /*border: 1px solid blue;*/
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(calc(33.33% - 20px), 1fr));
    padding: 20px 0 10px 0;
    gap: 20px;
    grid-row-gap: 30px;
    justify-content: center;
    font-size: 1.2rem;
}

.grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 180px;
    padding: 20px;
    background-color: white;
    color: black;
    font-weight: bold;

    border: 1px solid rgba(211, 211, 211, 0.3);
    border-radius: 5px;

    transition: transform 0.4s ease-in-out;
}

.grid-item:hover {
    transform: scale(1.05);
    /*box-shadow: 0 0 20px #8ACAC1;*/
    color: #8ACAC1;
}

#cartoon1,
#cartoon2, 
#cartoon3 {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}

#cartoon1 {
    background-image: url(../media/cartoon1.jpg);
}

#cartoon2 {
    background-image: url(../media/cartoon2.jpg);
}

#cartoon3 {
    background-image: url(../media/cartoon3.jpg);
}

.grid-item-label {
    border-radius: 0.3rem;
    margin-top: 65%;
    padding: 10px 20px 10px 20px;
    background-color: rgba(255,255,255,0.8);
}

#cartoon1:hover .grid-item-label,
#cartoon2:hover .grid-item-label,
#cartoon3:hover .grid-item-label {
    color: #8ACAC1; /* Change text color to improve visibility */
}



/* Footer */

.footer {
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.5);
    text-align: center;
    margin-bottom: 10px;
}

.footer-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; /* Allow items to wrap to the next line */
}

.footer-legal-link {
    display: flex;
    align-items: space-between;
    color: rgb(70, 155, 181);
    margin-bottom: 15px;
}

.footer-legal-link a {
    margin: 0 10px 0 10px;
}

.footer-legal-link a:hover {
    text-decoration: underline;
}



/* Media Queries */

@media screen and (max-width: 860px) {

    .loading-content-box 

    .loader-names {
        font-size: 1.2rem;
    }

    .nav-wrapper {

        font-size: 1rem;
    }
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
        grid-row-gap: 30px;
    }

    /* Change footer items to stack */
    .footer-container {
        flex-direction: column;
        align-items: center; /* Center items in a column */
    }

    .footer-legal-link {
        margin-left: 0; /* Reset margin for stacked items */
        margin-top: 10px; /* Add some space between stacked items */
    }
}

@media screen and (max-width: 640px) {

    .loading-content-box h1 {
        font-size: 1.5rem;
    }

    .loading-content-box h2 {
        font-size: 1rem;
    }

    .loader-names {
        display: none;
    }

    h1 {
        font-size: 2rem;
    }
    .nav-subtitle {
        display: none;
    }

    .nav-wrapper {
        font-size: 1rem;
    }
    .nav-list {
        display: block;
        position: fixed;
        left: -100%;
        top: 0rem;
        flex-direction: column;
        background-color: #fff;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    }

    .nav-list.active {
        left: 0;
    }

    .list-item {
        margin: 2.5rem 0;
    }

    .hamburger {
        display: block;
        cursor: pointer;
    }

    .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);
    }

    /* Change grid stack to 1 column */
    .grid-container {
        grid-template-columns: 1fr;
    }
}
