@font-face {
  font-family: Paytone One;
  src: url('../assets/fonts/PaytoneOne-Regular.ttf');
}

* {
  box-sizing: border-box;
}

p {
  font-family: 'Paytone One';
  color: #042b60;
  font-size: 32px;
  margin: 10px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

html {
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  width: 100%;
}

.canvas_wrap {
  display: flex;
  width: 100%;
  justify-content: space-between;
}

.game {
  background-color: #ccf3f0;
  border-radius: 35px;
  position: relative;

  margin: auto;
  width: 75%;
  min-height: 700px;
  box-shadow: 0px 3px 15px #00000029 inset, 0px 7px 15px #00000029;
  border: 11px solid #ffffff;
  opacity: 1;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.button_return {
  position: absolute;
  right: 30px;
  top: 30px;
  background: none;
  border: none;
  height: 30px;
  width: 30px;
  cursor: pointer;
}

.button_return > a > i {
  font-size: 30px;
  color: #042b60;
}

.buttons_wrap {
  display: flex;
  justify-content: space-evenly;
  width: 100%;
}

.stampsContainer {
  margin-top: 25px;
  padding: 15px;
  background-color: white;
  box-shadow: 0px -7px 15px #00000029;
  border-top-left-radius: 25px;
  border-top-right-radius: 25px;
  display: flex;
  flex-direction: row;
  width: 55%;
}

.stampButton {
  background-color: transparent;
  border: none;
  width: 11%;
  cursor: pointer;
  transition: 0.3s;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stampButton > img {
  max-width: 100%;
  max-height: 100%;
  margin: auto;
}

.stampButton:hover {
  transform: scale(1.05);
}

.stampButton.active {
  transform: scale(1.2);
}

.side_menu {
  display: flex;
  width: 10%;
  flex-direction: column;
  align-items: center;
}
.side_menu > button {
  width: 50px;
  height: 50px;
  display: flex;
  background-color: transparent;
  border: none;
  cursor: pointer;
  transition: 0.3s;
}
.side_menu > button > img {
  width: 100%;
}

.top_menu {
  display: flex;
}

.bottom_menu {
  display: flex;
  justify-content: space-evenly;
  width: 100%;
  margin-left: 3%;
}

.colorsContainer {
  display: grid;
  align-items: center;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100px;
  height: 600px;
  margin-top: 0;
  padding: 15px;
  background-color: white;
  box-shadow: 0px 7px 15px #00000029;
  border-top-left-radius: 25px;
  border-bottom-left-radius: 25px;
  z-index: 999;
}

.colorButton {
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  transition: 0.3s;
  cursor: pointer;
  box-shadow: 0px 7px 15px #00000029;
}

.colorButton:hover {
  transform: scale(1.05);
}

.colorButton.active {
  border: 2px solid black;
  transform: scale(1.1);
}

.optionsContainer {
  display: flex;
  align-items: center;
  position: relative;
  padding: 15px;
  width: 100%;
  margin: 10px;
  max-width: 100%;
}

.optionsContainer button {
  width: 71px;
  height: 71px;
  display: flex;
  background-color: transparent;
  border: none;
  cursor: pointer;
  transition: 0.3s;
}

.optionsContainer button:hover {
  transform: scale(1.05);
}

.optionsContainer button img {
  width: 100%;
  max-height: 100%;
  margin: auto;
}

#canvasContainer {
  position: relative;
  width: 800px;
  height: 600px;
}

#myCanvas {
  background-color: white;
  box-shadow: 0px 0px 3px #00000029;
  width: 800px;
  height: 600px;
  touch-action: none;
}

#mouseCanvas {
  position: absolute;
  top: 1px;
  left: 1px;
  z-index: 1;
  width: 800px;
  height: 600px;
  touch-action: none;
}

@media print {
  :root * {
    display: none;
  }

  :root canvas {
    display: block !important;
    box-shadow: none;
  }
}

input[type='range'] {
  -webkit-appearance: none; /* Hides the slider so that custom slider can be made */
  width: 100%; /* Specific width is required for Firefox. */
  background: transparent; /* Otherwise white in Chrome */
}

input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
}

input[type='range']:focus {
  outline: none; /* Removes the blue border. You should probably do some kind of focus styling for accessibility reasons though. */
}

