body {
  margin: 0;
  background-color: black;
  color: white;
  font-family: 'Press Start 2P', monospace;
}

button {
  all: unset;
  cursor: pointer;
}

.topbar {
  display: flex;
  background-color: black;
  padding: 8px;
  gap: 16px;
  position: relative;
  z-index: 10;
  user-select: none;
}

.menu {
  position: relative;
}

.menu button {
  color: white;
  font-size: 14px;
  padding: 4px 8px;
  transition: background-color 0.2s ease;
}

.menu button:hover {
  background-color: white;
  color: black;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #111;
  border: 1px solid white;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  padding: 0;
  pointer-events: none;
  transition: all 0.25s ease-in-out;
}

.menu:hover .dropdown {
  max-height: 500px;
  opacity: 1;
  padding: 4px 0;
  pointer-events: auto;
}

.dropdown div {
  padding: 6px 12px;
  color: white;
  font-size: 12px;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.dropdown div:hover {
  background-color: white;
  color: black;
}

.divider {
  height: 2px;
  background-color: white;
  width: 100%;
}

.main {
  padding: 20px;
  color: white;
}

input[type="number"] {
  background-color: #111;
  color: white;
  border: 1px solid #555;
  padding: 5px;
  font-size: 14px;
  width: 100px;
}

.areyousure {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #000000;
  border: 1px solid white;
  color: white;
  padding: 20px;
  z-index: 999;
  font-family: 'Press Start 2P', monospace;
  text-align: center;
  width: 300px;
}

.areyousure button {
  background-color: #000000;
  color: white;
  border: 1px solid white;
  padding: 6px 12px;
  margin: 10px 5px 0;
  font-family: 'Press Start 2P', monospace;
  cursor: pointer;
}

.chart-editor {
  overflow-y: scroll;
  height: 480px;
  width: 190px;
  height: 480px;
  display: grid;
  grid-template-columns: repeat(4, 60px);
  grid-template-rows: repeat(12, 60px);
  position: absolute;
  left: 40%;
  background-image:
    linear-gradient(0deg, #000000 25%, transparent 25%, transparent 75%, #000000 75%),
    linear-gradient(90deg, #000000 25%, transparent 25%, transparent 75%, #000000 75%);
  background-size: 60px 60px;
  background-color: #000000;
  border: 2px solid rgb(39, 39, 39);
  overflow-y: scroll;
}
input[type="text"] {
  background-color: #111;
  color: white;
  border: 1px solid #555;
  padding: 5px;
  font-size: 14px;
  width: 200px;
  font-family: 'Press Start 2P', monospace;
}
