html *,
body {
  margin: 0;
  padding: 0;

  transition: 0.2s ease;
  transition-property: all;
  transition-duration: 0.5s;
  transition-timing-function: ease;
  transition-delay: 0s;
  scroll-behavior: inherit;
  -webkit-animation: fadein 1s;
  -moz-animation: fadein 1s;
  -ms-animation: fadein 1s;
  -o-animation: fadein 1s;
  animation: fadein 1s;
  overflow: hidden;
}

html {
  background-color: rgb(211, 54, 51);
}

main {
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#mainCanvas {
  position: absolute;
  top: 16.5%;
  left: 10px;
  width: 500px !important;
  height: 500px !important;
}

#canvas-container {
  position: relative;

  img {
    width: 520px;
  }
}

canvas {
  display: block;
}

img {
  -webkit-user-drag: none; /* For Webkit browsers like Chrome, Safari */
  -moz-user-drag: none; /* For Firefox */
  -ms-user-drag: none; /* For Internet Explorer/Edge */
}

#dialogue {
  max-width: 80vw;
  width: 400px;
  height: 100px;
  font-family: 'scatterplot-vf', sans-serif;
  font-variation-settings: 'RAND' 0, 'wght' 300;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: antiquewhite;
  font-size: large;
  text-align: center;
}

button {
  font-size: large;
  margin: 10px;
  background-color: rgb(182, 230, 237);
  border: none;
  color: #065e48;
  padding: 10px;
  /* font-family: 'scatterplot-vf', sans-serif;
  font-variation-settings: 'RAND' 0, 'wght' 400; */

  font-family: 'bd-caramel-variable', sans-serif;
  font-variation-settings: 'BUBL' 100;
}

button:hover {
  font-variation-settings: 'BUBL' 500;
}

.imgButtons {
  margin: 20px;
  gap: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  bottom: 9vh;
  position: relative;
  overflow: visible;
}

.imgButtonLabels:hover {
  transform: translate(0px, 0px) rotate(1deg) skew(0deg, 0deg) scale(1, 1);
  transition-duration: 0ms;
}

.imgButton {
  overflow: visible;
  max-height: 8vh;
  max-width: 150px;
  cursor: pointer;
  position: relative;
}

#eraseLabel {
  background-color: transparent;
  position: absolute;
  top: 35%;
  left: 20%;
  font-size: x-large;
  cursor: pointer;
  color: #46374c;
}

#exportLabel {
  background-color: transparent;
  position: absolute;
  top: 35%;
  left: 8%;
  font-size: x-large;
  cursor: pointer;
  color: #8185b8;
}

.imgButtonLabels {
  position: relative;
  font-family: 'bd-caramel-variable', sans-serif;
  font-variation-settings: 'BUBL' 100;
}

.imgButtonLabels:hover {
  position: relative;
  font-family: 'bd-caramel-variable', sans-serif;
  font-variation-settings: 'BUBL' 300;
}

.utensil {
  position: relative;
  bottom: -40px;
  background-color: transparent;
  height: 15vh;
  cursor: pointer;
}
.utensil:hover {
  bottom: -10px;
}
.pencilcase {
  position: absolute;
  gap: 10px;
  bottom: 0;
  align-items: end;
  display: flex;
  height: 5vh;
  max-height: 250px;
  overflow: visible;
  background-color: transparent;
}

.utensil-case {
  position: relative;
  width: 100px;
}
@media only screen and (max-width: 1024px) /* mobile */ {
  #mainCanvas {
    width: 77vw !important;
    height: auto !important;
    touch-action: 'none';
    -ms-touch-action: none;
    position: absolute;
    top: 16.5%;
    left: 1.5vw;
  }

  .utensil {
    bottom: -80px;
    width: 8vw;
    max-height: 30vh;
    /* position: absolute;
    bottom: 0; */
  }

  .utensil:hover {
    bottom: -30px;
  }

  #canvas-container {
    position: relative;

    img {
      width: 80vw;
    }
  }

  .imgButton {
    max-width: 15vw;
  }

  #eraseLabel,
  #exportLabel {
    font-size: 2.5vw;
  }

  .pencilcase {
    gap: 1vw;
  }

  button {
    font-size: small;
    margin: 5px;

    padding: 5px;

    font-family: 'bd-caramel-variable', sans-serif;
    font-variation-settings: 'BUBL' 100;
  }

  main {
    height: 100%;
  }
}
