@font-face {
  font-family: "blocky";
  src: url("../fonts/m6x11plus.ttf");
}

.root {
  height: 100%;
  width: 100%;
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes borderSpin {
  0% {
    clip-path: polygon(0 0, 100% 0, 100% 10%, 0 10%);
  }
  12.5% {
    clip-path: polygon(90% 0, 100% 0, 100% 100%, 90% 100%);
  }
  25% {
    clip-path: polygon(0 90%, 100% 90%, 100% 100%, 0 100%);
  }
  37.5% {
    clip-path: polygon(0 0, 10% 0, 10% 100%, 0 100%);
  }
  50% {
    clip-path: polygon(0 0, 100% 0, 100% 10%, 0 10%);
  }
  62.5% {
    clip-path: polygon(90% 0, 100% 0, 100% 100%, 90% 100%);
  }
  75% {
    clip-path: polygon(0 90%, 100% 90%, 100% 100%, 0 100%);
  }
  87.5% {
    clip-path: polygon(0 0, 10% 0, 10% 100%, 0 100%);
  }
  100% {
    clip-path: polygon(0 0, 100% 0, 100% 10%, 0 10%);
  }
}

.right {
  float: right;
}

body {
  /* So the whole viewport can be used by the square. */
  margin: 0;
  /*transition: all 0.2s ease;*/
  overflow: hidden;
  font-family: sans-serif;
  transition: background-color 0.3s ease, color 0.3s ease;
}

body.darkable.darkmode {
  background-color: #333333;
}

#side-panel {
  display: flex;
  position: absolute;
  top: 0;
  left: calc(100% - 3vmin);
  width: 30vmin;
  height: 100%;
  background-color: #333;
  color: #fff;
  transition: transform 0.3s ease;
  padding: 20px;
  box-sizing: border-box;
  border-radius: 0 0 0 3vmin;
  overflow: hidden;
  box-shadow: #88888888 0 0 1vmin;
}

#side-panel:hover {
  transform: translate(-27vmin, 0);
}

#side-panel h2 {
  transform: rotate(-90deg);
  margin-top: 1.4vmin;
  margin-left: -4.4vmin;
  padding-right: 0.5vmin;
  font-size: 2.5vmin;
  background-image: linear-gradient(to left, #0066aa, transparent);
  user-select: none;
}

#side-panel-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#event-icons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.flex {
  position: fixed;
  display: flex;
  /*align-items: center;*/
  /*justify-content: center;*/
}

.flex-center {
  align-items: center;
  justify-content: center;
}

.column {
  flex-direction: column;
}

.playerBoat {
  position: absolute;
  width: 30%;
  height: auto;
}

.input-uppercase {
  width: 50%;
  margin-left: 25%;
  text-transform: uppercase;
  border-radius: 4cqw;
}

.single-line-textarea {
  overflow: hidden;
  resize: none;
  scrollbar-width: none;
}

#game-code {
  margin: 0 auto;
  font-size: 4rem;
  text-align: center;
  z-index: 100;
}

::placeholder {
  text-align: center;
}

#game-code.darkmode {
  color: #ffffff;
  background-color: #555555;
}

#nickname {
  margin: 0 auto;
  font-size: 3rem;
  text-align: center;
  z-index: 100;
}

#nickname.darkmode {
  color: #ffffff;
  background-color: #555555;
}

/* For Safari, which doesn't yet support `scrollbar-width`: */
.single-line-textarea::-webkit-scrollbar {
  display: none;
}

.hidden {
  display: none !important;
}

#join-button {
  margin: 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 2px solid #0088cc;
  background-color: #22bbff;
  color: #ffffff;
  padding: 5px 10px;
  transition: all 0.2s ease;
  border-radius: 4cqw;
  width: 35%;
  font-size: 3rem;
  z-index: 100;
}

#join-button.darkmode {
  color: #ffffff;
}

