body {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #181c14;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 2.5rem;
    background-color: #181c14;
    margin: 0;
    padding: 0;
    overflow-y: auto;
}

#start {
	position: absolute;
	z-index: 10;
	top: 50%;
	left: 40%;
	width: 10em;

	background: linear-gradient(rgb(255, 247, 2), rgb(175, 174, 174));
	padding: 20px;
	font-size: 30px;
	border-radius: 20px;
	color: white;
	z-index: 10;
	cursor: pointer;
	transition-duration: 0.3s;
	transition-property: box-shadow, transform;
}

#start-part {
	display: flex;
	width: auto;
	height: auto;
}

#start:hover,
#start:focus,
#start:active {
	box-shadow: 0 0 0 2px #000000;
	transform: scale(1.1);

}

#reset {
    margin: 1vw;
    width: 40vw;    
    border-radius: 10px;
    padding: 5px;
    background-color: #ffd100;
    color: white;

}


.container {
    position: relative;
    width: 80vw;
    height: 80vh;
    filter: blur(4px);

}

.highlight {

    background-color: rgb(255, 232, 101) !important;
    border: 4px solid rgb(252, 247, 0) !important;
    border-radius: 20px !important;
}

/*-----Partie haute------*/
h1 {
    text-transform: uppercase;
    font-size: 5rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
    text-align: center;
    text-shadow: 0 0 2px #ffd100, 0 0 30px #ffd100, 0px 0px 5px #ffd100, 0 0 150px #ffd100;
    color: #ffd100;
}


th {
    font-size: 0.8rem;
    display: flex;
    justify-content: space-between;   

}

tr {
    display: flex;
    justify-content: space-around;
    

}

#score {
    display: flex;
    justify-content: center;
    color: #ffd100;
    margin: auto;
    border: yellow solid;
    border-radius: 10px;
    width: 60%;
    margin-top: 3vw;
}

/* #table-victoires-defaites {
    margin: 1vw;
    width: 60vw;
    text-align: center;
    border-collapse: collapse;
    display: flex;
    align-self: flex-start;
} */

#top-sutom {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/*--------------test------------------------*/
/*--------Grille----------*/
#grid {
    display: grid;
    grid-gap: 10px;
    justify-content: center;
    margin-top: 0.625rem 0 20px 0;
    margin: 20px;
}

/*---------CSS des cellules dans la grille--------*/
#grid td {
    width: 4rem;
    height: 4rem;
    border: 2px solid #697565;
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    background-color: aliceblue;
    border-radius: 5px;
    text-align: center;
    color: #181c14;
}

/*-------Classes pour le JavaScript pour changer les couleurs si besoin----------*/

/*--Lettre correcte--*/
.correct {
    background: rgb(255, 0, 0) !important;
    color: aliceblue;
}

/*--Lettre mal placée--*/
.misplaced {
    background: rgb(255, 166, 0) !important;
    border-radius: 50px !important;
    color: aliceblue;
}

/*--Lettre incorrecte---*/
.incorrect {
    background: rgb(98, 97, 97) !important;
    color: aliceblue;
}

/*---------Partie du clavier-----------*/
#bot-sutom {
    margin-top: 30px;
}

#top-keyboard {
    display: grid;
    grid-template-columns: repeat(10, 50px);
    grid-gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

#middle-keyboard {
    display: grid;
    grid-template-columns: repeat(10, 50px);
    grid-gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

#bottom-keyboard {
    display: grid;
    grid-template-columns: repeat(8, 50px);
    grid-gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.input-lettre {
    width: 50px;
    height: 50px;
    border: 2px solid #b3b2b2;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(rgb(71, 71, 72), rgb(175, 174, 174));
}

.input-lettre-effacer {
    background-color: #fbfbfb00;
    border: 4mm ridge grey;
}

.input-lettre-entree {
    background-color: rgba(128, 128, 128, 0);
    border: 4mm ridge grey;
}

img {
    width: 30px;
}

.input-lettre:hover {
    cursor: pointer;
    -webkit-filter: brightness(1.5);
    filter: brightness(1.5);
}

.misplacedkey:hover {
    cursor: pointer;
    -webkit-filter: brightness(1.5);
    filter: brightness(1.5);
}

.incorrectkey:hover {
    cursor: pointer;
    -webkit-filter: brightness(1.5);
    filter: brightness(1.5);
}

.correctkey:hover {
    cursor: pointer;
    -webkit-filter: brightness(1.5);
    filter: brightness(1.5);
}

/*--touches utilisées--*/
.correctkey {
    width: 50px;
    height: 50px;
    border: 2px solid #b3b2b2;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5vw;
    font-weight: bold;
    background: linear-gradient(rgb(255, 0, 0), rgb(175, 174, 174)) !important;
}

.misplacedkey {
    width: 50px;
    height: 50px;
    border: 2px solid #b3b2b2;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5vw;
    font-weight: bold;
    background: linear-gradient(rgb(255, 166, 0), rgb(175, 174, 174)) !important;
}

.incorrectkey {
    width: 50px;
    height: 50px;
    border: 2px solid #b3b2b2;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5vw;
    font-weight: bold;
    color: rgb(0, 0, 0);
    background: linear-gradient(rgb(0, 0, 0), rgb(98, 97, 97)) !important;
}

@media only screen and (max-width: 780px) {
    #start{
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 10;
	    top: 50%;
	    left: 20%;
	    width: 10em;
        
    }
    .container {
        width: 80%;
        height: 80%;
    }
    #grid td {
        width: 2rem;
        height: 2rem;
        border: 2px solid #697565;
        text-align: center;
        font-size: 1.5rem;
        font-weight: bold;
        background-color: aliceblue;
        border-radius: 5px;
        text-align: center;
        color: #181c14;
    }

    .h1 {
        margin-top: 1px;
        margin-bottom: 1px;
    }

    #bot-sutom {
        width: 10%;
    }

    .input-lettre,
    .correctkey,
    .misplacedkey,
    .incorrectkey {
        font-size: 1.5rem;
    }

    .input-lettre {
        width: 25px;
        height: 25px;
        border: 2px solid #b3b2b2;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        font-weight: bold;
        background: linear-gradient(rgb(71, 71, 72), rgb(175, 174, 174));
    }
    #top-keyboard {
        display: grid;
        grid-template-columns: repeat(10, 40px);
        grid-gap: 1px;
        justify-content: center;
        margin-bottom: 20px;
        margin-left: 170px;
    }
    
    #middle-keyboard {
        display: grid;
        grid-template-columns: repeat(10, 40px);
        grid-gap: 1px;
        justify-content: center;
        margin-bottom: 20px;
        margin-left: 170px;
    }
    
    #bottom-keyboard {
        display: grid;
        grid-template-columns: repeat(8, 40px);
        grid-gap: 1px;
        justify-content: center;
        margin-bottom: 20px;
        margin-left: 170px;
    }
    .correctkey {
        width: 25px;
        height: 25px;
        border: 2px solid #b3b2b2;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        font-weight: bold;
        background: linear-gradient(rgb(255, 0, 0), rgb(175, 174, 174)) !important;
    }
    
    .misplacedkey {
        width: 25px;
        height: 25px;
        border: 2px solid #b3b2b2;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        font-weight: bold;
        background: linear-gradient(rgb(255, 166, 0), rgb(175, 174, 174)) !important;
    }
    
    .incorrectkey {
        width: 25px;
        height: 25px;
        border: 2px solid #b3b2b2;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        font-weight: bold;
        color: rgb(0, 0, 0);
        background: linear-gradient(rgb(0, 0, 0), rgb(98, 97, 97)) !important;
    }
    
}