html
{
    overflow-y : hidden;
}

body.beta
{
    overflow-y: 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);
}

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);
}
.index h1,
.community h1,
.wallpapers h1,
.chronologie h1
{
    font-size : 5em;
    animation : sector-show 2s;
    text-shadow: #84d2ff 0 0 2px,
    #84d2ffee 0 0 8px,
    #84d2ffcc 0 0 16px,
    #84d2ffaa 0 0 32px,
    #84d2ff55 0 0 64px,
    #84d2ff11 0 0 128px;
    transition : opacity 1s;
    position: fixed;
    width: 100%;
    padding: 2em 0;
    z-index: 0;
    top : 0;
    left : 0;
}

.community h1
{
    line-height: 1.2em;
    position : relative;
    padding : 1.5em 0;
}

.index img.profil
{
    float: left;
    margin-left: 25%;
    margin-right: 1em;
    margin-bottom: 0em;
    width: 256px;
}

h3
{
    margin: auto;
    padding: 1em;
    width: calc(50% - 2em);
    margin-top: 1.5em;
}

.index button.start
{
    font-size : 1.5em;
    animation : cellest-show 0.2s;
    position : fixed;
    z-index : 0;
    left : 0; top : 0;
    margin-top : 38%; margin-left : 50%;
    transform : translate(-50%, -50%);
}

.index img.background
{
    z-index : -1;
    position : fixed;
    top : 0;
    left : 0;
    width : initial;
}

.index div.audio-viz-rt div.line
{
    top : inherit;
    left : inherit;
    margin : initial;
    padding : initial;
    position : relative;
    box-shadow : #84d2ff 0 0 2px,
    #84d2ff99 0 0 5px,
    #84d2ff11 0 0 10px;
    background : var(--txt-color);
}

form
{
    width: 50%;
    text-align: left;
    padding: 1em;
    border: 1px solid var(--border-color);
    background: #78cbeb12;
    margin: auto;
}

form .qu
{
    border-bottom: 1px solid var(--border-color);
    padding: 1em 0;
}

form .qu label
{

}

form textarea
{
    background: #2497d10d;
    border: 1px solid var(--border-color);
    padding: 1em;
    display: block;
    width: calc(100% - 2em);
    min-height: 5em;
    margin-top: 1.2em;
    color : var(--border-color);
    transition : box-shadow 0.3s;
}

textarea:focus
{
    color : var(--border-color);
    box-shadow: 0px 0px 10px #9bedff87;
    border: 1px solid var(--border-color);
}

div.sw-widget.audio header
{
    display: flex;
    text-align: left;
    font-size: 0.9em;
    line-height: 2em;
}

div.sw-widget.audio header div.cln
{
    display : flex; 
    flex-direction : column;
    width : 50%;
}

div.sw-widget.audio header div.cln:first-child
{
    margin-left : 0;
}

div.sw-widget.audio header div.cln:last-child
{
    margin-right : 0;
    text-align : right;
}

