/* RESET */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    list-style: none;
    line-height: 1.5;
}

img,
svg {
    display: block;
    vertical-align: middle;
}

img,
video {
    max-width: 100%;
    height: auto;
}

/* END OF RESET */

body {
    --text-white: rgb(240 240 240);
    --primary-color: #253123;
    --primary-color-transparent: #253123f9;
    --rounded: 6px;
    --section-content-width: 850px;
    font-family: sans-serif;
    background-color: white;
    color: black;
}

#language-dropdown {
    opacity: 0;
    position: fixed;
    pointer-events: none;
    padding: 2rem;
    box-shadow: 1px 3px 5px rgb(0 0 0 / 0.25);
    border-radius: var(--rounded);
    transition: opacity 300ms ease;
    left: 0;
    top: 0;
    z-index: 999;
    background-color: white;
}

#language-dropdown.show-dropdown {
    pointer-events: auto;
    opacity: 1;
}

.toggle-language-dropdown-button {
    box-shadow: none;
    border: none;
    background-color: transparent;
    border-radius: var(--rounded);
    overflow: hidden;
    cursor: pointer;
}

.toggle-language-dropdown-button:hover {
    filter: brightness(0.85);
}

#language-dropdown>ul {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

#close-language-dropdown{
    display: flex;
    margin-bottom: -2rem;
    margin-left: auto;
    transform: translate(1rem,-1rem);
    background-color: transparent;
    border: none;
    cursor: pointer;
}
#close-language-dropdown:hover{
    filter: brightness(1.5);
}

.flag-link {
    display: flex;
    gap: 1rem;
}

.flag-link:hover {
    filter: brightness(0.85);
}

#navbar {
    background-color: var(--primary-color);
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0px 5px 5px rgb(0 0 0 / 0.25);
}

#navbar-content {
    max-width: 1050px;
    display: flex;
    gap: 1.5rem;
    margin-inline: auto;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
}

#navbar-content a {
    display: block;
    color: var(--text-white);
    transition: color 225ms ease;
    text-decoration: none;
    text-transform: uppercase;
    padding: 0.75rem 2rem;
}

#navbar-content a:hover {
    color: rgb(210 225 210);
}

#navbar-content img {
    width: 4rem;
    border-radius: var(--rounded);
}

#flag-md,
#break-md {
    display: block;
}

#flag-xs,
#break-xs {
    display: none
}

#first-section {
    min-height: calc(100vh - 5rem);
    /* background-color: var(--primary-color-transparent); */
    background-image: url("../static/Rwanda_specialty_LakeKivu.gif");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 20vh 10rem 0;
    color: var(--text-white);
}

#first-section .break {
    display: none;
}

#first-section>div {
    display: flex;
    gap: 4rem;
    position: relative;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(16px);
    background-color: rgb(0 0 0 / 0.1);
    padding: 3rem 4rem;
    border: 2px solid rgb(200 200 200 / 0.35);
    border-radius: var(--rounded);
    max-width: 1250px;
    margin-inline: auto;
}

#first-section h1 {
    font-size: 2.5rem;
    line-height: 1.1;
    padding-bottom: 1rem;
    max-width: var(--section-content-width);
    text-shadow: 1px 1px 2px rgb(0 0 0 / 0.5);
}

#first-section p {
    font-size: 1.75rem;
    line-height: 1.75;
    max-width: var(--section-content-width);
    text-shadow: 1px 1px 2px rgb(0 0 0 / 0.65);
    font-weight: bold;
}

#first-section .greenzeb-logo-without-border {
    height: 16rem;
    width: 16rem;
}

#first-section .premium {
    color: rgb(252 211 77);
}

#landing-separator {
    height: 15px;
    background-color: var(--primary-color); 
    width: 100%;
}

#second-section {
    color: var(--primary-color);
    padding: 10vh 2rem;
    min-height: 45vh;
    background-image: url("../static/coffee-bean-tree.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#second-section > div {
    display: flex;
    gap: 4rem;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    padding: 0;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    border-radius: 0;
    max-width: 1250px;
    margin-inline: auto;
}

#second-section > div > section > p {
    background-color: rgb(230, 235, 230, 0.9) !important;
    color: #253123 !important;
    padding: 3rem;
    font-size: 1.25rem;
    font-style: italic;
    border-radius: var(--rounded);
    text-shadow: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    max-width: var(--section-content-width);
    text-align: center;
}

/* Mobilnézet */
@media (width <= 40rem) {
    #second-section {
        padding: 2.5rem;
        min-height: calc(100vh - 3rem);
    }

    #second-section > div {
        flex-direction: column;
        gap: 2rem;
        padding: 0;
    }

    #second-section > div > section > p {
        padding: 1.5rem;
    }
}

.section-separator {
    height: 15px;
    background-color: var(--primary-color);
    width: 100%;
}

#third-section {
    padding: 5vh 1.5rem;
    background-color: #f9eac0;
    background-image: url("../static/background_RwandanCoffee_s3.png");
    background-repeat: repeat;
    background-size: cover;
    background-position: center;
    border-bottom: 3px solid #4a3825;
}

