html {
  touch-action: manipulation; /* tells browser: no double-tap zoom */
}

:root {
  --s: 50px; /* hex width */
  --h: calc(var(--s) * 1.1547); /* hex height */
  --gap: 4px;
  --row-gap: calc(var(--h) - var(--s) * 0.2885 + var(--gap));
}

body {
  background: white;
  margin: 0;
  /* overflow: hidden; */
  height: 100vh;
  width: 100vw;
  position: relative;
  padding: 0;
}

h1 {
  font-size: 3em;
}

button {
  border-radius: 0px;
}

.grid {
  display: flex;
  position: fixed;
  top: 200px;
  left: 50%;
  width: calc(var(--s) * 7 + var(--s) + var(--gap) * 7);
  height: calc(var(--row-gap) * 10);
  transform: translateX(-50%);
}

.hex {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 16px;
  font-family: monospace;
  color: white;
  position: absolute;
  width: var(--s);
  height: var(--h);
  clip-path: polygon(0% 25%, 0% 75%, 50% 100%, 100% 75%, 100% 25%, 50% 0%);
   -webkit-tap-highlight-color: transparent;
  outline: none;
  cursor: pointer;
  user-select: none;
}

.hole {
  background: black;
}

.occupied {
  background: #3bbaf5;
}
.available {
  background-color: rgba(246, 190, 0);
  transform: scale(1.2);
  cursor: pointer;
}
.selected {
  background-color: #f5793a;
  transform: scale(1.2);
}

.hex.target {
  position: relative;
}

.hex.target::before,
.hex.target::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 2px solid white;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.hex.target::before {
  width: 36px;
  height: 36px;
  top: 50%;
  left: 50%;
}

.hex.target::after {
  width: 18px;
  height: 18px;
  top: 50%;
  left: 50%;
}

/* Dropdown styles */
.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  right: 2.5em;
  border: 2px solid #000;
  border-radius: 12px;
  /* background-color: #b5d9a9; */
  /* min-width: 120px; */
  overflow: hidden;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 2;
  flex-direction: column;
  /* padding-right: 2em; */
}

.dropdown-content button {
  color: #000;
  /* background-color: #b5d9a9; */
  border: none;
  padding: 15px;
  text-align: left;
  font-size: 1em;
  cursor: pointer;
  width: 100%;
  border-bottom: 1px solid #000; /* line between buttons */
}

/* Remove the border from the last button */
.dropdown-content button:last-child {
  border-bottom: none;
}

.dropdown-content button:hover {
  background-color: #3bbaf5;
  /* background-color: #b5d9a9; */
}

#navbar {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f5793a;
  color: #000;
  padding: 10px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
}

#navbar-2 {
  position: fixed;
  top: 70px;
  left: 0;
}