div.sw-widget.audio
{
    animation : cellest-show 0.2s;
    position : fixed;
    top : 50%;
    left : 50%;
    margin : 0;
    transform : translate(-50%, -50%);
    background: linear-gradient( 
    17deg ,var(--bg) , #000000ed);
}

div.sw-widget.audio button.pause
{
    font-size: 0.8em;
    text-transform: none;
    background: none;
    border: none;
}

div.pgr-title
{
    margin-bottom : 1.5em;
}

div.sw-widget.audio button.start
{
    background: linear-gradient( 
0deg , #02546b, #000000ed);
    border: solid 1px;
    border : solid 1px;
}

p
{
    width : calc(50% - 2em);
    padding : 1em;
    text-align : left;
    margin : auto;
}

h2,
.index h2
{
    width: 75%;
    margin: 1em auto;
}

.citation
{
    font-style : italic;
}

div.text
{
    background: #172124;
    box-shadow: black 0 0 40px 14px;
    z-index: 2;
    padding: 1em 0.5em;
    position : relative;
}

.beta main
{
    background: #172124;
    border-top: 1px solid var(--border-color);
    padding: 2em 0;
}

.beta h1
{
    margin : auto;
    width: 100%;
    padding: 2em 0;
    font-size: 5em;
    text-shadow: 0 0 5px var(--border-color),
    0 0 20px #9bedffa1,
    0 0 40px #9bedff3d;
}

.beta h2, .beta h3, .beta h4
{
    border : none;
    margin : auto;
}

.beta header
{
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    padding-bottom: 4em;
    background: linear-gradient(
0deg, black, transparent);
}

video.background
{
    position : fixed;
    display : block;
    top : 0; left : 0;
    z-index : -10;
}

.beta .imgs-container
{
    display : flex;
    align-items : center;
}

.beta .imgs-container img
{
    margin : auto;
    width : 30%;
}

ul
{
    width: 50%;
    text-align: left;
    margin: auto;
    padding: 1em 0;
}

li
{
    list-style: none;
    background-color: #193942;
    padding: 0.3em 1em;
}

li:nth-child(2n)
{
    background-color : #0d1d22;
}

div.auteur
{
    text-align: right;
    width: 75%;
    margin: auto;
    font-size: 0.8em;
    color: #898989;
    font-style: italic;
}

div.menu
{
    position: fixed;
    width: 100%;
    z-index : 1;
    top : 0;
    font-size: 0.9em;
}


.community div.menu a
{
    text-shadow: none;
    transition : text-shadow 0.3s;
}

.community div.menu a:hover
{
    text-shadow: #84d2ff 0 0 2px, #84d2ffee 0 0 8px, #84d2ffcc 0 0 16px, #84d2ffaa 0 0 32px, #84d2ff55 0 0 64px, #84d2ff11 0 0 128px;
}

.index div.menu
{
    bottom: 0;
    top : initial;
}

div.TagButtons
{
    display: flex;
}

div.TagButtons button
{
    text-transform: initial;
    width: 25%;
}

div.TagButtons button.active
{
    background: linear-gradient( 0deg , #1e85a1d6, transparent);
}

div.menu.up
{
    bottom : initial;
    position : relative;
}

div.up-menu
{
    width: fit-content;
    position: fixed;
    top: 0;
    left: 0;
    margin-left: 10%;
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 2px;
    font-size: 0.9em;
    text-shadow: none;
    transition: text-shadow 0.3s;
}

div.up-menu menu
{
    padding: 0.2em 1.3em;
    padding-bottom: 0em;
    width: auto;
    background-color: #14333da3;
    border-top: 0;
}

div.up-menu:hover
{
    text-shadow: #84d2ff 0 0 2px, #84d2ffee 0 0 8px, #84d2ffcc 0 0 16px, #84d2ffaa 0 0 32px, #84d2ff55 0 0 64px, #84d2ff11 0 0 128px;
}


.menu div.bg
{
    background: none;
    width: 7em;
    height: 1em;
    position: absolute;
    left: calc(50% - 4em);
    z-index: -1;
    margin-top: -6px;
}

main
{
    min-height: 75vh;
    overflow-y: auto;
    overflow-x: clip;
    background: #172124;
    border-top: solid 1px var(--border-color);
}

.index main button
{
    text-transform: initial;
}

.menu div.bg .up
{
    background: none;
    margin: 0;
    padding: 0;
    width: calc(100% - 28px);
    border-bottom: 6px solid #9bedff80;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    transition : border-color 0.3s;
}

.index .dialog
{
    display: block;
    background: var(--bg);
    padding: 0 1em;
    border-radius: 0.2em;
    text-shadow: 0 0 5px var(--txt-color);
}

.index .note
{
    font-style: italic;
    font-size: 0.85em;
    color: #afafaf;
    line-height: 1.5em;
    display: block;
}

.menu div.bg .up.hover
{
    border-bottom-color : var(--border-color);
}

menu
{
    padding: 0;
    margin: 0;
    width: 100%;
    display: flex;
    border-top: solid 1px #1f464e;
    background-color: #0c1d22e6;
    border-bottom: double 8px #1f464e3d;
    transition: border-color 0.3s, background-color 0.3s;
}

.menu.up menu
{
    background-color: #0c1d22;
}

menu:hover
{
    border-color: #2b5d68;
}

button.connect
{
    z-index : -1;
    text-transform: none;
    position: fixed;
    right: 0;
    top: 0;
    margin: 0;
    transform: skew(18deg);
    padding: 0.8em 1.4em;
    border: solid 1px var(--border-color);
    border-right: 0;
    font-size: 0.8em;
    padding-right: 5em;
    margin-right: -3.5em;
    border-left-width: 2px;
    transition : background-color 0.3s box-shadow 0.3s;
}

button.connect label
{
    transform: skew(-18deg);
    display:block;
}

button.connect:hover
{
    background-color: var(--bg);
}

a
{
    cursor: url(game/images/cursors/pointer.png) 8 8, pointer;
}

menu a
{
    margin : auto;
    text-decoration : none;
    color : var(--txt-color);
    transition: border-color 0.3s;
}

menu a.about:hover, 
menu a.universe:hover
{
    border-color : var(--border-color);
}

menu button
{
    background: transparent;
    border: none;
    width: initial;
    max-width: initial;
    text-transform: none;
    margin: auto;
    padding: 0.9em 1.2em;
}

.index menu a.about
{
    margin-left: 0;
    border-right: 9px solid #9bedff80;
    transform: skew(318deg);
    padding-right: 5em;
}

.index menu a.game
{
    margin : auto;
}

.index menu a.universe
{
    margin-right:0;
    border-left: 9px solid #9bedff80;
    transform: skew(42deg);
    padding-left: 5em;
}

.index menu a.about button
{
    transform: skew(42deg);
}

menu a.play button
{

}

.index menu a.universe button
{
    transform: skew(318deg);
}

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;
    position : relative;
}

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;
}

.community menu
{
    padding: 0;
    background: #235067a3;
    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;
}

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

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

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

.community menu a.game
{
    border-left: 1px solid var(--border-color);
    background: #185171;
}

.community menu.phone button.close,
.community 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;
}

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

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

.community menu.phone a.game
{
    border: 1px solid var(--border-color);
    border-bottom: none;
    background: #185171bf;
}

