:root {
    --text: #222;
    --text-2: #000;

    --ovidius: #4b6784;

    --bg: hsl(from var(--ovidius) h s calc(l + 40));
    --section: hsl(from var(--ovidius) h s calc(l + 30));
    --section-2: hsl(from var(--ovidius) h s calc(l + 35));
    --link: hsl(from var(--ovidius) h calc(l + 20) calc(l - 20));
}

h1,h2,h3,h4,h5,h6 {

    color: var(--text-2);
}


html {
    width:100%;
    height:100%;
    padding:0;
    margin:0;
}
body {
    padding:0;
    margin:0;

    background-color: var(--bg);

    color: var(--text);

    font-family: "Roboto", sans-serif;
    font-optical-sizing: auto;
    font-weight: normal;
    font-style: normal;
    font-variation-settings: "wdth" 100;

    font-size: 1.2rem;
}

header.center {
    text-align: center;
}

header h2 {
    margin: 0;
}

footer {
    padding: 0.5em;
    font-size: 1em;

    text-size-adjust: auto;


    min-height:4em;
    display: flex;

    align-items: center;

    background-color: var(--section);
}

footer img {
    height: 3em;
    width: auto;
}

@media screen and (max-width: 800px) {
    footer {
        font-size: 0.7em;
    }

    .project-cards > a > div {
        grid-template-rows: auto auto auto !important;
        grid-template-columns: auto !important;
        
    }
                                                 /* .img img mai specific ! */
    .project-cards > a > div img, .project-cards > a > div .img img {
        height: 8em;
        aspect-ratio: unset;
        width: auto;
    }
    
    #navtext {
        font-size: 0.75em !important;
    }
}
.back {
	display:none;
}
@media only screen and (hover: none) and (pointer: coarse){
    .back {
        display:block !important;
    }
}

@media screen and (max-width: 500px) {
    body {
        font-size: 1.3rem;
    }
    footer {
        min-height: 6em;
        flex-wrap: wrap;
    }
    footer img {
        height: 2em;
    }
    footer img:nth-child(1) {
        order: 1;
    }
    footer img:nth-child(2) {
        order: 2;
    }
    
    #navtext {
        font-size: 0.5em !important;
    }
    
}

#imgOv {
    border-radius: 100%;
}


nav {
    display: flex;
    align-items: center;
    justify-content: center;


    background-color: var(--section);
    padding:0.5em;
}

nav .grid {
    width: 90%;
    gap:0.5em;
    display: grid;
    grid-template-columns: auto 1fr auto;

    align-items: center;
}

#navtext {
    font-size: 1em;
    color:var(--text-2);
}

nav .grid > div {
    gap: 0.5em;
    height: 2em;
    display: flex;
    align-items: center;
}

nav #imgOv {
    height: 100%;
}


nav .right {
    justify-self: flex-end;
}



main {

    display: flex;
    flex-direction: column;
    align-items: center;

    margin-top:1em;
    margin-bottom: 8em;

    min-height: calc(100vh);
}

main .content {
    width: 80%;
    display: grid;
    flex-direction: column;
    align-items: center;

    gap:0.5em;
}

.info-cards {
    width: 100%;
    display: flex;
    flex-wrap: wrap;

    justify-content: center;
    gap:1em;

}
.info-cards > div {
    text-align: center;

    width: 5em;
    aspect-ratio: 1;
    height: auto;
    background-color: var(--section-2);

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;
}
.info-cards > div .val {
    font-size: 2em;
}

a {
    color: var(--link);
    text-decoration: none;
}

hr {
    width:100%;
    color: var(--section);
    border: 1px solid var(--section);
}

.project-cards {
    width: 100%;
    display: flex;
    gap: 1em;

    flex-direction: column;

}

.project-cards > a > div {
    display: grid;
    padding:1em;
    grid-template-columns: auto 1fr 3fr;
    gap:1em;

    font-size: 1.2em;

    background-color: var(--section-2);

    min-height: 8em;

    cursor:pointer;

    transition: transform 0.5s;

}

.project-cards > a > div img {
    transition: transform 0.5s;
}

.project-cards > a:hover > div {
    transform: scale(1.025);
}
.project-cards > a:hover > div img {
    
     transform: scale(1.25);
}
.project-cards > a > div img, .project-cards > a > div .img {
    height: 8em;
    aspect-ratio: 1;
    width: auto;
}

.project-cards > a > div .img {
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

button {
    border: 1px solid var(--ovidius);
    padding: 8px;
    font-size: 1em;
    background-color: var(--section-2);
    outline: none;
    cursor:pointer;
    color: var(--text);

    transition: 0.2s background-color;
}
video {
    border: 1px solid var(--ovidius);
    height: 90vh; width: 100%; background-color: black;
}
button:hover {
    background-color: var(--section);
}
