* {
    margin: 0;
    padding: 0;

    scrollbar-width: none;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --color-theme: #6200ff;
    --color-theme-darker: #330085;
}

body {
    display: flex;
    justify-self: center;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;

    background-color: black;
    color: white;

    max-height: 100vh;
    width: 50%;
    max-width: 100vw;
}

fieldset { 
    flex: 10;
    display: flex; 
    flex-direction: column; 
    align-items: center;
    width: auto; 
    height: auto; 
    gap: 1em; 
    border: 0.2em solid white;
    box-shadow: 0px 0px 0.6em 0px var(--color-theme);
    font-weight: bold;
    border-radius: 2vh; 
    padding: 1em; 
}

input {
    padding: 0.8em 0;
    border-radius: 2vh; 
    background-color: black;
    color: white;
    font-weight: 600;
    text-align: center;
    width: 12em;

    border: 0.2em solid white;
    box-shadow: 0px 0px 0.4em 0px var(--color-theme);
    transition: all 0.5s;
}
input[type="text"][disabled] {
    box-shadow: 0px 0px 0.4em 0px red;
}
input[type="text"] {
    box-shadow: 0px 0px 0.4em 0px rgb(0, 255, 0);
    padding: 0.8em 0;
}

/* Submit enabled */
input[type="submit"] {
    box-shadow: 0px 0px 0.4em 0px rgb(0, 255, 0);
    background-color: var(--color-theme);
}
input[type="submit"]:hover {
    color: rgb(0, 255, 0);
    transform: scale(0.95);
}

/* Submit disabled */
input[type="submit"][disabled] {
    background-color: var(--color-theme-darker);
    box-shadow: 0px 0px 0.4em 0px red;
    color: rgb(255, 124, 124);
}
input[type="submit"][disabled]:hover {
    color: red;
    transform: scale(1.05);
}

/* Formulaire 1 */
#formulaire-authentification {
    display: flex;
    justify-content: center;
    text-align: center;
    margin-top: 2em;
    gap: 1em; 
    width: 100%;
    height: auto;
}

/* Formulaire 2 */
#formulaire-jeu {
    display: flex;
    justify-content: center;
    text-align: center;
    gap: 1em; 
    width: 100%;
    height: auto;
}
#formulaire-jeu fieldset:nth-child(2) {
    flex: 1;
}
img {
    filter: opacity(10%);
    width: 100%;
    user-select: none;
}
#console-jeu {
    width: 100%;
    height: 100vmax;
    margin-bottom: 2em;
    border: 0.2em solid white;
    box-shadow: 0px 0px 0.6em 0px var(--color-theme);
    border-radius: 2vh;

    text-align: center;
    text-shadow: 0 0 3px black;
    font-weight: 500;
    font-size: 0.8em;
    line-height: 200%;
    
    user-select: none;
    background-image: url(circle.gif);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 67px;

    overflow: hidden;
    position: relative;
}

#champ-console {
    position: absolute;
    inset: 0;
    padding: 0.5em;
    background: linear-gradient(180deg, var(--color-theme) -4%, rgba(0, 0, 0, 0) 4%);
    background-size: 100% 104%;
    background-position: 100% 80%;

    scroll-behavior: smooth;
    overflow-x: hidden;
    overflow-y: auto;

    transition: background-color 2s;
}