
html {
    font-size: 62.5%;
}

* {
    box-sizing: border-box;
}

ul {
    margin: 0;
    padding: 0;
}

li {
    display: inline-block;
    list-style: none;
}

.start_form .dots_li {
    list-style: inside;
    display: list-item;
    margin-left: 20px;
}

/*-----------------------------Body-------------------------------------*/

body {
    font-size: 1.6rem;
    user-select: none;
    margin: auto;
    height: 100vh;
    background-color: rgb(232, 229, 223);
    padding-bottom: 60px;
}

img {
    max-width: 100%;
}

/*-----------------------------Header-----------------------------------*/

header {
    text-align: center;
    height: 140px;
    background-color: rgb(232, 229, 223);
}

#title h1 {
    font-family: Montserrat, "Open Sans", "Arial", sans-serif;
    font-size: 6rem;
    margin: 0;
    line-height: 80px;
    text-shadow: 1px 1px 2px #141414,
    1px 1px 3px #141414,
    1px 1px 5px #141414,
    1px 1px 7px #141414,
    1px 1px 10px #141414,
    1px 1px 12px #141414,
    1px 1px 18px #141414;
    letter-spacing: 10px;
    color: darkorchid;
    transition-duration: 1s;
    display: inline-block;
}

#title h1:hover {
    color: red;
}

#menu {
    font-family: Montserrat, "Open Sans", "Arial", sans-serif;
    font-weight: 500;
    font-style: normal;
    text-transform: uppercase;
    line-height: 50px;
    letter-spacing: 1px;
    font-size: 1.2rem;
    color: #232323;
}

#menu li {
    position: relative;
    margin: 10px 0 0;
    border-top-right-radius: 10px;
    border-top-left-radius: 10px;
}

#menu a {
    color: #232323;
    text-decoration: none;
    font-weight: 500;
    font-style: normal;
    display: inline-block;
    padding: 0 20px;
    transition-duration: 0.3s;
    width: 100%;
}

#menu a:hover {
    color: white;
}

#menu .selected {
    background-color: rgb(196, 176, 158);
    box-shadow: 0 -5px 5px 2px #807979;
}

#menu li:hover {
    background-color: rgb(196, 176, 158);
    cursor: pointer;
}

#burger_button {
    display: none;
    position: absolute;
    right: 10px;
    top: 10px;
    height: 34px;
    width: 34px;
    border: 1px solid black;
    opacity: 0.8;
    border-radius: 5px;
    cursor: pointer;
    color: black;
    padding: 5px;
    font-size: 20px;
}

#burger_button:hover {
    opacity: 0.5;
}

.hideMenu {
    display: inline-block;
}

/*-----------------------------Main-------------------------------------*/

.container {
    min-height: calc(100vh - 180px);
}

.mainFrame {
    border: solid 2px rgb(196, 176, 158);
    background-color: white;
    max-width: 1000px;
    font-family: Montserrat, "Open Sans", "Arial", sans-serif;
    box-shadow: black 0 0 10px;
}

#gameList {
    margin: auto;
    padding: 0;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

#gameList li {
    display: inline-block;
    width: 40%;
    line-height: 350px;
    margin: 10px;
    text-align: center;
    cursor: pointer;
    font-weight: bold;
    white-space: nowrap;
    font-size: 4rem;
    text-shadow: 1px 1px 0 #FFF,
    2px 2px 0 #877667;
    color: #594E44;
    overflow: hidden;
    border-radius: 50%;
    transition-duration: 0.7s;
}

#gameList li:hover {
    text-shadow: -1px -1px 0 #000,
    1px -1px 0 #000,
    -1px 1px 0 #000,
    1px 1px 0 #000,
    1px 1px 10px #141414,
    0px 50px 50px red,
    0px -50px 50px red,
    30px 0px 50px red,
    -30px 0px 50px red;
    color: #fff;
    background-color: rgba(170, 14, 202, 0.7);
    box-shadow: inset 0 0 20px black;
}

#scoresList {
    margin: auto;
    max-width: 800px;
}

#newAccount_div, #changePassword_div {
    margin: 0 20px;
}

#scoresList {
    display: flex;
    padding: 3px 3px 20px 3px;
    flex-direction: column;
    align-items: center;
}

label {
    display: block;
}

/*--------------------------Formulaires----------------------------------*/

form {
    margin: auto;
    max-width: 800px;
}

#newAccount_form {
    margin-top: 15px;
}

.start_form li {
    margin: 10px;
    display: flex;
    justify-content: flex-start;
}

