/* Variables */

:root {
    --color-base: #FFFFFF;
    --color-highlight: #BCBCBC;
    --color-muted: #AAA;
    --layout-site-gutter: 2rem;
    --layout-site-section-spacer: 6rem;
    --layout-site-width: 40rem;
    --type-system-ui: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    --type-technical: monospace;
}

body {
    margin: 0;
    padding: 0;
    /*font-family: Arial, sans-serif;*/
    font-family: var(--type-system-ui);
    color: var(--color-base);
}

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns with equal width */
    gap: 10px; /* Spacing between photos */
}

.gallery img {
    width: 100%; /* Make images fit their container */
    height: auto; /* Maintain aspect ratio */
    object-fit: cover; /* Ensure consistent cropping if needed */
    border-radius: 5px; /* Optional: rounded corners */
}

.transition-1 {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 101;
    background: black;
    opacity: 0;
    pointer-events: none;
    transition: 0.5s ease-out
}

.transition-1.is-active {
    opacity: 1;
    pointer-events: all;

}


.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;

    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    z-index: -1;
    backdrop-filter: blur(15px);
    box-shadow: 0 0 10px 1px rgba(0, 0, 0, 0.25);


    /*animation: blurEffect 3s forwards;*/

}

.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 60px;
    padding: 10px 20px;
    border: 2px solid white;
    border-radius: 50px;
    background: rgba(0, 0, 0, 0.6);
}

.nav-links li {
    display: inline;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s ease-in-out;
}

.nav-links a:hover {
    color: var(--color-highlight);
}

.fade-in {
    animation: fadeIn 3s;
    -webkit-animation: fadeIn 3s;
    -moz-animation: fadeIn 3s;
    -o-animation: fadeIn 3s;
    -ms-animation: fadeIn 3s;
}

div.logo {
    border: 3px solid white;
    border-radius: 100%;
    background: rgba(255, 255, 255, 0.6);
    height: 180px;
    width: 180px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 1%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    box-shadow: 0 0 10px 1px rgba(0, 0, 0, 0.25);
}

div.logo > img {
    max-width: 100%;
}

.main-content {
    border: 3px solid white;
    border-radius: 2em;
    background-color: rgba(0, 0, 0, 0.8);
    min-height: 400px;
    margin-left: 15%;
    margin-right: 15%;
    margin-top: 2%;
    padding: 2em;
    backdrop-filter: blur(5px);
    box-shadow: 0 0 10px 1px rgba(0, 0, 0, 0.25);
    word-wrap: break-word;
}

.main-content .image img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.main-content .image {
    max-width: 100%;
    overflow: hidden;
}

footer {
    display: flex;
    justify-content: space-between;
    margin-top: 5%;
}

.copyright {
    display: flex;
    flex-direction: column-reverse;
    margin: 25px;
    font-weight: bold;
}

.all-socials {
    display: flex;
    flex-direction: column-reverse;
    margin-top: auto;
    margin-right: 1%;
}

.newsletter-section {
    border-radius: .5em;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 1em;
    backdrop-filter: blur(5px);
    box-shadow: 0 0 10px 1px rgba(0, 0, 0, 0.25);

}

.flyers {
    display: flex;
    justify-content: center;
}

.flyers  .flyer {
    max-width: 450px
}

input:focus {
    outline: none;
}

.rounded-social-buttons {
    text-align: center;
}

.rounded-social-buttons .social-button {
    display: inline-block;
    position: relative;
    cursor: pointer;
    width: 3.125rem;
    height: 3.125rem;
    border: 0.125rem solid transparent;
    padding: 0;
    text-decoration: none;
    text-align: center;
    color: #fefefe;
    font-size: 1.5625rem;
    font-weight: normal;
    line-height: 2em;
    border-radius: 1.6875rem;
    transition: all 0.5s ease;
    margin-right: 0.25rem;
    margin-bottom: 0.25rem;
}

.rounded-social-buttons .social-button:hover, .rounded-social-buttons .social-button:focus {
    -webkit-transform: rotate(360deg);
    -ms-transform: rotate(360deg);
    transform: rotate(360deg);
}

.rounded-social-buttons .fa-twitter, .fa-facebook-f, .fa-linkedin, .fa-tiktok, .fa-youtube, .fa-instagram {
    font-size: 25px;
}

 .flash-popup {
     position: fixed;
     top: 20px;
     right: 20px;
     z-index: 1000;
     max-width: 300px;
 }

.flash-message {
    padding: 15px 20px;
    border-radius: 4px;
    margin-bottom: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    animation: fadeInOut 2s forwards;
}

.flash-message.success {
    background-color: #4CAF50;
    color: white;
}

.flash-message.error {
    background-color: #f44336;
    color: white;
}


