@font-face {
    font-family: 'Times Now';
    src: url(fonts/Times\ Now\ Light.otf);
    font-weight: 100;
}
@font-face {
    font-family: 'Times Now';
    src: url(fonts/Times\ Now\ Light\ Italic.otf);
    font-weight: 100;
    font-style: italic;
}
@font-face {
    font-family: 'Times Now';
    src: url(fonts/Times\ Now\ Light.otf);
    font-weight: 200;
}
@font-face {
    font-family: 'Times Now';
    src: url(fonts/Times\ Now\ Light\ Italic.otf);
    font-weight: 200;
    font-style: italic;
}
@font-face {
    font-family: 'Times Now';
    src: url(fonts/Times\ Now\ SemiBold.otf);
    font-weight: 550;
}
@font-face {
    font-family: 'Times Now';
    src: url(fonts/Times\ Now\ SemiBold\ Italic.otf);
    font-weight: 550;
    font-style: italic;
}

body, html, div, p, a {
    font-family: 'Times Now';
    font-weight: 200;
    margin: 0;
    padding: 0;
    font-size: 20px;
    letter-spacing: -0.05em;
    line-height: 18px;
    cursor: help !important;
}
p {
    margin: 0;
}

div.grid {
    display: grid;
    grid-template-rows: auto 1fr auto;
    flex-wrap: wrap;
    align-content: flex-end; /* Aligne le contenu en bas */
    flex-direction: column;
    justify-content: space-between;
    width: calc(100vw - 10px);
    height: calc(100vh - 10px);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-column-gap: 5px;
    grid-row-gap: 5px;
    padding: 5px;
}

.top {
    align-items: flex-start;
    height: 18px;
    margin-bottom: 5px;
    grid-row: 1;
}

.top   { grid-area: 1 / 1 / 2 / 5; }
.center { grid-area: 2 / 1 / 3 / 5; grid-row: 2; align-self: center; }
.btm-1 { grid-area: 2 / 1 / 3 / 2; }
.btm-2 { grid-area: 2 / 2 / 3 / 3; }
.btm-3 { grid-area: 2 / 3 / 3 / 5; display: flex; justify-content: flex-end; }
  
.btm-1, .btm-2, .btm-3 {
    grid-row: 3;
    align-self: end;
}

.center > p {
    text-align: justify;
    text-align-last: justify;
}


.top > a > p {
    font-weight: 550;
}
sup {
    font-weight: 100;
    font-style: italic;
    vertical-align: top;
    font-size: 14px;
    position: relative;
    top: -5px;
}
pre {
    margin-left: auto;
    display: block;
    font-size: 18px;
    font-family: monospace;
    margin: 0 !important;
}

ul {
    margin: 0;    
}


.top > a > p:hover::before {
    content: "←";
}
.top > a > p, .top > a {
    color: black;
    text-decoration: none;
}

span.space {
    padding-left: 6px;
}










a, a:visited {
    color: black;
    text-decoration: none;
}

a:hover, li:has(a):hover {
    animation: rainbow 10s linear 0s infinite;
}

@keyframes rainbow {
    5% {
        color: blue;
    }
    10% {
        color: rgb(0, 255, 0);
    }
    15% {
        color: yellow;
    }
    25% { 
        color: orange;
    }
    30% {
        color: red;
    }
    35% {
        color: rgb(255, 0, 255);
    }
    42.5% {
        color: rgb(179, 0, 255);
    }
    45% {
        color: blue;
    }
    55% {
        color: rgb(0, 255, 0);
    }
    60% {
        color: yellow;
    }
    70% { 
        color: orange;
    }
    75% {
        color: red;
    }
    80% {
        color: rgb(255, 0, 255);
    }
    87.5% {
        color: rgb(179, 0, 255);
    }
    95% {
        color: blue;
    }
}



@media screen and (orientation: portrait) {

body, html, div, p, a {
    font-family: 'Times Now';
    margin: 0;
    padding: 0;
    font-size: 80px;
    letter-spacing: -0.07em;
    line-height: 80px;
}

sup {
    font-size: 50px;
    top: -15px;
}  

.btm-1, .btm-2, .btm-3 {
    grid-row: unset;
    align-self: unset;
}

div.grid {
    display: grid;
    width: (100vw - 20px);
    height: 100vh;
    padding: 10px;
}

.top    { grid-area: 1 / 1 / 2 / 2; height: 80px; }
.center { grid-area: 2 / 1 / 4 / 2; }
.btm-1  { grid-area: 4 / 1 / 5 / 2; height: 240px; align-self: end; }
.btm-2  { grid-area: 5 / 1 / 6 / 2; height: 240px; align-self: end; }
.btm-3  { grid-area: 6 / 1 / 7 / 2; height: 240px; align-self: end; }

pre {
    font-size: 4.9vw;
    line-height: 4.9vw;
    margin-left: unset;
}

span.space {
    padding-left: 20px;
}

}