@import url("https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css");

@font-face {
  font-family: "Gotham-Medium";
  src: url("gothampro_medium.ttf") format("opentype");
  font-style: medium;
}

@font-face {
  font-family: 'Proxima Nova Rg';
  src: url("proxima-nova-regular.ttf") format("opentype");
}

@font-face {
  font-family: 'Proxima Nova Bold';
  src: url("proxima-nova-bold.ttf") format("opentype");
}

@font-face {
  font-family: 'Locomotype GigaSansBold';
  src: url("locomotype-gigasans-bold.ttf") format("opentype");
}

* {
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
}

*:focus-visible {
  outline: none !important;
}

html,
body {
  background-size: cover;
  margin: 0;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

button:focus-visible {
  outline: none !important;
  outline: 0.3vh solid #4a90e2 !important;
  outline: -webkit-focus-ring-color auto 0.7vh !important;
}

a {
  text-decoration: none;
}

#dialog_container {
  font-family: 'Proxima Nova Rg', "Gotham-Medium", Helvetica;
  letter-spacing: -0.2px;
  font-size: 0.82vw;
  background-color: #131313;
  position: fixed;
  text-align: center;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 2.78vh;
  min-width: 62.96vh;
  max-width: 120vh;
  width: auto;
  border-radius: 0.926vh;
  box-shadow: 0 0 1vh rgba(0, 0, 0, 0.5);
  overflow: hidden;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8) translateY(-2vh);
  animation: dia 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  z-index: 1000;
}

#dialog_container::before {
  content: "";
  position: fixed;
  width: 43.42vh;
  height: 10.93vh;
  top: -20.37vh;
  left: 50%;
  transform: translateX(-50%);
  background-color: #fed179;
  border-radius: 21.70vh / 5.46vh;
  filter: blur(13.89vh);
  opacity: 0;
  animation: glowPulse 2s ease-in-out 0.5s infinite alternate, fadeIn 0.8s ease-out 0.6s forwards;
}

.dialogHeader {
  font-size: 2.04vh;
  color: #ffffff;
  font-family: "Gotham-Medium", Helvetica;
  font-weight: 500;
  text-align: left;
  letter-spacing: 0;
  text-transform: uppercase;
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 2vh;
  opacity: 0;
  transform: translateX(-1vh);
  animation: slideInLeft 0.5s ease-out 0.2s forwards;
}

.dialogHeader::after {
  content: "";
  flex-grow: 1;
  height: 1px;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0));
  align-self: center;
  display: block;
  margin-bottom: 7px;
}

.buttons {
  margin-top: 15px;
  display: flex;
  justify-content: space-between;
  user-select: none;
  gap: 1vh;
  opacity: 0;
  transform: translateY(1vh);
  animation: slideInUp 0.5s ease-out 0.4s forwards;
}

