@keyframes hype
{
    0%{transform : scale(1.0); filter : saturate(1.0) hue-rotate(0deg);}
    10%{transform : scale(0.8) rotate(0deg); filter : saturate(0.8) hue-rotate(0deg);}
    60%{transform : scale(1.5) rotate(30deg); filter : saturate(1.5) hue-rotate(40deg);}
    100%{transform : scale(1.0); filter : saturate(1.0) hue-rotate(80deg);}
}

@keyframes loading
{
    0%
    {
        background-color: #0b6093;;
        box-shadow: 0 0 3px transparent, 0 0 6px transparent, 0 0 20px transparent, 0 0 60px transparent;
    }
    100%
    {
        background-color: #e0f3ff;
        box-shadow: 0 0 3px #c5e6ff, 0 0 6px #79c5fb, 0 0 20px #51b6ff, 0 0 60px #129cff;
    }
}

@keyframes popup-show
{
    0%{opacity : 0}
    1%{opacity : 1}
    10%{opacity : 1}
    11%{opacity : 0}
    29%{opacity : 0}
    30%{opacity : 1}
    31%{opacity : 0}
    60%{opacity : 0}
    61%{opacity : 1}
    80%{opacity : 1}
    81%{opacity : 0}
    95%{opacity : 1}
    100%{opacity : 1}
}

@font-face
{
    font-family: "Zekton"; 
    src: url("fonts/zekton rg.ttf");

}

html
{
    background: linear-gradient(13deg, #0b1c28, #204454);
    min-height: 100%;
    font-size : 19px;
    line-height: 2em;
    font-family : "Zekton", sans-serif;
    position : relative;
    color : var(--txt-color);
    cursor : url("https://spacewarp.fr/game/images/cursors/default.png") 8 8, auto;
}


:root
{
    --clear-sw : #b9f2ff;
    --sw-txt-shadow : #51dbffa1;
    --txt-color : #c9e8ff;
    --border-color : #9bedff;
    --bg : #00597185;
    --error : #c72e00;
    --valid : #00ff89;
}

body
{
    overflow-y : auto;
    text-align : center;
    padding : 0;
    margin : auto;
}

::-webkit-scrollbar
{
    width : 8px;
    height : 6px;
}

::-webkit-scrollbar-track {
    background: #2a5b66; 
    border-radius: 0px;
}

::-webkit-scrollbar-thumb {
    background: var(--sw-txt-shadow); 
    border-radius: 0px;
}

/* for Firefox... */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--sw-txt-shadow) rgb(30, 30, 30);
}

:focus
{
    outline : none;
}

div.pages
{
    min-height: calc(100vh);
    margin-top: 4em;
}

input,
*[contenteditable="true"]
{
    cursor : url("https://spacewarp.fr/game/images/cursors/text.png") 8 8, auto;
}

input[type="checkbox"]
{
    cursor: url("https://spacewarp.fr/game/images/cursors/pointer.png") 8 8, pointer;
    -webkit-appearance: none;
    appearance: none;
    margin: auto;
    background-color: var(--bg);
    padding: 0.6em;
    border: 1px solid var(--border-color);
    width: initial;
    position: absolute;
    right: 0;
    margin-right: 3em;
    margin-top: -1.8em;
}

input[type="checkbox"]:checked
{
    background-color: var(--border-color);
}

input
{
    font-size: 1em;
    border: none;
    font-family: 'Zekton';
    background: #00000038;
    color: var(--error);
    padding: 0.5em;
    margin: 0.4em auto;
    border-bottom: 1px solid var(--error);
    transition: border-color 0.3s, color 0.3s;
    display : block;
    width: calc(90% - 1em);
}

input:focus,
input.ok
{
    border-color : var(--border-color);
    color: var(--txt-color);
}

img
{
    display : block;
    margin:auto;
}

label
{
    cursor : url("https://spacewarp.fr/game/images/cursors/default.png") 8 8, auto;
}

img.background
{
    position : fixed;
    top :0;
    left :0;
    width : 100%;
    z-index : -2;
}


button:active
{

}

