:root {
    --opacity: 0.75
}

* {
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background-image: url(img/martin-jernberg-oBX-b6ltYts-unsplash.jpg);
    background-attachment: fixed;
    background-size: cover;

    margin: 0;
    min-height: 100vh;
	display: grid;
	grid-template-rows: auto 1fr auto;
}

header, footer {
    background-color: rgba(255, 255, 255, var(--opacity));
    text-align: center;
}

footer {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

footer > span {
    margin: 1rem;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

main > p:first-child { /* "Portail vers les..." */
    margin: 3rem;
}

.links {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}

.links > a {
    display: flex;
    flex-direction: column;
    justify-content: center;

    text-decoration: none;

    padding: 1rem;
    margin: 3rem;

    background-color: rgba(255, 255, 255, var(--opacity));

    border-style: solid;
    border-width: 1px;
    border-color: grey;
    border-radius: 5%;
}

.links > a:hover {
    background-color: rgb(243, 243, 243);
}

.links > a > img {
    opacity: 100%;
}

.links > a > span {
    color: black;

    margin-top: 1em;
}

@media screen and (max-width: 850px) {
    .links {
        flex-direction: column; 
    }

    .link-item:active {
        background-color: rgb(243, 243, 243);
    }
}