:root {
  --color: black;
  --numberSize: min(45px, 50px);
  --selectedSize: calc(var(--numberSize) - 5px);
  --squareSize: 90px;
  --openButton: 30px;
}

* {
  font-family: Arial, Helvetica, sans-serif;
  box-sizing: border-box;
  cursor: cell;
}

*::-webkit-scrollbar {
  display: none;
}

body {
  margin: 0;
  background-color: rgb(240, 240, 240);
  height: 100%;
  overflow-y: hidden;

}

input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
  margin-top: 65px;
  font: inherit;
  color: currentColor;
  width: 1em;
  height: 1em;
  border: 0.15em solid currentColor;
  border-radius: 0.15em;
  transform: translateY(-0.075em);
  display: grid;
  place-content: center;
}

input[type="checkbox"]::before {
  content: "";
  width: 0.5em;
  height: 0.5em;
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
  transform: scale(0);
  transform-origin: bottom left;
  transition: 120ms transform ease-in-out;
  background-color: CanvasText;
}

input[type="checkbox"]:checked::before {
  transform: scale(1);
}

input[type="checkbox"]:disabled {
  --form-control-color: var(--form-control-disabled);
  color: var(--form-control-disabled);
  cursor: not-allowed;
}

.open-button {
  background-color: rgb(240, 240, 240);
  color: white;
  padding: 10px 5px;
  border: none;
  opacity: 0.9;
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: var(--openButton);
  height: var(--openButton);
  text-align: center;
  transition: 1s;
}

.form-popup {
  display: none;
  position: fixed;
  bottom: 0;
  right: 5px;
  border: none;
  z-index: 9;
  text-align: center;
}

.form-container {
  max-width: 300px;
  padding: 10px;
  border-radius: 10px;
  background-color: white;
  box-shadow: -7px -7px 20px 0px rgba(202, 202, 202, 0.6),
    -2px -2px 5px 0px rgba(202, 202, 202, 0.6), 7px 7px 20px 0px #0002,
    4px 4px 5px 0px #0001, inset 0px 0px 0px 0px rgba(202, 202, 202, 0.6),
    inset 0px 0px 0px 0px #0001, inset 0px 0px 0px 0px rgba(202, 202, 202, 0.6),
    inset 0px 0px 0px 0px #0001;
  display: block;
}

.form-container input,
select {
  width: 100%;
  padding: 15px;
  margin: 5px 0 22px 0;
  border: none;
  background: #f1f1f1;
  border: none;
  padding: 1rem;
  border-radius: 1rem;
  background: #e8e8e8;
  box-shadow: 2px 2px 10px #c5c5c5, -2px -2px 10px rgb(252, 252, 252);
  transition: 0.3s;
}

.form-container input:focus {
  background-color: #ddd;
  outline: none;
  outline-color: #e8e8e8;
  background: #e8e8e8;
  box-shadow: inset 20px 20px 60px #c5c5c5, inset -20px -20px 60px #ffffff;
  transition: 0.3s;
}

.form-container .btn {
  color: rgb(0, 0, 0);
  padding: 16px 20px;
  border: none;
  cursor: pointer;
  width: 100%;
  margin-bottom: 10px;
  opacity: 0.8;
  border-radius: 10px;
  box-shadow: inset 20px 20px 60px #c5c5c5, inset -20px -20px 60px #ffffff;
}

.form-container .cancel {
  background-color: rgb(190, 0, 0);
  border-radius: 25%, 10%;
  box-shadow: inset 20px 20px 60px #973636, inset -20px -20px 60px #ffa6a6;
}

.form-container .btn:hover,
.open-button:hover {
  opacity: 1;
}

.typePartie {
  font-size: 50px;
  margin-top: 10px;
  margin-bottom: 10px;
}

table {
  margin-left: auto;
  margin-right: auto;
  border-radius: 50px;
  border-collapse: separate;
  border-spacing: 10px 10px;
}

.grid {
  margin-left: auto;
  margin-right: auto;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

#number {
  font-family: "Poppins", sans-serif;
  font-size: 300px;
  color: var(--color);
  text-shadow: -4px -4px 8px rgba(95, 95, 95, 0.4),
    4px 4px 8px rgba(0, 0, 0, 0.08);
  caret-color: #262626;
  display: table;
  margin-right: auto;
  margin-top: 100px;
  margin-left: auto;
  line-height: 200px;
}

#lotoTitle {
  text-align: center;
  font-size: 70px;
  font-weight: bold;
  margin-top: 25px;
  margin-bottom: -30px;
}

#lotoNumber {
  text-align: center;
  font-size: 50px;
  font-weight: bold;
}

#lotoColor {
  text-align: center;
  font-size: 50px;
  font-weight: bold;
}

#previous {
  text-align: center;
  font-size: 110%;
}

.affichage,
.historique {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  font-size: 20px;
  line-height: 18px;
  margin-top: -75px;
}

.displaying {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  width: 50%;
}

td {
  text-align: center;
}

.logo {
  max-width: 100%;
  height: auto;
  width: 250px;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

.numb {
  border-radius: 3px;
  background: #e0e5ec;
  text-align: center;
  height: var(--squareSize);
  max-width: var(--squareSize);
  max-height: var(--squareSize);
  width: var(--squareSize);
  justify-content: center;
  align-items: center;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  -webkit-tap-highlight-color: transparent;
  box-shadow: -7px -7px 20px 0px #fff9, -2px -2px 5px 0px #fff9,
    7px 7px 20px 0px #0002, 4px 4px 5px 0px #0001, inset 0px 0px 0px 0px #fff9,
    inset 0px 0px 0px 0px #0001, inset 0px 0px 0px 0px #fff9,
    inset 0px 0px 0px 0px #0001;
  transition: box-shadow 0.6s cubic-bezier(0.79, 0.21, 0.06, 0.81);
  font-size: var(--numberSize);
  color: rgba(42, 52, 84, 1);
  text-decoration: none;
  transition: 1s;
}

.numb:active {
  box-shadow: 4px 4px 6px 0 rgba(255, 255, 255, 0.5),
    -4px -4px 6px 0 rgba(116, 125, 136, 0.2),
    inset -4px -4px 6px 0 rgba(255, 255, 255, 0.5),
    inset 4px 4px 6px 0 rgba(116, 125, 136, 0.3);
  transition: 0.5s;
}

.numb:hover {
  box-shadow: 4px 4px 6px 0 rgba(255, 255, 255, 0.5),
    -4px -4px 6px 0 rgba(116, 125, 136, 0.2),
    inset -4px -4px 6px 0 rgba(255, 255, 255, 0.5),
    inset 4px 4px 6px 0 rgba(116, 125, 136, 0.3);
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  color: rgb(226, 227, 230);
  background: #1a1a1b;
}

.alreadySelected {
  border-radius: 3px;
  background: #1a1a1b;
  text-align: center;
  height: var(--squareSize);
  width: var(--squareSize);
  justify-content: center;
  align-items: center;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  -webkit-tap-highlight-color: transparent;
  box-shadow: -7px -7px 20px 0px #fff9, -2px -2px 5px 0px #fff9,
    7px 7px 20px 0px #0002, 4px 4px 5px 0px #0001, inset 0px 0px 0px 0px #fff9,
    inset 0px 0px 0px 0px #0001, inset 0px 0px 0px 0px #fff9,
    inset 0px 0px 0px 0px #0001;
  transition: box-shadow 0.2s cubic-bezier(0.79, 0.21, 0.06, 0.81);
  font-size: var(--selectedSize);
  color: rgb(226, 227, 230);
  text-decoration: none;
}