#join-button:active {
  border: 2px solid #000000;
  background-color: #33ccff;
  color: #ffffff;
}

#ready-button:active {
  border: 2px solid #000000;
  background-color: #33ccff;
  color: #ffffff;
}

#join-button:disabled,
#join-button[disabled] {
  border: 2px solid #999999;
  background-color: #cccccc;
  color: #666666;
  border-radius: 1cqw;
  margin-left: 37.5%;
  width: 25%;
}

#join-button:disabled.darkmode,
#join-button[disabled].darkmode {
  border: 2px solid #222222;
  background-color: #666666;
  color: #ffffff;
}

#ready-button {
  isolation: isolate;
  position: absolute;
  width: 100%;
  height: 100%;
  margin: 0;
  line-height: 1.1;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 2px solid #0088cc;
  background-color: #5cceff;
  color: #ffffff;
  transition: all 0.2s ease;
  cursor: pointer;
}

#ready-button[aria-disabled="true"] {
  background-color: #cccccc;
  border-color: #999999;
  color: #666666;
  cursor: not-allowed;
  opacity: 0.7;
  pointer-events: none;
}

#ready-button .ready-text {
  font-size: 3rem;
  margin: 0;
}

#ready-button:hover:not([aria-disabled="true"]) {
  background-color: #33ccff;
}

/* Circling border animation */
#ready-button:not([aria-disabled="true"]):not(
    [style*="background-color: rgb(68, 170, 68)"]
  ):not([style*="background-color: #44AA44"])::before {
  content: "";
  position: absolute;
  inset: -1vmin;
  border: 1vmin solid #22bbff;
  border-radius: inherit;
  opacity: 0.8;
  clip-path: polygon(0 0, 100% 0, 100% 10%, 0 10%);
  animation: borderSpin 3s linear infinite;
  z-index: -1;
  pointer-events: none;
}

#ready-button.darkmode {
  color: #ffffff;
}

#ready-button.darkmode[aria-disabled="true"] {
  background-color: #444444;
  border-color: #222222;
  color: #888888;
}

#ready-button:focus-visible {
  outline: 3px solid #22bbff;
  outline-offset: 2px;
}

#ready-button.not-ready {
  background-color: #ff4444;
  border-color: #cc0000;
}

#ready-button.not-ready:hover:not([aria-disabled="true"]) {
  background-color: #ff5555;
}

#ready-button[aria-disabled="true"] + .ready-text {
  color: #666666;
  opacity: 0.7;
}

#ready-button.darkmode[aria-disabled="true"] + .ready-text {
  color: #888888;
}

#settings-button {
  border: 2px solid #999999;
  text-align: center;
  font-size: 4rem;
  background-color: #cccccc;
  color: #666666;
  border-radius: 4cqw 4cqw 0 0;
  width: 40vmin;
  height: 10vmin;
  margin-top: calc(100cqh - 25vmin);
  margin-left: -8vmin;
  position: absolute;
  align-self: flex-start;
  justify-self: flex-end;
  margin-bottom: 0;
  transition: all 0.2s ease;
  transform: translate(0, 0) rotate(45deg);
  user-select: none;
}

#settings-button.open {
  transform: translate(73vmin, -73vmin) rotate(45deg);
}

#settings-button.darkmode {
  color: #ffffff;
  background-color: #666666;
  border: 4px solid #222222;
}

#settings-div {
  border: 4px solid #999999;
  text-align: center;
  font-size: 3rem;
  background-color: #cccccc;
  color: #666666;
  border-radius: 2cqw 2cqw 0 0;
  width: 100%;
  height: 15%;
  position: fixed;
  top: 100%;
  transition: all 0.2s ease;
}

#settings-div.darkmode {
  color: #ffffff;
  background-color: #666666;
  border: 4px solid #222222;
}

.toggle {
  position: relative;
  display: inline-block;
  width: 10cqw;
  height: 5cqw;
}

