:root {
    --primary-color: #004D6F;
    --secondary-color: #003146;
    --white: #FFFFFF;
    --menu-item-bg-color: #444;
    --menu-item-hover-bg-color: #666;
}

@font-face {
    font-family: 'Jost';
    src: url('fonts/jost/Jost-100-Hairline.otf') format('opentype'),
    url('fonts/jost/Jost-100-Hairline.ttf') format('truetype');
    font-weight: 100;
    font-style: normal;
}

@font-face {
    font-family: 'Jost';
    src: url('fonts/jost/Jost-100-HairlineItalic.otf') format('opentype'),
    url('fonts/jost/Jost-100-HairlineItalic.ttf') format('truetype');
    font-weight: 100;
    font-style: italic;
}

@font-face {
    font-family: 'Jost';
    src: url('fonts/jost/Jost-200-Thin.otf') format('opentype'),
    url('fonts/jost/Jost-200-Thin.ttf') format('truetype');
    font-weight: 200;
    font-style: normal;
}

@font-face {
    font-family: 'Jost';
    src: url('fonts/jost/Jost-200-ThinItalic.otf') format('opentype'),
    url('fonts/jost/Jost-200-ThinItalic.ttf') format('truetype');
    font-weight: 200;
    font-style: italic;
}

@font-face {
    font-family: 'Jost';
    src: url('fonts/jost/Jost-300-Light.otf') format('opentype'),
    url('fonts/jost/Jost-300-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Jost';
    src: url('fonts/jost/Jost-300-LightItalic.otf') format('opentype'),
    url('fonts/jost/Jost-300-LightItalic.ttf') format('truetype');
    font-weight: 300;
    font-style: italic;
}

@font-face {
    font-family: 'Jost';
    src: url('fonts/jost/Jost-400-Book.otf') format('opentype'),
    url('fonts/jost/Jost-400-Book.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Jost';
    src: url('fonts/jost/Jost-400-BookItalic.otf') format('opentype'),
    url('fonts/jost/Jost-400-BookItalic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
}

@font-face {
    font-family: 'Jost';
    src: url('fonts/jost/Jost-500-Medium.otf') format('opentype'),
    url('fonts/jost/Jost-500-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Jost';
    src: url('fonts/jost/Jost-500-MediumItalic.otf') format('opentype'),
    url('fonts/jost/Jost-500-MediumItalic.ttf') format('truetype');
    font-weight: 500;
    font-style: italic;
}

@font-face {
    font-family: 'Jost';
    src: url('fonts/jost/Jost-600-Semi.otf') format('opentype'),
    url('fonts/jost/Jost-600-Semi.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Jost';
    src: url('fonts/jost/Jost-600-SemiItalic.otf') format('opentype'),
    url('fonts/jost/Jost-600-SemiItalic.ttf') format('truetype');
    font-weight: 600;
    font-style: italic;
}

@font-face {
    font-family: 'Jost';
    src: url('fonts/jost/Jost-700-Bold.otf') format('opentype'),
    url('fonts/jost/Jost-700-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Jost';
    src: url('fonts/jost/Jost-700-BoldItalic.otf') format('opentype'),
    url('fonts/jost/Jost-700-BoldItalic.ttf') format('truetype');
    font-weight: 700;
    font-style: italic;
}

@font-face {
    font-family: 'Jost';
    src: url('fonts/jost/Jost-800-Hevy.otf') format('opentype'),
    url('fonts/jost/Jost-800-Heavy.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
}

@font-face {
    font-family: 'Jost';
    src: url('fonts/jost/Jost-800-HevyItalic.otf') format('opentype'),
    url('fonts/jost/Jost-800-HeavyItalic.ttf') format('truetype');
    font-weight: 800;
    font-style: italic;
}

@font-face {
    font-family: 'Jost';
    src: url('fonts/jost/Jost-900-Black.otf') format('opentype'),
    url('fonts/jost/Jost-900-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
}

@font-face {
    font-family: 'Jost';
    src: url('fonts/jost/Jost-900-BlackItalic.otf') format('opentype'),
    url('fonts/jost/Jost-900-BlackItalic.ttf') format('truetype');
    font-weight: 900;
    font-style: italic;
}


body {
    margin: 0;
    height: 100vh;
    /* Ensure the body takes up the full height of the viewport */
    background-image: url('imgs/dzamija.jpg');
    background-size: cover;
    /* Ensure the image covers the entire screen */
    background-position: center;
    /* Center the image */
    background-repeat: no-repeat;
    /* Prevent the image from repeating */
    background-attachment: fixed;

    font-family: jost, sans-serif;
    font-weight: 200;
    font-size: 12pt;
    display: flex;
    justify-content: center;
    color: var(--white);
}

.container {
    width: 1000px;
    min-height: 1200px;
    padding-top: 20px;
    background-color: var(--primary-color);
    box-shadow: 0px 0px 50px rgba(0, 0, 0, 0.8);
}

.dzamija-background {
    background-size: 100% auto;
    /* Ensures the image scales to fit the element */
    background-repeat: no-repeat;
    background-position: auto;
    vertical-align: middle;
    width: 100%;
    border: none;
    border-spacing: 0;
    border-collapse: collapse;
}

.left-col {
    width: 25%;
    vertical-align: top;
}

.right-col {
    width: auto;
}

.text-container {
    background-color: var(--primary-color);
    padding-left: 40px;
    padding-right: 20px;
    font-weight: 200;
    color: white;
    margin-right: -1px;
    min-height: 1100px;

}

li a {
    color: white;
}

.spende-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}

.bankdaten {
    font-weight: 700;
    text-align: center;
    font-size: 10pt;
}

.gofundme {
    flex: 1;
    min-width: 250px;
    max-width: 300px !important;
    text-align: center;
}

.spende-title {
    font-weight: 400;
    font-style: italic;
}

.spende-item {
    flex: 1;
    min-width: 120px;
    /* Ensures a minimum width before wrapping */
    max-width: 25%;
    text-align: center;
}

.spende-item img {
    width: 120px;
}

.spende-description {
    text-align: left;
}


.landing-text {
    font-weight: 400;
    text-shadow: 0px 0px 25px rgba(0, 0, 0, 0.9);
}

.landing-text-container {
    width: 68.5%;
    float: right;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

.gallery-item img {
    width: 100%;
    height: auto;
    cursor: pointer;
    border-radius: 5px;
    transition: transform 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.gallery img:hover {
    transform: scale(1.1);
}

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 5px;
}

.lightbox.show {
    opacity: 1;
    pointer-events: auto;
}

.padding-top-20 {
    padding-top: 20px;
}

.padding-bottom-20 {
    padding-bottom: 20px;
}

.padding-bottom-40 {
    padding-bottom: 40px;
}

.padding-left-40 {
    padding-left: 40px;
}

.padding-right-20 {
    padding-right: 20px;
}

footer {
    background: var(--secondary-color);
    padding: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 120px;
}

.footer-text {
    max-width: 300px;
    word-wrap: break-word;
    white-space: normal;
    text-align: center;
}

.footer-text a {
    color: white;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: var(--primary-color);
    color: white;
    position: relative;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    margin-left: 20px;
    margin-right: 15px;
}

.logo img {
    width: 160px;
    height: auto;
}

.menu {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
}

.menu a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 300;
}

.social {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-left: auto;
}

.language-selection {
    text-decoration: none;
    color: white;
    font-weight: 300;
    font-size: 15px;
    margin-right: 20px;
    cursor: pointer;
}

.language-selection-mobile-container {
    margin-left: auto;
}

.language-selection::hover {
    cursor: pointer;
}


.instagram-link,
.facebook-link {
    display: inline-block;
    width: 25px;
    height: 25px;
    background-size: cover;
    margin-right: 20px;
    vertical-align: center;
}

.jetzt-spenden {
    padding: 10px;
    font-weight: 700;
    font-size: 12px;
    background: linear-gradient(to right, #156d94, #004D6F);
    color: white;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    border: none;
    cursor: pointer;
}

.link-container {
    display: flex;
    flex-wrap: wrap;
    /* Allows items to move to a new line */
    justify-content: left;
    /* Centers items in mobile view */
    gap: 10px;
    /* Adds space between links */
}

.download-button {
    padding: 10px;
    font-weight: 700;
    font-size: 12px;
    background: linear-gradient(to right, #156d94, #004D6F);
    color: white;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    border: none;
    text-decoration: none;
    margin-right: 40px;
    margin-top: 20px;
    margin-bottom: 20px;
    white-space: nowrap;
    /* Prevents text from breaking */
    padding: 10px;
    min-width: 200px;
    text-align: center;
}

/* Hide mobile header on large screens */
.mobile-header {
    display: none;
}

.header {
    display: flex;
}

.mobile-left-col {
    display: none;
}

/* Show mobile header only on small screens */
@media (max-width: 768px) {
    .header {
        display: none;
    }

    .mobile-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px;
        background: var(--primary-color);
        color: white;
        position: relative;
        flex-wrap: wrap;
    }

    .mobile-logo img {
        height: 40px;
    }

    /* Mobile menu hidden by default */
    .mobile-menu {
        display: none;
        flex-direction: column;
        background-color: var(--primary-color);
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    }

    .mobile-menu a {
        color: white;
        padding: 15px;
        text-decoration: none;
        display: block;
        text-align: center;
        border-bottom: 1px solid var(--secondary-color);
    }


    /* Hamburger Menu */
    .mobile-menu-toggle {
        cursor: pointer;
    }

    .hamburger {
        width: 30px;
        height: 3px;
        background-color: white;
        display: block;
        position: relative;
    }

    .hamburger::before,
    .hamburger::after {
        content: "";
        width: 30px;
        height: 3px;
        background-color: white;
        display: block;
        position: absolute;
        transition: 0.3s;
    }

    .hamburger::before {
        top: -8px;
    }

    .hamburger::after {
        bottom: -8px;
    }

    .left-col {
        width: 10%;
        vertical-align: top;
        background-color: var(--primary-color);
        height: 100%;

    }

    .text-container {
        padding-left: 20px;
        padding-right: 10px;
        padding-top: 10px;
        font-weight: 200;
        color: white;
        min-height: 1100px;
        margin-left: -2px;
        margin-top: -1px;

    }


    .spende-container {
        flex-direction: column;
    }

    .spende-item {
        max-width: 100%;
    }

    .landing-text-container {
        width: 90%;
        float: right;
    }

    .link-container {
        flex-direction: column;
        align-items: center;
    }
}

.download-section {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    padding: 30px;
    margin-top: 20px;
    margin-bottom: 50px;
    text-align: center;
    color: #333;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    max-width: 600px;
}

.download-title {
    font-size: 24px;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.download-text {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 25px;
}

.custom-select-wrapper {
    margin: 0 auto 25px auto;
    max-width: 250px;
}

.vaktija-select {
    width: 100%;
    padding: 12px;
    font-family: 'Jost', sans-serif;
    font-size: 15px;
    color: #333;
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    cursor: pointer;
    outline: none;
    background-color: white;
}

.vaktija-select:focus {
    border-color: #156d94;
}

.shake {
    animation: shake 0.5s;
}

@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
    100% { transform: translateX(0); }
}