:root {
  --bgcolor: rgb(0, 0, 0);
  --scndcolor: rgb(248, 246, 241);
  --thrdcolor: rgb(218, 212, 199);
  --buttonpressed: rgb(209, 201, 177);
  --padding: 1rem;
}

@font-face {
  font-family: BAM;
  src: url("fonts/BAM_Custom_Bold.otf");
  font-weight: 500;
}

p {
  color: white;
}

body {
  display: flex;
  flex-direction: row;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  font-family: BAM;
  font-size: 3.5vh;
}

input {
  width: 100%;
}

input::file-selector-button {
  font-family: BAM;
}


select {
  width: 100%;
}

button {
  background-color: white;
  padding: 0rem 0.6rem 0rem 0.6rem;
  width: 100%;
}

button:hover {
  background-color: lightgray;
}

button:active {
  background-color: gray;
  transform: translateY(4px);
}

.grid {
  width: 100%;
  display: flex;
  padding: var(--padding);
  gap: var(--padding);
  background-color: var(--bgcolor);
  height: 100vh;
}

.item {
  height: 100%;
  border-radius: 20px;
  border: solid white 2px;
}

.item-square {
  background-color: lightcoral;
  aspect-ratio: 1/1;
}

.item-normal {
  width: 100%;
}

canvas {
  border-radius: 20px;
  z-index: 1;
  position: absolute;
}

.sketchcontainer {
  width: 100%;
  height: 100%;
  overflow: hidden;
  touch-action: none;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: rgb(0, 0, 0, 0);
  background-position: center;
  background-size: contain;
}

#exportState {
  position: relative;
  background-color: red;
  text-align: center;
  z-index: 0;
}

.text-padding {
  padding: var(--padding);
  display: flex;
  flex-direction: column;
  gap: var(--padding);
  border: solid white 1px;
}

.control {
  border-radius: 1rem;
}

.horizontal {
  width: 100%;
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
}

.vertical {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#exportState {
  width: 50%;
}

#exportButton {
  width: 50% !important;
}

/*********** Baseline, reset styles ***********/
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  cursor: pointer;
  width: 100%;
}

/* Removes default focus */
input[type="range"]:focus {
  outline: none;
}

/******** Chrome, Safari, Opera and Edge Chromium styles ********/
/* slider track */
input[type="range"]::-webkit-slider-runnable-track {
  background-color: #ffffff;
  border-radius: 0.5rem;
  height: 0.5rem;
}

/* slider thumb */
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  /* Override default look */
  appearance: none;
  margin-top: -4px;
  /* Centers thumb on the track */
  background-color: #ffffff;
  border-radius: 0.5rem;
  height: 1rem;
  width: 1rem;
}

input[type="range"]:focus::-webkit-slider-thumb {
  outline: 3px solid #ffffff;
  outline-offset: 0.125rem;
}

/*********** Firefox styles ***********/
/* slider track */
input[type="range"]::-moz-range-track {
  background-color: #ffffff;
  border-radius: 0.5rem;
  height: 0.5rem;
}

/* slider thumb */
input[type="range"]::-moz-range-thumb {
  background-color: #ffffff;
  border: none;
  /*Removes extra border that FF applies*/
  border-radius: 0.5rem;
  height: 1rem;
  width: 1rem;
}

input[type="range"]:focus::-moz-range-thumb {
  outline: 3px solid #ffffff;
  outline-offset: 0.125rem;
}

textarea {
  width: 100%;
}