html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
}

body {
  font-family: sans-serif;
  user-select: none;
}

p {
  margin: 0.5em;
}

#canvas-container {
  position: absolute;
  inset: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
}

#menu.show~#canvas-container {
  cursor: default;
}

/**************************************************/

#menu {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;

  display: none;
  flex-direction: column;
  align-items: center;

  gap: 0.75em;
  max-width: 90%;
  max-height: 90%;
  padding: 3.5em;
  border-radius: 12px;

  color: white;
  background-color: rgba(50, 50, 50, 0.9);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

#menu.show {
  display: flex;
}

.close-icon {
  position: absolute;
  top: 0.5em;
  right: 0.5em;
  font-size: 2em;
  line-height: 1;
  color: white;
  cursor: pointer;
  width: 1.2em;
  height: 1.2em;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s ease;

  &:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
  }
}

.menu-spacer {
  height: 1.5em;
}


/**************************************************/

.button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 300px;

  margin: 0;
  padding: 1.2em 2em;
  border: none;
  border-radius: 8px;
  font-size: 1.2em;

  cursor: pointer;
  background-color: rgba(130, 130, 130, 0.4);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;

  &:hover {
    transform: translateY(-2px);
    background-color: rgba(150, 150, 150, 0.6);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  }

  &.disabled {
    cursor: not-allowed;
    color: rgba(255, 255, 255, 0.5);
    background-color: rgba(120, 120, 120, 0.4);
    opacity: 0.5;

    &:hover {
      transform: none;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }
  }
}
