:root {
    --mainColor: #A2A2FF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Calibri;
}

.twitch_connexion {
    background: #A2A2FF;
    color: #FFF;
    padding: 3px;
    margin: 8px;
    text-decoration: none;
    display: block;
    width: 125px;
    text-align: center;
    border-radius: 10px;
    border: 2px solid;
}

#joker {
    display: none;
}

#container {
    width: 950px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    position: relative;
}

#winner img {
    width: 50px;
    border-radius: 10%;
    position: absolute;
    top: 0;
}

h1 {
    color: var(--mainColor);
    font-family: Techno;
    margin: 0 auto;
    height: 80px;
    border-bottom: 1px solid;
    text-align: center;
}

h1 span {
    color: #300;
    font-family: Techno;
    font-size: .8em;
    animation: title 6s infinite;
}

body {
    background: linear-gradient(#000, #333);
    background-size: cover;
    background-repeat: no-repeat;
    height: 100vh;
}

#gain,
#question {
    display: flex;
    width: 75%;
    background: #333;
    margin: 15px;
    flex-direction: column;
}

#gain {
    width: 45%;
    position: relative;
}

#chat {
    width: 245px;
    background: linear-gradient(#333, #555);
    position: absolute;
    right: -55px;
    top: 9px;
    border-radius: 10px;
    padding: 12px;
    transform-style: preserve-3d;


    /* transform: rotateY(45deg);*/
    box-shadow: 2px 2px 3px #000;
    display: flex;
    flex-wrap: wrap;
}

#chat h3 {
    width: 80%;
    float: left;
    border-bottom: 2px solid var(--mainColor);
    color: var(--mainColor);
}

#chat>[name=close] {
    /*! float: right; */
    color: #FFF;
    background: #5252BB;
    display: flex;

    height: 20px;
    padding: 3px;
    text-align: center;
    /*! vertical-align: baseline; */
    text-decoration: none;
    align-self: baseline;
    border-radius: 7px;
    transition: .7s;
}

.compoment>[type=checkbox] {
    display: none;
}

.compoment label:has(~ [type=checkbox]) {
    display: block;
    padding: 5px;
    background: var(--mainColor);
    margin: 5px;
    width: 75%;
    transition: .7s;
    border-radius: 15px;
    align-self: center;
}

.compoment label:has(~ [type=checkbox]):hover {
    cursor: pointer;
    background: #6f6fdf;
}

.questionElement section {
    width: 225px;
    background: linear-gradient(45deg, var(--mainColor), #833);
    position: absolute;
    bottom: 0;
    right: -10px;
    padding: 11px;
    font-size: 1.2rem;
    filter: drop-shadow(8px 7px 5px #000);
    z-index: 4;
}

#winner {
    position: absolute;
    width: 191px;
    aspect-ratio: 16/9;
    background: #5252BB;
    z-index: 2;
    transition: .7s;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 50% / 10%;
    filter: drop-shadow(2px 3px 5px #AAA);
    left: 50px;
    top: 50px;
    opacity: 0;
    overflow: hidden;
}

#winner img {
    width: 8em;
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: -25px;
}

#winner span {
    display: inline-block;
    font-size: 1.3em;
    position: relative;
    background: #300;
    color: #FFF;
    padding: 5px;
    border-radius: 50% / 20px;
}

#winner i {
    font-size: 3em;
    color: #FF0B;
    filter: drop-shadow(2px 2px 3px #3E3E);
    z-index: 2;
}

#winner.show {
    opacity: 1;
}

.profilBadge {
    width: 126px;
    height: 125PX;
    border-radius: 50%;
    position: absolute;
    right: 5PX;
    TOP: 5PX;
    filter: drop-shadow(2px 4px 6px #FFF);
}

.adscence {
    width: 245px;
    aspect-ratio: 4/3;
    background: #FFF;
    position: absolute;
    left: -55px;
}

#chat>[name=close]:hover {
    background: #222;
    background: #5252BB;
    cursor: pointer;
}

#notif {
    position: absolute;
    width: 450px;
    padding: 1.2em;
    top: 0;
    left: 45%;
    background: #bbb;
    border: 3px solid var(--mainColor);
    opacity: 0;
    transition: .8s;
}

#notif.show {
    opacity: 1;
}

#chat section {
    height: 200px;
    min-height: 200px;
    overflow-y: auto;
}

.HighScore {
    display: flex;
    position: absolute;
    top: 35px;
    left: 25%;
    width: 450px;
    height: 250px;
    z-index: 10;
    flex-wrap: wrap;
    background: #555C;
}

.module {
    display: flex;
    flex-direction: column;
    position: absolute;
    min-width: 150px;
    width: auto;
    height: 250px;
    z-index: 25;
    left: 15%;
    top: 25%;
    background: #333;
    box-shadow: 2px 9px 11px #222;

    padding: 8px;
}

.module button {
    background: #666;
    color: #FFF;
    width: 30px;
    border: 2px solid #FFF;
    align-self: end;
    margin-bottom: 8px;
}

.module .header {
    display: flex;
    flex-direction: column;
}

.module .header h3 {
    padding: 10px;
}

.module button:hover {
    background: #AAA;
    color: #222;
}

footer {
    position: absolute;
    bottom: 0;
}

.HighScore div {
    height: 30%;
    font-size: 1.6em;
    background: #666;
    width: 100%;
}

.HighScore div img {
    width: 50px;
    border-radius: 20px;
}

