
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #0a0014;
    color: #fff;
    margin: 0;
    /* background-color: #141428; */
    background-size: cover;
    justify-content: center;
    overflow: hidden;
    font-family: 'Lekton', sans-serif;
}

h1 {
    margin: 50px 0;
    font-size: 2.6rem;
    font-family: PressStart2PRegular;
    font-weight: bold;
    letter-spacing: -2px;
    -webkit-filter: blur(1px);
}
h1, .h2 {
    color: lightblue;;
}

h1 a:hover {
    text-decoration: none;
    color: #a0a0a0;
    font-size: 2.4rem;
}

h2 {
    font-size: 1.3rem;
}

h2,
h1 {
    text-align: center;
    font-family: 'PressStart2PRegular';
}

.btn {
    cursor: pointer;
    background-color: #000000;
    border: none;
    padding: 10px 20px;
    color: white;
    border-radius: 5px;
    font-family: gruppo, sans-serif;
    transition: background-color .1s ease-in;
}

.rules {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-flow: column;
    border: 1px solid #6198d8;
    color: white;
    width: 350px;
    padding: 20px;
    line-height: 1.5;
    border-radius: 4px;
    /* visibility: hidden;
opacity: 0;
transition: opacity .3s ease-in, visibility .3s ease-in; */
}

/* .rules*/

.show {
    visibility: visible;
    opacity: 1;
}

.rules p {
    margin-bottom: .5rem;
    margin-top: 0;
}

.sound-container {
    position: absolute;
    top: 60%;
}

.sound-container #sound {
    width: 40px;
    height: auto;
    transition: .1s ease-in-out;
}

#game-over, #game-over_player2  {
    align-items: center;
    display: flex;
    flex-flow: column;
    height: 250px;
    justify-content: center;
    /* margin-bottom: 100px; */
    opacity: 0;
    position: absolute;
    visibility: visible;
    width: 300px;
    left: 27%;
}

#citation, #citation_player2, #you-won, #you-won_player2{
    background-color: #6198d8;
    padding: 10px;
    border-radius: 5px;
 
}

#you-won,
#you-lose, #you-won_player2, #you-lose-player2  {
    width: 160px;
    height: 250px;
    
}

#restart {
    color: white;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1.5;
    border: 1px solid #6198d8;
    border-radius: 7px;
    text-align: center;
    transition: .1s ease-in-out;
    background-color: #0a0014;
}

#restart:hover {
    background-color: #6898d8;
}

canvas {
    background-color: #0a0014;
    opacity: unset;
    border-radius: 10px;
    display: block;
    z-index: 0;
}

.user-account {
    border: 1px solid #6198d8;
    border-radius: 4px;
    width: 300px;
    height: 100px;
    padding: 10px;
    /* margin-left: 50px; */
}

/* Background Stars */

@keyframes move-twink-back {
    from {
        background-position: 0 0;
    }
    to {
        background-position: -10000px 5000px;
    }
}

@-webkit-keyframes move-twink-back {
    from {
        background-position: 0 0;
    }
    to {
        background-position: -10000px 5000px;
    }
}

@-moz-keyframes move-twink-back {
    from {
        background-position: 0 0;
    }
    to {
        background-position: -10000px 5000px;
    }
}

@-ms-keyframes move-twink-back {
    from {
        background-position: 0 0;
    }
    to {
        background-position: -10000px 5000px;
    }
}

@keyframes move-clouds-back {
    from {
        background-position: 0 0;
    }
    to {
        background-position: 10000px 0;
    }
}

@-webkit-keyframes move-clouds-back {
    from {
        background-position: 0 0;
    }
    to {
        background-position: 10000px 0;
    }
}

@-moz-keyframes move-clouds-back {
    from {
        background-position: 0 0;
    }
    to {
        background-position: 10000px 0;
    }
}

@-ms-keyframes move-clouds-back {
    from {
        background-position: 0;
    }
    to {
        background-position: 10000px 0;
    }
}