.toggle input {
  display: none;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #444444;
  transition: 0.4s;
  border-radius: 5cqw;
}

.slider:before {
  position: absolute;
  content: "";
  height: 4cqw;
  width: 4cqw;
  left: 0.5cqw;
  bottom: 0.5cqw;
  background-color: #ffffff;
  transition: all 0.2s ease;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #11aadd;
}

input:checked + .slider:before {
  transform: translateX(5cqw);
}

#skin-back {
  position: absolute;
  margin-top: 1%;
  left: 21%;
  width: 10%;
  height: auto;
  cursor: pointer;
  transform: rotate(180deg);
  filter: brightness(50%);
}

#skin-back.darkmode {
  filter: brightness(100%);
}

#skin-next {
  position: absolute;
  margin-top: 1%;
  left: 70%;
  width: 10%;
  height: auto;
  cursor: pointer;
  filter: brightness(50%);
}

#skin-next.darkmode {
  filter: brightness(100%);
}

/* Desktop Styles */
#lobby-code {
  font-size: 4rem;
  text-align: center;
  margin: 20px;
  min-height: 60px;
}

#create-lobby {
  font-size: 2rem;
  padding: 15px 30px;
  margin: 10px;
  border: 2px solid #0088cc;
  background-color: #22bbff;
  color: #ffffff;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s ease;
}

#create-lobby:hover {
  background-color: #33ccff;
}

#settings-btn-desktop {
  position: fixed;
  bottom: 20px;
  right: 20px;
  font-size: 1.5rem;
  padding: 10px 20px;
  border: 2px solid #999999;
  background-color: #cccccc;
  color: #666666;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s ease;
  z-index: 1000;
  user-select: none;
}

#settings-btn-desktop.darkmode {
  color: #ffffff;
  background-color: #666666;
  border-color: #222222;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 2000;
}

.modal-content {
  position: relative;
  background-color: #ffffff;
  margin: 10% auto;
  padding: 20px;
  width: 70%;
  max-width: 800px;
  border-radius: 8px;
}

.modal-content.darkmode {
  background-color: #444444;
  color: #ffffff;
}

.tab-container {
  display: flex;
  border-bottom: 2px solid #cccccc;
  margin-bottom: 20px;
}

.tab-button {
  padding: 10px 20px;
  font-size: 1.2rem;
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.6;
}

.tab-button.darkmode {
  color: #ffffff;
}

.tab-button.active {
  opacity: 1;
  border-bottom: 2px solid #22bbff;
}

.tab-panel {
  display: none;
  padding: 20px;
}

.tab-panel.active {
  display: block;
}

.tab-panel.darkmode {
  color: FFFFFF;
}

#close-settings {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px 10px;
}

#close-settings.darkmode {
  color: #ffffff;
}

/* Desktop Overlay and Room Code */
#lobby-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

#game-logo {
  width: 200px;
  height: auto;
  margin-bottom: 30px;
}

#room-code {
  position: fixed;
  top: 1vmin;
  left: 2vmin; /* Leave space for settings button */
  font-size: 3rem;
  padding: 10px 20px;
  z-index: 100;
  background-color: #a9e5ff;
  border-radius: 8px;
  transition: all 0.2s ease;
  z-index: 100;
  transition: opacity 0.3s ease;
}

#room-code.darkmode {
  color: #ffffff;
  background-color: #444444;
}

#room-code img {
  width: 100%;
  height: auto;
  max-height: 40vmin;
  image-rendering: pixelated;
  transition: max-height 1.5s ease;
}

#room-code.minimized {
  opacity: 0.5;
  font-size: 2rem;
}
#room-code.minimized img {
  max-height: 0;
}

#create-lobby {
  font-size: 2rem;
  padding: 15px 30px;
  margin: 10px;
  border: 2px solid #0088cc;
  background-color: #22bbff;
  color: #ffffff;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s ease;
}

#create-lobby:hover {
  background-color: #33ccff;
}