button:disabled
{
    border-bottom-color: grey;
    color: grey;
    cursor: url("https://spacewarp.fr/game/images/cursors/not-allowed.png") 8 8, not-allowed;
    background: linear-gradient( 
0deg
 , #3e3e3e85, transparent)
}

button:disabled:hover
{
    text-shadow : none;
}

button
{
    cursor: url("https://spacewarp.fr/game/images/cursors/pointer.png") 8 8, pointer;
    font-size: 1em;
    background: linear-gradient(
    0deg
    , var(--bg), transparent);
    border: 1px solid transparent;
    color: var(--txt-color);
    font-family: 'Zekton';
    padding: 1em;
    max-width: 95%;
    margin: 1em auto;
    transition: text-shadow 0.3s, border-color 0.3s;
    display: block;
    border-radius: 2px;
    font-weight: initial;
}

button:focus,
button:hover
{
    text-shadow: 0 0 11px var(--txt-color);
    border-color : var(--border-color);
}

h2
{
    padding: 6em 0;
    border-bottom: solid 1px var(--border-color);
    margin-top: 0;
    font-size: 3em;
    text-shadow: 0 0 3px #c5e6ff, 0 0 6px #79c5fb, 0 0 20px #51b6ff, 0 0 60px #129cff;
    margin-bottom: 0;
    background: linear-gradient(0deg, #071c28, transparent);
    line-height: 1.3em;
}

p
{
    text-align : left;
}

div.page-body
{
    background: linear-gradient(13deg, #0b1c28, #204454);
    padding-top : 1em;
}

a
{
    color: white;
    text-decoration: none;
    cursor: pointer;
    transition : 0.3s text-shadow;
    text-shadow: none;
    cursor: url("https://spacewarp.fr/game/images/cursors/pointer.png") 8 8, pointer;
}

a:visited
{
    color: #c6e7f7;
}

a:hover
{
    color: white;
    text-shadow: 0 0 4px var(--border-color);
}

menu
{
    padding: 0;
    background: #306d8be6;
    color: white;
    margin: 0;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 0 2px var(--border-color);
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index : 1000;
}

menu a
{
    display: block;
    margin: 0;
    width: calc(100% - 1em);
    padding: 0.5em;
    transition : 0.3s text-shadow, 0.3s background-color;
}

menu a:hover
{
    background-color: #58a4c1;
}

menu a.active
{
    background-color: #257da9;
}

menu a.home
{

}

div.sections
{
    display: flex;
    width: 75%;
    margin: auto;
}

section
{
    width: calc(50% - 4em);
    padding: 1em;
    margin: 1em;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: url("https://spacewarp.fr/game/images/cursors/pointer.png") 8 8, pointer;
}

section:hover
{

}

section h3
{
    margin: auto;
    padding: 1em;
    width: calc(93% - 2em);
    background: linear-gradient(0deg, rgb(15 62 82) 0%, rgb(20 84 112) 34%);
    margin-bottom: 0;
}

section:first-child h3
{
    margin-left: 10px;
}

section:last-child h3
{
    margin-right: 10px;
}

section img
{
    width: 256px;
    float: left;
    padding-right: 1em;
    margin-right: 1em;
    border-right: 1px solid var(--border-color);
    filter: saturate(0.7);
    transition: filter 0.3s;
}

section:hover img
{
    filter: saturate(1.1);
}

section p
{
    margin: 0 auto;
    padding: 1em;
    border: 1px solid var(--border-color);
    background-color: #092736;
    font-size: 0.85em;
    line-height: 1.9em;
    box-shadow: none;
    transition: background-color 0.3s, box-shadow 0.3s;
}

section:hover p
{
    background-color: #1d4356;
    box-shadow: 0 0 6px #79e7ff;
}

section p i
{
    font-size: 0.8em;
    color: #6b8491;
    text-align: right;
    display: block;
    line-height: 1.5em;
    margin: auto;
    margin-bottom: 0;
    padding-right: 1em;
    border-right: 1px solid var(--border-color);
    margin-top: 4em;
}

div.log
{
    display: flex;
    flex-direction: column;
    padding: 1em;
    width: calc(50% - 2em);
    margin: 1em auto;
    border: 1px solid var(--border-color);
    border-radius: 2px;
    background: #112a36;
}

div.log div.id,
div.log div.date
{
    font-size: 0.6em;
    font-style: italic;
    color: #637b8d;
    padding: 0;
    margin: 0;
    line-height: 0;
}

div.log div.id
{
    margin-bottom: 1.5em;
    text-align: left;
}

div.log div.date
{
    margin-bottom: 0;
    text-align: right;
    margin-top: 1em;
}

div.log div.progress
{
    padding: 1em;
    background: #10212a;
    margin-top: 1em;
    margin-bottom: 0.3em;
    text-align: left;
    font-size: 0.8em;
}
div.log h3
{
    margin: auto;
    padding: 1em;
    padding-top: 0;
    padding-bottom: 0.7em;
    width: calc(100% - 2em);
    border-bottom: 1px solid var(--border-color);
    text-shadow: 0 0 16px #9bedffad;
}

div.log div.description
{
    display: flex;
}

div.log div.description img
{
    width: 128px;
    height: 128px;
    padding-top: 1em;
    margin-left: 0;
    margin-right: 1em;
    padding-right: 1em;
    border-right: 1px solid var(--border-color);
    object-fit: cover;
}

div.log div.progress label.pgr-label
{
    text-align: right;
    width: calc(100% - 1em);
    display: block;
    padding-right: 1em;
}

div.log div.description img.default
{
    mix-blend-mode: lighten;
    padding-top: 0em;
}

div.log div.description p
{
    margin: auto;
    line-height: 1.4em;
    font-size: 0.9em;
    margin-left: 1em;
}

div.lecteur
{
    width: calc(100% - 2em);
    margin: 1em;
    color : var(--txt-color);
}

div.lecteur div.time
{
    font-size: 0.85em;
    color: var(--txt-color);
}

div.lecteur div.settings
{
    color : var(--txt-color);
    background-color: #19303ac2;
}


div.lecteur ul
{
    font-size : 0.7em;
}

div.lecteur button.play
{
    z-index: 101;
    background: none;
    transition: filter 0.3s;
    border: none;
}

div.lecteur button.play:hover
{
    filter : brightness(0.6) sepia(1) hue-rotate(157deg) brightness(1.4)
}

div.wait, div.wait:before, div.wait:after
{
    color: #209cb9;
}

div.submenu
{
    display : flex;
}

div.submenu button
{
    width : 45%;
}

div.hype,
div.want
{
    display : flex;
}

div.hype
{
    margin-right : 1em;
}
div.want button:first-child
{
    margin-left : 0;
}

div.want
{
    align-items: center;
}

.hype button
{
    background: transparent;
    border-radius: 50em;
    border-width: 2px;
    padding: 0;
    width: 55px;
    height: 55px;
    border : none;
}

.hype button img
{
    width: 42px;
    height: 42px;
    object-fit: cover;
}

.hype label.number
{
    font-weight: bold;
    margin-top: 0.7em;
    margin-left: -0.5em;
}

.hyping,
.hype button.hyping
{
    animation : hype 0.7s
}

.hype button.hyped
{
    filter : hue-rotate(80deg);
}

p.dev,
p.logs
{
    width: calc(50% - 2em);
    margin: auto;
    padding: 1em;
    background: #153342;
    line-height: 1.5em;
}

p.dev img
{
    display: inline;
    width: 32px;
}

.last-udpate
{

}

.last-update div.body
{
    display: flex;
    align-items: center;
    padding: 1em;
    border: 1px solid var(--border-color);
    margin: auto;
    width: calc(75% - 4em);
    background: #112a36;
}

.last-update div.body img:first-child
{
    width: 30%;
    padding-right: 1em;
    margin-right: 1em;
    border-right: 1px solid var(--border-color);
    cursor: url("https://spacewarp.fr/game/images/cursors/pointer.png") 8 8, pointer;
}

.last-update div.body p
{
    line-height: 1.3em;
    font-size: 0.8em;
    margin: auto;
    background: #0b181e;
    padding: 1em;
    font-style: italic;
    text-shadow: 0 0 28px #84cafdb0;
}

.last-update h3
{
    margin: auto;
    padding: 1em;
    width: calc(70% - 4em);
    background: #122832;
    text-shadow: 0 0 18px #b3daf7;
}

.last-update div.infos
{
    line-height: 1.3em;
    text-align: right;
    width: calc(75% - 4em);
    margin: auto;
    color: #366283;
    font-size: 0.7em;
    font-style: italic;
}

footer
{
    font-size: 0.7em;
    line-height: 1.5em;
    padding: 1em;
    border-top: 1px solid var(--border-color);
    background: #081d2a;
    display: flex;
    align-items: center;
    margin : auto
}

footer div
{
    display: flex;
    flex-direction: column;
    width:100%;
    margin : auto;
    border-right: 1px solid var(--border-color);
}

footer div:last-child
{
    border-right:none;
}

footer div a
{
    display : block;
}

menu.phone
{
    flex-direction: column;
    transition : transform 0.3s;
}

div.loader
{
    width: 150px;
    height: 10px;
    background-color: #0b6093;
    animation : 1s infinite alternate loading;
    margin : auto;
}

.spp
{
    position: fixed;
    z-index: 1000;
    right: 0;
    top: 35vh;
    font-size: 0.8em;
    width: 250px;
    text-align: right;
    line-height: 1.5em;
    transition: transform 0.5s;
    animation : popup-show 0.5s;
}

.spp.closed
{
    transform: translateX(244px);
}

.spp .date
{
    font-size: 0.8em;
    font-style: italic;
    color: #77afd9;
    padding: 1em;
    margin: auto;
    line-height: 0;
    width: fit-content;
    margin-right: 0;
    background: #092330;
    border-top: 1px solid var(--border-color);
    border-left: 1px solid var(--border-color);
}

.spp .transmission-title
{
    padding: 0.6em;
    width: 80%;
    margin: auto;
    margin-right: 0;
    text-shadow: 0 0 11px #9bedffad;
    background: linear-gradient(0deg, rgb(15 62 82) 0%, rgb(20 84 112) 34%);
    border: 1px solid var(--border-color);
    border-right: none;
    border-bottom: none;
    padding-right: 1.4em;
    display: flex;
}

.spp .transmission-title::before
{
    content: " ";
    width: 6px;
    background: #c9e8ff;
    display: block;
    box-shadow: 0 0 3px #c5e6ff, 0 0 6px #79c5fb, 0 0 20px #51b6ff, 0 0 60px #129cff;
    margin-right: 0.9em;
    animation: 1s infinite alternate loading;
}

.spp .body
{
    background: #0f394aa6;
    border: 1px solid var(--border-color);
    border-right: none;
    padding: 0;
}

.spp button.close
{
    margin: auto;
    position: absolute;
    border: 1px solid var(--border-color);
    line-height: 0;
    padding: 1em 0.7em;
    margin-left: -15px;
    margin-top: 5px;
    background: #13668b;
    font-size: 12px;
    transition : opacity 0.5s;
}

.spp.closed button.close
{
    opacity: 0;
    pointer-events: none;
}

.spp .content
{
    display : flex;
}

.spp .bar
{
    width: 15px;
    background: #c9e8ff;
    display: block;
    box-shadow: 0 0 3px #c5e6ff, 0 0 6px #79c5fb, 0 0 20px #51b6ff, 0 0 60px #129cff;
}

.spp.closed .bar
{
    cursor: url("https://spacewarp.fr/game/images/cursors/pointer.png") 8 8, pointer;
}

.spp .txt
{
    padding: 0.8em;
    font-style: italic;
    text-shadow: 0 0 9px #9bdafff5;
}

.spp .btn-container
{
    padding: 0.5em;
    width: calc(90% - 1em);
    margin: auto;
    margin-right: 0;
    background: #103342b8;
    border: 1px solid var(--border-color);
    border-top: 0;
    border-right: 0;
}

.spp .btn-container button
{
    margin: auto;
    padding: 0.6em;
    width: 100%;
}

.mask
{
    position: fixed;
    top : 0;
    left : 0;
    width: 100%;
    height: 100%;
    background: black;
    opacity: 0.9;
    pointer-events: none;
    z-index : 1995;
}
.inscription
{
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    margin-top: 8vh;
    max-height: 90vh;
    overflow: hidden;
    background: #0d1e28;
    border: 1px solid var(--border-color);
    border-radius: 2px;
    width: 55%;
    margin-left: 22.5%;
}

.inscription .header
{
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    background: #173648;
    padding: 1em;
}

.inscription .header button.close
{
    margin: auto;
    margin-right: 0;
    padding: 0.9em 0.6em;
    line-height: 0;
    font-weight: bold;
    background: none;
}

.inscription .title
{
    text-shadow: 0 0 3px #c5e6ff, 0 0 6px #79c5fb, 0 0 20px #51b6ff, 0 0 60px #129cff;
    font-size: 1.2em;
}

.inscription .content
{
    padding: 1em;
    font-size: 0.9em;
    max-height: 72vh;
    overflow: auto;
}

.inscription .content p
{
    margin: auto;
    padding: 1em;
    margin-bottom: 1em;
    border-bottom: 1px solid var(--border-color);
}

.inscription .inputs
{
    width: 90%;
    margin: auto;
}

.inscription label
{
    display: flex;
    align-items: center;
    margin: 2.5em auto;
}

.inscription label span
{
    width: 30%;
    text-align: left;
}

.inscription p.footer
{
    margin: auto;
    font-size: 0.7em;
    text-align: right;
    font-style: italic;
    margin-top: 3em;
    border : none;
    line-height: 1.5em;
}

.error
{
    color: red;
}

menu.phone button.close,
menu.phone button.open
{
    position: absolute;
    border: 1px solid var(--border-color);
    line-height: 0;
    padding: 1em 0.7em;
    background: #13668b;
    font-size: 12px;
    transition: opacity 0.5s;
    right: 0;
    margin: 1em;
}

menu.phone button.open
{
    margin-right: -3.3em;
}

@media (max-width : 1024px)
{
    menu
    {
        font-size: 0.7em;
    }

    p.dev, p.logs
    {
        width : calc(75% - 2em);
    }

    div.log
    {
        width: calc(75% - 2em);
    }

    h2
    {
        padding: 3.3em 0;
    }

    div.sections
    {
        width : 100%;
    }

    section img
    {
        width : 30%;
    }
}

@media (max-width : 840px)
{
    button,
    a,
    img,
    :active
    {
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        -khtml-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
    }
    h2
    {
        font-size: 1.5em;
    }
    div.sections
    {
        flex-direction: column;
        width : 100%;
    }

    section
    {
        width: calc(100% - 1em);
        padding: 0;
        margin: 0.5em;
    }

    section img
    {
        float: none;
        border: none;
        margin: 0em;
        border-bottom: 1px solid var(--border-color);
        padding: 0;
        padding-bottom: 1em;
        width: calc(100%);
    }

    section h3
    {
        line-height: 1.4em;
    }

    footer
    {
        flex-direction: column;
    }
    
    footer div
    {
        border: none;
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 0.5em;
        margin-bottom: 0.5em;
    }

    footer div:last-child
    {
        border-bottom: none;
        padding-bottom : 0;
        margin-bottom : 0;
    }

    p.dev, p.logs
    {
        width : calc(95% - 2em);
        font-size: 0.8em;
    }

    div.log
    {
        width : calc(90% - 1em);
        padding : 0.5em;
    }

    div.log h3
    {
        font-size: 1em;
        line-height: 1.3em;
        padding: 0.5em;
    }

    div.log div.description
    {
        flex-direction: column;
    }
    div.log div.description img
    {
        border: none;
        padding: 0;
        margin: 0;
        width: calc(100%);
        padding-bottom: 0.5em;
        margin-bottom: 0.5em;
        border-bottom: 1px solid var(--border-color);
        height: inherit;
    }

    div.log div.description p
    {
        margin: 0.5em;
    }

    div.log div.id
    {
        margin-top: 0.4em;
    }

    button
    {
        padding: 0.7em;
        font-size: 0.8em;
    }

    div.submenu
    {
        flex-direction: column;
    }
    div.submenu button
    {
        width: calc(100% - 2em);
        margin: 1em;
    }

    div.submenu button:last-child
    {
        margin-top : 0;
    }

    .last-update h3
    {
        width: calc(100% - 4em);
        font-size: 1.1em;
        line-height: 1.4em;
    }

    .last-update div.body
    {
        flex-direction: column;
        width: calc(95% - 2em);
    }

    .last-update div.body img:first-child
    {
        width: 100%;
        padding: 0;
        margin: 0;
        border: none;
        padding-bottom: 0.5em;
        margin-bottom: 0.5em;
        border-bottom: 1px solid var(--border-color);
    }

    .last-update div.body p
    {
        font-size: 0.65em;
    }

    .last-update div.infos
    {
        font-size: 0.5em;
        width: calc(100% - 2em);
        margin-bottom: 1em;
    }

    .inscription
    {
        width : 95%;
        margin-left : 2.5%;
    }

    .inscription .title
    {
        font-size: 1.1em;
        text-align: left;
        line-height: 1.2em;
    }
    .inscription .content {
        padding: 0.5em;
    }
    .inscription .content p {
        padding: 0.5em;
        line-height: 1.5em;
    }

    .inscription label
    {
        flex-direction: column;
        margin: 1.1em auto;
    }

    .inscription label span
    {
        width: 100%;
        text-align: left;
        display: block;
    }

    .spp .body
    {
        background: #0f394aeb;
    }
}

@media (max-width : 460px)
{

}
