@font-face
{
    font-family:"SciFly";
    src: url("/fonts/SciFly-Sans.ttf");
}

@font-face
{
    font-family:"Caviar Dreams";
    src: url("/fonts/CaviarDreams.ttf");
}

:root
{
    --bg-green : #009250;
    --green : #009250;
    --green-txt :#2fffa1;
}

:focus
{
    outline : none;
}

textarea
{
    width: 50%;
    margin: 1em 0;
    border-radius: 0.2em;
    background: #343434;
    border: none;
    color: white;
    font-family: sans-serif;
    font-weight: bold;
    font-size: 1em;
    padding: 1em;
    min-height: 10em;
}

.gestion button
{
    background: #505050;
    display: block;
    margin: 1em auto;
    border-radius: 0.2em;
}

body
{
    text-align : center;
    margin : auto;
    padding : 0;
    font-size : 19px;
    line-height : 2em;
    font-family : "Caviar Dreams";
    color : white;
    background-color: black;
}
footer
{
    font-size: 0.8em;
    padding: 1em 0;
    color: #bbbbbb;
    border-top: 1px solid;
    line-height: 1.4em;
    background: #0c0c0c;
}

footer a
{
    color : white;
}

footer span.legal
{
    font-size: 0.7em;
    font-style: italic;
}

h1
{
    position: absolute;
    width: 100%;
    margin: 0;
    padding: 1em 0;
    color : var(--green-txt);
    background-color : rgba(0,0,0,0);
    opacity : 0;
    transition : opacity 1s;
}

div.stats
{
    display: flex;
    width: 50%;
    margin: 1em auto;
}

div.stats div.label-container
{
    margin-left : 1.5em;
}

header video
{
    width : 100%;
    position : fixed;
    display : block;
    left : 0;
    top : 0;
    z-index : -1;
}

header menu
{
    background-color : black;
    padding : 2em;
    margin : auto 0;
    border-top : 2px solid var(--green);
    display: flex;
    align-items: center;
    align-content: center;
}

button
{
    background-color: initial;
    color: white;
    border: none;
    font-size: 1.2em;
    font-family: 'Caviar Dreams';
    padding: 1em 1.5em;
    font-weight : bold;
    transition : background-color 0.3s, color 0.3s;
    cursor : pointer;
}

#footerDiv
{
    padding: 1em 0;
    font-size: 0.8em;
    line-height: 1.7em;
    border-top: 1px solid #565656;
    margin-top: 1em;
    color: #bdbdbd;
}

#footerDiv a
{
    color: white;
    text-decoration: none;
}

#footerDiv a:hover
{
    text-decoration : underline;
}

header menu button
{
    margin: auto 0;
    border-left: 1px solid var(--green);
}

header menu button:first-child
{
    border-left : none;
}

header menu button.right
{
    margin-right : 1em;
    margin-left : auto;
    border-left : none;
    border-radius : 0.2em;
}

header menu button:hover,
header menu button.active
{
    background-color: var(--green);
}

.live-content
{
    background-color : black;
    min-height : 15em;
}

h2, h3
{
    width : 50%;
    margin : auto;
    padding : 1em 0;
    border-bottom : 1px solid var(--green);
}

h3
{
    width : fit-content;
    padding-bottom : 0.4em;
}

div.magnets-parent
{
    margin-top : 1.5em;
}

div.magnets
{
    display : flex;
    align-items : center;
    align-content : center;
    padding: 1em 0;
}

div.magnets div.magnet
{
    margin: auto;
    width: 30%;
    padding: 1em;
    background-color: #1d1d1d;
    border-radius: 0.1em;
    min-height: 19em;
}

div.magnets div.magnet h3
{

}

div.magnets div.magnet p
{
    width : 90%;
}

div.magnets div.magnet button
{
    background-color: var(--green);
    border-radius: 0.2em;
}

div.magnets div.magnet button:hover
{
    background-color: #fff;
    color : var(--green);
}

p
{
    width : 50%;
    margin : 1em auto;
    text-align : left;
}

button.email
{
    background-color : var(--green);
    border-radius : 0.2em;

    border : solid 3px var(--green);
}

button.email:hover
{
    background-color : black;
}

div.chrono
{
    padding: 1em 1.5em;
    margin: 1em auto;
    font-size: 1.5em;
    border: solid 4px var(--bg-green);
    width: fit-content;
    border-radius: 0.2em;
}

div.chrono span.nombre
{
    font-size : 1.1em;
    font-weight : bold;
}

div.window input
{
    font-size: 1em;
    font-style: italic;
    font-weight: bold;
}

.popup .footer button
{
    transition-duration : 0.2s;
    background-color : var(--bg-green);
}

.popup .footer button:disabled
{
    cursor : not-allowed;
    background-color : grey;
    color: #676767;
    box-shadow : none;
}

.popup .footer button:disabled:hover
{
    box-shadow : none;
}

.sondage-live button
{
    margin: 1em auto;
    display: block;
    border: 1px solid var(--green);
    width : 30%;
}

.sondage-live button:hover
{
    background-color : var(--green);
}

.sondage-live div.results
{
    width : 50%;
    margin : 1em auto;
}

.sondage-live div.results .label-container
{
    display : flex;
    padding: 0.5em 1em;
    border: 1px solid var(--green);
    margin: 0.5em auto;
}

.sondage-live div.results .label-container .value
{
    margin-right: 0;
    margin-left: auto;
}

.videos
{
    width: 75%;
    margin: auto;
}

.best-of div.video,
.best-of div.video.live
{
    width: 35%;
    display : inline-block;
}

.best-of div.video div.youtube img.yt
{
    width: calc(100% - 1em);
    padding: 1em;
}

@media (max-width : 1450px)
{
    div.magnets
    {
        flex-direction : column;
    }

    div.magnets div.magnet
    {
        min-height : initial;
        width : calc(50% - 2em);
        margin : 1em auto;
    }
}

@media (max-width : 1290px)
{

    .videos
    {
        width : 95%;
    }

    h1
    {
        font-size: 1.7em;
    }
    menu 
    {
        font-size: 0.78em;
    }

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

    p, h2, h3
    {
        width : 75%;
    }

    .sondage-live button
    {
        width : 50%;
    }
}

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

    button.email
    {
        width : 95%;
    }

    h1
    {
        font-size : 1.4em;
    }
}

@media (max-width : 840px)
{
    header menu 
    {
        flex-direction: column;
        font-size : 0.8em;
        padding: 2em 0;
        border-bottom: 2px solid var(--green);
    }

    header menu button
    {
        width : 95%;
        border : none;
        border-left : none;
    }

    header menu button.right
    {
        background-color: #204e48;
        margin : auto;
        margin-top : 1em;
        margin-left : auto;
        margin-right : auto;
    }

    div.magnets div.magnet
    {
        width : calc(95% - 2em);
    }

    p
    {
        width : 95%;
    }

    div.chrono
    {
        padding: 1em 0.3em;
        width: calc(95% - 0.6em);
    }

    button.email
    {
        padding: 1em 0.2em;
    }

    h2, h3
    {
        width : 95%;
    }

    .sondage-live button
    {
        width : 90%;
    }
    .sondage-live div.results {
        width: 95%;
    }

    div.stats{
        width : 90%;
    }

    h1
    {
        font-size : 1.2em;
    }

    .videos
    {
        width : 100%;
    }

    .best-of div.video, .best-of div.video.live
    {
        width : 95%;
    }

    .best-of div.video div.youtube img.yt
    {
        padding : 0;
    }

    textarea
    {
        width: calc(100% - 3em);
    }
}
