/* ---------- EXTRA SMALL DEVICES ---------- */
@media screen and (max-width: 600px) {
    :root {
        /* Fixed values */
        --color-surface-0: #121212;
        --color-surface-1: #282828;
        --color-surface-2: #3f3f3f;
        --color-surface-3: #8b8b8b;
        --color-primary-0: #bf8102;
        --color-primary-1: #c88e2e;
        --color-text-0: #dfdfdf;
        --color-text-1: #bfbfbf;
        --color-text-2: #9f9f9f;
        --color-event-card: #222222;
        --font-global: 'Lato', sans-serif !important;

        /* Page dimensions */
        --dim-page-width: 100vw;
        --dim-page-width-content: 1170px;
        --dim-page-height: 100vh;
        --dim-header-height: 70px;

        /* Fonts and font sizes */
        --font-size-global-header: 28px;
        --font-size-global-content: 20px;
        --line-height-global-content: 31px;

        /* Header and Navigation */
        --header-content-justify-content: center;
        --logo-display: none;
        --nav-container-display: none;
        --nav-dropdown-display: flex;

        /* Landing */
        --landing-text-container-left: 10%;
        --landing-text-title-font-size: 77px;
        --landing-text-subtitle-font-size: 28px;

        /* About Us */
        --image-content-container-margin: 0;

        /* Events */
        --event-card-image-display: none;
    }
}

/* ---------- SMALL DEVICES ---------- */
@media screen and (min-width: 600px) {
    :root {
        /* Fixed values */
        --color-surface-0: #121212;
        --color-surface-1: #282828;
        --color-surface-2: #3f3f3f;
        --color-surface-3: #8b8b8b;
        --color-primary-0: #bf8102;
        --color-primary-1: #c88e2e;
        --color-text-0: #dfdfdf;
        --color-text-1: #bfbfbf;
        --color-text-2: #9f9f9f;
        --color-event-card: #222222;
        --font-global: 'Lato', sans-serif !important;

        /* Page dimensions */
        --dim-page-width: 100vw;
        --dim-page-width-content: 1170px;
        --dim-page-height: 100vh;
        --dim-header-height: 70px;

        /* Fonts and font sizes */
        --font-size-global-header: 28px;
        --font-size-global-content: 20px;
        --line-height-global-content: 31px;
        
        /* Header and Navigation */
        --header-content-justify-content: center;
        --logo-display: none;
        --nav-container-display: none;
        --nav-dropdown-display: flex;

        /* Landing */
        --landing-text-container-left: 10%;
        --landing-text-title-font-size: 77px;
        --landing-text-subtitle-font-size: 28px;   
        
        /* About Us */
        --image-content-container-margin: 0;
        
        /* Events */
        --event-card-image-display: none;
    }
}

/* ---------- MEDIUM DEVICES ---------- */
@media screen and (min-width: 768px) {
    :root {
        /* Fixed values */
        --color-surface-0: #121212;
        --color-surface-1: #282828;
        --color-surface-2: #3f3f3f;
        --color-surface-3: #8b8b8b;
        --color-primary-0: #bf8102;
        --color-primary-1: #c88e2e;
        --color-text-0: #dfdfdf;
        --color-text-1: #bfbfbf;
        --color-text-2: #9f9f9f;
        --color-event-card: #222222;
        --font-global: 'Lato', sans-serif !important;

        /* Page dimensions */
        --dim-page-width: 100vw;
        --dim-page-width-content: 1170px;
        --dim-page-height: 100vh;
        --dim-header-height: 70px;

        /* Fonts and font sizes */
        --font-size-global-header: 28px;
        --font-size-global-content: 20px;
        --line-height-global-content: 31px;
        
        /* Header and Navigation */
        --header-content-justify-content: space-between;
        --logo-display: block;
        --nav-container-display: flex;
        --nav-dropdown-display: none;

        /* Landing */
        --landing-text-container-left: 15%;
        --landing-text-title-font-size: 77px;
        --landing-text-subtitle-font-size: 28px;

        /* About Us */
        --image-content-container-margin: 5px;
        
        /* Events */
        --event-card-image-display: block;
    }
}

