/* Global Reset & Styling */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body, html {
  width: 100%;
  height: 100%;
  font-family: "Special Elite", system-ui;
  font-weight: 400;
  font-style: normal;
  background-color: #0d0d0d;
  color: #e6e6e6;
  overflow: hidden;
}

/* Main Container with Background Image */
.game-container {
  position: relative;
  width: 100%;
  height: 100vh;
  background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.5)), 
              url('images/main.jpg') center/cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-end;
  padding: 4rem;
  transition: opacity 1.5s ease;
}

/* Main Menu Navigation */
.menu-list {
  list-style: none;
  position: absolute;
  top: 55%;
  left: 69%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}

.menu-item {
  position: relative;
  display: inline-block;
  width: fit-content;
}

/* Button Styling - Clean, No Boxes */
.menu-btn {
  background: none;
  border: none;
  outline: none;
  color: #52302a;
  font-family: 'Special Elite';
  font-size: 3.6rem;
  letter-spacing: 2px;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  text-align: right;
  padding: 0;
  transition: color 0.2s ease;
}

.menu-btn::before {
  content: "►";
  position: absolute;
  right: 100%;
  margin-right: 0.4rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  opacity: 0;
  transition: opacity 0.15s ease;
}

/* Hover Effects: Underline & Cursor appearance only */
.menu-btn:hover {
  text-decoration: underline;
  text-underline-offset: 6px;
}

.menu-btn:hover::before {
  opacity: 1;
}

/* Overlay Modal Styles (for Options, Quit, Saving, etc.) */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  text-align: center;
  padding: 2rem;
}

.overlay.active {
  opacity: 1;
  pointer-events: all;
}

.overlay-text {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  line-height: 1.6;
  max-width: 600px;
}

.overlay-actions {
  display: flex;
  gap: 2rem;
}

.secret-link {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 4px;
  font-weight: bold;
}

/* Dark Screen / Connection Terminated Screen */
.terminated-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000000;
  color: #a0a0a0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 2s ease;
}

.terminated-screen.active {
  opacity: 1;
  pointer-events: all;
}

.creepy-text {
  margin-top: 1.5rem;
  font-size: 1rem;
  color: #666666;
  min-height: 1.5rem;
}

/* Loading / Saving Dots Animation */
.dots::after {
  content: '.';
  animation: dots 1.5s steps(5, end) infinite;
}

@keyframes dots {
  0%, 20% { content: '.'; }
  40% { content: '..'; }
  60% { content: '...'; }
  80%, 100% { content: ''; }
}

/* Settings / About Me View Styling */
#settings-view {
    display: none;

    position: relative;

    width: 100%;
    height: 100vh;

    padding: 40px;

    box-sizing: border-box;

    align-items: center;
    justify-content: center;

    font-family: "Poppins", sans-serif;

    font-weight: 500;
}

/* Header Text */
.bio-meta {
    margin: 0 0 20px 0;
    font-size: 1.1rem;
    color: var(--text-main);
    text-align: center;
}

/* =========================
   ABOUT ME — THREE COLUMNS
   ========================= */

.bio-wrapper {
    width: 100%;
    max-width: 1100px;

    display: grid;

    grid-template-columns:
        minmax(180px, 1fr)
        auto
        minmax(180px, 1fr);

    align-items: center;

    column-gap: 55px;

    margin: 0 auto;
}


/* LEFT TEXT */

.bio-left {
    width: 100%;

    color: #4e2623;

    font-family: "Poppins", sans-serif;

    font-size: 0.95rem;

    line-height: 1.45;

    text-align: right;
}


/* CENTER IMAGE */

.bio-center {
    display: flex;

    align-items: center;
    justify-content: center;
}

.bio-image {
    display: block;

    width: 420px;
    max-width: 40vw;

    height: auto;

    border: 3px solid #ffffff;
}


/* RIGHT TEXT */

.bio-right {
    width: 100%;

    color: #4e2623;

    font-family: "Poppins", sans-serif;

    font-size: 0.95rem;

    line-height: 1.45;

    text-align: left;
}

.bio-image {
    width: 100%;
    max-width: 280px;
    height: auto;
    display: block;
    border: 1.5px solid var(--text-main)
}

/* Image */
.bio-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    border: 3px solid; color: #ffffff;
    display: block;
}

/* Section Headings */
.section-title {
    font-weight: bold;
    text-decoration: underline;
    margin-bottom: 8px;
}

/* =========================
   BOTTOM NAVIGATION
   ========================= */

.bio-home-btn {
    position: fixed;

    bottom: 245px;
    left: 50%;

    transform: translateX(-50%);

    background: transparent;
    border: none;

    color: #ffffff;

    text-decoration: underline;
    text-underline-offset: 3px;

    font-family: "Poppins", sans-serif;
    font-size: 18px;

    cursor: pointer;

    opacity: 0.75;

    margin: 0;

    z-index: 50;

    transition:
        color 0.3s ease,
        opacity 0.3s ease;
}


/* HOME HOVER */

.bio-home-btn:hover {
    color: #4e2623;

    opacity: 1;

    transform: translateX(-50%);
}


