:root {
    --font-family: 'Karrik';
    --font-size: 18px;
    --line-height: 20.2px;
    --margin: 20px;
}

@font-face {
    font-family: 'Karrik';
    src: url('Vendors/fonts/Karrik-Italic.ttf') format('truetype'),
        url('Vendors/fonts/Karrik-Italic.woff') format('woff'),
        url('Vendors/fonts/Karrik-Italic.woff2') format('woff2');
    font-weight: normal;
    font-style: italic;
}

@font-face {
    font-family: 'Karrik';
    src: url('Vendors/fonts/Karrik-Regular.ttf') format('truetype'),
        url('Vendors/fonts/Karrik-Regular.woff') format('woff'),
        url('Vendors/fonts/Karrik-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size);
    font-weight: normal;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

h1 {
    font-family: var(--font-family);
    font-weight: normal;
    /* font-size: clamp(2.667rem, 4vw + 1rem, 3.556rem); */
    font-size: 3.8vw;
    line-height: 1;
    text-indent: 0;
    margin: 0;
}

h2 {
    font-family: var(--font-family);
    font-weight: normal;
    margin: 0px;
    margin-bottom: var(--margin);
    padding: 0px;
}

h4 {
    font-family: 'Karrik';
}

p {
    line-height: var(--line-height);
    padding: 0px;
    margin: 0;
    margin-bottom: var(--margin);
}

button {
    background-color: transparent;
    color: black;
    border: 0px solid;
    font-family: 'Karrik';
    display: block;
    margin: 2px 0;
}

ul {
    margin-bottom: var(--margin);
    padding: 0;
    padding-left: var(--margin);
    list-style-type: "—";
}

li {
    margin: 0;
    padding: 0;
    padding-left: 5px;
}


#buttons {
    position: fixed;
    bottom: 80px;
    right: calc(var(--margin)*3);
    z-index: 20;
}

#content>section {
    grid-gap: 20px;
    margin: 0;
    padding: 80px;
}

article {
    position: relative;
    width: 50%;
    left: 42%;
    margin: 20px;
    margin-top: 260px;
    height: 100%;
    z-index: 2;
    transform: rotate(0.5deg);
}

.credits p,
.credits li,
.creditypo {
    font-size: calc(var(--font-size) - 2px);
    line-height: calc(var(--font-size)-2px);
}

.creditypo {
    margin-bottom: 0px;
}

.printonly {
    display: none;
}

.screenonly {
    display: block;
}

.boiteimg {
    width: 100%;
    margin-bottom: 1em;
}

img {
    opacity: .5;
    width: 100%;
    -webkit-filter: grayscale(100%);
    filter: grayscale(100%);
}

a:link {
    text-decoration: none;
}

a:visited {
    text-decoration: none;
}

a:hover {
    text-decoration: none;
    cursor: pointer;
}

button:hover {
    cursor: pointer;
}

a:active {
    text-decoration: none;
}

.title {
    width: 42%;
    display: flex;
    flex-direction: column;
}

@media screen {
    .page {
        position: fixed;
        width: 58%;
        height: 100%;
        left: 42%;
        top: 0;
        z-index: 10;
        pointer-events: none;
    }
}

@media screen and (max-width: 800px) {

    #content>section {
        padding: 40px;
    }

    .title {
        width: 100%;
        font-size: 28px;
        background-color: rgb(255, 255, 255);
        z-index: 3;
        top: 0;
        left: 0;
        padding: 40px;
        padding-bottom: 20px;
    }

    article {
        width: auto;
        height: auto;
        top: 15vh;
        left: inherit;
        margin: inherit;
        margin-right: 28px;
        padding-bottom: 10vh;
    }

    .page {
        width: 100%;
        left: 0px;
    }

    #buttons {
        bottom: 40px;
        right: 18px;
    }

    #buttons button {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .creditypo {
        position: relative;
        width: 100%;
    }
}

@media screen and (max-width: 800px) and (orientation : landscape) {
    .title {
        display: flex;
        flex-direction: row;
    }
}