.stars,
.twinkling {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: -2;
}

.stars {
    background: #000 url(http://www.script-tutorials.com/demos/360/images/stars.png) repeat top center;
}

.twinkling {
    background: transparent url(http://www.script-tutorials.com/demos/360/images/twinkling.png) repeat top center;
    z-index: -2;
    -moz-animation: move-twink-back 200s linear infinite;
    -ms-animation: move-twink-back 200s linear infinite;
    -o-animation: move-twink-back 200s linear infinite;
    -webkit-animation: move-twink-back 200s linear infinite;
    animation: move-twink-back 200s linear infinite;
}

/* **************************** */

/* Accueil + Compte à rebours */

/* ************************* */

a {
    color: inherit;
}

.game-info {
    position: absolute;
    left: 5%;
    top: 10%;
    width: 90%;
    height: 80%;
    /*background-color: orange;*/
}

#title-home {
    display: normal;
}

#info {
    display: none;
}

.game-element {
    position: absolute;
    left: 0px;
    top: 0px;
}

.gamefont {
    color: lightblue;
    font-family: PressStart2PRegular;
    font-weight: bold;
    letter-spacing: -2px;
    -webkit-filter: blur(1px);
}

.titlefont {
    top: 10%;
    left: 2%;
    width: 96%;
    text-align: center;
    font-size: 4rem;
    letter-spacing: -3px;
}

.title2font {
    font-size: 25px;
    top: 30%;
}

.startfont {
    top: 47%;
    font-size: 50px;
    width: 370px;
    left: -194px;
    text-align: center;
    margin-left: 50%;
    letter-spacing: -3px;
    border: 3px solid lightblue;
    padding: 15px;
    border-radius: 15px;
    font-size: 2.5rem;
}

.startfont:hover {
    color: white;
    border-color: white;
    transform: scale(0.99, 0.99);
    text-decoration: none;
}

.startfont a:hover {
    color: white;
    text-decoration: none;
}

.devfont {
    top: 80%;
    width: 80%;
    left: 10%;
    text-align: center;
    font-size: 25px;
    letter-spacing: -3px;
}

.devlink {
    display: inline-block;
}

.devlink:hover {
    color: white;
    border-color: white;
    transform: scale(0.99, 0.99);
}

.score {
    font-size: 45px;
    left: 50px;
    top: 20px;
    text-align: left;
    z-index: -5;
}

