html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

/* poppins-regular - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/poppins-v21-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
  }
  /* poppins-900 - latin */
  @font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 900;
    src: url('../fonts/poppins-v21-latin-900.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
  }

body {
    font-family:'Poppins', Arial;
    font-size:16px;
}

#jeu {
    width:100%;
    background-image: url('../images/background.jpg');
    background-size:cover;
    background-position: center;
    box-sizing: border-box;
    position: relative;
}
#jeu header {
    text-align: center;
    position: absolute;
    left:0;
    right:0;
    padding:30px;
}
#jeu header.home {
    opacity:1;
}
#jeu header a {
    display: block;
    text-decoration: none;
}
#jeu header a svg {
    height: 80px;
    width:auto;
}
#jeu header svg path {
    fill:white;
}
main.__p {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    align-content: center;
    justify-content: center;
    overflow-y: hidden;
}
main.__p.__p1 {
    height: 100vh;
    padding:30px;
    box-sizing: border-box;
}
main.__p.__p1 #drone {
    width: 100%;
    height: auto;
    max-width: 350px;
    animation: droneRotating 4.5s infinite alternate;
}

main.__p.__p2 .tete {
    width: 150px;
    display: block;
    margin:auto auto 15px auto;
    animation: droneRotating 1s infinite alternate;
}
main.__p.__p2 .content {
    padding:30px;
    box-sizing: border-box;
}
main.__p.__p2 h1 {
    font-size:25px;
    text-transform: uppercase;
    font-weight: 900;
    text-align: center;
    color:white;
}
main.__p.__p2 h1 span.cadeau {
    display: block;
    color:white;
    font-weight:900;
    font-size:60px;
    animation: flicker 3.5s infinite alternate; 
}
main.__p.__p2 a.btn,
main.__p.__p3 form button  {
    display: block;
    padding: 20px 15px;
    color: white;
    text-decoration: none;
    border: 2px solid white;
    border-radius: 50px;
    text-align: center;
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: 5px;
    margin-top: 50px;
}
main.__p.__p3 {
    height: auto;
    padding:150px 30px;
    box-sizing: border-box;
}
main.__p.__p3 .error {
    margin-top:15px;
    background:#ff2929;
    padding:10px;
    border-radius: 10px;
}
main.__p.__p3 .already {
    margin:30px 0;
}
main.__p.__p3 .already svg {
    width: 100px;
    height: auto;
    display: block;
    margin: auto;
}
main.__p.__p3 .already p {
    color:white;
    font-weight:500;
    display: block;
    margin-top:15px;
}
main.__p.__p3 form {
    display: flex;
    flex-wrap: wrap;
    padding:0;
}
main.__p.__p3 form .group {
    width: 100%;
}
main.__p.__p3 form .group:not(:last-child) {
    margin-bottom:15px;
}
main.__p.__p3 form .group label {
    display: block;
    margin-bottom:5px;
    color:white;
}
main.__p.__p3 form .group input {
    width: 100%;
    height:40px;
    border-radius: 10px;
    border:none;
    outline:none;
    padding:8px;
    border:2px solid white;
    box-sizing: border-box;
}
main.__p.__p3 form .group.err input {
    border-color:#ff2929;
}
main.__p.__p3 form .group label[for="rgpd"] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}
main.__p.__p3 form .group label[for="rgpd"] input[type="checkbox"] {
    width: 20px;
    height: 20px;
    background:transparent;
    border:2px solid white;
}
main.__p.__p3 form .group label[for="rgpd"] p {
    width:calc(100% - 30px);
    padding-left:10px;
    box-sizing: border-box;
}
main.__p.__p3 form button {
    background: transparent;
    width: 100%;
    margin-top:20px;
}
main.__p.__p4 {
    /* display: none; */
    padding: 150px 30px;
    box-sizing: border-box;
}
main.__p.__p4 .machine {
    width:340px;
    height:432px;
    position: relative;
}
main.__p.__p4 .machine .slot {
    width:103px;
    height:142px;
    border-radius:15px;
    background:white;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top:94px;
    font-size:40px;
}
main.__p.__p4 .machine .slot.slot1 {
    left:0;
}
main.__p.__p4 .machine .slot.slot2 {
    left:118px;
}
main.__p.__p4 .machine .slot.slot3 {
    left:236px;
}
main.__p.__p4 .machine .slot img {
    transition: transform 0.5s ease-in-out;
    width: 70px;
}
main.__p.__p4 .machine img.spin  {
    transform: rotate(360deg) scale(0);
}
main.__p.__p4 #playMachine {
    /* background: #161a47;
    border-radius: 100%;
    box-shadow: 0 0 .2rem #fff, 0 0 .2rem #fff, 0 0 2rem #bc13fe, 0 0 0.8rem #bc13fe, 0 0 2.8rem #bc13fe, inset 0 0 1.3rem #bc13fe; */
    border: none;
    display: block;
    color: white;
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: 1px;
    font-size: 18px;
    position: absolute;
    bottom: 50px;
    width: 135px;
    height: 135px;
    background-image:url('../images/btn.svg');
    background-size:100%;
    left: 0;
    right: 0;
    margin: auto;
    cursor: pointer;
    background-color:transparent;
    overflow: hidden;
    text-indent:-9999px;
}
main.__p.__p4 .slots {
    position: absolute;
    top:90px;
    width: 340px;
    height: 142px;
    display: flex;
    justify-content: space-between;
    padding: 0;
    
    box-shadow: -2px 2px 3px rgba(0, 0, 0, 0.3);
    border-radius: 3px;
    overflow: hidden;
}
main.__p.__p4 .slots::before, main.__p.__p4 .slots::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 10px;
    height: 2px;
    background-color: rgba(0, 0, 0, 0.5);
}
main.__p.__p4 .slots::before {
    left: 0;
    transform: translate(-200%, -50%);
}
main.__p.__p4 .slots::after {
    right: 0;
    transform: translate(200%, -50%);
}
@keyframes win1 {
    0% {
        background: linear-gradient(45deg, orange 0%, yellow 100%);
        box-shadow: 0 0 80px orange;
   }
    100% {
        background: linear-gradient(45deg, grey 0%, lightgrey 100%);
        box-shadow: -2px 2px 3px rgba(0, 0, 0, 0.3);
   }
}
@keyframes win2 {
    0% {
        background: linear-gradient(45deg, lightblue 0%, lightgreen 100%);
        box-shadow: 0 0 80px lightgreen;
   }
    100% {
        background: linear-gradient(45deg, grey 0%, lightgrey 100%);
        box-shadow: -2px 2px 3px rgba(0, 0, 0, 0.3);
   }
}
main.__p.__p4 .slots.win1 {
    animation: win1 200ms steps(2, end) infinite;
}
main.__p.__p4 .slots.win2 {
    animation: win2 200ms steps(2, end) infinite;
}
main.__p.__p4 .slots .reel {
    /*position: relative;
    width: 80px;
    height: 240px;
    border: 1px solid rgba(0, 0, 0, 0.3);
    border-radius: 3px;
    overflow: hidden;
    background-image: url(roulette.png);
    background-position: 0 0;
    background-repeat: repeat-y;
    transform: translateY(-80px);*/
    width: 103px;
   height: 142px;
   border-radius: 15px;
   background-color: white;
   display: flex;
   align-items: center;
   justify-content: center;
   background-image: url('../images/roulette.png');
   background-position: 0 0;
   background-repeat: repeat-y;
   position: relative;
   overflow: hidden;
}
main.__p.__p4 .slots .reel::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(0, 0, 0, 0.4) 0%, transparent 30%, transparent 70%, rgba(0, 0, 0, 0.4) 100%);
    box-shadow: inset 0 0 6px 2px rgba(0, 0, 0, 0.3);
}