#login_form input, #newAccount_form input, #contact_form input {
    max-width: 400px;
}

form ul {
    display: flex;
    flex-direction: column;
}

fieldset {
    padding: 20px;
    margin: 20px;
    border-radius: 20px;
    box-shadow: inset 0 0 10px black;
}

legend {
    color: #8c8c8c;
    box-shadow: 1px 1px 1px rgba(255, 255, 255, 1), -1px -1px 2px rgba(0, 0, 0, 1), -1px 1px 1px rgba(0, 0, 0, 0.4);
    width: 200px;
    text-align: center;
    line-height: 30px;
    letter-spacing: 4px;
    background-image: url("../images/legend.jpg");
    font-size: 2rem;
    text-shadow: 1px 1px 1px rgba(255, 255, 255, 1), -1px -1px 2px rgba(0, 0, 0, 1), -1px 1px 1px rgba(0, 0, 0, 0.4);
}

label {
    font-style: italic;
}

#contact_form label {
    margin-top: 10px;
}

input, textarea {
    background-color: #f2f2f2;
    border: none;
    color: #222222;
    font-family: Montserrat, "Open Sans", "Arial", sans-serif;
    font-weight: 400;
    font-style: normal;
    text-transform: none;
    font-size: 13px;
    letter-spacing: 0;
    width: 100%;
    line-height: 40px;
}

.radio {
    width: 30px;
    background-color: white;
    cursor: pointer;
}

.radioLabel {
    display: inline-block;
    cursor: pointer;
}

#admin_section {
    background-color: white;
    padding: 20px;
    margin: auto;
    max-width: 96vw;
    width: 100%;
    border: solid 2px rgb(196, 176, 158);
    box-shadow: black 0 0 10px;
    font-family: Montserrat, "Open Sans", "Arial", sans-serif;
    text-align: left;
}

#admin_ul {
    display: inline-block;
    background-color: white;
    width: 100%;
    margin: 10px;
}

#admin_section h3 {
    text-align: left;
}

#admin_ul li {
    display: inline-block;
    cursor: pointer;
    margin: 10px;
    width: 25%;
    text-align: center;
}

#admin_ul li:hover {
    text-decoration: underline;
    color: rgba(170, 14, 202, 0.7);
}

#admin_ul li.selected {
    font-weight: bold;
    color: red;
}

.admin_controls {
    display: flex;
    justify-content: space-between;
}

#admin_section table {
    margin: auto;
}

#admin_section table {
    width: 96%;
}

#admin_section td.td_50 {
    width: 50%;
    text-align: justify;
}

#admin_section td.td_10 {
    width: 10%;
}

#admin_section select {
    margin-right: 10px;
}

.flex_div {
    display: flex;
    min-width: 70vw;
}

.flex_div label {
    text-align: right;
    margin: 0 10px;
    line-height: 40px;
    vertical-align: middle;
}

.flex_div input {
    width: 25%;
}

.flex_div span {
    margin: 0 10px;
    line-height: 40px;
    vertical-align: middle;
}

.admin_playerLink:hover {
    cursor: pointer;
    text-decoration: underline;
    color: rgba(170, 14, 202, 0.7);
}

#playerDetails_ul {
    display: flex;
    flex-direction: column;
    width: max-content;
    margin: 20px;
    padding: 10px;
    background-color: lightgoldenrodyellow;
    border-radius: 10px;
    border: 1px solid black;
}

#playerDetails_ul span {
    float: right;
    margin-left: 100px;
    font-weight: bold;
}

/*---------------------------Table--------------------------------------*/

table {
    border-collapse: collapse;
    word-break: break-word;
    font-size: 1.2rem;
    font-family: Montserrat, "Open Sans", "Arial", sans-serif;
    text-align: center;
    box-shadow: 0 0 10px black;
}

td, th {
    padding: 2px;
    margin: 2px;
    border: 1px solid black;
    line-height: 1.8rem;
    width: 100px;
}

thead tr {
    background: linear-gradient(90deg, rgb(170, 14, 202) -30%, rgb(253, 45, 178) 60%, white 100%);
}

tr.highlighted {
    background-color: #fff5cd;
    border: 2px solid red;
}

tr.saved {
    background-color: #b4fd9a;
}

tr.deleted {
    background-color: #ed8f87;
    color: grey;
    font-style: italic;
}

#admin_section table {
    user-select: text;
}

/*--------------------------Decoration texte----------------------------*/

.errorMessage {
    background-color: #ffd7d7;
    color: #86181d;
    font-family: Helvetica, Arial, sans-serif;
    border-radius: 5px;
    text-align: center;
    font-size: 1.5rem;
    line-height: 3rem;
}