.star {
    width: 2px;
    height: 2px;
    background-color: white;
    border-radius: 50%;
    left: 200px;
    top: 200px;
    opacity: 0.8;
    z-index: -10;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.asteroid {
    width: 100px;
    height: 100px;
    left: 300px;
    top: 300px;
    float: left;
    fill: #141428;
    stroke: #a0a0a0;
    stroke-width: 4px;
    opacity: 1;
    animation: spin 32s infinite linear;
    z-index: -9;
}

.bullet {
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    left: 100px;
    top: 150px;
    opacity: 0.95;
    z-index: -7;
}

.player {
    left: 0px;
    top: 0px;
    width: 20px;
    height: 20px;
    float: left;
    fill: lightblue;
    stroke: white;
    stroke-width: 2px;
    opacity: 0.75;
    z-index: -8;
}

.exhaust {
    position: relative;
    left: -20px;
    top: -154px;
    stroke: none;
    fill: white;
    opacity: 1;
    z-index: -8;
}

/*  CRT effect  */

@keyframes hard-flicker {
    0% {
        opacity: 0.39885;
    }
    5% {
        opacity: 0.18521;
    }
    10% {
        opacity: 0.97132;
    }
    15% {
        opacity: 0.11137;
    }
    20% {
        opacity: 0.75701;
    }
    25% {
        opacity: 0.02915;
    }
    30% {
        opacity: 0.57283;
    }
    35% {
        opacity: 0.50811;
    }
    40% {
        opacity: 0.07623;
    }
    45% {
        opacity: 0.03723;
    }
    50% {
        opacity: 0.28592;
    }
    55% {
        opacity: 0.08948;
    }
    60% {
        opacity: 0.44496;
    }
    65% {
        opacity: 0.40937;
    }
    70% {
        opacity: 0.88689;
    }
    75% {
        opacity: 0.70444;
    }
    80% {
        opacity: 0.45397;
    }
    85% {
        opacity: 0.75805;
    }
    90% {
        opacity: 0.66261;
    }
    95% {
        opacity: 0.61737;
    }
    100% {
        opacity: 0.16477;
    }
}

@keyframes soft-flicker {
    0% {
        opacity: 0.72548;
    }
    5% {
        opacity: 0.74101;
    }
    10% {
        opacity: 0.81934;
    }
    15% {
        opacity: 0.80214;
    }
    20% {
        opacity: 0.71109;
    }
    25% {
        opacity: 0.7872;
    }
    30% {
        opacity: 0.81981;
    }
    35% {
        opacity: 0.71208;
    }
    40% {
        opacity: 0.86138;
    }
    45% {
        opacity: 0.77682;
    }
    50% {
        opacity: 0.86097;
    }
    55% {
        opacity: 0.82685;
    }
    60% {
        opacity: 0.71263;
    }
    65% {
        opacity: 0.78995;
    }
    70% {
        opacity: 0.84224;
    }
    75% {
        opacity: 0.81198;
    }
    80% {
        opacity: 0.75946;
    }
    85% {
        opacity: 0.72432;
    }
    90% {
        opacity: 0.85814;
    }
    95% {
        opacity: 0.70281;
    }
    100% {
        opacity: 0.7625;
    }
}

.crt {
    overflow: hidden;
}

.crt::before {
    content: ' ';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 2px, 3px 100%;
    z-index: 20;
    pointer-events: none;
    animation: hard-flicker 0.16s infinite;
}

.crt:after {
    content: ' ';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(18, 16, 16, 0.1);
    opacity: 0;
    z-index: 20;
    pointer-events: none;
}

/* ///chronometre */

#chrono{
    font-size: 30px;
    width: 90px;
    padding: 10px;
    border-radius: 5px;
}

button{
    width:100px;
    margin:5px;
}

/* ----Page choose.html----  */
.startfont1, .startfont2 {
    top: 50%;
    font-size: 50px;
    width: 255px;
    text-align: center;
    margin-left: 50%;
    letter-spacing: -3px;
    border: 3px solid lightblue;
    padding: 15px;
    border-radius: 15px;
    font-size: 2.5rem;
}
.startfont1 {
    left: -277px;
}
.startfont2 {
    left: 50px;
}

/* ----Page rules1.html---- */
.text-field {
    top: 24%;
    left: 26%;
    width: 48%;
    text-align: justify;
    font-size: 1.6rem;
    letter-spacing: -2px;
}
.text-field span, .rules-players span {
    /* color: palevioletred; */
    color: palegreen;
}
.startfont3, .startfont4 {
    top: 59%;
    font-size: 50px;
    width: 370px;
    left: -194px;
    text-align: center;
    margin-left: 50%;
    letter-spacing: -3px;
    border: 3px solid lightblue;
    padding: 15px;
    border-radius: 15px;
    font-size: 2.5rem;
}

/* ----Page rules2.html---- */
.rules-players {
    margin-top: 13%;
    width: 1339px;
    display: flex;
    color: lightblue;
    font-family: PressStart2PRegular;
    font-weight: bold;
    letter-spacing: -2px;
    -webkit-filter: blur(1px);
    font-size: 1.4rem;
    padding: 0px 10px;
    margin-left: 12%;
}
.startfont4 {
    top:70%
}
.player-section {
    margin-left: 40px;
}
.rules-players h2 {
    font-size: 2rem;
}
.dev-footer {
    top: 90%;
    width: 80%;
    left: 10%;
    text-align: center;
    font-size: 25px;
    letter-spacing: -3px;
}

.nameplayer{
    font-size: 60px;
}