strong, b {
    font-weight: 900; /* Increase from the default 700 */
}

/* Global Text Styling */
.content-block {
    /* Consistent text justification */
    text-align: justify;

    /* Regularize line spacing */
    line-height: 1.6; /* Recommended reading-friendly line height */

    /* Hyphenation for better justified text */
    hyphens: auto;
    -webkit-hyphens: auto;
    -moz-hyphens: auto;

    /* Prevent overly tight or loose justification */
    text-justify: inter-word; /* For better word spacing */
    /* Improved text rendering */
    text-rendering: optimizeLegibility;

    /* Fine-tune word and letter spacing */
    word-spacing: 0.1em;
    letter-spacing: 0.01em;
}
.content-block,
.content-block p {
    /* Increase default line height */
    line-height: 1.8; /* Default is typically 1.5 */
}

/* Specific element line spacing */
.content-block h1 { line-height: 1.3; }
.content-block h2 { line-height: 1.4; }
.content-block p { line-height: 1.8; }
.content-block ul,
.content-block ol { line-height: 1.7; }

/* Paragraph-specific styling */
p {
    margin-bottom: 1rem; /* Consistent paragraph spacing */
    text-indent: 0; /* Optional: remove or set paragraph indentation */
}

/* Headings line height */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.3; /* Slightly tighter for headings */
}


.newsletter-form {
    display: flex;
}

.newsletter-button {
    padding: 10px 20px;
    background-color: white;
    color: #000000;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.newsletter-input {
    padding: 10px;
    width: 300px;
    border: none;
    border-radius: 4px 0 0 4px;
}

.container.newsletter {
    margin-bottom: 5rem;
}

.container.newsletter > h1 {
    display: flex;
    justify-content: center;
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translateY(-20px); }
    10% { opacity: 1; transform: translateY(0); }
    80% { opacity: 1; }
    100% { opacity: 0; }
}


/* Animation */
@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@-moz-keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@-webkit-keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@-o-keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@-ms-keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes blurEffect {
    0% {filter: blur(0px);}
    100% {filter: blur(2px);}
}

@-moz-keyframes blurEffect {
    0% {filter: blur(0px);}
    100% {filter: blur(2px);}
}

@-webkit-keyframes blurEffect {
    0% {filter: blur(0px);}
    100% {filter: blur(2px);}
}

@-o-keyframes blurEffect {
    0% {filter: blur(0px);}
    100% {filter: blur(2px);}
}

@-ms-keyframes blurEffect {
    0% {filter: blur(0px);}
    100% {filter: blur(2px);}
}


/* Media Query for Mobile Screens */
@media screen and (max-width: 768px) {
    .background {
        background-position : center ;

    }

    .flyers {
        flex-direction: column;
    }

    .flyers > a {
        display:flex;
        justify-content: center;
    }

    .flyers .flyer {
        max-width: 300px;
    }

    .main-content {
        margin-right: 5%;
        margin-left: 5%;
    }
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px;
        right: 20px;
        background: rgba(0, 0, 0, 0.8);
        border-radius: 10px;
        border: 1px solid white;
        width: 200px;
        text-align: center;
        gap: 10px;
        padding: 10px 0;
    }

    .nav-links.active {
        display: flex;
        z-index: 999;
    }
    .menu-btn {
        position: absolute;
        z-index: 3;
        right: 35px;
        top: 35px;
        cursor: pointer;
        transition: all 0.5s ease-out;
    }

        .newsletter-form {
        display: flex;
        justify-content: center;
        max-width: 300px
    }

    /* Styling the hamburger lines */
    .menu-btn .btn-line {
        width: 28px;
        height: 3px;
        margin: 0 0 5px 0;
        background: white;
        transition: all 0.5s ease-out;
    }

    /* Adding transform to the X */
    .menu-btn.close {
        transform: rotate(180deg);
    }

    /* Styling the three lines to make it an X */
    .menu-btn.close .btn-line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-btn.close .btn-line:nth-child(2) {
        opacity: 0;
    }

    .menu-btn.close .btn-line:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    /* Styling the position of the menu icon */
    .menu {
        position: fixed;
        top: 0;
        width: 100%;
        opacity: 0.9;
        visibility: hidden;
    }

    .menu.show {
        visibility: visible;
    }

    /* Adding a transition delay
      to the 4 items in the
      navigation menu */
    .nav-item:nth-child(1) {
        transition-delay: 0.1s;
    }

    .nav-item:nth-child(2) {
        transition-delay: 0.2s;
    }

    .nav-item:nth-child(3) {
        transition-delay: 0.3s;
    }

    .nav-item:nth-child(4) {
        transition-delay: 0.4s;
    }

    footer {
        flex-direction: column-reverse;
        align-items: center;
    }
}
