/* This program is free software: you can redistribute it and/or modify
   it under the terms of the GNU Affero General Public License as published by
   the Free Software Foundation, either version 3 of the License, or
   (at your option) any later version.

   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU Affero General Public License for more details.

   You should have received a copy of the GNU Affero General Public License
   along with this program. If not, see https://www.gnu.org/licenses/. */

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background: white;
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

a {
    color: #ef6000;
    cursor: pointer;
    text-decoration: none;
}
p:first-child { margin-top: 0; }
p:last-child { margin-bottom: 0; }

h1 {
    margin-top: 0;
    padding: 0;
    font-size: 1.5em;
}
* + h1 {
    margin-top: 1.6em;
    padding-top: 1em;
    border-top: 2px solid #191f22;
}
h2 {
    display: table;
    padding: 2px 6px 2px 30px;
    background: #191f22;
    font-size: 1.2em;
    font-weight: normal;
    color: white;
}
h4 { font-style: italic; }

table {
    width: 90%;
    margin: 1em auto;
    border-collapse: collapse;
}
th {
    padding: 0.4em;
    border: 1px solid #ebebeb;
    background: #ebebeb;
    text-align: center;
}
td {
    padding: 0.5em;
    background: white;
    border: 1px solid #ebebeb;
    vertical-align: top;
}

#header {
    position: sticky;
    display: flex;
    left: 0;
    top: 0;
    width: 100%;
    height: 2.5em;
    background: #191f22;
    z-index: 99;
    align-items: center;
    justify-content: center;
}
#header a {
    font-size: 18px;
    font-variant: small-caps;
    text-decoration: none;
    letter-spacing: 1px;
    text-align: center;
    color: white;
}
#header a + a { margin-left: 1em; }
#header a.active { font-weight: bold; }
#header a:not(.active):hover { text-decoration: underline; }
#logo {
    margin: 45px 10px 10px 10px;
    width: 56px;
    height: 56px;
    z-index: 999;
}
:target { scroll-margin-top: 2.5em; }

.flag {
    display: inline-block;
    position: absolute;
    top: 16px;
    width: 16px;
    height: 12px;
    background-size: 100%;
}
.flag.en { background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAAAwCAYAAAChS3wfAAACt0lEQVRoge3aPU/bUBQG4DNEMJOBwR5YYPOAYAA2pCDByh9gZGdB6hjBUIl2RiwIBhbYQBUSE61UwZCgNEKhNaq6dihS86EQ4jhvh2DHYAcn9j3XruIrnQUl8XmfOMY5N0S0Ds4qlx9hLX1pCTmiN6uoKHAuVd1k7Y+GHmBi4t3QAqTTG6Cnpxb29r6ACyKOAOn0Bra2PqFcfgRZB2o2eSDiBOAMDgC1q6suABdEHAC8gt8vLyNH5AYQDRElwFvBreoJYK2w14goAPoJbgPcr6ygdn3t5xD4jJAJMEjw26kpPBwegqw/cEHIAAgSHK0WAHQBuCA4AcIEtxbdTk56PkEUBAeAiOA2AAwDfw4OwAUhEkBkcBvg5CSPdrsNLggRABzBAeDy8geIaB2algUXRL3eDAWwu/uZJfji4sfnM8txumpaFsfHOaEQzhUEgC/4c1UqDbwu02x3n2WaMCsV76pWpQCY1WrPHmCafR/fK6vvnaDIFRSAcyUAeiYDWVUYG/MFuBkZkdaPnsm47wSHrRKAqBuIuhKAqBuIuhKAqBuIuhKAoqpCVt2Mjvo2lE+lpPVTVNXkVjgBkHmwWAIoyias0rQs9ve/wjD8v2M3dB2/1tZQVBRXlaan8XB05PquzgFQLxTwc3XVs4/v8/P4e3pqP/bsrIiFhfdwZiavYWM/wfOplKv5b+Pj+L2zA7NWA9CZwDQaRiiAi4tSZ0Lls8rn57ibm/N8zdLMjA3hGt5ub/MEt0ZPIoaiL2aWYSBmZ20Ia8vP9xoQNDjHWFwYhOOM6AkwePAP0jZGREK4AMK+4zK3xjpT7HAQNoDo4DI3R1+M8weEIK7gUWyPB/loUNjPeJwAgkCQ6Hc8DgCDQBBX8DgA9ANBXMHjBOCEeP1fg7iCxxHA64ygoBe3/xnACZH8WHrYAf4B8WrMtrCUpYoAAAAASUVORK5CYII='); }
.flag.fr { background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAAAwCAYAAAChS3wfAAAAbElEQVRoge3QMQ3AMAwAQcMIgs5hGDglUCljQARK1kouCU/VvfQELuIaWf397KzunStP6+UHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA8D+AD6ogapLplAe/AAAAAElFTkSuQmCC'); }

.sponsor {
    position: absolute;
    right: 8px;
    top: 4px;
    border: 0;
}

#menu {
    position: fixed;
    left: calc(50% + 485px);
    top: 4em;
    width: 240px;
    padding: 0 1em 0 0;
    background: white;
    font-size: 0.9em;
}
#menu ul {
    padding-left: 0;
    text-indent: 1em;
}
#menu li {
    list-style-type: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
