:root {
    /* Colors */
    --primary-color: #4a4e69; /* Dark blue */
    --secondary-color: #9a8c98; /* Light purple */
    --accent-color: #c4c4f8; /* Light blue */
    --dark-color: #363342; /* Dark gray */
    --light-color: rgb(229, 223, 253); /* Light gray */
    --light-color-50: rgba(229, 223, 253, 0.753);

    /* Fonts */
    --font-Roboto: 'Roboto Mono', monospace;
    --font-Trirong: 'Trirong', serif;
    --font-Expletus: 'Expletus Sans', cursive;

    /* Font Sizing */
    --font-size-xxsmall: 0.5em; /* 8px */
    --font-size-xsmall: 0.625em; /* 10px */
    --font-size-small: 0.75em; /* 12px */
    --font-size-medium: 0.875em; /* 14px */
    --font-size-large: 1em; /* 16px */
    --font-size-x-large: 1.125em; /* 18px */
    --font-size-xx-large: 1.25em; /* 20px */
    --font-size-xxx-large: 1.375em; /* 22px */
    --font-size-xxxx-large: 1.5em; /* 24px */
    --font-size-xxxxx-large: 1.625em; /* 26px */
    --font-size-xxxxxx-large: 1.75em; /* 28px */
    --font-size-xxxxxxx-large: 1.875em; /* 30px */
    --font-size-xxxxxxxx-large: 2em; /* 32px */
    --font-size-xxxxxxxxx-large: 7em; /* 112px */
}

/* SVG Text */
.svg-text {
    font-family: var(--font-Expletus);
    font-size: var(--font-size-xxxxxxxxx-large);
    font-weight: 700;
    fill: var(--light-color);
}

/* Reset */
body, html {
    height: 100%;
    margin: 0;
    background-color: var(--dark-color);
    color: var(--dark-color);
    font-family: var(--font-Roboto);
    font-style: normal;
    font-weight: 400;
    max-width: 100%vw;
}

/* CSS Grid */
.container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(375px, 968px) minmax(0, 1fr); /* Center the content */
    grid-template-rows: auto 48px 1fr auto; /* Set the height of the header and footer */
    gap: 0px 0px;
    grid-auto-flow: row;
    grid-template-areas:
        "header header header"
        ". nav ."
        ". content ."
        ". footer .";
    height: 100%;
    min-height: 100vh;
}