.chrono-container
{
    position: fixed;
    width: 100%;
    padding: 0;
    top: 40vh;
}

.chrono-container label
{
    text-decoration: underline;
    font-size: 1.2em;
    padding-bottom: 1em;
    display: block;
}

.chrono
{
    font-size: 2em;
    font-weight: bold;
}

.index .chrono .labels
{
    font-style: italic;
    font-size: 0.5em;
    font-weight: normal;
    color: #87ccf9;
}

.chrono .nombre
{
    text-shadow: #84d2ff 0 0 2px,
    #84d2ffee 0 0 8px,
    #84d2ffcc 0 0 16px,
    #84d2ffaa 0 0 32px,
    #84d2ff55 0 0 64px,
    #84d2ff11 0 0 128px;

    padding-left: 0.3em;
}

.bg-mask
{
    position: fixed;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    background: linear-gradient(360deg, black, transparent);
}

button.skip
{
    text-transform: none;
    font-size: 0.7em;
    border: none;
    background: transparent;
    margin-right: 0;
    padding: 0;
    margin-bottom: 0;
    width: auto;
}

button.continue
{
    text-transform: none;
    font-size: 0.8em;
    padding: 0.8em;
    position: fixed;
    top: 0;
    right: 0;
    margin-top: 0;
    border-left: 1px solid var(--border-color);
}

.index main h3
{
    width: calc(75% - 2em);
    padding-bottom: 0.5em;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 0.5em;
    text-shadow: 0 0 10px var(--txt-color);
}

.question button
{
    margin: 0 auto;
    width: 50%;
    background: var(--bg);
}

.question p
{
    font-size: 0.85em;
    line-height: 1.7em;
    margin-bottom: 1em;
}

.update
{
    font-weight: bold;
}

.index main img
{
    display: block;
    max-width: 100%;
    margin: auto;
}

@media (max-width : 1280px)
{
    menu
    {
        font-size: 0.7em;
    }
    ul
    {
        width : 75%;
    }

    p
    {
        width : calc(75% - 2em);
    }

    .index img.profil
    {
        margin-left: 12.5%;
    }

    h3
    {
        width: calc(75% - 2em);
    }

    form
    {
        width: calc(75% - 2em);
    }

    .index button.start
    {
        margin-top : 50%;
    }
}

@media (max-width : 840px)
{
    .index h1,
    .wallpapers h1,
    .chronologie h1
    {
        width: calc(100% - 2em);
        padding: 1em;
        font-size: 2em;
        padding-top: 2em;
    }

    h3
    {
        width: calc(95% - 2em);
    }

    .index button.start
    {
        font-size : 1.3em;
    }

    p
    {
        width : calc(95% - 2em);
    }

    .index img.profil
    {
        margin-left: 5%;
        width : 190px;
    }

    ul
    {
        width : 95%;
    }
    form
    {
        width: calc(95% - 2em);
    }

    .beta .imgs-container
    {
        flex-direction : column;
    }

    .beta .imgs-container img
    {
        margin : 1em auto;
        width : 90%;
    }

    .beta h1
    {
        font-size : 2.5em;
    }


    .index button.start
    {
        margin-top : 65%;
    }

    .chrono-container
    {
        top : 25vh;
    }

    .chrono
    {
        line-height : 0.8em;
    }

    .chrono .nombre,
    .chrono .label
    {
        display: block;
    }

    .index main h3
    {
        width: calc(90% - 2em);
    }
    
    .question button
    {
        width: 92%;
    }

    .index .dialog
    {
        padding: 0.7em 1em;
    }

}

@media (max-width : 640px)
{
    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;
    }

    .index img.background
    {
        left: -300px;
    }

    .index h2
    {
        margin: auto;
        font-size: 1.2em;
        padding: 0;
        padding-bottom: 0.3em;
        margin-bottom: 0.5em;
    }

    div.sw-widget.audio
    {
        font-size: 0.8em;
    }

}

@media (max-width : 580px)
{
    .index button.start
    {
        margin-top : 107%;
    }
}

@media (max-width : 450px) /*important to not bee too small */
{

    div.up-menu
    {
        margin-left: 0;
        border-left: none;
        font-size: 1em;
    }

    div.up-menu menu 
    {
        padding: 0.2em 1.3em;
        padding-bottom: 0em;
        width: auto;
        background-color: #14333da3;
        border-top: 0;
    }

    .index menu
    {
        flex-direction: column;
    }

    .index menu a.about,
    .index menu a.game,
    .index menu a.universe
    {
        margin-left: 0;
        border: none;
        border-bottom: 1px solid var(--border-color);
        padding: 0.3em;
        width: calc(100% - 0.6em);
        transform: initial;
    }

    .index menu a.about button,
    .index menu a.universe button
    {
        transform: initial;
    }

    .index img.background
    {
        left: -451px;
    }

    button.continue
    {
        text-transform: none;
        font-size: 0.8em;
        padding: 0.5em;
        bottom: 0;
        position: fixed;
        margin-bottom: 11em;
        margin-left: 1em;
        top: initial;
        right: initial;
        border-left: none;
    }
}
