@import url(./variables.css);

* {
    padding: 0;
    margin: 0;
    color: #fff;
    align-items: center;
    font-family: var(--body-font);
    box-sizing: border-box;
}

html,
body {
    margin: auto;
    background-color: var(--background-color);
}

h1,
h2,
h3 {
    font-family: var(--accent-font);
    font-weight: 900;
    color: #fff;
}

h1 {
    font-size: 40px;
    text-transform: uppercase;
}

h2 {
    font-size: 32px;
    font-family: var(--body-font);
}

h3 {
    font-size: 24px;
}

p {
    font-size: 16px;
    font-weight: 400;
    line-height: 23px;
    font-family: var (--body-font);
}

a {
    color: #cd0c75;
}

main {
    display: flex;
    justify-content: center;
    margin: 50px 0;
}

main > div {
    display: inline-flex;
    flex-direction: column;
    gap: 45px;
}

#title {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 45px;
    min-width: 86vw;
}

#form-container {
    width: 86vw;
}

form > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

.double-inp > input {
    border-bottom: #fff 1px solid;
    width: 100%;
}

.double-inp {
    display: flex;
    gap: 20px;
    justify-content: space-between;
    width: 100%;
}

.double-inp div {
    width: 100%;
    display: flex;
    gap: 10px;
    border-bottom: 1px solid #fff;
}

.simple-inp {
    width: 100%;
    display: flex;
    gap: 10px;
    border-bottom: 1px solid #fff;
}

.simple-inp input {
    width: 100%;
}

#config-psw {
    font-size: 10px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    width: 100%;
    margin-bottom: 15px;
}

.radio {
    display: flex;
    justify-content: center;
    gap: 14vw;
}

.radio div {
    width: 110px;
}

#select_jeu {
    width: 100%;
    padding: 10px 0;
    background-color: #151515;
    border-top: none;
    border-left: none;
    border-right: none;
    font-size: 16px;
    color: white;
}
#select_jeu::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

form > div > div {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

input {
    background-color: #151515;
    padding: 10px 0px;
    border: none;
    width: 20vw;
    font-size: 16px;
    color: white;
}

input:focus {
    outline: none;
    color: #fff;
}

input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

input[type="radio"],
input[type="checkbox"] {
    width: 10px;
}

#end-form {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 30px;
}

.submit-form {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
    align-items: center;
}
.error-message {
    padding: 6px;
    color: var(--tertiary-color);
    font-style: italic;
}
#submit {
    padding: 10px;
    background-color: var(--primary-color);
    border: none;
    border-radius: 5px;
    color: #fff;
    width: auto;
    cursor: pointer;
}

#submit:hover {
    background-color: var(--primary-color-hover);
}

.connection-link {
    text-decoration: underline;
    color: var(--secondary-color);
}
#choix_ava > div {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: baseline;
}

.avatar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    width: 420px;
    max-height: 239px;
}

.avatar img {
    height: 105px;
    width: 105px;
}

#liste_ava {
    display: flex;
}

.active {
    border: solid 2px #cd0c75;
    width: 105px;
    height: 105px;
    box-sizing: content-box;
}

#accept-rules {
    display: block;
    margin-bottom: 30px;
}

#config-psw.valid {
    color: green;
}

@media only screen and (max-width: 1240px) {
    form > div {
        align-items: center;
        flex-direction: column;
    }
}

@media only screen and (max-width: 700px) {
    .double-inp {
        flex-direction: column;
        gap: 0;
    }

    .double-inp,
    .simple-inp {
        width: 88vw;
    }

    .simple-inp,
    .double-inp div {
        margin: 10px;
    }

    .active {
        width: 70px;
        height: 70px;
    }

    .simple-inp,
    .double-inp div {
        margin: 10px;
    }

    .active {
        width: 70px;
        height: 70px;
    }

    input {
        width: 100%;
    }

    #end-form {
        width: 88vw;
        margin: 10px 0;
    }

    .avatar img {
        height: 70px;
        width: 70px;
    }

    .avatar {
        width: 270px;
    }

    #select_jeu {
        width: 88vw;
    }

    form > div > div {
        gap: 0;
    }

    #choix_ava {
        margin: 10px 0;
    }

    .radio {
        margin: 10px 0;
    }
}

@media only screen and (max-width: 400px) {
    h1 {
        font-size: 24px;
        font-weight: 800;
    }

    h2 {
        font-size: 17px;
        font-weight: 600;
    }

    #titre {
        gap: 0;
    }

    main > div {
        gap: 0;
    }
}
