* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  max-width: 1440px;
  background-color: rgb(242, 243, 247);
  font-family: "Bitcount Grid Double", system-ui, sans-serif;
  font-size: 18px;
}

h1 {
  font-family: "Lucida Grande", "Lucida Sans";
}

.sketch {
  margin: 100px auto;
  padding-bottom: 10px;
  width: 750px;
  min-height: 520px;
  background-color: rgb(207, 0, 0);
  box-shadow: 3px 3px 10px 2px rgba(0, 0, 0, 0.3);
  border-radius: 10px;
}

h1 {
  text-align: center;
  padding-top: 10px;
  font-family: "Courgette", system-ui;
  color: #ffe6c9;
}

.container {
  width: 592px;
  height: 362px;
  margin: 16px auto;
  display: flex;
  flex-wrap: wrap;
  background-color: #c0c0c0;
  box-shadow: 2px 2px 3px 2px rgba(0, 0, 0, 0.3);
  border: 1.5px solid #000;
}

.container-grid {
  border: 1px solid #0e0c0c85;
}

.btns-top {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin: 8px 0px;
}

.clear,
.eraser,
.rainbow,
.toggle {
  padding: 3px 5px;
  border-radius: 5px;
  font-family: inherit;
  font-size: inherit;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
}

#pick-color {
  width: 70px;
  height: 33px;
}

.clear,
.eraser,
.rainbow,
.toggle,
#pick-color {
  box-shadow: 2px 2px 3px 2px rgba(0, 0, 0, 0.3);
  border: 3px solid #000;
}

.clear:hover,
.eraser:hover,
.rainbow:hover,
.toggle:hover {
  background-color: #ffe6c9;
}

.new-grid {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 5px;
}

/* STYLE DU CURSEUR  */
#grid-proportion {
  cursor: pointer;
  appearance: none;
  border-radius: 50px;
  width: 200px;
  box-shadow: 1px 2px 2px 2px rgba(0, 0, 0, 0.3);
}

.new-grid span {
  font-weight: 700;
  color: #fff;
  width: 80px;
  text-align: center;
}

/* CLASSES UTILITAIRES */
.rainbow-color {
  /* Rouge, Orange, Jaune, Vert, Bleu, Indigo, Violet */
  background: linear-gradient(
    to right,
    #ff0000,
    #ffa500,
    #ffff00,
    #008000,
    #0000ff,
    #4b0082,
    #ee82ee
  );
}