/* ---------- LARGE DEVICES ---------- */
@media screen and (min-width: 768px) {
    :root {
        /* Fixed values */
        --color-surface-0: #121212;
        --color-surface-1: #282828;
        --color-surface-2: #3f3f3f;
        --color-surface-3: #8b8b8b;
        --color-primary-0: #bf8102;
        --color-primary-1: #c88e2e;
        --color-text-0: #dfdfdf;
        --color-text-1: #bfbfbf;
        --color-text-2: #9f9f9f;
        --color-event-card: #222222;
        --font-global: 'Lato', sans-serif !important;

        /* Page dimensions */
        --dim-page-width: 100vw;
        --dim-page-width-content: 1170px;
        --dim-page-height: 100vh;
        --dim-header-height: 70px;

        /* Fonts and font sizes */
        --font-size-global-header: 28px;
        --font-size-global-content: 20px;
        --line-height-global-content: 31px;

        /* Header and Navigation */
        --header-content-justify-content: space-between;
        --logo-display: block;
        --nav-container-display: flex;
        --nav-dropdown-display: none;

        /* Landing */
        --landing-text-container-left: 15%;
        --landing-text-title-font-size: 77px;
        --landing-text-subtitle-font-size: 28px;

        /* About Us */
        --image-content-container-margin: 5px;

        /* Events */
        --event-card-image-display: block;
    }
}

/* ---------- EXTRA LARGE DEVICES ---------- */
@media screen and (min-width: 992px) {
    :root {
        /* Fixed values */
        --color-surface-0: #121212;
        --color-surface-1: #282828;
        --color-surface-2: #3f3f3f;
        --color-surface-3: #8b8b8b;
        --color-primary-0: #bf8102;
        --color-primary-1: #c88e2e;
        --color-text-0: #dfdfdf;
        --color-text-1: #bfbfbf;
        --color-text-2: #9f9f9f;
        --color-event-card: #222222;
        --font-global: 'Lato', sans-serif !important;

        /* Page dimensions */
        --dim-page-width: 100vw;
        --dim-page-width-content: 1170px;
        --dim-page-height: 100vh;
        --dim-header-height: 70px;

        /* Fonts and font sizes */
        --font-size-global-header: 28px;
        --font-size-global-content: 20px;
        --line-height-global-content: 31px;
        
        /* Header and Navigation */
        --header-content-justify-content: space-between;
        --logo-display: block;
        --nav-container-display: flex;
        --nav-dropdown-display: none;

        /* Landing */
        --landing-text-container-left: 15%;
        --landing-text-title-font-size: 86px;
        --landing-text-subtitle-font-size: 31px;

        /* About Us */
        --image-content-container-margin: 5px;

        /* Events */
        --event-card-image-display: block;
    }
}

@media screen and (min-width: 1200px) {
    :root {
        /* Fixed values */
        --color-surface-0: #121212;
        --color-surface-1: #282828;
        --color-surface-2: #3f3f3f;
        --color-surface-3: #8b8b8b;
        --color-primary-0: #bf8102;
        --color-primary-1: #c88e2e;
        --color-text-0: #dfdfdf;
        --color-text-1: #bfbfbf;
        --color-text-2: #9f9f9f;
        --color-event-card: #222222;
        --font-global: 'Lato', sans-serif !important;

        /* Page dimensions */
        --dim-page-width: 100vw;
        --dim-page-width-content: 1170px;
        --dim-page-height: 100vh;
        --dim-header-height: 70px;

        /* Fonts and font sizes */
        --font-size-global-header: 28px;
        --font-size-global-content: 20px;
        --line-height-global-content: 31px;

        /* Header and Navigation */
        --header-content-justify-content: space-between;
        --logo-display: block;
        --nav-container-display: flex;

        /* Landing */
        --landing-text-container-left: 15%;
        --landing-text-title-font-size: 96px;
        --landing-text-subtitle-font-size: 34px;

       /* About Us */
        --image-content-container-margin: 10px;

        /* Events */
        --event-card-image-display: block;
    }
}


