@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Luckiest+Guy&display=swap');

.dm-sans-unique {
    font-family: "DM Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

.luckiest-guy-regular {
    font-family: "Luckiest Guy", serif;
    font-weight: 400;
    font-style: normal;
}

:root {
    --vert: #8AD650;
    --rouge: #F43A3A;
    --gris: #D9D9D9;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

header {
    display: flex;
    justify-content: space-between;
}

h1 {
    font-size: 6vw;
    font-weight: 400;
    font-family: "Luckiest Guy";
    color: var(--gris);
}

.rouge {
    color: var(--rouge);
}

.vert {
    color: var(--vert);
}

form {
    margin-top: 280px;
    font-family: "DM Sans";
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

form input {
    font-size: 4vw;
    padding: 8px;
    border-radius: 40px;
    border: none;
    background-color: var(--gris);
    text-align: center;
}

label {
    font-size: 4vw;
}

form input::placeholder {
    color: #999999;
    font-size: 4vw;
    text-align: center;
}

button {
    border: none;
    cursor: pointer;
    align-items: center;
    background-color: var(--vert);
    color: white;
    border-radius: 40px;
    font-size: 4vw;
    padding: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* MENU PAGE */

#menu p {
    color: var(--vert);
    font-family: "DM Sans";
    text-align: center;
    font-size: 30px;
}

#container-button {
    gap: 15px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-content: center;
}

#menu {
    margin: 0 20%;
}

#menu button {
    background-color: white;
    color: var(--vert);
    border: 5px solid var(--vert);
    transition: 0.3s;
}

#menu button:hover {
    background-color: var(--vert);
    color: white;
    transition: 0.3s;
}

/* WORDLE */

#wordle {
    margin: auto;
    border: 1px solid;
    width: max-content;
}

.essaie {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.essaie div {
    height: 70px;
    width: 70px;
    background-color: var(--vert);
}

.essaie input {
    height: 70px;
    width: 70px;
    background-color: #999999;
}

.lettre {
    text-align: center;
    font-family: "Luckiest Guy";
    border: none;
}

#wordle form {
    margin: 0;
}

#hide {
    display: none;
    position: absolute;
    background: white;
    border: 3px solid var(--vert);

}

#toggle:checked+#hide {
    display: block;
}

#button-regle {
    cursor: pointer;
    font-size: 30px;
    width: 50px;
    border-radius: 200px;
    color: var(--vert);
    border: 3px solid var(--vert);
}

#section-wordle p {
    text-align: center;
}

.correct {
    background-image: url(../images/carre_vert.png);
}

.presque {
    background-image: url(../images/carre_bleu.png);
}

.incorrect {
    background-image: url(../images/carre_rouge.png);
}

#p-wordle {
    margin-bottom: 30px;
    font-family: "Luckiest Guy", serif;
    font-weight: 400;
    font-style: normal;
    font-size: 20px;
}

#lettre {
    font-size: 40px;
    color: var(--vert);
}

#defaite {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#wordle button {
    font-size: 2vw;

}