/* ===== RESET / GLOBAL ===== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Georgia, serif;
}

body {
  min-height: 100vh;
  color: #eee;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background: radial-gradient(circle at center, #111 0%, #050505 100%);
  transition: opacity 0.3s ease;
}

body::before {
  content: "";
  position: absolute;
  width: 200%;
  height: 200%;
  opacity: 0.4;
  z-index: 0;
}

.container {
  text-align: center;
  z-index: 1;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  letter-spacing: 2px;
  opacity: 0.9;
}

h3 {
  font-size: 1rem;
  letter-spacing: 2px;
  opacity: 0.8;
  margin-bottom: 40px;
}

p {
  opacity: 0.7;
  margin-bottom: 40px;
}


/* ===== HOMEPAGE ===== */

body.home {
  background: radial-gradient(circle at center, #111 0%, #050505 100%);
}

body.home h1 {
  position: absolute;
  top: 40px;
  font-size: 2rem;
}

body.home h3 {
  position: absolute;
  top: 100px;
}

.portals {
  display: flex;
  gap: 100px;
  z-index: 1;
}

.portal {
  width: 180px;
  height: 260px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  padding: 15px;
}

.portal span {
  z-index: 1;
}

.portal::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: inherit;
  filter: blur(20px);
  opacity: 0.6;
  z-index: -1;
}

.portal:hover {
  transform: scale(1.08);
}