/* ---------- Basic styles for everything ---------- */
.align-row-centered {
    display: flex; 
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.align-column-centered {
    display: flex; 
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.align-column-left {
    display: flex; 
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

/* ---------- General Page Content ---------- */
body { 
    margin: 0;
    padding: 0;
    background-color: var(--color-surface-0);
    font-family: var(--font-global);
    color: var(--color-text-0);
}

.content-wrapper {
    padding: 20px 0;
    max-width: var(--dim-page-width);
}

.content-header {
    width: 100%;
    max-width: calc(100% - 20px);
    text-align: left;
    font-size: var(--font-size-global-header);
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 5px;
    padding-left: 10px;
    border-bottom: 2px solid var(--color-primary-0);
}

.content {
    padding: 30px;
    font-size: var(--font-size-global-content);
    line-height: var(--line-height-global-content);
}

.content-container-full { 
    width: 100%;
    max-width: var(--dim-page-width-content);
}

.content-container-full .row {
    width: 100%;
}

.content-container-fill {
    width: 100%;
    max-width: calc(100% - 20px);
}

.content-container-fill .row {
    width: 100%;
    max-width: 100%;
}

.content-container-fill .row .content {
    padding: 20px;
}

.full-header h1, .full-header p {
    width: var(--dim-page-width-content);
    max-width: calc(100% - 20px);
}

.image {
    filter: brightness(80%);
}

.image:hover {
    filter: brightness(85%);
}

.content-image { 
    width: 100%;
    border-radius: 5px;
    margin: 20px 0;
}

.scroll {
    transform: translateY(100px);
    opacity: 0;
    transition: 1s;
}

.scroll--show {
    transform: translateY(0px);
    opacity: 1;
}

.hr {
    width: 100%;
    max-width: var(--dim-page-width-content);
    height: 1px; 
    background-color: var(--color-primary-0);
    border-radius: 1px;
}

/* ---------- Header & Navigation ---------- */
#header {
    position: sticky; 
    z-index: 1000;
    top: 0;
    left: 0;
    width: var(--dim-page-width);
    height: var(--dim-header-height);
    background-color: var(--color-surface-1);
}

#header-content { 
    width: var(--dim-page-width-content);
    max-width: calc(100% - 20px);
    height: 100%;
    display: flex; 
    flex-direction: row;
    justify-content: var(--header-content-justify-content);
    align-items: center;
}

#logo {
    display: var(--logo-display);
    margin: 0 20px;
}

#logo img, #logo a {
    display: inline-block;
    position: relative;
    top: 0;
    left: 0;
    width: 60px;
    height: 60px;
    cursor: pointer;
    filter: brightness(80%) grayscale(10%);
}

#nav-container {
    display: var(--nav-container-display);
    flex-direction: row;
    justify-content: center;
    align-items: space-between;
}

#nav-container span {
    color: var(--color-text-1);
    margin: 0 20px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

#nav-container a:hover {
    color: var(--color-text-2);
}

#nav-dropdown {
    display: var(--nav-dropdown-display);
    width: auto;
    height: 100%;
}

#nav-dropdown img {
    width: 35px;
    height: 30px;
    cursor: pointer;
}

#nav-overlay {
    position: absolute;
    top: var(--dim-header-height);
    left: 0;
    display: none; 
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    width: 100vw; 
    height: 100vh;
    z-index: 2000;
    background-color: var(--color-surface-1);
    filter: opacity(95%);
}

#nav-overlay span {
    font-size: 24px;
    font-weight: 600; 
    color: var(--color-text-0);
    filter: none;
    margin: 10px;
    cursor: pointer;
}

/* ---------- Main Landing Page ---------- */
#landing-container {
    scroll-margin-top: 200px;
    position: relative;
    width: 100vw;
    height: auto;
    overflow: hidden;
}

#landing-image-container { 
    width: 100%;
    height: 80vh;
}

#landing-image-container img { 
    width: 100%;
    height: inherit;
    object-fit: cover;
    filter: saturate(0%) blur(1px) brightness(60%);
}

#landing-text-container {
    position: absolute;
    left: var(--landing-text-container-left);
    top: 40%;
    overflow: hidden;
    max-width: var(--dim-page-width-content);
    display: flex; 
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

#landing-text-title { 
    width: 100%;
    font-size: var(--landing-text-title-font-size);
    text-align: left;
    margin-bottom: 0;
    font-weight: 900;
    letter-spacing: 2px;
}

#landing-text-subtitle { 
    width: 100%;
    font-size: var(--landing-text-subtitle-font-size);
    max-width: 80vw;
    text-align: left;
}

#cta-button { 
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    color: var(--color-text-0);
    background-color: var(--color-primary-0);
    border-radius: 40px;
    padding: 15px 40px;
    margin: 20px 0 20px 0;
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 2px;
    cursor: pointer;
    text-decoration: none;
}

#cta-button:hover {
    background-color: var(--color-primary-1);
}

/* ---------- About Us Section ---------- */
#about-us {
    scroll-margin-top: 50px;
}

#our-mission { 
    scroll-margin-top: 50px;    
}

/* ---------- How We Work Section ---------- */
#how-we-work { 
    scroll-margin-top: 50px;
    background-color: var(--color-surface-1);
}

#how-to-donate { 
    scroll-margin-top: 50px;    
}

#how-to-borrow { 
    scroll-margin-top: 50px;    
}

#image-container { 
    padding-bottom: 30px;
}