.header {
    min-height: 100px;
    max-height: 120px;
    grid-area: header;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header svg {
    height: 100%;
    width: auto;
}

.header img {
    height: 100%;
    max-height: 240px;
    width: auto;
}

.nav {
    min-height: 48px;
    margin-top: 1.8em;
    grid-area: nav;
}

.content {
    grid-area: content;
    margin-top: 1.8em;
}

.footer {
    grid-area: footer;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: min-content;
    gap: 0px 0px;
    grid-template-areas: "copy links disclaimer";
}

/* Nav bar styling */
.nav {
    margin: 0.5em 0;
}

.nav ul {
    list-style-type: none;
    padding: 0;
    display: flex;
    justify-content: space-around;
    margin-bottom: 45px;
}

.nav ul li {
    margin: 0 10px;
    padding: auto;
}

.nav ul li a {
    text-decoration: none;
    color: var(--light-color);
    font-size: var(--font-size-xx-large);
}

/* Active link styling */
.nav ul li.active a {
    text-decoration: underline;
    font-weight: bold;
    color: var(--secondary-color);
}

/* Footer */
.footer ul {
    list-style-type: none;
    padding: 0;
    justify-content: center;
}

.footer ul li {
    margin: 10px;
}

.footer a {
    font-size: var(--font-size-medium);
    color: var(--light-color);
    text-decoration: none;
}

.copy {
    grid-area: copy;
}

.links {
    grid-area: links;
}

.disclaimer {
    grid-area: disclaimer;
}

/* Quote styling */
.quote-container {
    text-align: center;
    max-width: 100%;
}

.quote {
    font-family: var(--font-Trirong);
    font-size: 2em; /* Large text size for the quote */
    font-style: italic;
    font-weight: 500;
    color: var(--dark-color);
}

.quote-container h4 {
    font-family: var(--font-Roboto);
    font-size: var(--font-size-xsmall);
    font-weight: 300;
    color: var(--dark-color);
}

input {
    min-width: none !important;
    max-width: 720px !important;
}

/* Contact form styling */
.contact-form-container {
    max-width: 600px;
    min-width: 580px;
    margin: 0 auto;
    padding: 20px;
    background-color: var(--light-color-50);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.contact-form {
    display: flex;
    flex-direction: column;
}

.contact-form label {
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.contact-form input,
.contact-form textarea {
    margin-bottom: 16px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
}

.contact-form button {
    padding: 12px;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1em;
    cursor: pointer;
}

.contact-form button:hover {
    background-color: var(--secondary-color);
}

.success-message {
    color: green;
    font-weight: bold;
    margin-bottom: 20px;
}

.error-message {
    color: red;
    font-weight: bold;
    margin-bottom: 20px;
}

/* Article styling for about us page */
.content {
    max-width: 800px;
    margin: 30px auto;
    padding: 20px;
    background-color: var(--light-color-50);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.content article {
    display: flex;
    flex-direction: column;
}

.content article h2 {
    margin-bottom: 16px;
    color: var(--primary-color);
    font-size: var(--font-size-xxxx-large);
}

.content article p {
    margin-bottom: 16px;
    color: var(--dark-color);
    line-height: 1.6;
    color: #333;
}

.content article ul {
    margin-bottom: 16px;
    color: var(--dark-color);
    line-height: 1.6;
    color: #333;
}

.content article ul li {
    margin-bottom: 1.56em;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .header {
        min-height: 150px;
    }

    .header svg {
        height: 150px;
    }

    .quote {
        font-size: 1.5em;
    }

    .content {
        max-width: 100vh;
        padding: 15px;
    }

    .content article h2 {
        font-size: var(--font-size-xx-large);
    }

    .content-form-container {
        max-width: 100%;
        min-width: none;
        padding: 10px;        
    }
}

@media (max-width: 480px) {
    .header {
        min-height: 100px;
    }

    .header svg {
        height: 100px;
    }

    .quote {
        font-size: 1.2em;
    }

    .nav {
        margin: 1em 0;
    }

    .nav ul {
        margin: 0.5em 0;
        flex-direction: column;
        align-items: center;
    }

    .content {
        margin-top: 9.5em;
    }

    .footer {
        grid-template-columns: 1fr;
        grid-template-areas: 
            "copy"
            "links"
            "disclaimer";
        text-align: center;
    }

    footer ul li {
        margin: 5px 0;
    }
}

/* Forms */
.signup {
    min-width: 80vw;
    max-width: 800px;
    margin: auto;
    color: var(--dark-color);
    padding: 20px;
    box-sizing: border-box;
}

.age-confirmation {
    background-color: #f8d7da;
    border: 2px solid #f5c6cb;
    padding: 10px;
    text-align: justify;
    font-weight: bold;
    margin-bottom: 20px;
    max-width: 720px !important;
}

.normal-disclaimer {
    background-color: #f8d7da;
    border: 2px solid #f5c6cb;
    padding: 10px;
    text-align: justify;
    font-weight: bold;
    margin-bottom: 20px;
    max-width: 720px !important;
}

.bright-disclaimer {
    background-color: yellow;
    border: 2px solid red;
    padding: 10px;
    text-align: justify;
    font-weight: bold;
    margin-bottom: 20px;
    max-width: 720px !important;
}

.signup p {
    margin-bottom: 15px;
    max-width: 775px;
}

.signup form {
    width: 100%;
}

.signup div {
    margin-bottom: 15px;
}

.signup label {
    display: block;
    margin-bottom: 5px;
}

.signup input[type="text"],
.signup input[type="email"],
.signup input[type="password"],
.signup input[type="number"] {
    width: 100%;
    max-width: 775px;
    padding: 8px;
    box-sizing: border-box;
}

.signup input#first_name,
.signup input#middle_name,
.signup input#last_name {
    width: 100%;
    max-width: 200px;
}

.signup button {
    padding: 10px 20px;
    background-color: #007BFF;
    color: white;
    border: none;
    cursor: pointer;
    width: 100%;
    max-width: 180px;
}

.signup button:hover {
    background-color: #0056b3;
}

/* Finances Styling */
.year-summary {
    margin-bottom: 20px;
}

.year-details {
    margin-left: 20px;
}

.month-summary {
    margin-bottom: 10px;
    cursor: pointer;
}

.month-details {
    margin-left: 20px;
}

.donate-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
}

.donate-button:hover {
    background-color: #0056b3;
}

.labor-tracking {
    margin-top: 20px;
}

/* Special Properties */
.hidden {
    display: none;
}

.bold {
    font-weight: bold;
}

.bolder {
    font-weight: bolder;
}

.note {
    font-size: 0.8em;
    color: #6c757d;
    font-size: var(--font-size-small);
}