/* For Logo Funds UE styles go to style.css */

/* Header styles */
header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 105px;
    border-bottom: 1px solid #080808;
    padding: 0px 140px;
    background-color: var(--bg-color-dark);
}

h1{
    width: 161px;
    height: 20px;
    font-size: 32px;
    line-height: 20px;
    color: var(--font-title-color);
}

.logo_name_container{
    display: flex;
    flex-direction: row;
    width: 506px;
    height: 105px;
    align-items: center;
    justify-content: center;
    gap: 25px;
}

.logo_dariah{
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo_dariah_img{
    border-right: 1px solid #767575;
    padding-right: 25px;
    width: 195.23px;
    height: 35.54px;
    top: 34.75px;
    left: 34.89px;
}

.name_container{
    width: 241px;
    height: 50px;
    padding: 15px 0px;
}

.eu_logo_container{
    width: 88px;
    height: 105px;
}

.logo_eu_img{
    width: 88px;
    height: 105px;
}

/* Main styles */
main{
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px 140px;
    margin: 20px 0;
    box-shadow: 0px 140px 3px -140px #dcdada;
}

h2{
    margin-bottom: 40px;
    font-size: 50px;
    line-height: 50px;
    letter-spacing: -1px;
    color: var(--font-color-h2);
}

h3{
    text-decoration: underline;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
}

.ontologies_container{
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-bottom: 40px;
}

li{
    list-style: none;
}

.list {
    counter-increment: list-counter;
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 60%;
}

.list_title {
    border: 0 0 1px 0;
    padding: 2px 4px;
    display: flex;
    gap: 4px;
}

.list_title::before {
    content: counter(list-counter) ". ";
    font-size: 15px;
    line-height: 22.5px;
    color: var(--font-color-dark);
    text-decoration: none;
}

.description{
    padding-left: 22px;
    height: fit-content;
    font-size: 16px;
    line-height: 24px;
}

/* Button "Back to top" */
button{
    background-color: var(--btn-background-color);
    width: 130px;
    height: 35px;
    top: 20px;
    left: 16px;
    border-radius: 3px;
    border: 1px solid var(--btn-border-color);
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    font-weight: 300;
    font-size: 14px;
    line-height: 18px;
    color: var(--font-color-light);
    letter-spacing: 1px;
    text-align: center;
    transition: 0.2s ease-out;
}

button:focus-within{
    outline: 3px solid var(--font-color-link-default); 
    outline-offset: 2px;
    background-color: var(--btn-bg-color-hover);
    border: 1px solid var(--btn-border-color-hover);
}

button:hover{
    background-color: var(--btn-bg-color-hover);
    border: 1px solid var(--btn-border-color-hover);
    cursor: pointer;
}
.button{
    margin-left: auto;
}

.arrow_img{
    padding-bottom: 2px;
    width: 15px;
    height: 17px;
}
/* End of styling Button Back to top */

/* Footer styles */
footer{
    display: flex;
    justify-content: space-between;
    padding: 40px 140px;
    height: 210px;
    background-color: var(--footer-background-color);
}

h4{
    font-weight: 700;
    font-size: 20px;
    line-height: 24px;
    letter-spacing: -1%;
    color: var(--font-color-gray);
    margin-left: 2px;
}

.contact_container{
    display: flex;
    flex-direction: column;
    height: 130px;
    justify-content: space-around;
}

.links_container{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 24px;
}

.links_container > li {
    text-decoration: underline;
    padding: 2px 4px;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
}

.logo_copyright_container{
    display: flex;
    flex-direction: column;
    gap: 24px;
}

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

}

.copyright_section > p {
    color: var(--font-color-gray)
}

.logo_section{
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    gap: 40px;

}

.link_img{
    width: 16px;
    height: 16px;

}

.dariah_footer_img{
    width: 179px;
    height: 32px;
}

.psnc_link{
    text-decoration: underline;
}


@media (max-width: 1200px) {
    .contact_container{
        gap: 10px;
    }
    .links_container{
        display: flex;
        flex-direction: column;
        gap: 5px;
        flex-wrap: nowrap;
    }
}

@media (max-width: 900px) {

    main{
        padding: 40px 10px;
    }

    .ontologies_container{
        text-align: justify;
    }
    
    footer{
        padding: 40px 10px;
    }

    .contact_container{
        gap: 10px;
    }
    .links_container{
        display: flex;
        flex-direction: column;
        gap: 5px;
        flex-wrap: nowrap;
    }
}