.image-content-container {
    width: 100%;
    margin-top: 20px;
    margin-bottom: 20px;
}

.image-content-container img {
    width: 100%;
    height: inherit;
    object-fit: cover;
    border-radius: 5px
}

/* ---------- Events Section ---------- */
#events {
    scroll-margin-top: 50px;
}

#events-container {
    display: flex; 
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 0px;
    width: var(--dim-page-width-content);
    max-width: calc(100% - 20px);
    font-size: var(--font-size-global-content);
    line-height: var(--line-height-global-content);
}

.event-card {
    width: 100%;
    max-width: calc(100% - 20px);
    height: 140px;
    display: flex;
    flex-direction: row; 
    justify-content: space-between;
    align-items: center;
    background-color: var(--color-surface-1);
    border-radius: 10px;
    padding: 5px 15px;
    margin: 20px 0;
}

.event-card:hover {
    filter: brightness(105%);
}

.event-card .event-card-image { 
    display: var(--event-card-image-display);
    width: 100px;
    height: 100px;
    min-width: 100px;
    min-height: 100px;
    max-width: 100px;
    max-height: 100px;
    background-color: #333;
    border-radius: 10px;
}

.event-card .event-card-image img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

.event-card-content { 
    width: 100%;
    height: 100%;
    font-size: 14px;
    margin: 0 20px;
    padding: 10px 0;
    line-height: 20px;
    color: var(--color-text-2);
    font-style: italic;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}

.event-card-content .event-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text-0);
    font-style: normal;
}

.event-card-content p {
    width: 100%;
    margin: 0;
    text-overflow: ellipsis;
}

.event-card-content span {
    width: 100%;
    margin-top: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---------- Contact Section ---------- */
#contact {
    scroll-margin-top: 50px;
    background-color: var(--color-surface-1);
}

.embed-map-responsive {
    position: relative;
    text-align: right;
    width: 100%;
    height: 0;
    padding-bottom: 66.66666666666666%;
}

.embed-map-container {
    overflow: hidden;
    background: none !important;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.embed-map-frame {
    width: 100% !important;
    height: 100% !important;
    position: absolute;
    top: 0;
    left: 0;
}

.contact-card-container { 
    display: flex; 
    flex-direction: row;
    justify-content: space-between;
    align-items: center; 
    margin-top: 20px;
}

.contact-card {
    width: 33%;
    height: 125px;
    display: flex; 
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    font-size: 14px;
    line-height: 20px;
    text-align: center;
    padding: 5px;
    margin: 5px;
    border-radius: 5px;
    background-color: var(--color-surface-2);
    filter: brightness(80%);
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
}

.contact-card:hover {
    filter: brightness(85%);
}

.contact-card h1 {
    font-size: 16px;
    margin-bottom: 20px;
    margin-top: 10px;
    font-weight: 700;
}

.contact-card a, .contact-card p { 
    text-decoration: none;
    color: var(--color-text-0);
    word-wrap: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
}

#contact-info-container, #contact-form-container {
    margin: 40px 0;
}

#contact-form { 
    width: 100%;
    display: flex; 
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    margin: 5px;
}

#contact-form input, #contact-form textarea {
    width: 100%;
    height: 50px;
    margin: 10px;
    background-color: var(--color-surface-1);
    border-radius: 10px;
    border: none;
    padding: 10px;
    filter: brightness(80%);
    text-align: left;
    font-size: 18px;
}

#contact-form #contact-form-message { 
    resize: none;
    height: 200px;
}

#contact-form #contact-form-submit {
    width: 160px;
    height: 50px;
    background-color: var(--color-primary-0);
    text-align: center;
    cursor: pointer;
    border-radius: 30px;
    font-weight: 700;
}

#contact-form #contact-form-submit:hover { 
    filter: brightness(90%);
}

/* ---------- Footer & Navigation ---------- */
#footer { 
    background-color: var(--color-surface-0);
    width: 100vw;
    height: auto;
    font-size: 16px;
}

.footer-container {
    margin: 20px auto;
    text-decoration: none;
}

.footer-container p { 
    margin: 25px 0 10px 0;
    font-size: 20px;
    font-weight: 700;
    width: 90%;
}

.footer-container a, .footer-container span {
    color: var(--color-text-0);
    text-decoration: none;
    margin-bottom: 10px;
    width: 90%;
}

.footer-container a:hover {
    color: var(--color-text-1);
}

.footer-container .footer-small {
    font-size: 14px;
    margin-bottom: 5px;
}

.footer-nav-container span {
    cursor: pointer;
}
