/*
*   LAYOUT
*/

html {
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    font-size: 16px;
    font-weight: normal;
}

body {
    max-width: 1066px;
    margin: 0 auto;
    border-left: 1px solid rgba(128, 128, 128, 0.7);
    border-right: 1px solid rgba(128, 128, 128, 0.7);
    box-shadow: 0 0 5px grey;
}

header, footer {
    height: 150px;
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
    align-items: center;
}

header {
    background-image: linear-gradient(to bottom, rgb(148, 183, 248), rgb(222, 231, 248));
}

footer {
    background-image: linear-gradient(to bottom, rgb(222, 231, 248), white );
}

main {
    background-color: rgb(222, 231, 248);
    min-height: 500px;
    margin: 0;
    padding: 20px 30px;
}


/*
*   ELEMENTS
*/

h1, h2, h3, h4, p {
    margin: 0;
    padding: 0;
}

h1 {
    margin: 1.2rem 0;
}

h2 {
    margin: 1rem 0;
}

h3 {
    margin: 0.9rem 0;
}

h4 {
    margin: 0.8rem 0;
}

p {
    margin: 0.6rem 0;
}

a, a:hover, a:visited {
    font-size: inherit;
    color: inherit;
    text-decoration: dotted underline;
}

input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    border-radius: 5px;
    padding: 5px 10px;
    margin-top: 5px;
    margin-bottom: 5px;
}

input#choixCommencer {
    margin-right: 5px;
}

/* Table */

table.tictactoeTable {
    border-collapse: collapse;
    text-align: center;
}

table.tictactoeTable tbody tr td:nth-child(2){
    border-left: 3px solid rgba(128, 128, 128, 0.493);
    border-right: 3px solid rgba(128, 128, 128, 0.493);
}

table.tictactoeTable tbody tr:nth-child(2){
    border-top: 3px solid rgba(128, 128, 128, 0.493);
    border-bottom: 3px solid rgba(128, 128, 128, 0.493);
}

table.tictactoeTable td {
    height: 70px;
    width: 70px;
} 

table.memory tbody tr td {
    padding: 5px;
}

/* Button */

button.dotted {
    width: 100%;
    height: 100%;
    background-color: inherit;
    border: 2px dotted rgba(0, 0, 0, 0.8);
    border-radius: 5px;
}

button.show {
    background-color: inherit;
    border: none;
}

button.ui {
    background-image: linear-gradient(to bottom, rgb(91, 112, 228), rgb(28, 48, 160), rgb(37, 57, 170));
    padding: 5px 10px;
    margin: 0 5px;
    border: 1px solid rgb(18, 29, 88);
    border-radius: 5px;
    color: white;
    text-shadow: 0 0 2px black;
    font-family: inherit;
    font-size: inherit;
}

/* Autre */

fieldset {
    margin: 5px 0;
    width: max-content;
    border-radius: 5px;
}

select#niveauIA {
    margin-left: 20px;
}


div#startButtonDiv {
    width: 210px;
    height: 210px;
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    align-items: center;
}

div#React-root > div {
    width: 400px;
}

/*
*   CLASSES
*/


.flex-row {
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    align-items: center;
}

.flex-center {
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    align-items: center;
}

.flex-spread {
    display: flex;
    flex-flow: row wrap;
    justify-content: flex-start;
    align-items: center;
}

.full-width {
    width: 100%;
}



div.memory {
    width: 400px;
    min-height: 300px;
}

div.carte {
    border: 3px solid rgb(66, 66, 66);
    border-radius: 10px;
    height: 70px;
    width: 50px;
    background-color: rgb(247, 247, 247);
}

div.joueur-1, span.joueur-1 {
    background-color: cornflowerblue;
}

div.joueur-2, span.joueur-2 {
    background-color: goldenrod;
}

div.dos-carte {
    background-color: lavender;
}

div.message {
    height: 1rem;
    margin: 5px 0 5px;
}

span.petitCarre {
    content: "";
    display: inline-block;
    width: 1rem;
    height: 1rem;
}