@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --header_height: 100px;
    --seeds_blue: #233468;
}

body {
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    background-image: url("images/Landscape\ Paper\ Bg.png");
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    overflow-x: hidden;
    /* overflow-y: hidden; */
    width: 100vw;
    height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

header {
    width: 100%;
    min-height: 100px;
    background-color: var(--seeds_blue);
    /* background-color: #333; */
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    /* position: absolute; */
    z-index: 3;
}

header .logo {
    height: 100%;
    display: flex;
    align-items: center;
}

header .logo img {
    width: auto;
    height: 65%;
    margin-inline: 50px;
}

/* Mobile toggle button */
.menu-toggle {
    display: none;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    margin-right: 20px;
}

header a {
    color: #fff;
    text-decoration: none;
    margin-inline: 20px;
    text-align: center;
    font-weight: inherit;
    transition: 0.5s;

}

header nav ul {
    list-style-type: none;
    margin-inline: 10px;
    display: flex;
    display: flex;
    flex-wrap: nowrap;
    padding-left: 0;
}

header nav {
    display: flex;
}

#pg1 {
    background-color: #e8255b;
    padding: 10px;
    border-radius: 10px;
    transition: 0.5s;
}

#pg1:hover {
    color: #e8255b;
    background-color: #fff;
}

#pg2 {
    background-color: var(--seeds_blue);
    padding: 10px;
    border-radius: 10px;
}

#pg2:hover {
    color: #4966be;
    background-color: #fff;
}

.dropdown {
    overflow: hidden;

}

.dropdown .dropbtn {
    font-size: 1rem;
    border: none;
    outline: none;
    color: white;
    background-color: inherit;
    font-family: inherit;
    font-weight: inherit;
    margin: 0;
    text-align: center;
    margin-inline: 10px;
    transition: 0.5s;
}

.navbar a:hover,
.dropdown:hover .dropbtn {
    background-color: #4966be;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
    border-radius: 15px;
    margin-left: 10px;
    margin-top: 5px;
}

.dropdown-content a {
    color: #233468;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: center;
}

.dropdown-content a:hover {
    background-color: #ddd;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.menu-toggle {
    display: none;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    background: none;
    border: none;
    margin-right: 5%;
    background-color: #e72b60;
    line-height: 2rem;
    padding: 5px;
    border-radius: 5px;
    transition: 0.3s;
}

.menu-toggle:hover {
    background-color: white;
    color: #e72b60;
}

.no-scroll {
    overflow: hidden;
    height: 100vh;
}

@media (max-width: 768px) {
    header {
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .menu-toggle {
        display: block;
    }

    .pages {
        max-height: 0;
        overflow: hidden;
        width: 100%;
        background-color: rgba(35, 52, 104, 0.8);
        /* var(--seeds_blue) 50% transparent */
        position: fixed;
        top: 100px;
        /* below header which is 100px tall */
        left: 0;
        right: 0;
        bottom: 0;
        transition: max-height 0.4s ease;
        z-index: 999;
        /* above everything */
    }

    .pages nav ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-around;
        height: 100%;
        margin-top: 100px;
        margin-bottom: 100px;
        padding: 0;
        height: 60vh;
        width: 100vw;
    }

    .pages {
        display: none;
    }

    /* When active, show menu */
    .pages.active {
        display: block;
        max-height: calc(100vh - 100px);
        display: flex;
        justify-content: center;
        width: 100vw;
    }

    .pages nav ul a,
    .dropdown .dropbtn {
        display: block;
        width: 100%;
        padding: 20px;
        text-align: center;
        border-radius: 0;
        color: white;
        font-weight: 600;
        transition: background-color 0.3s, color 0.3s;
        font-size: 1.5rem;
    }

    #pg2 {
        background-color: transparent;
        padding: 10px;
        border-radius: 0px;
        width: 100vw;
    }


    .dropdown-content {
        position: static;
        background-color: rgba(35, 52, 104, 1);
        /* semi-transparent by default */
        box-shadow: none;
        border-radius: 0;
        margin: 0;
        padding: 0;
        transition: background-color 0.3s, color 0.3s;
        position: absolute;
        width: 100vw;
        justify-content: center;
        justify-self: center;
        border-radius: 30px;
    }

    .dropdown-content a {
        background-color: transparent;
        color: white;
        padding: 15px 20px;
        text-align: left;
        transition: background-color 0.3s, color 0.3s;
    }

    .dropdown-content a:hover {
        background-color: white;
        color: var(--seeds_blue);
    }

    .dropdown:hover .dropdown-content {
        display: block;
    }


    .warning_date p {
        font-size: 1rem;

    }

}







.les_candidates h2 {
    font-size: 2.5rem;
    color: #fff;
    background-color: #e8255b;
    padding: 20px 30px;
    border-radius: 20px;
    margin-top: 30px;
}

.edition h3 {
    font-size: 1.7rem;
    color: var(--seeds_blue);
    border-radius: 20px;
    font-weight: 600;
}