main.__p.__p5 {
    flex-direction: column;
}
main.__p.__p5 .neon{
    display: block;
    color:white;
    font-weight:900;
    font-size:60px;
    animation: flicker 3.5s infinite alternate; 
    -webkit-animation: flicker 1.5s infinite alternate;
    text-align: center;
}
main.__p.__p5 p {
    margin-top:30px;
    color:white;
    max-width:500px;
    text-align: center;
    line-height: 1.4;
}
main.__p.__p5 .website {
    display: inline-block;
    padding: 15px;
    background: white;
    border-radius: 10px;
    text-decoration: none;
    color: black;
    margin-top: 30px;
}
@-webkit-keyframes flicker {
    
    0%, 18%, 22%, 25%, 53%, 57%, 100% {
  
        text-shadow:
        0 0 1px #fff,
        0 0 1px #fff,
        0 0 1px #fff,
        0 0 40px #0fa,
        0 0 80px #0fa,
        0 0 90px #0fa,
        0 0 100px #0fa,
        0 0 150px #0fa;
    
    }
    
    20%, 24%, 55% {        
        text-shadow: none;
    }    
}
    
@keyframes flicker {
    
    0%, 18%, 22%, 25%, 53%, 57%, 100% {
  
        text-shadow:
        0 0 1px #fff,
        0 0 1px #fff,
        0 0 1px #fff,
        0 0 40px #0fa,
        0 0 80px #0fa,
        0 0 90px #0fa,
        0 0 100px #0fa,
        0 0 150px #0fa;
    
    }
    
    20%, 24%, 55% {        
        text-shadow: none;
    }    
}
@keyframes droneRotating {
    0% {
        transform: rotate(-2deg);
    }
    50% {
        transform: rotate(2deg);
    }
    100% {
        transform: rotate(0);
    }
}

@media (max-height:700px) {
    main.__p.__p2 .tete {
        width: 100px;
    }
}

@media (max-width:390px) {
    main.__p.__p2 h1 {
        font-size:20px;
    }
    main.__p.__p2 h1 span.cadeau {
        font-size:50px;
    }
    main.__p.__p4 .machine,
    main.__p.__p4 .machine .slots {
        width: 250px;
    }
    main.__p.__p4 .machine .slots {
        top:70px;
    }
    main.__p.__p4 .machine img {
        width: 250px;
    }
    main.__p.__p4 .machine .slots .reel {
        width: 75px;
        height: 104px;
        background-image:url('../images/roulette-small.png');
    }
    main.__p.__p4 .machine .slot.slot2 {
        left:87px;
    }
    main.__p.__p4 .machine .slot.slot3 {
        left:175px;
    }
    main.__p.__p4 .machine .slot img {
        width: 60px;
    }
    main.__p.__p4 #playMachine {
        bottom: 145px;
        width: 100px;
        height: 100px;
    }
    main.__p.__p5 .neon {
        font-size:40px;
    }
}