* {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
    font-family: "Geologica";
}

/* h properties */

h1 {
    padding-top: 30px;
    padding-bottom: 20px;
    padding-left: 10px;
    font-size: 56px;
    line-height: 56px;
    text-align: center;
    text-indent: 0px;
}

h2 {
    font-size: 42px;
    text-align: center;
    text-decoration: underline;
    padding: 10px 0;
}

@media (max-width: 680px) {

    h2 {
    font-size: 22px;
    text-align: center;
    text-decoration: underline;
    }
}

h3 {
    text-align: left;
    text-indent: px;
    font-weight: normal;
    padding: 10px 0;
}

.date {
    text-align: center;
    justify-content: center;
    text-indent: 0px;
    font-size: 12px;
    font-weight: light;
    padding: 2px 0 30px 0;
    text-transform: uppercase;
}

/*============*\ 
   header bar 
\*============*/

#header-bar {
    font-size: 20px;
    position: fixed;
    top: 0;
    width: 100vw;
    height:90px;
    padding: 15px 25px;
    flex-direction: row;
    align-items: center;
    background-image: linear-gradient(#fff, #ddd);
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
    transform: translateY(0);
    z-index: 1000; /* Ensures it stays on top */
}

#header-bar.hidden {
    transform: translateY(-100%); /* Slides the header out of view */
}

header img {
    height: 60px;
    vertical-align: text-bottom;
}

nav {
    margin-top: -8px;
    padding-bottom: 2px;
    word-spacing: 8px;
    color: #520001;
}

.header-group {
    display: flex;
    align-items: center;
}

.header-stack {
    padding-left: 20px;
    height: 60px;
    align-content: center;
    border-color: #00dd00;
}

#business-name {
    font-weight: bold;
    font-size: 1.4em;
    color: #630001;
    padding-bottom: 8px;
    /* Add spacing between title and navigation */
}


a {
    color: #520001;
}

nav a {
    margin-left: 2px;
    margin-right: 15px;
    /* Space between links */
    text-decoration: none;
    color: #520001;
}

@media (max-width: 680px) {
    nav {
        word-spacing: 3px;
        color: #520001;
        font-size: 8.5pt;
        margin-top: 3px;
    }

    nav a {
        margin-left: 2px;
        margin-right: unset;
    }

    header img {
        vertical-align: unset;
    }

    .header-group {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .header-stack {
        display: none;
    }
}


a:hover,
nav a:hover {
    text-decoration: underline;
    color: #D90003;
    /* Change color on hover */
}

@media (prefers-color-scheme: dark) {
    a {
        color: #D80003;
    }

    nav a {
        color: #cfcfcf;
    }

    a:hover,
    nav a:hover,
    .contact-info a:hover {
        color: #FF9596;
    }

    #header-bar {
        background-image: linear-gradient(#111 0%, #181818 20%, #181818 70%, #222 100%);
    }  

    #business-name {
        color: #7F0002
    }
}

img {
    max-width: 100vw;
}

