:root {
    --primary-color: #FFFFFF;
    --secondary-color: #C5C5C5;
    --ternary-color: #c5c5c5e0;
    --radio-color: #6b54c8;
    --step-color: rgba(121 115 190 / 70%);
    --background-gradient-1: #06030F;
    --background-gradient-2: #281F4C;
    --button-background-color: rgba(58 50 83 / 35%);
    --button-hover-background-color: rgba(121 115 190 / 22%);
    --button-hover-shadow: rgba(255, 255, 255, 0.35) 0px 5px 15px;
    --button-border-color: rgba(255 255 255 / 35%);
    --scroolbar-border-color: rgba(255 255 255 / 80%);
    --scroolbar-track-background-color: #281F4C;
    --scroolbar-thumb-background-color: rgba(121 115 190 / 70%);
    --selection-background-color: rgba(121 115 190 / 70%);
}

::selection {
    background-color: var(--selection-background-color);
}

html {
    scroll-behavior: smooth;
}

html,
body {
    min-height: 100vh;
    font-family: "Rubik", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-size: 19px;
    color: var(--secondary-color);
}

body {
    background: linear-gradient(var(--background-gradient-1), var(--background-gradient-2));
    padding: 1.5rem 3.8rem;
}

/* Pour chrome, Edge, Opera, Safari. Pas pour firefox */
body::-webkit-scrollbar {
    width: 10px;
    background-color: var(--scroolbar-background-color);
}

body::-webkit-scrollbar-track {
    background-color: var(--scroolbar-track-background-color);
}

body::-webkit-scrollbar-thumb {
    border-radius: 3px;
    border: 1px solid var(--scroolbar-border-color);
    background-color: var(--scroolbar-track-background-color);
}

body::-webkit-scrollbar-thumb:hover {
    background-color: var(--scroolbar-thumb-background-color);
}

a {
    text-decoration: none;
    color: var(--secondary-color);
}

header {
    display: grid;
    grid-template-columns: max-content 1fr;
    grid-template-rows: 1fr;
    gap: 0 3.8rem;
    grid-auto-flow: row;
    justify-content: center;
    align-content: center;
    justify-items: center;
    align-items: center;
    grid-template-areas:
        "logo title";
}

header .logo {
    grid-area: logo;
    height: 4.8rem;
    width: auto;
}

header .title {
    grid-area: title;
}

.title {
    color: var(--primary-color);
}

h1.title {
    font-family: "Rubik Mono One", monospace;
    font-weight: 400;
    font-style: normal;
    font-size: 2.2rem;
}

h2.title {
    font-weight: 600;
    font-size: 1.26rem;
    margin: 5rem 0 0.5rem 0;
    position: relative;
}

h2.title .step {
    display: block;
    position: absolute;
    top: -.8rem;
    left: -2.5rem;
    font-size: 1em;
    color: var(--primary-color);
    background-color: var(--step-color);
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 50%;
    padding: 0.15rem 0.4rem;
}

h3.title {
    font-weight: 600;
    font-size: 1.2rem;
    margin: 2rem 0 0.3rem 0;
}

.error {
    color: #d84242;
}

.description {
    line-height: 1.185rem;
    margin-bottom: 0.5rem;
}

.first.description {
    margin-top: 2.5rem;
}

.platforms {
    margin: 1rem 0;
}

.platforms label {
    margin-left: 0.5rem;
}

.platforms label:not(:last-of-type) {
    margin-right: 2rem;
}

.button {
    display: inline-block;
    height: 3.58rem;
    padding: 1.2rem 1.05rem 0 1.05rem;
    margin: 1rem 0;
    background-color: var(--button-background-color);
    border-radius: 0.53rem;
    border: 1px solid var(--button-border-color);
    font-size: 1rem;
    cursor: pointer;
}

.button.go {
    background-image: url('/img/btn-go.svg');
    background-size: 1.3rem;
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 3.5rem;
    color: var(--primary-color);
}

.button.go.epic {
    background: url('/img/logo-epicgames.svg') 1rem center / 2rem no-repeat,
        url('/img/btn-go.svg') right 1rem center / 1.3rem no-repeat;
    background-color: #000;
    padding-left: 4rem;
}

.button.epic:hover {
    box-shadow: var(--button-hover-shadow);
}

.button.hover:hover {
    background-color: var(--button-hover-background-color);
    box-shadow: var(--button-hover-shadow);
}

img.screen-code {
    width: 100%;
    max-width: 800px;
    display: block;
    margin-top: 2rem;
}

input.authorization-code {
    color: var(--primary-color);
    font-size: 1.2rem;
    padding-top: 0;
    width: 24rem;
    max-width: 100%;
    cursor: auto;
}

input.submit {
    background-image: url('/img/btn-send.svg');
    background-size: 1.3rem;
    background-repeat: no-repeat;
    background-position: center center;
    color: var(--primary-color);
    padding-top: 0;
    margin-left: 1rem;
    width: 4rem;
}

.username {
    font-size: 1.3rem;
}

.code {
    display: block;
    padding: 0.9rem 5rem 0.9rem 1.2rem;
    margin: 1rem 0;
    background-color: var(--button-background-color);
    border-radius: 0.53rem;
    width: fit-content;
}

.code:hover {
    background: url('/img/btn-copy.svg') right 2rem center / 1.3rem no-repeat;
    background-color: var(--button-hover-background-color);
    cursor: pointer;
}

.code .id {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 0.7rem;
}

.code .date-created {
    font-size: 1rem;
    font-weight: 300;
    color: var(--ternary-color);
}

