@import url('../variable.css');
@import url('../layout.css');

.main-welcome {
  height: 75vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  gap: 5em;
  width: 100%;
}

.section-characters {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2em;
  height: 50%;
}

.characters-title {
  font-size: var(--font-size);
  font-family: var(--font-family);
  color: var(--font-color);
}

.characters-container {
  display: flex;
  justify-content: center;
  gap: 5em;
  height: 75%;
}

button {
  all: unset;
  cursor: var(--pointer);
  padding: var(--padding);
  border-radius: var(--border-radius);
  box-shadow: 0 0 30px var(--border);
  transition:
    box-shadow 0.3s ease,
    transform 0.2s ease;
  animation: pulse-neon 2s ease-in-out infinite;
}
button:focus-visible {
  outline: 2px solid lime;
  outline-offset: 4px;
}

.character-item {
  height: 100%;
  border-radius: var(--border-radius);
  cursor: var(--pointer);
}

.library-button {
  position: relative;
  font-size: var(--modal-font-size-button);
  font-family: var(--font-family);
  color: var(--font-color);
  background: none;
  padding: var(--padding);
  border-radius: var(--border-radius);
  cursor: var(--pointer);
  width: 20%;
  margin-top: 1em;
}

.info-icon {
  position: absolute;
  top: 6px;
  right: 8px;
  font-size: 0.9em;
  opacity: 0.9;
}

.info-tooltip {
  position: absolute;
  top: 5px;
  right: -125px;
  transform: translateY(-100%);
  background: var(--bg);
  color: var(--font-color);
  border: 2px solid #000;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.5em;
  white-space: nowrap;
  box-shadow: var(--modal-box-shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 0;
}

.library-button:hover .info-tooltip,
.library-button:focus-within .info-tooltip {
  opacity: 1;
}

.other-characters {
  font-size: 0.5em;
}

.section-modes {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5em;
  height: 50%;
}

.modes-title {
  font-size: var(--font-size);
  font-family: var(--font-family);
  color: var(--font-color);
}

.buttons-container {
  width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2em;
}

.button-mode {
  font-size: var(--modal-font-size-button);
  font-family: var(--font-family);
  color: var(--font-color);
  background: none;
  padding: var(--padding);
  border-radius: var(--border-radius);
  cursor: var(--pointer);
}

.loading-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--modal-z-index);
  color: var(--font-color);
  font-family: var(--font-family);
}

.loading-box {
  width: min(420px, 80%);
  padding: 20px;
  border-radius: var(--border-radius);
  border: 2px solid #000;
  box-shadow: var(--modal-box-shadow);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: center;
}

.loading-title {
  margin: 0;
  font-size: 1em;
}

.loading-bar {
  width: 100%;
  height: 10px;
  border: 2px solid #000;
  border-radius: 10px;
  overflow: hidden;
}

.loading-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--font-color);
  box-shadow: var(--modal-box-shadow);
  transition: width 0.1s linear;
}

.loading-percent {
  font-size: 0.9em;
}