h1,
h2 {
    text-align: center;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4.5rem;
    justify-items: center;
    margin-left: 10vw;
    margin-right: 10vw;
}

@media (max-width: 900px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .gallery {
        grid-template-columns: 1fr;
    }
}

/* Card Styles */
.card {
    min-width: 100%;
    max-width: 400px;
    border-radius: 50px;
    border: 10px solid white;
    padding: 1rem;
    text-align: center;
    color: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    background-repeat: no-repeat;
    box-shadow: 5px 10px 8px rgba(0, 0, 0, 0.15);
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.image-wrapper {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 30px;
    background-color: rgba(255, 255, 255, 0.2);
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 30px;
}

.card .project {
    font-weight: bold;
    margin-top: 0.5rem;
}

.card .name {
    font-size: 0.9rem;
}




/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(5px) brightness(0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    visibility: visible;
    opacity: 1;
}

.modal {
    background: white;
    border-radius: 50px;
    padding: 1.5rem;
    max-width: 1200px;
    height: 60vh;
    width: 90%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    animation: slideIn 0.4s ease;
    background-image: url("images/Modal\ Bg.png");
    background-size: 100%;
    background-repeat: no-repeat;
    border: #e72b60 3px solid;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.5);
}

@keyframes slideIn {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}


.modal_buttons img {
    width: 300px;
    height: 300px;
    border: 2px solid #e72b60;
    object-fit: cover;
    border-radius: 30px;
}

.modal img {
    width: 350px;
    height: 400px;
    border: 2px solid var(--seeds_blue);
    object-fit: cover;
    border-radius: 30px;
    position: relative;
}


.modal .modal_buttons {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: absolute;
    bottom: 0px;
}

.socials {
    width: 400px;
    height: 80px;
    margin-right: 10px;
    cursor: pointer;
    display: flex;
}

.modal .modal_buttons img {

    width: 60px;
    height: 60px;
    margin-right: 10px;
    cursor: pointer;
    border-radius: 50%;
}

.modal-content {
    display: flex;

}

.modal_details {
    margin-left: 2rem;
    overflow-y: auto;
    padding-right: 1rem;
}

.modal .project {
    align-self: center;
    font-weight: bold;
    font-size: 3.5rem;
    color: var(--seeds_blue);
}

.modal .name {
    color: #e12b27;
    font-size: 3rem;
    margin-bottom: 0.5rem;

}

.modal p {
    margin-bottom: 0.8rem;
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--seeds_blue);
}

#modalDes {
    font-size: 1rem;
    line-height: 1.5;
}

.close-btn {
    position: absolute;
    top: 30px;
    right: 30px;
    background: transparent;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: white;
    background-color: #e8255b;
    border-radius: 50%;
    line-height: 1.4rem;
    padding: 5px 9px;
}

.audio-btn {
    background: none;
    border: none;
    cursor: pointer;
}

.socials {
    margin-top: 0.5rem;
}

.socials a {
    margin-right: 0.5rem;
    text-decoration: none;
}

@media (max-width: 768px) {
    .modal {
        height: auto;
        min-height: 80vh;
        overflow-y: auto;
        background-size: 300%;
        background-position: -250px center;
    }

    .modal-content {
        display: block;
    }

    .modal img {
        width: 175px;
        height: 200px;
    }

    .modal .project {
        align-self: center;
        font-weight: bold;
        font-size: 2.5rem;
        color: var(--seeds_blue);
    }

    .modal .name {
        color: #e12b27;
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    .modal_details p {
        font-size: 1.5rem;
}

}

@media (max-width: 1500px) {
#modalDesc {

    font-size: 2rem;
}
}







footer {
    background-color: var(--seeds_blue);
    min-height: 50vh;
    width: 100vw;
    margin-top: 70px;
}

.footer_color {
    height: 2vh;
    display: flex;
}

.footer_color .blue {
    width: 25vw;
    height: 100%;
    background-color: #00b2dc;
}

.footer_color .red {
    width: 25vw;
    height: 100%;
    background-color: #e72b60;
}

.footer_color .green {
    width: 25vw;
    height: 100%;
    background-color: #8bc861;
}

.footer_color .yellow {
    width: 25vw;
    height: 100%;
    background-color: #fdd800;
}

.footer_contents {
    display: flex;
    margin-top: 30px;
    width: 80vw;
    justify-content: space-between;
    justify-self: center;
    margin: none;
}

.footer_contacts a,
.footer_links a {
    color: white;
    text-decoration: none;

}

.footer_contacts .phone,
.footer_contacts .email,
.footer_contacts .facebook {
    display: flex;
    align-items: center;
}

.footer_contacts .facebook svg {
    fill: white;
    width: 1.5rem;
    margin-right: 1rem;
}

.footer_contacts .email i,
.footer_contacts .phone i {
    color: white;
    font-size: 1.5rem;
    margin-right: 1rem;
    justify-self: center;
}

.footer_links {
    display: flex;
    flex-direction: column;
    align-items: end;

}

.footer_links a {
    margin-bottom: 12px;
}