.app {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}


dialog {
    all: unset;
    display: none;
}


dialog[open] {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease-in-out;

}

.contenuDialog {
    width: 90%;
    max-width: 500px;
    background: linear-gradient(179deg, rgb(0 0 0 / 87%), rgb(24 66 31));
    border: 2px dashed #b79b46;
    border-radius: 20px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 -20px 80px 30px rgb(70 120 60 / 50%);
    ;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    animation: scaleIn 0.4s ease;
}

.formulaire {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.titreDialog {
    font-size: 2rem;
}

.table {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(5, 1fr);
    gap: 0.5rem;
    text-align: end;
    font-size: 1.3rem;
}

.lineClose button {
    font-size: 1.5rem;
    padding: 0 0.5rem;
}

.affichageCalcul {
    color: #dad7d7;
    font-size: 2rem;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}

.formulaireReponse {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;

    input {
        height: 2.5rem;
        width: 7.5rem;
        display: flex;
        text-align: center;
        font-size: 2rem;
    }

    button {
        height: 2rem;
        width: 5.5rem;
        font-size: 1.5rem;
    }
}

.mauvaiseReponse {
    padding: 3rem;
    box-shadow: 0px 0px 20px 20px rgb(255 0 0 / 58%);
    border-radius: 15%;

}.bonneReponse {
    padding: 3rem;
    box-shadow: 0px 0px 20px 20px rgba(38, 255, 0, 0.58);
    border-radius: 15%;
}

@media (max-width: 600px) {
  .titreDialog {
    font-size: 1.2rem;
  }

  .formulaireReponse input {
    width: 100%;
    max-width: 200px;
  }

  .formulaireReponse button {
    width: 100%;
    max-width: 200px;
  }
}