video {
    padding: 5vw;
    filter: drop-shadow(0px 3px 8px #101010);
}

iframe {
    justify-content: center;
    width: 80%;
    height: 45vw;
    margin:10%;
}

.rallyimage img {
    width: 100%;
    height: auto;
}

.rallyimage {
    width:80%;
    height: auto;
    margin-left: 10%;
    margin-top: 20px;
    margin-bottom: 20px;
    justify-content: center;
    border: 15px solid #eeeeee;
    box-sizing: border-box;
    max-height: 80vh;
    /* Ensures the border is included in the element's dimensions */
}

@media (max-width: 680px) {
    .rallyimage {
        border: 11px solid #eeeeee !important;
    }
}

@media (max-width: 480px) {
    .rallyimage {
        border: 6px solid #eeeeee !important;
    }
}

.content {
    padding:1vw 5vw 40px;

}

header {
    overflow-x: hidden;
}

section {
    justify-content: center;
}

body {
    padding-top: 90px;
/* padding equal to the header height to prevent content overlap */
    background-image:linear-gradient(#fff, #f4f4f4);
    overflow-x: hidden;
}

.event-header, 
.event-header div,
.event-header h3{
    display: flex;
    flex-direction: column;
    align-content: center;
    text-align: center;
    padding:1vw 5vw;
}

.portfolio {-head
    margin: 5%;
}

.portfolio video {
    padding: 4%;
}

footer {
    margin-top: 30px;
}

.event-intro{
    align-items: center;
    justify-content: center;
}

.modal {
    display: none;
    /* Ensures the modal is hidden by default */
}

.lockup {
    position: absolute; /* Position relative to the #lockup-container */
    top: 0px; /* Distance from the bottom of the container */
    left: 40px; /* Distance from the left of the container */
    display: flex; /* Maintain flexbox properties */
    z-index: 1; /* Ensure it appears above the video */
}

/*@media (prefers-color-scheme: dark) {
    .lockup {
        background-image: url('images/backgrounds/lockup_background-dark.png');
    }
}*/

#lockup-container {
    height: 100vh;
    width: 100%;
    position: relative;
}

.lockup img {
    opacity: 0;
    width: 40%;
    min-width: 300px;
    height: auto;
    transform: scale(0.8); /* Start at slightly larger scale */
    transition: opacity 2s ease, transform 2s ease;
    padding-top: 5%;
    padding-left: 3%;
    padding-bottom: 8%;
    visibility: hidden; /* Fully hidden initially */
}

.lockup img.visible {
    opacity: 1;
    transform: scale(1); /* Normal size */
    visibility: visible; /* Fully visible */
}


@media (max-width: 680px) {
    #lockup-container {
        margin: 30% 0 0;
        height: 80vh;
        width: 100vw;
        display: flex;
        align-content: center;
        overflow: hidden;
    }

    .lockup img {
        width: 70vw;
        height: auto;
        content: url(/logos/Garnet_Lockup_stacked.png);
        filter: drop-shadow(-2px 3px 8px #000000);
        min-width: unset;
        padding-left: unset;
        margin: 0 8%;
    }

    .lockup img.visible {
        opacity: 1;
        transform: scale(1); /* Normal size */
        visibility: visible; /* Fully visible */
    }
}

.parallax-slider {
    width: 100%; 
    height: auto; 
    max-width: 100%; 
    object-fit: cover; /* Keeps the aspect ratio */
}

@media (max-width: 680px) {
    .parallax-slider {
        /* Adjust for smaller viewports if needed */
        height: auto;
    }
}



/*=================*\ 
Geologica Font Family 
\*=================*/

@font-face {
    font-family: 'Geologica';
    src: url('fonts/Geologica-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Geologica';
    src: url('fonts/Geologica-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Geologica';
    src: url('fonts/Geologica-Italic.ttf') format('truetype');
    font-weight: normal;
    font-style: italic;
}

@font-face {
    font-family: 'Geologica';
    src: url('fonts/Geologica-BoldItalic.ttf') format('truetype');
    font-weight: bold;
    font-style: italic;
}

@font-face {
    font-family: 'Geologica';
    src: url('fonts/Geologica-Thin.ttf') format('truetype');
    font-weight: lighter;
    font-style: normal;
}

@font-face {
    font-family: 'Geologica';
    src: url('fonts/Geologica-ExtraLightItalic.ttf') format('truetype');
    font-weight: lighter;
    font-style: italic;
}

@font-face {
    font-family: 'Geologica';
    src: url('fonts/Geologica-Black.ttf') format('truetype');
    font-weight: bolder;
    font-style: normal;
}

@font-face {
    font-family: 'Geologica';
    src: url('fonts/Geologica-BlackItalic.ttf') format('truetype');
    font-weight: bolder;
    font-style: italic;
}

@font-face {
    font-family: 'Geologica';
    src: url('fonts/Geologica-ExtraLight.ttf') format('truetype');
    font-weight: lighter;
    font-style: normal;
}

@media (prefers-color-scheme: light) {
    body {
        background-color: white;
        color: #520001;
    }
}

@media (prefers-color-scheme: dark) {
    body {
        background-color: #181818;
        background-image: linear-gradient(#1c1c1c,#181818);
        color: white;
    }
}

/* Light mode drop-shadows */

@media (prefers-color-scheme: light) {
    .rallyimage,
    .image-thumb {
        filter: drop-shadow(-1px 2px 3px #aaaaaa);
    }
}

#how-logo,
#how-logo2,
#how-logo3,
#how-logo4,
#potus-logo,
#potus-logo2,
#potus-logo3,
#potus-logo4, 
#hobbs-logo,
#hobbs-logo2,
#hobbs-logo3,
#hobbs-logo4, 
#apple-logo, 
#apple-logo2,
#apple-logo3,
#apple-logo4 {
    padding: 10%;
}

/* Dark mode drop-shadows */

@media (prefers-color-scheme: dark) {

    .rallyimage,
    .image-thumb {
        filter: drop-shadow(-1px 3px 8px #101010);
    }

    .signal-flow-image {
        filter: drop-shadow(-1px 0px 3px #aaaaaa);
    }

}

@media (prefers-color-scheme: dark) {
    .signal-flow-container {
        background-color: #222;
        filter: drop-shadow(0px 3px 8px #00000075);
        box-shadow: 0px 3px 8px rgba(75, 75, 75, 0.5);
        /* Adding a subtle shadow effect for better visibility */
    }

    #signalflow1 img {
        content: url(images/signal/sf-01_dark.png);
    }

    #signalflow2 img {
        content: url(images/signal/sf-02_dark.png);
    }

    #signalflow3 img {
        content: url(images/signal/sf-03_dark.png);
    }

    #signalflow4 img {
        content: url(images/signal/sf-04_dark.png);
    }
}

.construction-video {
    justify-content: center;
    align-content: center;
    width: 100%;
    height: auto;
}

.construction-video video {
    padding: unset;
    width: 100%;
    padding: 0 10%;
}


/*=================*\
        Modal
\*=================*/


.swiper-slide img{
    onclick: openModal(this) 
}

#imageModal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
}

/* Modal content (the image) */

#modalImage {
    display: block;
    margin: auto;
    max-width: 80%;
    max-height: 80%;
}

/* Close button in the modal */

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

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

/* Caption for the image */

#caption {
    margin: auto;
    display: block;
    width: 80%;
    text-align: center;
    color: #fff;
    padding: 10px;
    font-family: geologica;
}

@media (prefers-color-scheme: dark) {
    .image-thumb {
        border: 12px solid #ddd;
        Optional border for styling
}

.video-wrapper {
    position: relative;
    width: 100%;
    min-width: 90vw;
    /* Ensures the wrapper adjusts to its content */
    max-width: 70%;
    max-height: 80vh;
    /* Limits wrapper height to 80% of viewport */
    margin: 0 5% 0;
    overflow: hidden;
    /* Ensures no overflow outside the wrapper */
}

