/* CSS code from Sutom https://framagit.org/JonathanMM/sutom */
:root {
  --taille-cellule: 48px;
  --epaisseur-bordure-cellule: 1px;
  --epaisseur-padding-cellule: 2px;
  --couleur-bien-place: #e7002a;
  --couleur-mal-place: #ffbd00;
  --couleur-fond-grille: #a05bbc;
  --couleur-non-trouve: rgb(112, 112, 112);
  --couleur-icone: rgb(200, 200, 200);
}

@font-face {
  font-family: "Roboto Medium";
  src: url("Roboto-Medium.ttf");
}

body {
  font-family: "Roboto Medium", Ubuntu, Arial, Helvetica, sans-serif;
  font-size: 32px;
  background-color: #000000;
  height: 100vh;
  text-align: center;
  color: white;
  margin: 0;
  padding: 0;
}

#contenu {
  display: flex;
  flex-direction: column;
  margin-left: 25%;
  margin-right: 25%;
  height: 100%;
}

@media (max-width: 1024px) {
  #contenu {
    margin-left: 10px;
    margin-right: 10px;
  }
}

header {
  width: 100%;
  margin-top: 10px;
  margin-bottom: 10px;
  text-align:center;
}

header img {
 height:70px;
}

@media (min-width: 1024px) {
  header img {
   height:90px;
  }
}

h1 {
  margin: 0;
}

#configuration-audio-icone {
  height: 32px;
  width: 40px;
}

#grille {
  margin-left: auto;
  margin-right: auto;
  background-color: var(--couleur-fond-grille);
  margin-top:10px;
  margin-bottom:5px;
}

#grille table {
  border-spacing: 0;
}

#grille td {
  width: calc(var(--taille-cellule) - 2 * var(--epaisseur-padding-cellule));
  height: calc(var(--taille-cellule) - 2 * var(--epaisseur-padding-cellule));
  text-align: center;
  position: relative;
  padding: var(--epaisseur-padding-cellule);
  color: white;
  border: 1px solid white;
  z-index: 0;
}

#grille td:not(.resultat) {
  background-color: var(--couleur-fond-grille);
}

#grille td.resultat::after {
  width: calc(var(--taille-cellule));
  height: calc(var(--taille-cellule));
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  content: " ";
}

#grille td.mal-place::after {
  background-color: var(--couleur-mal-place);
  border-radius: 50%;
}

#grille td.bien-place::after {
  background-color: var(--couleur-bien-place);
}

#grille td.non-trouve::after {
  background-color: var(--couleur-fond-grille);
}

.fin-de-partie-panel,
#victoire-panel,
#defaite-panel {
  display: none;
  font-size: 16px;
  padding-left:10px;
  padding-right:10px;
  margin-left:auto;
  margin-right:auto;
}

#suggestion-area {
  border-top: 1px solid white;
  border-bottom: 1px solid white;
  margin-block-start: 1em;
  padding-left:10px;
  padding-right:10px;
}

#input-area {
  margin: 5px auto 0.5em;
  max-width: 100%;
  width: calc(100% - 20px);
  max-width: 500px;
}

.input-ligne {
  display: flex;
  justify-content: space-between;
  gap: 0.25em;
  width: 100%;
}

.input-ligne + .input-ligne {
  margin-top: 0.25em;
}

.input-lettre {
  font-size: 18px;
  display: inline-block;
  border: 1px solid white;
  border-radius: 5px;
  user-select: none;
  flex-grow: 1;
  flex-shrink: 0;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: monospace;
}

.input-lettre  img {
height: 36px;
}

.input-lettre.input-lettre-vide {
  border: 0;
  flex-grow: 2;
}

.input-lettre.input-lettre-entree {
  background-color: #129c95;
}

.input-lettre.lettre-bien-place {
  background: var(--couleur-bien-place);
}

.input-lettre.lettre-mal-place {
  background: var(--couleur-mal-place);
}

.input-lettre.lettre-non-trouve {
  color: var(--couleur-non-trouve);
  border: 1px solid var(--couleur-non-trouve);
}

.input-lettre:hover,
.input-lettre:active,
#share-victory {
  cursor: pointer;
}

.input-lettre.input-lettre-vide:hover,
.input-lettre.input-lettre-vide:active {
  cursor: initial;
}

#regles-panel {
  font-size: 14px;
  text-align: left;
  margin-left:auto;
  margin-right:auto;
  padding-left:10px;
  padding-right:10px;
}

#regles-panel a,
#regles-panel a:visited
{
  color: white;
}

#suggestion a,
#suggestion a:visited
{
  color: #129c95;
}


#notification {
  opacity: 0;
  transition: opacity linear 1s;
  font-size: 16px;
  padding-top:10px;
  padding-bottom:10px;
}

#notification.visible {
  opacity: 1;
}

#share-victory {
  display : inline-block;
  border: 1px solid white;
  border-radius: 5px;
  background-color: #129c95;
  padding: 10px;
}

.hide {
  display: none;
}

.add-button {
  position: absolute;
  top: 1px;
  left: 1px;
}