/* =========================
   "WE ARE THE UNIVERSE..."
   ========================= */

.bio-subtext {
    position: fixed;

    bottom: 225px;
    left: 50%;

    transform: translateX(-50%);

    width: max-content;
    max-width: 90vw;

    margin: 0;

    color: #ffffff; 
    
    font-family: "Poppins", sans-serif;

    font-size: 0.85rem;

    text-align: center;

    opacity: 0.5;

    z-index: 50;
}

.overlay-actions .menu-btn {
  position: relative;
  background: transparent;
  border: none;
  color: #ededed;
  font-family: 'Special Elite', system-ui, sans-serif;
  font-size: 1.2rem;
  letter-spacing: 2px;
  cursor: pointer;
  text-decoration: none;
  padding: 0;
  margin: 0 2.5rem;
  transition: color 0.15s ease;
}

.overlay-actions .menu-btn::before {
  content: '>';
  position: absolute;
  right: 100%;
  margin-right: 0.3rem;
  top: 50%;
  transform: translateY(-50%);
  color: #550000;
  font-size: 1.2rem;
  opacity: 0;
  transition: opacity 0.15s ease;
}

/* Hide default menu right-side cursor */
.overlay-actions .menu-btn::after {
  display: none !important;
}

.overlay-actions .menu-btn:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.overlay-actions .menu-btn:hover::before {
  opacity: 1;
}

/* Game Page Container */
#game-page-view {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 100;
}

.game-page-background {
    width: 100%;
    height: 100%;
    background: linear-gradient(
        rgba(0, 0, 0, 0.4),
        rgba(0, 0, 0, 0.4)
    ), url('images/archive.jpg') center/cover no-repeat;
}
.game-page-background::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(75, 20, 22, 0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
    z-index: 5;
}

.game-page-background:has(.archive-panel.active)::before {
    opacity: 1;
}
/* =========================
   ARCHIVE TAGS
========================= */

.archive-tags {
    position: absolute;
    top: 56%;
    left: 23%;
    transform: translateY(-50%);

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;

    z-index: 20;
}

/* Individual tag */

.archive-tag {
    display: block;

    background: transparent;
    border: none;
    padding: 0;

    cursor: pointer;

    transition:
        transform 0.25s ease,
        filter 0.25s ease;
}

/* Tag image */

.archive-tag img {
    display: block;

    width: 270px;
    height: auto;

    transition:
        transform 0.25s ease,
        filter 0.25s ease;
}

/* Tiny hover pop */

.archive-tag:hover {
    transform: translateX(8px) translateY(-4px);
}

.archive-tag:hover img {
    filter: brightness(1.08);
}



/* =========================
   ARCHIVE PAGE REVEAL
========================= */

.archive-panel {
    position: absolute;

    top: 50%;
    left: 43%;

    transform: translateY(-50%) translateX(-25px);

    display: flex;
    align-items: center;

    gap: 2rem;

    width: 52%;
    height: auto;

    opacity: 0;
    visibility: 0s linear 0.45s;

    pointer-events: none;

    transition:
        opacity 0.45s ease,
        transform 0.45s ease,
        visibility 0.45s ease;

    z-index: 20;

    background: transparent;
    border: none;
    box-shadow: none;
}

.archive-panel.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(-50%) translateX(0);
}

