@font-face {
  font-family: "MyFont";
  src: url("/fonts/Bad_Script/BadScript-Regular.ttf") format("ttf");
  font-weight: 700;
  font-style: normal;
}

* {
  padding: 0;
  margin: 0;
  scroll-behavior: smooth;
  font-family: "MyFont", cursive;
}

body {
  position: absolute;
  overflow: hidden;
}

main {
  display: grid;
  grid-column: 3;
  grid-template-columns: repeat(3, 1fr);
  grid-row: 3;
  grid-template-rows: repeat(3, 1fr);
}

.sideMenu {
  position: fixed;
  top: 0;
  left: 0;
  font-size: larger;
  background-color: black;
  color: white;
  opacity: 0.6;
  border: none;
  cursor: pointer;
  z-index: 10;
}

aside {
  z-index: 2;
  position: fixed;
  top: 50px;
  left: 0;
  padding: 5px;
  width: 120px;
  background-color: black;
  transition: scale 0.5s;
  scale: 0;
}

.movement {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
}

.top {
  grid-column: 2;
  grid-row: 1;
}
.left {
  grid-column: 1;
  grid-row: 2;
}
.right {
  grid-column: 3;
  grid-row: 2;
}
.bot {
  grid-column: 2;
  grid-row: 3;
}

.controls button {
  width: 100%;
  height: 100%;
  font-size: larger;
  background-color: white;
  border: none;
  color: black;
  cursor: pointer;
}

.movement button {
  background-color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  aspect-ratio: square;
}

.palette {
  width: 33.33svw;
  height: 33.33svh;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: larger;
  color: black;
  position: relative;
}

.palette p {
  scale: 0;
  text-align: center;
  width: 75%;
  position: relative;
  z-index: 1;
  padding: 5px;
  border-radius: 20px;
}

.sideMenu {
  padding: 2px 6px;
}

.layout {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  padding: 3px;
  background-color: white;
  border-radius: 7px;
  gap: 5px;
}

.layout > button,
.layout > button > img {
  width: 50px;
  height: 50px;
}

button:active {
  outline: none;
  background-color: lightgrey;
}

.paletteImg {
  position: absolute;
  height: 80%;
  z-index: 0;
}

@media (max-width: 768px) {
  .palette p {
    font-size: 0.8rem;
    width: 90%;
    line-height: 1.3;
  }

  .paletteImg {
    height: 60%;
    bottom: 0;
  }

  .layout > button,
  .layout > button > img {
    width: 35px;
    height: 35px;
  }

  .sideMenu {
    font-size: 1rem;
  }
}
