html,
body {
  margin: 0;
  height: 100%;
  background-color: #444;
  font-family: Helvetica, sans-serif;
}

input {
  border-radius: 4px;
  padding: 2px;
  margin-top: 2px;
}

label {
  font-size: 15px;
  font-family: Helvetica, sans-serif;
}

h1 {
  margin: 1rem 0 0 0;
  text-align: center;
  font-size: 2.3rem;
}
.wrapper {
  display: grid;
  height: 100%;
  grid-template-columns: 100px 100px 410px auto;
  grid-template-rows: 75px 130px 1fr;
  grid-template-areas:
    "header header header header "
    "menu menu colours options"
    "sidebar content content content";
  background-color: #444;
  color: #fff;
}

.header {
  grid-area: header;
  font-family: Helvetica, sans-serif;
}

.menu {
  grid-area: menu;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  justify-content: space-between;
  padding: 15px 20px 10px 25px;
}

.menu button,
.options button {
  box-sizing: border-box;
  background-color: white;
  width: 47px;
  height: 47px;
  border: 1px solid rgb(40, 40, 40, 255);
  border-radius: 4px;
  padding: 0;
}

.options button.active {
  border: 2px solid blue;
}

button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

button:hover:not([disabled]),
.sideBarItem:hover,
.colourSamples div:hover,
.colourSwatches:hover {
  box-shadow: 0px 1px 4px 4px rgba(190, 190, 190, 0.7);
}



button:disabled {
  background-color: dimgrey;
}

#redoBtn,
#undoBtn {
  width: 32px;
  height: 47px;
}

#redoBtn img,
#undoBtn img {
  object-fit: fill;
}

#redoBtn img {
  transform: scaleX(-1);
}

#imageUploadInput {
  width: 0;
  height: 0;
  display: none;
}
.colours {
  grid-area: colours;
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 20px;
  padding: 10px 20px;
  border-left: 1px solid rgb(126, 126, 126);
  border-right: 1px solid rgb(126, 126, 126);
}

.colourPalette {
  display: grid;
  grid-template-columns: repeat(6, 30px);
  grid-template-rows: repeat(3, 30px);
  gap: 6px;
  align-items: center;
  justify-content: center;
}

.colourSwatches {
  box-sizing: border-box;
  width: 30px;
  height: 30px;
  max-height: 30px;
  max-width: 30px;
  border-radius: 4px;
}

.active {
  border: 2px solid blue;
}

.colourPicker {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  width: 70px;
  justify-content: center;
  align-items: center;
}

.colourPicker p {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0px;
}

.colourPicker p input {
  width: 43px;
}

#editColour input {
  width: 0px;
  height: 0px;
  margin: 0px;
  padding: 0px;
}

#editColour button {
  background: url("assets/color-wheel.png") no-repeat;
  background-position: center;
  background-size: 55px 55px;
  border-radius: 25px;
  width: 58px;
  height: 58px;
}

.colourSamples {
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: space-around;
  align-items: center;
}

#fillColour,
#strokeColour {
  box-sizing: border-box;
  width: 45px;
  height: 45px;
  min-height: 45px;
  min-width: 45px;
  border-radius: 4px;
}

.options {
  grid-area: options;
  padding: 15px;
  display: flex;
  gap: 20px;
}

#shapes {
  display: flex;
  gap: 20px;
}

.options select {
  height: 30px;
  width: 80px;
  border-radius: 4px;
}

#directionButton {
  width: 80px;
}

.sidebar {
  padding-top: 50px;
  grid-area: sidebar;
  grid-row: 3/5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.sideBarItem {
  display: block;
  box-sizing: border-box;
  height: 50px;
  width: 50px;
  border-radius: 4px;
}

.sideBarItem img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  border-radius: 4px;
}

#content {
  grid-area: content;
  background-color: #b6b3b3;
}

#strokeSlider {
  padding: 20px 0px;
  display: block;
}

#strokeSlider p {
  text-align: center;
  font-weight: bolder;
  margin: 0;
  background-color: #ffffffd2;
  color: black;
  border-radius: 2px;
  padding: 1px;
}

#strokeSliderInput {
  writing-mode: vertical-lr;
  direction: rtl;
  height: 180px;
}

#tooltip, #errorBox {
  position: absolute;
  display: none;
  padding: 7px;
  background-color: white;
  border: 1px solid rgb(126, 126, 126);
  border-radius: 4px;
}

#tooltip p,
#errorBox p {
  margin: 0;
  font-size: 14px;
  color: black;
}

#errorBox {
  border-color: red;
}
#errorBox p {
  color: red;
}

#tooltip p::first-letter {
  text-transform: uppercase;
}
