: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;
}

main div:last-child {
    margin-bottom: 1em;
}

main .title {
    grid-column: 1 / 3;
}

.logo {
    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;
}

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

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

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

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

@media (max-width: 450px) {
    body {
        font-size: 40px;
    }
}

@media (max-width: 55rem) {
    
    body {
        display: inherit;
        height: inherit;
    }

    nav.flags {
        height: 2rem;
    }

    nav.flags img {
        width: 2rem;
    }


    main {
        grid-template-columns: auto;
        grid-template-rows: auto;
        height: auto;
    }

    main .title {
        grid-column: unset;
    }
    
    .sep-cont {
        flex-direction: row;
        height: 0.1rem;
        width: 100%;
    }

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

    .ref {
        max-height: initial;
    }

}
