:root {
  --s: 3vw;  /* size of hexagon  */
  --m: 0.125vw;    /* margin between hexagons */
  --f: calc(1.732 * var(--s) + 4 * var(--m)  - 1px);
}

* {
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none; /* IE 10 and IE 11 */
  user-select: none; /* Standard syntax */
}

main {
  position: absolute;
  display: flex;
  height: calc(100vh - 20px);
  width: calc(100vw - 20px);
}

.bordered-section {
  border: 1px solid black;
}

#players {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  text-align: center;
  width: calc(20% - 5px);
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

.player {
  position: relative;
  padding: 5px;
  text-align: left;
}

.player > .player-name {
  border: 1px solid black;
  border-radius: 5px;
  font-size: 24px;
  width: 65%;
}

.player > .player-rp {
  position: absolute;
  top: 50%;
  right: 5px;
  transform: translateY(-50%);
  font-size: 24px;
}

.player > .player-rp > .player-rp-value {
  display: inline;
  height: 100%;
  vertical-align: middle;
}

.player > .player-rp > .player-rp-button {
  border: none;
  background-color: #008CBA;
  border-radius: 100%;
  width: 20px;
  height: 20px;
  margin: 10px;
  margin-left: 0px;
  margin-right: 0px;
  aspect-ratio: 1;
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none; /* IE 10 and IE 11 */
  user-select: none; /* Standard syntax */
}

.player > .player-rp > .player-rp-button:hover {
  cursor: pointer;
}

#board {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  height: calc(60% - 5px);
  width: calc(60% - 5px);
  font-size: 0;
  overflow: hidden;
}

#tiles {
  grid-column: 1/-1;
  grid-template-columns: repeat(auto-fit, calc(var(--s) + 2*var(--mh)));
  width: 120%;
  height: 120%;
  transform: translate(-10%, -10%);
}

#tiles > .tile {
  position: relative;
  width: var(--s);
  margin: var(--m);
  height: calc(var(--s)*1.1547); 
  display: inline-flex;
  font-size: initial;
  clip-path: polygon(0% 25%, 0% 75%, 50% 100%, 100% 75%, 100% 25%, 50% 0%);
  background: #e6e6e6;
  margin-bottom: calc(var(--m) - var(--s)*0.2885); 
}

#tiles > .tile:nth-child(odd) {
  background: #c2c2c2;
}

#tiles::before {
  content: "";
  width: calc(var(--s)/2 + var(--m));
  float: left;
  height: 120%;
  shape-outside: repeating-linear-gradient(     
    #0000 0 calc(var(--f) - 3px),      
    #000  0 var(--f)
  );
}

#placement {
  position: absolute;
  overflow: auto;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  height: calc(40% - 5px);
  width: calc(60% - 5px);
}

.dropper-color, .dropper-base, .dropper-character {
  text-align: center;
  display: inline-block;
  padding: 15px;
}

.dropper-selectable:hover {
  cursor: pointer;
}

.dropper-color-shape {
  display: flex;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  justify-content: center;
  align-items: center;
  width: var(--s);
  margin: var(--m);
  height: calc(var(--s)*1.1547); 
  clip-path: polygon(0% 25%, 0% 75%, 50% 100%, 100% 75%, 100% 25%, 50% 0%);
}

.dropper-base-shape {
  display: flex;
  width: calc(var(--s) - 15px);
  margin: var(--m);
  height: calc(var(--s)*1.1547 - 15px); 
  clip-path: polygon(0% 25%, 0% 75%, 50% 100%, 100% 75%, 100% 25%, 50% 0%);
  background-color: red;
  justify-content: center;
  align-items: center;
}

.dropper-character-shape {
  display: flex;
  width: calc(var(--s) - 20px);
  height: calc(var(--s) - 20px); 
  margin: var(--m);
  background-color: red;
  justify-content: center;
  align-items: center;
  transform: rotate(45deg);
}

.dropper-character-shape > span {
  transform: rotate(-45deg);
}

.dropper-base-shape > span, .dropper-character-shape > span {
  color: white;
}

.dropper-color-name {
  position: relative;
  max-width: 100%;
}

.tile > * {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(calc(-50% - 2px), calc(-50% - 2px));
}

.tile > *.dropper-character-shape {
  transform: translate(calc(-50% - 2px), calc(-50% - 2px)) rotate(45deg);
}

#settings {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: calc(20% - 5px);
  height: 100%;
}