/* Ensure game grid stays centered */
#sqr.grid {
  position: relative;
  margin: auto;
}

/* Game Container Layout */
.game-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  width: 100%;
  height: 100vh;
}

/* Player List Styles */
#player-list {
  width: 250px;
  background-color: #ffffff;
  padding: 1rem;
  border-radius: 8px;
  height: calc(100vh - 80px);
  overflow-y: auto;
  left: 0;
  top: 0;
  z-index: 1000;
  position: fixed;
  margin: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#player-list.darkmode {
  background-color: #444444;
  color: #ffffff;
}

#player-list h2 {
  text-align: center;
  margin-bottom: 1rem;
  font-size: 2rem;
}

.player-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  margin: 4px 0;
  border-radius: 4px;
  animation: none;
}

.player-item.highlight {
  animation: highlight-fade 2s ease-out;
}

@keyframes highlight-fade {
  0% {
    background-color: rgba(255, 255, 0, 0.3);
  }
  100% {
    background-color: transparent;
  }
}

.player-item img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

#game-title {
  color: #ffffff;
  font-size: 1rem;
  margin: 0;
}

#error-message {
  display: none;
  color: red;
  position: absolute;
  margin-top: 50vmin;
  font-size: 3rem;
  font-weight: bold;
  background-image: linear-gradient(
    to right,
    #00000000 0%,
    #444444ff 50%,
    #00000000 100%
  );
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.settings-group {
  margin: 20px 0;
  padding: 15px;
  border: 1px solid #cccccc;
  border-radius: 4px;
}

.settings-group.darkmode {
  background-color: #484848;
  color: #ffffff;
}

.settings-group h3 {
  margin-top: 0;
  margin-bottom: 15px;
}

.setting-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 10px 0;
  padding: 5px 0;
}

.setting-item label {
  font-size: 1.1rem;
}

.setting-item input[type="range"] {
  width: 200px;
}

/* Range input styling */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  background: #d3d3d3;
  height: 5px;
  border-radius: 2px;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 15px;
  height: 15px;
  background: #22bbff;
  border-radius: 50%;
  cursor: pointer;
}

.setting-item .toggle {
  width: 50px;
  height: 25px;
}

.setting-item .slider:before {
  height: 19px;
  width: 19px;
  left: 3px;
  bottom: 3px;
}

.setting-item input:checked + .slider:before {
  transform: translateX(25px);
}

.ready-checkbox {
  width: 20px;
  height: 20px;
  border: 2px solid #666;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 10px;
  color: #22bbff;
  font-weight: bold;
}

.ready-checkbox.modern {
  border-radius: 4px;
}

.ready-checkbox.checked {
  background-color: #ffffff;
}

.ready-checkbox.checked.darkmode {
  background-color: #444444;
  border-color: #22bbff;
}

/* Gray out skin selector arrows when ready */
#skin-back.disabled,
#skin-next.disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Disabled controls when ready */
input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Player list item highlight effects */
@keyframes nickname-change-flash {
  0%,
  100% {
    color: inherit;
  }
  50% {
    color: #ff9933;
  } /* Orange flash for nickname changes */
}

