@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond&display=swap');

/* General Body and Content Styles */
body {
    margin: 0;
    font-family: 'Cormorant Garamond', serif;
    color: #333;
    position: relative; /* Needed for the pseudo-element */
}

/* For all pages using the base template */
.content-page {
    background-color: #f4f4f9;
}

.content-page::before, .login-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/watercolour1.jpg');
    background-color: rgba(0, 0, 255, 0.1);
    background-blend-mode: multiply;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.5;
    z-index: -1;
}

/* For the standalone login page */
.login-page {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.content {
    padding: 2rem;
    text-align: center;
}

/* Navigation Banner Styles */
.nav-banner {
    background-color: #b0c8e4;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative; /* Establishes a stacking context */
    z-index: 100; /* Ensures the banner is above other content */
}

.nav-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
}

.nav-title a {
    color: inherit;
    text-decoration: none;
}

.nav-links {
    display: flex;
}

.nav-links a {
    margin: 0 15px;
    color: #333;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    background-color: #c0dbf9;
}

/* Hamburger Menu Styles */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
}

.hamburger div {
    width: 25px;
    height: 3px;
    background-color: #333;
    border-radius: 3px;
}

/* Styles from protected.html (Home Page) */
.image-container {
    width: 80%;
    max-width: 600px;
    height: auto;
    overflow: hidden;
    border: 2px solid #b0c8e4;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin: 20px auto;
}

.image-container img {
    width: 100%;
    height: auto;
    display: block;
}

/* Google Form Container Styles */
.google-form-container {
    position: relative;
    overflow: hidden;
    padding-top: 125%; /* Adjust this percentage to change the height */
    margin: 2rem auto;
    max-width: 640px;
    border: 2px solid #b0c8e4;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.google-form-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Info Block Styles */
.info-block {
    background-color: rgba(255, 255, 255, 0.75); /* Semi-transparent white background */
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem auto;
    max-width: 800px;
    text-align: left;
}

.info-block h2 {
    margin-top: 0;
    color: #333;
}

/* Tagline style for login page */
.tagline {
    text-align: center;
    font-size: 2.25rem;
    color: #333;
}


/* Google Maps Container Styles */
.map-container {
    position: relative;
    overflow: hidden;
    padding-bottom: 28.125%; /* 16:9 aspect ratio */
    height: 0;
    margin: 2rem auto;
    max-width: 400px;
    border: 2px solid #b0c8e4;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.map-placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-color: #e9ecef;
}

/* Cog Button and Login Modal Styles */
.cog-button {
    position: fixed;
    bottom: 20px;
    left: 20px;
    cursor: pointer;
    z-index: 1000;
    color: #333;
}

.login-modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
    justify-content: center;
    align-items: center;
}

.login-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 400px;
    border-radius: 10px;
    text-align: center;
    position: relative;
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.flashes {
    padding: 0;
    list-style: none;
    color: #A52A2A; /* A reddish color for errors */
}

input[type="password"], input[type="text"] {
    padding: 8px;
    margin: 5px;
    border-radius: 4px;
    border: 1px solid #ccc;
    width: 80%;
}

input[type="submit"] {
    padding: 10px 20px;
    border-radius: 4px;
    border: none;
    background-color: #4CAF50;
    color: white;
    cursor: pointer;
    margin-top: 10px;
}


/* Responsive styles for mobile */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 70px; /* Adjust based on nav-banner height */
        left: 0;
        background-color: #b0c8e4;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        z-index: 100; /* Ensures the dropdown is on top */
    }
    .nav-links.active {
        display: flex;
    }
    .nav-links a {
        text-align: center;
        padding: 1rem;
        border-bottom: 1px solid #c0dbf9;
    }
    .hamburger {
        display: flex;
    }
}