/* -------------- Début Personalisation radio -------------- */
.bulgy-radios label {
    display: block;
    position: relative;
    height: 1em;
    padding-left: 2rem;
    margin-bottom: 1rem;
    cursor: pointer;
    font-size: 1rem;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.bulgy-radios label:hover input:not(:checked)~.radio {
    opacity: 0.8;
}

.bulgy-radios .label {
    display: flex;
    align-items: center;
    padding-right: 3rem;
}

.bulgy-radios .label span {
    line-height: 1em;
}

.bulgy-radios input {
    position: absolute;
    cursor: pointer;
    height: 0;
    width: 0;
    left: -2000px;
}

.bulgy-radios input:checked~.radio {
    background-color: var(--radio-color);
    transition: background 0.3s;
}

.bulgy-radios input:checked~.radio::after {
    opacity: 1;
}

.bulgy-radios input:checked~.label {
    color: var(--radio-color);
}

.bulgy-radios input:checked~.label span {
    -webkit-animation: bulge 0.5s forwards;
    animation: bulge 0.5s forwards;
}

.bulgy-radios input:checked~.label span:nth-child(1) {
    -webkit-animation-delay: 0.025s;
    animation-delay: 0.025s;
}

.bulgy-radios input:checked~.label span:nth-child(2) {
    -webkit-animation-delay: 0.05s;
    animation-delay: 0.05s;
}

.bulgy-radios input:checked~.label span:nth-child(3) {
    -webkit-animation-delay: 0.075s;
    animation-delay: 0.075s;
}

.bulgy-radios input:checked~.label span:nth-child(4) {
    -webkit-animation-delay: 0.1s;
    animation-delay: 0.1s;
}

.bulgy-radios input:checked~.label span:nth-child(5) {
    -webkit-animation-delay: 0.125s;
    animation-delay: 0.125s;
}

.bulgy-radios input:checked~.label span:nth-child(6) {
    -webkit-animation-delay: 0.15s;
    animation-delay: 0.15s;
}

.bulgy-radios input:checked~.label span:nth-child(7) {
    -webkit-animation-delay: 0.175s;
    animation-delay: 0.175s;
}

.bulgy-radios input:checked~.label span:nth-child(8) {
    -webkit-animation-delay: 0.2s;
    animation-delay: 0.2s;
}

.bulgy-radios input:checked~.label span:nth-child(9) {
    -webkit-animation-delay: 0.225s;
    animation-delay: 0.225s;
}

.bulgy-radios input:checked~.label span:nth-child(10) {
    -webkit-animation-delay: 0.25s;
    animation-delay: 0.25s;
}

.bulgy-radios input:checked~.label span:nth-child(11) {
    -webkit-animation-delay: 0.275s;
    animation-delay: 0.275s;
}

.bulgy-radios input:checked~.label span:nth-child(12) {
    -webkit-animation-delay: 0.3s;
    animation-delay: 0.3s;
}

.bulgy-radios input:checked~.label span:nth-child(13) {
    -webkit-animation-delay: 0.325s;
    animation-delay: 0.325s;
}

.bulgy-radios input:checked~.label span:nth-child(14) {
    -webkit-animation-delay: 0.35s;
    animation-delay: 0.35s;
}

.bulgy-radios input:checked~.label span:nth-child(15) {
    -webkit-animation-delay: 0.375s;
    animation-delay: 0.375s;
}

.bulgy-radios input:checked~.label span:nth-child(16) {
    -webkit-animation-delay: 0.4s;
    animation-delay: 0.4s;
}

.bulgy-radios input:checked~.label span:nth-child(17) {
    -webkit-animation-delay: 0.425s;
    animation-delay: 0.425s;
}

.bulgy-radios input:checked~.label span:nth-child(18) {
    -webkit-animation-delay: 0.45s;
    animation-delay: 0.45s;
}

.bulgy-radios input:checked~.label span:nth-child(19) {
    -webkit-animation-delay: 0.475s;
    animation-delay: 0.475s;
}

.radio {
    position: absolute;
    top: 0;
    left: 0;
    height: 1rem;
    width: 1rem;
    background: var(--secondary-color);
    border-radius: 50%;
}

.radio::after {
    content: "";
    position: absolute;
    opacity: 0;
    top: 0.25rem;
    left: 0.25rem;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--primary-color);
}

@-webkit-keyframes bulge {
    50% {
        transform: rotate(4deg);
        font-size: 1.5em;
        font-weight: bold;
    }

    100% {
        transform: rotate(0);
        font-size: 1em;
        font-weight: bold;
    }
}

@keyframes bulge {
    50% {
        transform: rotate(4deg);
        font-size: 1.5em;
        font-weight: bold;
    }

    100% {
        transform: rotate(0);
        font-size: 1em;
        font-weight: bold;
    }
}

/* -------------- Fin Personalisation radio -------------- */

/* -------------- Petits écrans -------------- */
@media all and (max-width:690px) {
    body {
        padding: 1.5rem 0.5rem;
    }

    header {
        text-align: center;
        grid-template-columns: 1fr;
        grid-template-rows: max-content;
        gap: 1.5rem 0;
        grid-template-areas:
            "logo"
            "title";
    }

    h1.title {
        font-size: 2rem;
    }

    h2.title .step {
        top: -2.8rem;
        left: 0rem;
        font-size: 1.4em;
        width: 2rem;
        height: 2rem;
    }

    h2.title.display-name {
        margin-top: 2rem;
    }

    .button {
        width: 100%;
    }

    input.submit {
        margin-top: 0;
        margin-left: 0;
    }

    .code {
        width: 100%;
    }
}

/* -------------- Fin Petits écrans -------------- */