#third-section h2 {
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color); 
}

#third-section > div {
    background-color: transparent;
    border-radius: var(--rounded);
    overflow: hidden;
    margin-inline: auto;
    display: flex;
    align-items: center;
    width: fit-content;
    border: 10px solid transparent;
}

#third-section>div>p {
    color: #3b2a1a;
    background-color: transparent;
    padding: 3rem;
    font-size: 1.25rem;
    text-shadow: 0 1 2px rgba(0, 0, 0, 0.1);
    flex-basis: 50%;
    max-width: 600px;
}

#third-section .img-container {
    flex-basis: 50%;
}

#third-section>div img {
    max-width: 600px;
    max-height: 400px;
    height: 100%;
    width: 100%;
    object-fit: cover;
    border-radius: 7rem;
    border: 3px solid #4a3825;
}

#fourth-section {
    padding: 15vh 3rem;
    color: var(--primary-color);
    background-color: #F7F6F4;
    background-image: url("../static/greenzeb_proposal_s4.png");
    background-repeat: no-repeat;
    background-size: auto 95%;
    background-position: center;
}

#fourth-section>div {
    max-width: var(--section-content-width);
    margin-inline: auto;
}

#fourth-section>div>h2 {
    text-align: center;
    padding-bottom: 2.5rem;
    font-size: 2rem;
}

#fourth-section>div>ul {
    font-size: 1.125rem;
}

#fourth-section>div>ul>li {
    list-style-type: disc;
    margin-block-end: 1rem;
}

#fourth-section>div>ul>li::marker {
    font-size: 2rem;
}

#fifth-section {
    padding: 10vh 1rem;  
    background-color: rgb(230 235 230);
    border-top: 2px solid rgb(220 225 220);
}

#fifth-section>div {
    max-width: var(--section-content-width);
    margin-inline: auto;
}

#fifth-section>div>header {
    text-align: center;
}

#fifth-section>div>header h2 {
    font-size: 2rem;
}

#fifth-section>div>header p {
    color: rgb(80 80 80);
    font-size: 1.125rem;
}

#fifth-section .img-separator {
    margin: 1rem auto;
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}

#fifth-section .img-separator span:first-of-type {
    display: block;
    flex: 1 1 0;
    height: 1px;
    background-color: var(--primary-color);
    max-width: 75px;
}

#fifth-section .img-separator span:last-of-type {
    display: block;
    flex: 1 1 0;
    height: 1px;
    background-color: var(--primary-color);
    max-width: 75px;
}

#fifth-section>div>ul>li {
    display: flex;
    gap: 0.25rem;
    justify-content: center;
    font-size: 1.25rem;
}

@media (width <=80rem) {

    #navbar-content {
        gap: 0.75rem;
        padding: 0.25rem 0.5rem;
    }

    #navbar-content a {
        padding: 0.375rem 0.75rem;
    }

    #navbar-content img {
        width: 3rem;
    }

    #flag-md,
    #break-md {
        display: block;
    }

    #flag-xs,
    #break-xs {
        display: none
    }

    #first-section {
        min-height: calc(100vh - 3.5rem);
        padding: 20vh 5rem 0;
    }

    #first-section>div {
        gap: 2rem;
        padding: 2rem;
        flex-direction: column;
    }

    #first-section .greenzeb-logo-without-border {
        height: 10rem;
        width: 10rem;
    }

}

@media (width <=40rem) {

    #navbar-content {
        gap: 0.25rem 0.375rem;
        padding: 0.125rem 0.5rem;
        flex-wrap: wrap;
        font-size: 0.875rem;
    }

    #navbar-content a {
        padding: 0.25rem;
    }

    #navbar-content .break {
        display: block;
        flex-basis: 100%;
        width: 0;
    }

    #flag-md,
    #break-md {
        display: none;
    }

    #flag-xs,
    #break-xs {
        display: block
    }

    #first-section {
        min-height: calc(100vh - 3rem);
        padding: 2.5rem;
    }

    #first-section h1 {
        font-size: 2rem;
    }

    #first-section p {
        font-size: 1.5rem;
    }

    #first-section .greenzeb-logo-without-border {
        height: 8rem;
        width: 8rem;
    }

    #second-section>div {
        padding: 2rem;
    }

    #second-section > div > section > p {
    padding: 1rem;
    }
#second-section > div {
    border: none !important;
}

    #third-section>div {
        flex-direction: column;

    }

    #third-section>div>p {
        padding: 2rem;
    }
}

@media (width <=28rem) {
    #first-section {
        padding: 2rem 1rem;
    }

    #first-section h1 {
        font-size: 1.75rem;
    }

    #first-section p {
        font-size: 1.25rem;
    }
}

#legal-footer {
    background-color: var(--primary-color);
    color: white;
    text-align: right;
    padding: 1rem 2rem;
    font-size: 0.875rem;
}