@keyframes archiveSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(-25px);
    }

    to {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

.archive-panel.animate-in {
    animation: archiveSlideIn 0.45s ease both;
}

/* =========================
   ACTUAL ARCHIVE PAGE IMAGE
========================= */

.archive-panel-image {
    flex: 0 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;

    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
}

.archive-panel-image img {
    display: block;

    height: 80vh;
    width: auto;

    max-height: 80vh;
    max-width: 38vw;

    object-fit: contain;

    background: transparent;

    border: none;
    outline: none;
    box-shadow: none;

    transition: opacity 0.4s ease;
}


/* =========================
   PANEL TEXT
========================= */

.archive-panel-content {
  position: relative;
    display: none;
}


/* =========================
   EXPLORE ARCHIVE
========================= */

.explore-archive {
    position: absolute;
    bottom: 3.5rem;
    left: 3rem;

    display: inline-block;
    padding: 0.5rem 1rem;

    color: rgb(0, 0, 0);
    text-decoration: none;

    background: transparent;
    border: 1px solid rgba(19, 17, 17, 0.7);

    transition:
        background 0.3s ease,
        border-color 0.3s ease,
        color 0.3s ease;
}

.explore-archive::before {
    content: "➜";

    position: absolute;

    left: 100%;
    margin-left: 0.5rem;

    color: #e62021;

    opacity: 0;

    transform: translateX(-5px);

    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.explore-archive:hover {
    background: rgba(68, 38, 10, 0.459);
    border-color: #b6a5a5;
    color: #b6a5a5;
    text-decoration: none;
}



/* =========================
   BACK BUTTON
========================= */

.archive-back {
    position: absolute;

    left: 5%;
    bottom: 5%;

    background: transparent;
    border: none;
    outline: none;

    padding: 0;
    z-index: 20;

    color: white;

    font-family: "Special Elite", system-ui, sans-serif;
    font-size: 1.2rem;
    letter-spacing: 2px;

    cursor: pointer;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}



.archive-close:hover {
    color: #560000;
    transform: translateY(-50%) scale(1.1);
}


.archive-close {
    position: absolute;
    top: 50%;
    left: calc(100% + 3.5rem);

    transform: translateY(-50%);

    background: transparent;
    border: none;
    padding: 0;

    color: white;
    font-size: 2.5rem;
    font-weight: 300;
    line-height: 1;

    cursor: pointer;

    transition: color 0.2s ease, transform 0.2s ease;
}

/* =========================
   PASSWORD / ACCESS MODALS
   ========================= */

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;

    display: none;
    align-items: center;
    justify-content: center;

    background: rgba(0, 0, 0, 0.18);
}

.modal-overlay.active {
    display: flex;
}


/* =========================
   WINDOWS-STYLE POPUP
   ========================= */

.password-modal {
    position: relative;

    width: 430px;
    background: #c0c0c0;

    border: 2px solid;
    border-color: #ffffff #404040 #404040 #ffffff;

    box-shadow:
        2px 2px 0 #000000;

    color: #000000;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    animation: modalAppear 0.15s ease-out;
}


/* =========================
   TITLE BAR
   ========================= */

.password-titlebar,
.denied-titlebar {

    height: 30px;

    display: flex;
    align-items: center;

    padding: 0 5px 0 8px;

    background: linear-gradient(
        to right,
        #000080,
        #1084d0
    );

    color: #ffffff;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 14px;
    font-weight: bold;
}


/* =========================
   CLOSE BUTTON
   ========================= */

.close-btn {

    position: absolute;

    top: 4px;
    right: 4px;

    width: 22px;
    height: 22px;

    padding: 0;

    background: #c0c0c0;

    border: 2px solid;
    border-color:
        #ffffff
        #404040
        #404040
        #ffffff;

    color: #000000;

    font-family: Arial, sans-serif;
    font-size: 16px;
    font-weight: bold;

    line-height: 16px;

    cursor: pointer;

    z-index: 10;
}

.close-btn:active {
    border-color:
        #404040
        #ffffff
        #ffffff
        #404040;
}


/* =========================
   PASSWORD CONTENT
   ========================= */

.password-content {

    padding: 28px 30px 25px;

}


/* =========================
   MESSAGE + LOCK
   ========================= */

.password-message-row {

    display: flex;

    align-items: flex-start;

    gap: 25px;

    margin-bottom: 22px;

}

.lock-icon {

    flex-shrink: 0;

    width: 48px;

    font-size: 34px;

    line-height: 1;

    text-align: center;

}

.password-message {

    padding-top: 2px;

    color: #000000;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 15px;

    line-height: 1.35;

}

.password-message p {
    margin: 0 0 6px;
}


/* =========================
   PASSWORD INPUT
   ========================= */

.password-input {

    display: block;

    width: 100%;
    height: 38px;

    box-sizing: border-box;

    margin-bottom: 24px;

    padding: 3px 7px;

    background: #ffffff;

    border: 2px solid;

    border-color:
        #808080
        #ffffff
        #ffffff
        #808080;

    color: #000000;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 16px;

    outline: none;

}

.password-input:focus {

    outline: 1px dotted #000000;
    outline-offset: -4px;

}


/* =========================
   BUTTONS
   ========================= */

.password-buttons,
.try-again-options {

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 18px;

}


.system-btn {

    min-width: 90px;
    height: 38px;

    padding: 0 18px;

    background: #c0c0c0;

    border: 2px solid;

    border-color:
        #ffffff
        #404040
        #404040
        #ffffff;

    color: #000000;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 14px;

    cursor: pointer;

}

.system-btn:active {

    border-color:
        #404040
        #ffffff
        #ffffff
        #404040;

}


/* =========================
   ACCESS DENIED
   ========================= */

.denied-box {
    min-height: 0;
}

.denied-content {

    padding: 28px 30px 25px;

}


/* =========================
   ERROR MESSAGE
   ========================= */

.error-row {

    display: flex;

    align-items: flex-start;

    gap: 20px;

}


.error-icon {

    flex-shrink: 0;

    width: 44px;
    height: 44px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #ffffff;

    border: 1px solid #808080;

    color: #c00000;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 28px;
    font-weight: bold;

}


.error-message {

    padding-top: 2px;

    color: #000000;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 14px;

    line-height: 1.4;

}


.error-message strong {

    display: block;

    margin-bottom: 7px;

    font-size: 15px;

}


.error-message p {

    margin: 0;

}


/* =========================
   TRY AGAIN
   ========================= */

.try-again-section {

    margin-top: 25px;

    padding-top: 12px;

    border-top: 1px solid #808080;

    text-align: center;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 14px;

}


.try-again-section > span {

    display: block;

    margin-bottom: 13px;

}


/* =========================
   OLD WINDOWS BUTTON FEEL
   ========================= */

.system-btn:focus {

    outline: 1px dotted #000000;
    outline-offset: -5px;

}


/* =========================
   ANIMATION
   ========================= */

@keyframes modalAppear {

    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }

}