.clickBtn1 {
  white-space: nowrap;
  width: 100%;
  height: 6.57vh;
  justify-content: center;
  gap: 1.08vh;
  padding: 2.59vh 13.89vh;
  border-radius: 0.926vh;
  backdrop-filter: blur(0.39vh) brightness(100%);
  -webkit-backdrop-filter: blur(0.39vh) brightness(100%);
  background: linear-gradient(45deg, rgba(255, 185, 55, 1) 0%, rgba(253, 213, 129, 1) 100%);
  display: flex;
  align-items: center;
  overflow: hidden;
  font-size: 1.67vh;
  font-family: "Gotham-Medium", Helvetica;
  font-weight: 500;
  color: #131313;
  cursor: pointer;
  border: none;
  text-transform: uppercase;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.clickBtn1::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.clickBtn1:hover {
  transform: translateY(-0.2vh);
  box-shadow: 0 0.5vh 1.5vh rgba(255, 185, 55, 0.4);
  background: linear-gradient(45deg, rgba(255, 195, 75, 1) 0%, rgba(253, 223, 149, 1) 100%);
}

.clickBtn1:hover::before {
  left: 100%;
}

.clickBtn1:active {
  transform: translateY(0);
  box-shadow: 0 0.2vh 0.8vh rgba(255, 185, 55, 0.3);
}

.clickBtn2 {
  white-space: nowrap;
  width: 100%;
  height: 6.57vh;
  justify-content: center;
  gap: 1.08vh;
  padding: 2.59vh 13.89vh;
  border-radius: 0.926vh;
  background-color: #131313;
  border: 0.093vh solid #2d2d2d;
  backdrop-filter: blur(0.39vh) brightness(100%);
  -webkit-backdrop-filter: blur(0.39vh) brightness(100%);
  display: flex;
  align-items: center;
  overflow: hidden;
  font-size: 1.67vh;
  font-family: "Gotham-Medium", Helvetica;
  font-weight: 500;
  color: #c9c9c9;
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.clickBtn2:hover {
  background-color: #1a1a1a;
  border-color: #4d4d4d;
  color: #ffffff;
  transform: translateY(-0.2vh);
  box-shadow: 0 0.5vh 1vh rgba(0, 0, 0, 0.3);
}

.clickBtn2:active {
  transform: translateY(0);
  box-shadow: 0 0.2vh 0.5vh rgba(0, 0, 0, 0.2);
}

.dialog_input {
  width: 97%;
  background-color: #00000094;
  outline: 0;
  border: 0.046vh solid #2d2d2d;
  font-family: 'Proxima Nova Rg', "Gotham-Medium", Helvetica;
  padding: 1.5vh 1.5vh;
  margin-top: 10px;
  border-radius: 0.463vh;
  letter-spacing: -0.5px;
  font-size: 1.67vh;
  color: #c9c9c9;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dialog_input:focus {
  border-color: #ffb937;
  background-color: #1a1a1a;
  color: #ffffff;
  box-shadow: 0 0 1vh rgba(255, 185, 55, 0.3);
}

.dialogItem {
  width: 100%;
  gap: 0.93vh;
  padding: 1.94vh 1.85vh;
  background-color: #00000094;
  border-radius: 0.463vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 0.046vh solid #2d2d2d;
  margin-bottom: 0.93vh;
  cursor: pointer;
  text-align: center;
  color: #c9c9c9;
  font-family: "Gotham-Medium", Helvetica;
  font-weight: 500;
  letter-spacing: -0.5px;
  font-size: 1.67vh;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(0);
  position: relative;
  opacity: 0;
  animation: slideInItem 0.4s ease-out forwards;
}

.dialogItem::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, rgba(255, 185, 55, 0.1) 0%, rgba(253, 213, 129, 0.1) 100%);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 0.463vh;
}

.dialogItem:hover {
  background-color: #1a1a1a;
  transform: translateX(0.5vh);
  border-color: #3d3d3d;
}

.dialogItem:hover::before {
  width: 100%;
}

.dialogItem:last-child {
  margin-bottom: 0;
}

.dialog-tablist-headers {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  align-self: end;
}

.dialogItemHeader {
  margin-left: 10px;
  min-width: 200px;
  margin-right: 10px;
}

.styleDialogTablist {
  padding-left: 10px;
  padding-right: 10px;
  font-size: 1.67vh;
  color: #c9c9c9;
  letter-spacing: -0.5px;
  opacity: 0.6;
  text-transform: uppercase;
  border-radius: 9px;
  transition: 0.5s;
  margin-bottom: 10px;
  font-family: "Gotham-Medium", Helvetica;
}

/* List-specific styles */
.dialog-list-container {
  max-height: 40vh;
  width: 100%;
  margin-top: 10px;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
  opacity: 0;
  animation: fadeInUp 0.6s ease-out 0.3s forwards;
}

/* Non-list dialogs (hide scrollbar) */
.dialogText {
  max-height: 25vh;
  width: 100%;
  margin-top: 10px;
  color: #f8f8f8;
  font-family: "Gotham-Medium", Helvetica;
  font-size: 1.67vh;
  overflow-y: auto;
  overflow-x: hidden;
  text-align: left;
  opacity: 0;
  animation: fadeInUp 0.6s ease-out 0.3s forwards;
}

/* Hide scrollbar for non-list dialogs */
.dialogText::-webkit-scrollbar {
  display: none;
}

/* Custom scrollbar for list dialogs */
.dialog-list-container::-webkit-scrollbar {
  width: 0.28vh;
}

.dialog-list-container::-webkit-scrollbar-track {
  background: transparent;
}

.dialog-list-container::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(255, 185, 55, 1) 0%, rgba(253, 213, 129, 1) 100%);
  border-radius: 9.26vh;
  transition: background 0.3s ease;
}