@keyframes skin-change-flash {
  0%,
  100% {
    filter: brightness(100%);
  }
  50% {
    filter: brightness(150%) drop-shadow(0 0 5px #3399ff);
  } /* Blue glow for skin changes */
}

.nickname-changed {
  animation: nickname-change-flash 1s ease-in-out;
}

.skin-changed {
  animation: skin-change-flash 1s ease-in-out;
}

/* Existing highlight animation for new players */
.highlight {
  animation: join-flash 2s ease-in-out;
}

@keyframes join-flash {
  0%,
  100% {
    background-color: transparent;
  }
  50% {
    background-color: rgba(51, 255, 51, 0.3);
  } /* Green flash for joins */
}

@keyframes slideAnimationUL {
  0% {
    transform: translate(0, 0) rotate(-90deg);
  }
  50% {
    transform: translate(0, 8px) rotate(-90deg);
  }
  100% {
    transform: translate(0, 0) rotate(-90deg);
  }
}

@keyframes slideAnimationUR {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  50% {
    transform: translate(-8px, 0) rotate(0deg);
  }
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
}

@keyframes slideAnimationLL {
  0% {
    transform: translate(0, 0) rotate(180deg);
  }
  50% {
    transform: translate(8px, 0) rotate(180deg);
  }
  100% {
    transform: translate(0, 0) rotate(180deg);
  }
}

@keyframes slideAnimationLR {
  0% {
    transform: translate(0, 0) rotate(90deg);
  }
  50% {
    transform: translate(0, -8px) rotate(90deg);
  }
  100% {
    transform: translate(0, 0) rotate(90deg);
  }
}

.direction-arrow {
  position: absolute;
  width: 10%;
  height: auto;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 200;
  pointer-events: none;
}

/* Arrow positions and rotations */
.top-arrow {
  left: calc(15cqw + 15cqw);
  top: calc(10cqw + 18.01cqw);
  animation: slideAnimationUL 1.5s ease-in-out infinite;
}

.right-arrow {
  left: calc(15cqw + 44.9cqw);
  top: calc(10cqw + 18.01cqw);
  animation: slideAnimationUR 1.5s ease-in;
}

.bottom-arrow {
  left: calc(15cqw + 44.9cqw);
  top: calc(10cqw + 48cqw);
  animation: slideAnimationLR 1.5s ease-in-out infinite;
}

.left-arrow {
  left: calc(15cqw + 15cqw);
  top: calc(10cqw + 48cqw);
  animation: slideAnimationLL 1.5s ease-in-out infinite;
}

/* Arrow styling */
.direction-arrow::before {
  border-width: 15px 25px 15px 0;
  border-color: transparent rgba(255, 0, 0, 0.5) transparent transparent;
}

/* Show arrows when game is joined */
.game-joined .direction-arrow {
  opacity: 0.5;
}

@keyframes borderSpin {
  0% {
    clip-path: polygon(0 0, 100% 0, 100% 10%, 0 10%);
  }
  12.5% {
    clip-path: polygon(90% 0, 100% 0, 100% 100%, 90% 100%);
  }
  25% {
    clip-path: polygon(0 90%, 100% 90%, 100% 100%, 0 100%);
  }
  37.5% {
    clip-path: polygon(0 0, 10% 0, 10% 100%, 0 100%);
  }
  50% {
    clip-path: polygon(0 0, 100% 0, 100% 10%, 0 10%);
  }
  62.5% {
    clip-path: polygon(90% 0, 100% 0, 100% 100%, 90% 100%);
  }
  75% {
    clip-path: polygon(0 90%, 100% 90%, 100% 100%, 0 100%);
  }
  87.5% {
    clip-path: polygon(0 0, 10% 0, 10% 100%, 0 100%);
  }
  100% {
    clip-path: polygon(0 0, 100% 0, 100% 10%, 0 10%);
  }
}

.ready-wrapper {
  position: relative;
  width: 40%;
  height: 10vmin;
  margin: 3% auto 0;
}

.ready-text {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  font-size: 3rem;
  color: #ffffff;
  pointer-events: none;
  z-index: 1;
}

.ready-text.darkmode {
  color: #ffffff;
}

#background-art {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: auto;
  object-fit: cover;
  z-index: -1;
  pointer-events: none;
  opacity: 1;
  transition: opacity 1.25s ease, height 2.5s ease;
  mask-image: linear-gradient(to right, black, transparent);
  cursor: none;
}
#background-art.minimized {
  opacity: 0;
  height: 102.5%;
}

/* Actor Display Styles */
#actor-display {
  position: fixed;
  top: 0;
  right: 0;
  width: 30vw;
  height: 100vh;
  pointer-events: none;
  opacity: 0;
  transform: translateX(50%);
  transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
}