.portal.gothic {
  background: radial-gradient(circle at center, rgba(120, 0, 0, 0.9), #000);
}

.portal.gothic::before {
  background: rgba(255, 0, 0, 0.5);
}

.portal.sf {
  background: radial-gradient(circle at center, rgba(0, 120, 200, 0.9), #000);
}

.portal.sf::before {
  background: rgba(0, 180, 255, 0.5);
}

.portal:hover::before {
  opacity: 1;
}


/* ===== UNIVERSE PAGES ===== */

body.store {
  background-image: url("images/under.png");
  background-size: 100vh;
  background-position: center;
  background-repeat: no-repeat;
}


body.gothic-page {
  background: radial-gradient(circle at center, rgba(120, 0, 0, 0.6), #000 80%);
}

body.gothic-page::before {
  background: radial-gradient(circle, rgba(255, 0, 0, 0.1), transparent 70%);
  animation: fog 30s linear infinite;
}

body.sf-page {
  background: radial-gradient(circle at center, rgba(0, 80, 150, 0.6), #000 80%);
}

body.sf-page::before {
  background: radial-gradient(circle, rgba(0, 200, 255, 0.1), transparent 70%);
  animation: drift 25s linear infinite;
}

@keyframes fog {
  0% { transform: translate(0, 0); }
  50% { transform: translate(-10%, -5%); }
  100% { transform: translate(0, 0); }
}

@keyframes drift {
  0% { transform: translate(0, 0); }
  50% { transform: translate(-8%, -6%); }
  100% { transform: translate(0, 0); }
}


/* ===== LINKS ===== */

.links {
  display: flex;
  flex-direction: column;
  gap: 15px;
}


.link {
  position: relative;
  display: inline-block;
}

.link .bg {
  display: block;
  width: 200px;
}

.link .text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.links a {
  color: #eee;
  text-decoration: none;
  padding: 10px 20px;
  transition: all 0.3s ease;
}

.gothic-page .links a {
  border: 1px solid rgba(255, 0, 0, 0.4);
}

.gothic-page .links a:hover {
  background: rgba(150, 0, 0, 0.5);
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

.sf-page .links a {
  border: 1px solid rgba(0, 150, 255, 0.4);
}

.sf-page .links a:hover {
  background: rgba(0, 100, 200, 0.5);
  box-shadow: 0 0 10px rgba(0, 200, 255, 0.5);
}

.about-page .links a {
  border: 1px solid rgba(120, 120, 120, 0.4);
}

.about-page .links a:hover {
  background: rgba(180, 180, 180, 0.5);
  box-shadow: 0 0 10px rgba(100, 100, 100, 0.5);
}

.about-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 2rem;
}

.contact-page .links a {
  border: 1px solid rgba(120, 120, 120, 0.4);
}

.contact-page .links a:hover {
  background: rgba(180, 180, 180, 0.5);
  box-shadow: 0 0 10px rgba(100, 100, 100, 0.5);
}

.contact-container {
  display: flex;
  gap: 2rem;
  padding: 2rem;
}

/* LEFT SIDE (small column) */
.contact-left {
  flex: 1.5;
}


/* RIGHT SIDE (bigger column) */
.contact-right {
  flex: 2;
}

.contact-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 2rem;
}

/* Small profile image */
.profile-pic {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 50%; /* makes it round */
}



/* Container feel */
.contact-right {
  border-left: 1px solid #ddd;
  padding-left: 2rem;
  font-family: courier, monospace;
}


/* ===== NAV / BACK LINKS ===== */

.nav,
.back {
  position: absolute;
  bottom: 30px;
  z-index: 1;
  font-size: 0.9rem;
  opacity: 0.7;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;

    background: rgba(0,0,0,0.65);
    padding: 8px;
    border-radius: 18px;
    z-index: 50;
}

.nav a,
.back a {
	display: inline-block;
  color: #ccc;
  text-decoration: none;
  transition: 0.2s;
padding: 6px 10px;
}

.nav a:hover,
.back a:hover {
  color: white;
  text-decoration: underline;
}

/* ===== STATES ===== */

.locked {
  pointer-events: none;
  opacity: 0.4;
  cursor: not-allowed;
}

.hidden {
  display: none;
}

.spoiler span{
  filter: blur(6px);
  cursor: pointer;
  transition: filter 0.3s ease;
}


.spoiler.revealed {
  filter: none;
}

/* ===== ARCHIVE GRID ===== */

.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 35px;
}

/* DOSSIER / POST-IT */

.archive-card {
  background: rgba(25, 25, 25, 0.9);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 22px;
  border-radius: 6px;

  box-shadow:
    0 4px 12px rgba(0,0,0,0.35);

  position: relative;
}

/* LITTLE LABEL ENERGY */

.archive-card h2 {
  font-size: 0.9rem;
  letter-spacing: 2px;
  margin-bottom: 18px;
  opacity: 0.75;
}

/* ITEMS */

.archive-item {
  display: block;
  width: 100%;

  background: transparent;
  border: none;

  color: #eee;
  text-align: left;

  padding: 10px 0;
  cursor: pointer;

  border-bottom: 1px solid rgba(255,255,255,0.08);

  transition: 0.2s ease;
}

.archive-item:last-child {
  border-bottom: none;
}

.archive-item:hover {
  opacity: 1;
  padding-left: 6px;
}

/* LOCKED */

.archive-item.locked {
  opacity: 0.35;
  pointer-events: none;
}

.archive-item.locked::after {
  content: " [LOCKED]";
  font-size: 0.75rem;
  opacity: 0.6;
}

/* NEW */

.archive-item.new::after {
  content: " NEW";
  font-size: 0.75rem;
  color: gold;
  margin-left: 6px;
}

/* ===== THEME VARIABLES ===== */

body {
  --accent: rgba(255,255,255,0.4);
  --bg-modal: rgba(20,20,20,0.95);
}

.gothic-page {
  --accent: rgba(255,0,0,0.6);
  --bg-modal: rgba(20,5,5,0.95);
}

.sf-page {
  --accent: rgba(0,200,255,0.6);
  --bg-modal: rgba(5,10,20,0.95);
}


/* GOTHIC FLAVOR */

.gothic-page .archive-card {
  background: rgba(30, 10, 10, 0.92);
  border-color: rgba(255,0,0,0.15);
}

/* SF FLAVOR */

.sf-page .archive-card {
  background: rgba(10, 20, 30, 0.92);
  border-color: rgba(0,200,255,0.15);
}

.archive-card:nth-child(odd) {
  transform: rotate(-0.4deg);
}

.archive-card:nth-child(even) {
  transform: rotate(0.4deg);
}


/* TABLET */

@media (max-width: 900px) {
  .archive-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* MOBILE */

@media (max-width: 600px) {
  .archive-grid {
    grid-template-columns: 1fr;
  }
}
  .archive-card {
    padding: 18px;
  }
}

.archive-card:nth-child(odd) {
  transform: rotate(-0.4deg);
}

.archive-card:nth-child(even) {
  transform: rotate(0.4deg);
}

/* ===== MODAL ===== */

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
  z-index: 100;
}

.modal.show {
  display: flex;
}

.modal-content {
  width: 80vw;
  max-height: 80vh;
  overflow-y: auto;
  background: var(--bg-modal);
  border: 1px solid var(--accent);
  padding: 20px;
  box-shadow: 0 0 25px var(--accent);
}

.modal-content h2 {
  color: gold;
  margin-bottom: 20px;
}

.close {
  float: right;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}
