/* Nebula Sans Font Declarations - Based of 2018 Discord Whitney Declarations, 92.5% scale down is required since Nebula Sans is larger than Whitney */
@font-face {
  font-family: 'Nebula Sans';
  src: url('/assets/fonts/NebulaSans-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  size-adjust: 92.5%;
}

@font-face {
  font-family: 'Nebula Sans';
  src: url('/assets/fonts/NebulaSans-LightItalic.woff2') format('woff2');
  font-weight: 300;
  font-style: italic;
  size-adjust: 92.5%;
}

@font-face {
  font-family: 'Nebula Sans';
  src: url('/assets/fonts/NebulaSans-Book.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  size-adjust: 92.5%;
}

@font-face {
  font-family: 'Nebula Sans';
  src: url('/assets/fonts/NebulaSans-BookItalic.woff2') format('woff2');
  font-weight: 500;
  font-style: italic;
  size-adjust: 92.5%;
}

@font-face {
  font-family: 'Nebula Sans';
  src: url('/assets/fonts/NebulaSans-Medium.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  size-adjust: 92.5%;
}

@font-face {
  font-family: 'Nebula Sans';
  src: url('/assets/fonts/NebulaSans-MediumItalic.woff2') format('woff2');
  font-weight: 600;
  font-style: italic;
  size-adjust: 92.5%;
}

@font-face {
  font-family: 'Nebula Sans';
  src: url('/assets/fonts/NebulaSans-Semibold.woff2') format('woff2');
  font-weight: 650;
  font-style: normal;
  size-adjust: 92.5%;
}

@font-face {
  font-family: 'Nebula Sans';
  src: url('/assets/fonts/NebulaSans-SemiboldItalic.woff2') format('woff2');
  font-weight: 650;
  font-style: italic;
  size-adjust: 92.5%;
}

@font-face {
  font-family: 'Nebula Sans';
  src: url('/assets/fonts/NebulaSans-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  size-adjust: 92.5%;
}

@font-face {
  font-family: 'Nebula Sans';
  src: url('/assets/fonts/NebulaSans-BoldItalic.woff2') format('woff2');
  font-weight: 700;
  font-style: italic;
  size-adjust: 92.5%;
}

@font-face {
  font-family: 'Nebula Sans';
  src: url('/assets/fonts/NebulaSans-Black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  size-adjust: 92.5%;
}

@font-face {
  font-family: 'Nebula Sans';
  src: url('/assets/fonts/NebulaSans-BlackItalic.woff2') format('woff2');
  font-weight: 900;
  font-style: italic;
  size-adjust: 92.5%;
}

#oldcord-loading-container {
  position: fixed;
  inset: 0;
  z-index: 999999;
  pointer-events: none;
  display: grid;
  place-items: center;
  background: #282b30;
  transition: background-color 0.2s ease-in-out;
}

#oldcord-loading-container.new-bg {
  background: #2f3136;
}

.oldcord-loading-content {
  text-align: center;
  padding: 20px;
}

.oldcord-loading-spinner {
  position: relative;
  width: 32px;
  height: 32px;
  margin: 0 auto 24px;
}

.oldcord-loading-spinner-inner {
  position: absolute;
  inset: 0;
  border: 3px solid #7289da;
  border-radius: 50%;
  border-right-color: transparent;
  border-left-color: transparent;
  animation: oldcord-loading-spin 0.8s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

@keyframes oldcord-loading-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* Set base styles for both text elements */
#oldcord-loading-quote,
#oldcord-loading-text,
#oldcord-loading-submitter {
  font-family:
    'Nebula Sans',
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    Oxygen,
    Ubuntu,
    Cantarell,
    sans-serif;
}

#oldcord-loading-quote {
  font-size: 16px;
  font-weight: 600;
  font-style: italic;
  color: #fff;
  text-shadow: 0 2px 10px rgb(0 0 0 / 20%);
  text-transform: uppercase;
}

#oldcord-loading-text {
  margin-top: 16px;
  font-size: 12px;
  font-weight: 400;
  color: rgb(255 255 255 / 60%);
}

/* Move submitter styles before loading-text and increase specificity */
#oldcord-loading-submitter {
  font-size: 10px;
  color: rgb(185 187 190 / 80%); /* Dimmer color for "SUBMITTED BY" and "VIA" */
  font-style: normal;
  text-transform: uppercase;
  line-height: 1.4; /* Increased for better readability */
  margin-left: auto;
  margin-right: auto;
}

#oldcord-loading-submitter span {
  color: rgb(255 255 255 / 70%); /* Whiter color for both name and place */
}

#oldcord-loading-logs {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 400px;
  font-family: Consolas, 'Courier New', monospace; /* Force monospace for logs */
  font-size: 11px;
  max-height: 200px;
  text-align: left;
  color: #b9bbbe;
  padding: 12px;
  background-color: rgb(32 34 37 / 90%); /* Darker, more opaque background */
  border-radius: 5px;
  white-space: pre-line;
  line-height: 18px;
  z-index: 999999;
  box-shadow: 0 2px 10px rgb(0 0 0 / 20%);
  pointer-events: all;
  user-select: text;
  overflow-y: scroll;
  display: none; /* Hide by default */
  opacity: 0;
  transition: opacity 0.3s ease;
}

#oldcord-loading-logs.visible {
  display: block;
  opacity: 0.9;
}

#oldcord-loading-logs.visible:hover {
  opacity: 1;
}

#oldcord-loading-logs:hover {
  opacity: 1;
}

.error-log {
  color: #f04747;
}

.warning-log {
  color: #faa61a;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgb(255 255 255 / 10%);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgb(255 255 255 / 20%);
}

/* Add progress bar styles */
.oldcord-loading-progress {
  width: 200px;
  height: 6px;
  background: rgb(255 255 255 / 10%);
  border-radius: 4px;
  margin: 12px auto 0;
  margin-top: 6px;
  overflow: hidden;
  display: none;
}

.oldcord-loading-progress-inner {
  width: 0%;
  height: 100%;
  background: #7289da;
  border-radius: 4px;
  transition: width 0.2s ease;
}

/* Show progress when active */
.oldcord-loading-progress.active {
  display: block;
}
