
:root {
    font-family: "Josefin Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
}

body {
    background-color: #333;
    color: #ddd;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.subtitle {
    font-size: 2rem;
    text-align: center;
    margin-top: 1rem;
}

a, a:visited {
    color: #ccc;
}

main {
    display: grid;
    grid-template-columns: minmax(25rem, 1fr) 1rem minmax(25rem, 1fr);
    align-items: center;
    gap: 1rem;
    margin: 1rem;
    /*flex: 1 1 0;*/
    padding-bottom: 1rem;
    padding-top: 2rem;
}

main > div {
    margin-bottom: 3rem;
}


.picture {
    max-width: min(90%, 75vw);
    max-height: calc(100vh - 5rem);
}

footer {
    margin-top: 3rem;
    padding: 1rem;
    background-color: #82552af0;
    text-align: center;
    position: fixed;
    display: block;
    width: 100%;
    bottom: 0;
    font-weight: 350;
    display: flex;
    align-items: center;
}

footer div {
    flex: 1 1 0;
}

nav.flags {
    height: 2rem;
    text-align: right;
    margin-right: 1em;
}

nav.flags a {
    display: inline-block;
    margin-right: 1em;
}

nav.flags img {
    width: 2rem;
}


.smalllogo-left {
    height: 4rem;
    border-bottom-right-radius: 4rem;
    border-right: 0.2rem solid white;
    border-bottom: 0.2rem solid white;
    padding: 1rem 1.5rem 1.5rem 1rem;
    display: inline-block;
    background-color: #222;
    position: fixed;
    width: fit-content;
    top: 0;
    left: 0;
}

.smalllogo-right {
    height: 4rem;
    border-bottom-left-radius: 4rem;
    border-left: 0.2rem solid white;
    border-bottom: 0.2rem solid white;
    padding: 1rem 1rem 1.5rem 1.5rem;
    display: inline-block;
    width: fit-content;
    background-color: #222;
    position: fixed;
    top: 0;
    right: 0;
}

.title {    
    font-size: 1.75rem;
    text-align: center;
    grid-column: 1 / -1;
    font-weight: bold;
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.title:first-child {
    margin-top: 0;
}

.project-desc {
    font-size: 1.25rem;
    text-align: justify;
    line-height: 120%;
}

.pict-desc {
    font-size: 1.5rem;
    text-align: justify;
    line-height: 120%;
}

.leftside {
    padding-left: 1rem;
}

.rightside {
    padding-right: 1rem;
}

.pict-right {
    text-align: left;
}

.pict-left {
    text-align: right;
}


.sep-cont {
    position: relative;
    height: 100%;
}

.sep {
    margin: auto;
    width: 0.1rem;
    height: 50%;
    background-color: #d6820080;
    position: absolute;
    top: 25%;
    left: calc(50%);
}

.ref {
    vertical-align: middle;
    text-align: center;
    max-height: calc(100vh - 3rem);
    overflow-y: auto;
}

.ref img {
    margin: 1.5rem;
    max-width: calc(95% - 2rem);
}

@media (max-width: 55rem) {
    
    body {
        height: 100vh;
    }

    .leftside {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .rightside {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .pict-right {
        text-align: center;
    }

    .pict-left {
        text-align: center;
    }

    main {
        grid-template-columns: auto;
        grid-template-rows: auto;
        height: auto;
        margin-top: 7.5rem;
        overflow-y: scroll;
        height: 100%;
    }

    .sep-cont {
        flex-direction: row;
        height: 0.1rem;
        width: 100%;
    }

    .sep {
        margin: auto;
        height: 0.1rem;
        width: 80%;
        position: inherit;
        left: unset;
    }


    nav.flags {
        height: 2rem;
    }

    nav.flags img {
        width: 2rem;
    }

    .pict-right {
        margin-bottom: 1rem;
    }

    .pict-left {
        margin-bottom: 1rem;
    }

    .project-desc {
        font-size: 1.25rem;
        text-align: left;
        line-height: 120%;
    }

    .pict-desc {
        font-size: 1.25rem;
        text-align: left;
        line-height: 120%;
    }
}
