html {
  height: 100%;
  overflow: hidden;
}

body {
  margin: 0;
  padding: 0;
  background-color: #2c3333;
  color: white;
  font-family: sans-serif;
  overscroll-behavior: none;
  height: 100%;
}

.container {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}

.content-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.settings {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex: 1;
}

.title {
  font-size: clamp(2rem, 4vw, 4rem);
  margin-bottom: clamp(20px, 4vw, 64px);
  margin-top: clamp(20px, 4vw, 64px);
}

.sketch-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.sketch {
  width: clamp(324px, 50vw, 764px);
  height: clamp(324px, 50vw, 764px);
  border-right: 1px solid gray;
  border-bottom: 1px solid gray;
  display: grid;
  background-color: white;
}

.pixel {
  border-top: 1px solid gray;
  border-left: 1px solid gray;
  -webkit-user-drag: none;
  user-select: none;
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  -webkit-tap-highlight-color: transparent;
  background-color: rgb(255, 255, 255);
}

button {
  width: clamp(96px, 12vw, 128px);
  padding: 8px;
  display: inline-block;
  background-color: #cbe4de;
  outline: none;
  border: 2px solid black;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.3s;
  /* position: relative; */
  margin: 6px;
}

.btn-container {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  height: clamp(182px, 25vw, 280px);
  justify-content: center;
  align-items: center;
  width: 100%;
}

#eraser {
  margin-top: 14px;
}

button:active {
  top: 2px;
}

.btn-container > .btn-on {
  background-color: #0e8388;
  color: white;
}

.btn-container > p {
  margin-top: 32px;
  margin-bottom: 0;
  font-weight: 600;
}

.footer {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 8px 0 8px 0;
}

.footer > a {
  text-align: center;
  color: white;
  text-decoration: none;
  font-size: clamp(12px, 1.5vw, 18px);
  display: inline;
}

.footer > a > img {
  width: clamp(12px, 1.5vw, 18px);
  border-radius: 50%;
  margin-left: 6px;
}

#grid-slider {
  margin: 0;
}

#grid-value {
  margin: 0;
}

@media only screen and (max-width: 600px) {
  .content-container {
    flex: 0;
  }

  #grid-slider {
    margin-bottom: 10px;
  }
}
