body {
    margin: 0;
    font-family: Arial, sans-serif;
    display: grid;
    grid-template-columns: 250px 1fr; /* Navigation links (250px) and main content (flexible) */
    height: 100vh;
}

nav {
    background-color: #378ad3;
    color: white;
    /*padding: 10px;*/
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    height: 100vh; /* Ensures the navigation spans the full height of the viewport */
}

.banner {
    width: 100%;
    height: auto;

}

.nav-links a {
    display: block;
    color: white;
    text-decoration: none;
    margin: 10px 0;
    padding: 15px;
    border-radius: 5px;
}

.nav-links a:hover {
    background-color: #555;
}

.menu-button {
    display: none;
    background-color: #378ad3;
    color: white;
    border: none;
    padding: 10px;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
}

main {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    transition: background-color 0.5s ease;
    margin: 0;
    padding: 20px;
}

main h1 {
    margin: 0;
}

.logo {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
}



.divloginbutton {
        position: fixed; 
        top: 20px; 
        right: 20px; 
        width: 250px; 
        height: auto;
    }
.loginbutton {
    width: 100%; 
    height: 7vh; 
    font-size: 16px; 
    background-color: #378ad3; 
    color: white; 
    border: none; 
    border-radius: 5px; 
    cursor: pointer;
}
.loginbutton:hover {
    background-color: #555; /* Darker shade on hover */
}


.mobileonly {
    display: none; /* Hide the line break on mobile */
}

#loginPopup {
    display: none; /* Initially hidden */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    z-index: 1000;            
}

#loginexecbutton {
    padding: 10px 20px;
    background-color: #378ad3;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#loginclosebutton {
    padding: 10px 20px;
    background-color: #555;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-left: 10px;
}

@media (max-width: 768px) {
    body {
    grid-template-columns: 1fr; /* Stack navigation and main content */
    grid-template-rows: auto 1fr;
    height: auto; /* Adjust height to fit content */
    }

    nav {
    grid-row: 1;
    height: auto; /* Adjust height to fit content */
    }

    main {
    grid-row: 2;
    margin: 0; /* Remove any extra margin */
    padding: 2vh; /* Remove any extra padding */
    }

    .menu-button {
    display: block;
    }

    .nav-links {
    display: none;
    flex-direction: column;
    }

    .nav-links.active {
    display: flex;
    }

    .banner {
    order: -1;
    }
    .mobileonly {
        display:contents; /* Hide the line break on mobile */}

    .divloginbutton {
        position: fixed; 
        top: 80vh; 
        right: 20px; 
        width: 250px; 
        height: auto;
        }
    }