.HighScore div:first-child {
    transform: scale(1.2);
    filter: drop-shadow(3px 7px 5px #000);
}

#chat section span {
    border-bottom: 1px solid #000;
    display: block;
    width: 100%;
}

#chat section span img {
    width: 18px;
    height: 18px;
}

#chat section span.rotate {
    animation: rotateY 1s ease-in-out forwards;
}

#chat section span b {
    color: #300;
    font-weight: bold;
}

#question {
    flex-direction: column-reverse;
}

#gain ul {
    display: flex;
    width: 450px;
    flex-wrap: wrap;
}

#gain ul li {
    display: inline-block;
    background: #FFF;
    border-radius: 10px;
    height: 10px;
    width: 25px;
    margin: 5px;
}

.command {
    display: flex;
    justify-content: space-around;
}

button {
    width: 45%;
    background: var(--mainColor);

    font-size: 1.2rem;
    border-radius: 11px;
    border: 4px solid #5656FF;
}

button:hover {
    background: #5252BB;
    color: #FFF;
    cursor: pointer;
}

.query button {
    padding: 5px;
    width: 100%;
}

.questionElement {
    margin: 10px;
}

.questionElement p {
    background: var(--mainColor);
    padding: 10px;
    font-size: 1.3rem;
    border-radius: 35px 0;
}

.questionElement ol {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.questionElement ol li {
    list-style-type: upper-alpha;
    width: 40%;
    background: #335;
    margin: 5px;
    opacity: 0;
    transition: .7s;
    font-size: 1.3rem;
    color: #FFF;
    z-index: 1;
    transition: .3s;
    cursor: pointer;
}

.questionElement ol li:nth-child(2) {
    transform: rotateY('20deg');
}

#infoStreamer {
    font-size: 1.2rem;
    border-bottom: 1px solid #5252BB;
    color: #FFF;
    padding: 5px;
    display: flex;
    justify-content: space-around;
}

#infoStreamer span:has(i) {
    display: flex;
    width: 150px;
    justify-content: space-around;
}

.questionElement ol li>span {
    float: right;
    border: 3px solid #55F;
    padding: 2px;
    position: absolute;
    right: -10px;
    margin: -2px;
    border-radius: 9px 0;
    background: #223;
    transition: .7s;
}

.questionElement ol li:hover {
    background: #AA2;
}

.questionElement ol li:hover span {
    transform: scale(1.2);
    right: -45px;
}

.questionElement ol li.good {
    border: 3px solid #5F5;
    transform: scale(1.5);
    z-index: 3;
}

.fireworks {
    position: absolute;
    top: 0;
}

.logo {
    color: var(--mainColor);
    position: absolute;
    width: 293px;
    height: 175px;
    border-radius: 50% / 35px;
    top: 45%;
    left: 45%;
    z-index: 5;
    filter: drop-shadow(2px 2px 5px #288);
    transition: .7s;
    z-index:2;
}

.logo svg {
    display: block;
    width: 100vw;
    max-width: 35rem;
    height: auto;
}

.logo svg text {
    font-family: "Cabin", sans-serif;
    font-weight: 500;
}

span.warning {
    animation: warning 3s infinite;
}

.questionElement ol li.bad {
    border: 2px solid #F55;
    background: #300;
    color: #FFF;
    transform: scale(2);
    z-index: 3
}

#gain ul li.good {
    background: #0F0;
}

#gain ul li.bad {
    background: #F00;
}

.questionElement.current ol li {
    opacity: 1;
    counter-increment: li;
    position: relative;
}

.questionElement.current ol li::before {
    content: counter(li, upper-alpha) ". ";
    ;
    color: #FF0;
    display: inline-block;
    width: 1em;
    margin-left: -1em
}

.intro {
    position: fixed;
    width: 100vw;
    height: 100vh;
    z-index: 3;
    background: #3332;
}

.intro img {
    width: 100vh;
    position: absolute;
    left: 40%;
}

.rules {
    width: 561px;
    padding: 10px;
    background: #FFF;
    position: absolute;
    left: 40%;
    top: 25%;
    opacity: 0;
    transition: .9s;
    z-index:3
}

.rules b {
    background: #22f;
    display: inline-block;
    border-radius: 5px;
    padding: 0 5px;
}

.rules.show {
    opacity: 1;
}

.rules p {
    padding: 5px;
}

#reponsePrct {
    display: none;
}

/*Alerte*/
.overlay {
    width: 100vw;
    height: 100vh;
    background: #3338;
    position: fixed;
    z-index: 4;
}

.overlay>div {
    position: absolute;
    z-index: 4;
    background: #EEE;
    border: 5px solid var(--mainColor);
    width: 30%;
    height: 25%;
    left: 25%;
    top: 15%;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
}

@keyframes title {
    0% {
        color: #300;
    }

    50% {
        color: #EE8;
    }

    100% {
        color: #300;
    }
}

@keyframes warning {
    0% {
        color: #FF0;
        text-shadow: 2px 3px 6px #F00;
        font-size: 2em;
    }

    50% {
        color: #F00;
        text-shadow: 2px 3px 6px #FF0;
        font-size: 2.5em;
    }

    100% {
        color: #FF0;
        text-shadow: 2px 3px 6px #F00;
        font-size: 2em;
    }
}

@keyframes rotateY {
    from {
        transform: rotateY(180deg);
        opacity: 0;
    }

    to {
        transform: rotateY(0deg);
        opacity: 1;
    }
}