body {
  overflow: clip;
  font-family: "Jost", sans-serif;
  font-weight: bold;
  font-style: normal;
}

button {
  background: #f8fafc;
  border-radius: 6px;
  padding: 4px 8px;
}

/* width */
::-webkit-scrollbar {
  height: 4px;
  width: 4px;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: #888;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #555;
}

#root {
  width: 100vw;
  height: 100vh;
}

#loading {
  position: absolute;
  z-index: 20;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background-color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

#loading > .title {
  font-size: 48px;
}

#spinner {
  display: flex;
  gap: 20px;
}

.dice-spinner {
  width: 32px;
  height: 32px;
}

#game {
  width: 100%;
  height: 100%;
}

#lobby {
  position: absolute;
  z-index: 10;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  padding: 24px;
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  border-radius: 8px;
  transition: all 1s ease-in-out;
  gap: 20px;
  align-items: center;
}

#lobby.hide {
  top: -100%;
}

#lobby .title {
  font-size: 24px;
}

#lobby #top {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: start;
}

#userState {
  display: flex;
  gap: 4px;
  align-items: center;
}

#badge {
  width: 6px;
  height: 6px;
  border-radius: 100%;
  background-color: #16a34a;
}

#userId {
  font-size: 12px;
}

#queueLoading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

#yacht {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

#gameEnd {
  z-index: 20;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
}

#gameEnd.hide {
  display: none;
}

#result {
  display: flex;
  gap: 16px;
  flex-direction: column;
  padding: 24px;
  background-color: white;
  border-radius: 8px;
}

#combination {
  position: absolute;
  top: 30%;
  font-size: 44px;
  font-weight: bold;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  color: white;
}

#combination.hide {
  display: none;
}

#info {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: end;
  gap: 8px;
}

#fullscreen {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 10;
  width: 32px;
  height: 32px;
  padding: 2px;
}

#whoseTurn {
  padding: 8px;
  font-size: 20px;
  background-color: white;
  border-radius: 8px;
  background-color: white;
}

#leftRolls {
  padding: 8px;
  font-size: 20px;
  background-color: white;
  border-radius: 8px;
  background-color: white;
}

#controls {
  position: absolute;
  z-index: 10;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#row {
  display: flex;
  gap: 8px;
}

#scoreSheet {
  background: rgba(255, 255, 255, 0.6);
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(9.3px);
  -webkit-backdrop-filter: blur(9.3px);
  border: 1px solid rgba(255, 255, 255, 0.23);
  padding: 12px;
  z-index: 10;
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 16px;
  left: 8px;
  bottom: 8px;
  transition: all 0.5s ease-in-out;
  max-height: calc(100% - 16px);
}

#scoreSheet.hide {
  transform: translateY(calc(100% - 56px));
}

#scoreSheetToggle {
  height: 32px;
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
}

#scoreSheet > #scoreSheetToggle > img {
  height: 24px;
  width: 24px;
  transition: all 0.5s ease-in-out;
  transform: rotate(180deg);
}

#scoreSheet.hide > #scoreSheetToggle > img {
  transform: rotate(360deg);
}

#columnsContainer {
  overflow-y: auto; 
}

#columns {
  display: flex;
  gap: 16px;
}

#columns > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

#columns button {
  width: 72px;
  height: 32px;
  background: transparent;
  font-weight: bold;
  color: #aaaaaa;
}

#columns button.selected {
  background: transparent;
  color: black;
}

#columns button:not(.selected):hover {
  background: white;
  color: #222222;
}

#index {
  padding-right: 20px;
}

#index > p {
  height: 32px;
}

#player1Id {
  height: 32px;
}

#player2Id {
  height: 32px;
}

#canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.title {
  font-weight: bold;
  border-bottom: 4px solid #16a34a;
}