#actor-display.visible {
  opacity: 1;
  transform: translateX(-10%);
}

#actor-art {
  position: absolute;
  bottom: 0;
  right: 0;
  height: 90vh;
  width: auto;
  object-fit: contain;
  user-select: none;
}

#actor-name {
  position: absolute;
  bottom: -30vh;
  right: -57vmin;
  height: 100vmin;
  width: 25vmin;
  transform: rotate(-90deg) translateY(-20%);
  transform-origin: center;
  font-size: 6rem;
  font-weight: bold;
  color: white;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
  opacity: 0;
  transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
  margin: 0;
  white-space: nowrap;
}

#actor-display #actor-name repeat {
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

#actor-display.visible #actor-name repeat {
  opacity: 0.05;
}

#actor-display.visible #actor-name {
  opacity: 1;
  transform: rotate(-90deg) translateY(0);
}

#area-label {
  position: absolute;
  bottom: 0.5rem;
  left: 0.5rem;
  font-size: 4rem;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  opacity: 0;
  transition: opacity 20s ease;
  background-image: linear-gradient(
    to right,
    #00000000 0%,
    #88888822 50%,
    #00000000 100%
  );
  user-select: none;
}

#area-label.visible {
  opacity: 1;
  transition-delay: 1s;
  transition: opacity 1s ease;
}

#area-label div {
  position: absolute;
  left: -0.5rem;
  bottom: 4.4rem;
  width: 100%;
  height: 0.25rem;
  background-image: linear-gradient(to right, #2288ffff 0%, #2288ff00 100%);
}

#dice-container {
  margin: 0 auto; /* Center the container */
  padding: 15px;
  border: 2px solid #444;
  border-radius: 10px;
  background: linear-gradient(
    135deg,
    #1a1a3a44,
    #0e0e2a44
  ); /* Simplify gradient to two colors */
  color: #f0f0f0;
  width: 95%; /* Adjust width to 95% */
  height: 50vh; /* Utilize more vertical space */
  overflow-y: auto; /* Ensure scrollability if content overflows */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  transition: box-shadow 0.2s, transform 0.2s;
}

#dice-box {
  display: flex; /* Stack inputs horizontally */
  gap: 10px; /* Add spacing between inputs */
  flex-wrap: wrap; /* Ensure inputs wrap if needed */
}

#dice-box label {
  color: #aabbee;
  font-weight: bold;
  margin-bottom: 5px;
  display: block;
}

#dice-box input {
  flex: 1; /* Allow inputs to share space equally */
  padding: 10px;
  border: 1px solid #555;
  border-radius: 5px;
  background-color: #222;
  color: #f0f0f0;
}

#dice-box select {
  margin-top: 10px; /* Add spacing above dropdown */
  width: 100%; /* Ensure dropdown takes full width */
  padding: 10px;
  border: 1px solid #555;
  border-radius: 5px;
  background-color: #222;
  color: #f0f0f0;
}

#roll-button {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 5px;
  background: linear-gradient(135deg, #4a6a8a, #3a5a7a);
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}

#roll-button:hover {
  background: linear-gradient(
    135deg,
    #4a6a8a,
    #3a5a7a
  ); /* Remove hover effects */
  box-shadow: none; /* No lingering effects */
}

#roll-button:active {
  background: linear-gradient(135deg, #5a7a9a, #4a6a8a);
  box-shadow: 0 6px 12px rgba(90, 122, 154, 0.7);
}

#matrix-mode {
  display: none; /* Initially hidden */
  position: relative; /* Ensure it aligns properly */
  margin-top: 20px; /* Add spacing below the dropdown */
  width: 100%; /* Full width to align with other elements */
  height: auto; /* Adjust height dynamically */
  justify-content: center; /* Center content horizontally */
  align-items: center; /* Center content vertically */
}