#menu a {
    display: block;
    text-decoration: none;
    padding-left: 0;
}
#menu a:hover { text-decoration: underline; }
#menu a.active { background: #f6f6f6; }
#menu li li a { padding-left: 1em; }
#menu li li li a { padding-left: 2em; }

main {
    width: 100%;
    background: white;
    box-sizing: border-box;
    max-width: 970px;
    padding: 1.5em 1.5em 1.5em;
}

.slideshow {
    position: relative;
    left: 50%;
    right: 0;
    width:  130%;
    max-width: 90vw;
    transform: translate(-50%, 0);
    margin-top: 50px;
}
.slideshow > img {
    position: absolute;
    top: 0;
    margin: 0 auto;
    padding-bottom: 1em;
    max-width: 100%;
    object-fit: contain;
    object-position: center top;
    cursor: pointer;
    transition: opacity 0.2s ease-in-out;
    opacity: 0;
    pointer-events: none;
    background: white;
}
.slideshow > img.active {
    opacity: 1;
    pointer-events: auto;
}
.legend {
    position: absolute;
    top: -30px;
    left: 0;
    right: 0;
    width: 500px;
    max-width: 95%;
    box-sizing: border-box;
    margin: 0 auto;
    padding: 10px;
    background: #fe7c3c;
    box-shadow: 2px 2px rgba(254, 124, 60, 0.8);
    opacity: 0.96;
    font-size: 0.9em;
    color: white;
    z-index: 1;
    text-align: center;
}
.legend > p {
    display: none;
    margin: 0;
    font-style: italic;
}
.legend > p.active { display: block; }
.legend > a {
    color: inherit;
    font-size: 1.5em;
    padding: 4px;
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}

.screenshot {
    max-width: 100%;
    padding: 10px;
    display: flex;
    justify-content: center;
    gap: 10px;
}
.screenshot > img {
    max-width: 100%;
    vertical-align: top;
    cursor: pointer;
    border: 10px solid #ebebeb;
}
.screenshot.left { justify-content: start; }
.screenshot.right { justify-content: end; }

.mini {
    float: left;
    width: 250px;
    margin-right: 1em;
    padding: 10px;
    background: #ebebeb;
}
.mini.right {
    float: right;
    margin-left: 1em;
}
.mini > img {
    width: 100%;
    cursor: pointer;
}
.mini > p {
    margin: 0.5em 0 0 0;
    font-size: 0.8em;
    font-style: italic;
    text-align: center;
}

table {
    margin: 1em;
    font-size: 0.9em;
}

.columns {
    display: flex;
    align-items: start;
}

pre {
    background: #ebebeb;
    padding: 12px;
}

#veil {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.9);
    cursor: pointer;
    z-index: 999;
}
#veil.active { display: flex; }
#veil > img {
    position: absolute;
    max-width: 90%;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

.footnote {
    font-size: 0.9em;
    font-style: italic;
}
.footnote_ref {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
    top: -0.5em;
}

@media screen and (max-width: 680px) {
    #header { height: auto; }
    #header > div:first-child > a { text-align: right; }
    #header > div:not(:first-child) > a { text-align: left; }
    #header a {
        display: block;
        letter-spacing: 0;
        margin-left: 0 !important;
        font-size: 0.9em;
    }
    #logo { margin: 2px 6px; }

    .flag {
        top: 8px;
        left: 8px;
        width: 24px;
        height: 18px;
    }
    .sponsor {
        top: 22px;
        transform: scale(0.5);
        transform-origin: right bottom;
    }

    #menu { display: none; }
    main { padding: 1em; }

    .slideshow { margin-top: 20px; }
    .legend {
        top: 150px;
        font-size: 0.7em;
    }

    .screenshot {
        flex-direction: column;
        align-items: center;
    }
    .screenshot.left { align-items: start; }
    .screenshot.right { align-items: end; }

    .mini {
        float: none !important;
        margin: 1em auto !important;
    }

    .columns { flex-direction: column; }
}