input[type='range']::-ms-track {
  width: 100%;
  cursor: pointer;

  /* Hides the slider so custom styles can be added */
  background: transparent;
  border-color: transparent;
  color: transparent;
}

input[type='range'] {
  -webkit-appearance: none;
  margin: 18px 0;
  min-width: 200px;
}

input[type='range']:focus {
  outline: none;
}
input[type='range']::-webkit-slider-runnable-track {
  width: 100%;
  height: 50px;
  cursor: pointer;
  background: #00c0b5;
  background: url('../assets/slider.png') no-repeat 100% 100%;
}
input[type='range']::-webkit-slider-thumb {
  height: 60px;
  width: 7px;
  border-radius: 3px;
  background: #042b60;
  border: none;
  cursor: pointer;
  -webkit-appearance: none;
  margin-top: -6px;
}

input[type='range']::-moz-range-track {
  width: 100%;
  height: 50px;
  cursor: pointer;
  background: #00c0b5;
  background: url('../assets/slider.png') no-repeat 100% 100%;
}
input[type='range']::-moz-range-thumb {
  height: 60px;
  width: 7px;
  border-radius: 3px;
  background: #042b60;
  border: none;
  cursor: pointer;
  -webkit-appearance: none;
  margin-top: -6px;
}
input[type='range']::-ms-track {
  width: 100%;
  height: 50px;
  cursor: pointer;
  background: #00c0b5;
  background: url('../assets/slider.png') no-repeat;
  background-size: contain;
}

input[type='range']::-ms-thumb {
  height: 60px;
  width: 7px;
  border-radius: 3px;
  background: #042b60;
  cursor: pointer;
  -webkit-appearance: none;
  margin-top: -6px;
}

.brush_size_wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 15px;
  align-self: center;
}
.brush_size_wrap > span {
  color: #042b60;
  font-family: Paytone One;
  margin-bottom: 10px;
}

.brush_size_slider_wrap {
  display: flex;
  align-items: center;
  height: 50px;
  width: 100%;
}

.brush_size_slider_wrap button {
  background: #fff;
  box-shadow: 0px 0px 3px #00000029;
  border-radius: 7px;
  border: none;
  height: 100%;
  aspect-ratio: 1/1;
  font-size: 40px;
  font-weight: 600;
  color: #042b60;
  margin: 5px;
  cursor: pointer;
}

.brush_size_slider_wrap button:hover {
  background: #eee;
}

@media (max-width: 1366px) {
  .bottom_menu {
    flex-direction: column-reverse;
    align-items: center;
    margin-left: 0;
  }

  .optionsContainer {
    flex-direction: column-reverse;
    align-items: center;
  }

  p {
    position: relative;
    left: auto;
    transform: none;
  }

  .canvas_wrap {
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .side_menu {
    flex-direction: row;
    width: 100%;
    justify-content: center;
    margin: 30px 0 30px 0;
  }

  .side_menu > button {
    height: 70px;
    width: 70px;
  }

  .colorsContainer {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    width: auto;
    max-width: 90%;
    height: auto;
    border-radius: 20px;
  }

  .stampsContainer {
    border-radius: 20px;
    box-shadow: none;
    width: 100%;
  }
}

@media (max-width: 1200px) {
  .game {
    width: 100%;
    min-height: 100vh;
  }
}

@media (max-width: 1000px) {
  #canvasContainer {
    width: 640px;
    height: 480px;
  }

  #myCanvas {
    width: 640px;
    height: 480px;
  }

  #mouseCanvas {
    width: 640px;
    height: 480px;
  }
}

@media (max-width: 768px) {
  #canvasContainer {
    width: 640px;
    height: 480px;
  }

  #myCanvas {
    width: 640px;
    height: 480px;
  }

  #mouseCanvas {
    width: 640px;
    height: 480px;
  }

  .stampsContainer {
    border-radius: 20px;
    box-shadow: none;
  }
}

@media (max-width: 700px) {
  #canvasContainer {
    width: 400px;
    height: 300px;
  }

  #myCanvas {
    width: 400px;
    height: 300px;
  }

  #mouseCanvas {
    width: 400px;
    height: 300px;
  }
}

@media (max-width: 425px) {
  #canvasContainer {
    width: 320px;
    height: 240px;
  }

  #myCanvas {
    width: 320px;
    height: 240px;
  }

  #mouseCanvas {
    width: 320px;
    height: 240px;
  }
}