.dialog-list-container::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(255, 215, 75, 1) 0%, rgba(253, 233, 149, 1) 100%);
}

/* Mouse wheel scrolling for list dialogs */
.dialog-list-container {
  scrollbar-width: thin;
  scrollbar-color: #ffb937 transparent;
}

/* Color spans */
span {
  color: var(--i);
  transition: 0.4s;
  position: relative;
  z-index: 1;
}

.dialogItem:hover span {
  color: var(--g);
}

/* Active states */
.dialog-white_back {
  background-color: #3a3a3a;
  color: #fff;
  border: 0.046vh solid #ffb937;
  transform: translateX(0.7vh);
  box-shadow: 0 0 1vh rgba(255, 185, 55, 0.3);
}

.dialog-white_back::before {
  width: 100%;
  background: linear-gradient(90deg, rgba(255, 185, 55, 0.2) 0%, rgba(253, 213, 129, 0.2) 100%);
}

.dialog-active_text {
  color: #fff;
  font-weight: bold;
  text-shadow: 0 0 0.5vh rgba(255, 185, 55, 0.3);
}

.dialog-white_back:hover {
  background-color: #3a3a3a;
}

.dialog-white_back:hover span {
  color: #fff;
}

.dialog-noback {
  background: none;
  border: 0;
}

/* Focus states */
.dialogItem:focus-visible {
  outline: 0.2vh solid #ffb937;
  outline-offset: 0.2vh;
}

.clickBtn1:focus-visible,
.clickBtn2:focus-visible {
  outline: 0.2vh solid #ffb937;
  outline-offset: 0.2vh;
}

/* Animations */
@keyframes dia {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8) translateY(-2vh);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) translateY(0);
  }
}

@keyframes slideInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(1vh);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes glowPulse {
  0% {
    transform: translateX(-50%) scale(1);
    filter: blur(13.89vh);
  }
  100% {
    transform: translateX(-50%) scale(1.1);
    filter: blur(15vh);
  }
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@keyframes slideInItem {
  from {
    opacity: 0;
    transform: translateX(-2vh);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Staggered animation delays for list items */
.dialogItem:nth-child(1) {
  animation-delay: 0.1s;
}

.dialogItem:nth-child(2) {
  animation-delay: 0.15s;
}

.dialogItem:nth-child(3) {
  animation-delay: 0.2s;
}

.dialogItem:nth-child(4) {
  animation-delay: 0.25s;
}

.dialogItem:nth-child(5) {
  animation-delay: 0.3s;
}

.dialogItem:nth-child(6) {
  animation-delay: 0.35s;
}

.dialogItem:nth-child(7) {
  animation-delay: 0.4s;
}

.dialogItem:nth-child(8) {
  animation-delay: 0.45s;
}

/* Closing animation */
#dialog_container.closing {
  animation: dialogDisappear 0.3s cubic-bezier(0.55, 0.085, 0.68, 0.53) forwards;
}

@keyframes dialogDisappear {
  to {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9) translateY(1vh);
  }
}

/* Smooth scrolling animation */
@keyframes smoothScroll {
  from {
    scroll-position: 0;
  }
  to {
    scroll-position: var(--target-scroll);
  }
}

/* Tablist headers animation */
.dialog-tablist-headers {
  opacity: 0;
  transform: translateY(-1vh);
  animation: fadeInUp 0.5s ease-out 0.3s forwards;
}

/* Responsive adjustments */
@media (max-height: 700px) {
  #dialog_container {
    padding: 2vh;
    min-width: 55vh;
  }
  
  .dialog-list-container {
    max-height: 30vh;
  }
  
  .dialogText {
    max-height: 20vh;
  }
  
  .clickBtn1, .clickBtn2 {
    height: 5.5vh;
    padding: 1.5vh 10vh;
  }
}

/* Mouse wheel scroll indicator animation */
.scroll-indicator {
  position: absolute;
  bottom: 1vh;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 185, 55, 0.7);
  font-size: 1.2vh;
  animation: bounce 2s infinite;
  opacity: 0.7;
  display: none;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-0.5vh);
  }
  60% {
    transform: translateX(-50%) translateY(-0.3vh);
  }
}

/* Show scroll indicator only when content is scrollable */
.dialog-list-container.scrollable ~ .scroll-indicator {
  display: block;
}