/*
 * Copyright (c) 2025–present
 * PIX4ME Authors
 *
 * All rights reserved.
 */

:root {
  --bg: #000;
  --fg: #fff;
  --muted: #999;
  --border: #222;
  --btn: #fff;
  --btnText: #000;
}

@font-face {
  font-family: "Raleway-Light";
  src: url("../assets/fonts/Raleway-Light.ttf");
}

@font-face {
  font-family: "Raleway-Bold";
  src: url("../assets/fonts/Raleway-Bold.ttf");
}

::-webkit-scrollbar {
  display: none;
}

* {
  box-sizing: border-box;
  transition: background-color 0.6s ease-in-out, color 0.6s ease-in-out,
    border-color 0.6s ease-in-out;
}

#loading {
  position: fixed;
  inset: 0;
  background: #000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 24px;
  z-index: 999;

  opacity: 1;
  transition: opacity 0.6s ease-in-out;
}

.loading-logo {
  width: 600px;
  height: auto;
}

.loader {
  width: 45px;
  aspect-ratio: 1;
  --c: no-repeat linear-gradient(#ffffff 0 0);
  background: var(--c), var(--c), var(--c);
  animation: l18-1 1s infinite, l18-2 1s infinite;
}

@keyframes l18-1 {
  0%,
  100% {
    background-size: 20% 100%;
  }
  33%,
  66% {
    background-size: 20% 20%;
  }
}

@keyframes l18-2 {
  0%,
  33% {
    background-position: 0 0, 50% 50%, 100% 100%;
  }
  66%,
  100% {
    background-position: 100% 0, 50% 50%, 0 100%;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Raleway-Light";
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px;
}

.wiki {
  width: 100%;
  max-width: 960px;
}

.card {
  background: var(--bg);
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: justify;
}

.card2 {
  width: 100%;
  margin-top: 32px;
  padding: 24px;

  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);

  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.card2 h3 {
  font-family: "Raleway-Bold";
  margin-bottom: 16px;
}

h1 {
  font-family: "Raleway-Bold";
  font-size: 32px;
  margin-bottom: 16px;
}

p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.5;
}

.logoGDU {
   height: 350px;
   width: auto;
}

.wiki-links {
  width: 100%;
  margin-top: 32px;

  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}

.wiki-box {
  border: 1px solid #fff;
  padding: 16px;
  text-decoration: none;
  color: var(--fg);

  transition: background-color 0.3s ease, transform 0.2s ease;
}

.wiki-box h3 {
  margin: 0 0 8px 0;
  font-family: "Raleway-Bold";
  font-size: 18px;
}

.wiki-box p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.wiki-box:hover {
  background-color: #111;
  transform: translateY(-3px);
}

.faq {
  width: 100%;
  text-align: left;
}

.faq-item {
  border-bottom: 1px solid #222;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: #fff;

  font-family: "Raleway-Bold";
  font-size: 16px;

  padding: 16px 0;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: space-between;

  text-align: left;
}

.faq-question span {
  margin-left: 16px;
  font-size: 18px;
  flex-shrink: 0;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer p {
  margin: 0;
  padding: 0 0 16px 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

.faq-item.active .faq-question span {
  transform: rotate(45deg);
}