.noErrorMessage {
    margin: 20px;
    background-color: #21e845;
    color: #0f5900;
    font-family: Helvetica, Arial, sans-serif;
    border-radius: 5px;
    text-align: center;
    font-size: 1.5rem;
    line-height: 3rem;
}

.hidden {
    display: none;
}

.link {
    font-family: Roboto, "Open Sans", "Arial", sans-serif;
    font-weight: 400;
    text-transform: none;
    font-size: 16px;
    line-height: 29px;
    letter-spacing: 0;
    color: rgba(99, 99, 99, 1);
    transition-duration: 0.5s;
    margin-left: 10px;
}

.link:hover {
    color: rgba(60, 133, 65, 1);
    margin-left: 15px;
    text-decoration: underline;
    cursor: pointer;
}

a {
    text-decoration: none;
}

@font-face {
    font-family: Montserrat;
    src: url("fonts/Montserrat-Regular.ttf");
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: Montserrat;
    src: url("fonts/Montserrat-Medium.ttf");
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: Roboto;
    src: url("fonts/Roboto-Regular.ttf");
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: Roboto;
    src: url("fonts/Roboto-Medium.ttf");
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: Digital;
    src: url("fonts/Digital.otf");
    font-weight: 500;
    font-display: swap;
}

/*------------------------------Icônes----------------------------------*/
.icons {
    background-color: transparent;
    shape-rendering: geometricPrecision;
    fill: currentColor;
}

.i_20x20 {
    width: 20px;
    height: 20px;
}

.i_18x22 {
    width: 18px;
    height: 22px;
}

.i_30x24 {
    width: 30px;
    height: 24px;
}

.i_16x16 {
    width: 16px;
    height: 16px;
}

/*-----------------------------Footer-----------------------------------*/

footer {
    text-align: right;
    padding-right: 50px;
    font-family: Roboto, "Open Sans", "Arial", sans-serif;
    color: rgb(99, 99, 99);
    font-size: 1.2rem;
    height: 20px;
}

footer a {
    text-decoration: none;
    color: rgb(99, 99, 99);
}

footer a:hover {
    text-decoration: underline;
    color: rgb(44, 44, 44);
}

/*-----------------------------Media Queries----------------------------*/

@media screen and (max-width: 499px) {
    #gameList li {
        font-size: 2rem;
        text-shadow: 2px 2px 0 #FFF,
        3px 3px 0 #877667;
        line-height: 100px;
    }

    body {
        font-size: 1.2rem;
    }
}

@media screen and (min-width: 500px) and (max-width: 800px) {
    #gameList li {
        font-size: 3rem;
        text-shadow: 3px 3px 0 #FFF,
        5px 5px 0 #877667;
        line-height: 100px;
    }

}

@media screen and (max-width: 1068px) {

    #newAccount_div.link, #changePassword_div.link {
        font-size: 1.2rem;
        display: block;
    }

    #admin_section, table {
        font-size: smaller;
    }

    #gameList, .mainFrame {
        margin-left: 10px;
        margin-right: 10px;
    }

    fieldset {
        padding: 10px;
        margin: 10px;
    }

    .admin_filters div {
        display: inherit;
        min-width: inherit;
    }

    .admin_filters label {
        line-height: inherit;
        text-align: inherit;
    }

    .admin_filters input {
        width: inherit;
    }

    #menu {
        position: absolute;
        z-index: 5;
        width: 100vw;
        background-color: white;
        display: none;
    }

    #burger_button {
        display: inline-block;
    }

    #burger_button.hidden {
        display: none;
    }

    .showMenu {
        animation: showMenuFadeIn linear 0.5s forwards;
    }

    .hideMenu {
        animation: hideMenuFadeOut linear 0.5s forwards;
    }

    header {
        height: 80px;
    }

    #title h1 {
        font-size: 3rem;
    }

    header li a {
        padding: 0;
    }

    header nav {
        display: block;
        min-width: 350px;
    }

    header li {
        display: block;
    }

    .container {
        min-height: calc(100vh - 110px);
    }

    footer {
        font-size: 1rem;
        padding-right: 10px;
    }

    footer a {
        text-decoration: underline;
    }
}

/*-----------------------------Key Frames----------------------------*/

@keyframes showMenuFadeIn {
    0% {
        opacity: 0;
    }
    50% {
        opacity: 0.3;
    }
    100% {
        opacity: 1;
    }
}

@keyframes hideMenuFadeOut {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
    100% {
        opacity: 0;
    }
}