/* ====== 1. FONTS ====== */

@font-face {
  font-family: 'Inconsolata';
  src: url('fonts/Inconsolata/Inconsolata.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 50% 200%;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Shrikhand';
  src: url('fonts/Shrikhand/Shrikhand-Regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Special Elite';
  src: url('fonts/Special_Elite/SpecialElite-Regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'DM Serif Display';
  src: url('fonts/DM_Serif_Display/DMSerifDisplay-Regular.woff2') format('woff2');
  font-weight: normal;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Adamina';
  src: url('fonts/Adamina/Adamina-Regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ====== 2. GLOBAL MOBAL & TYPOGRAPHY ======= */
body,
html {
  margin: 0;
  padding: 0;
  background-color: black;
  color: white;
  text-transform: uppercase;
  font-size: 18px;
  font-family: "Inconsolata";
  font-optical-sizing: auto;
  font-weight: 250;
  font-style: normal;
  font-variation-settings: "wdth" 100;
  cursor: url(images/cursor.png), auto;
}

h2 {
  font-family: "Adamina";
  font-style: normal;
  font-weight: 400;
  font-size: 20px;
}

.LOGO {
  font-family: "DM Serif Display", serif;
  font-weight: 400;
  font-style: normal;
}

/* --- Animation Fade-In Effect --- */
@keyframes slowFadeIn {
  from {
    opacity: 0;
    filter: blur(5px);
  }

  to {
    opacity: 1;
    filter: blur(0);
  }
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-thumb {
  background: white;
  border-radius: 0;
}

::-webkit-scrollbar-track {
  background: black;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

/* ====== 3. MAIN LAYOUT & GRID SHI ====== */
.main-container {
  display: grid;
  grid-template-columns: minmax(350px, 35%) 1fr minmax(300px, 30%);
  width: 100%;
  min-height: 100vh;
}

.background-image {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: url('images/hafen_cropped.jpg');
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.content {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  z-index: 2;
  border-right: 1px solid white;
  background-color: black;
  display: flex;
  flex-direction: column;
  opacity: 0;
  animation: slowFadeIn 1s ease-in-out forwards;
}

.text-content {
  padding: 0 clamp(20px, 4vw, 50px);
}

/* ====== 4. HEADER & BANNER ====== */
.banner {
  font-family: "DM Serif Display", serif;
  font-size: clamp(40px, 8vw, 90px);
  text-align: center;
  background-color: black;
  z-index: 10;
  border-bottom: 1px solid white;
}

.banner a {
  text-decoration: none !important;
  color: white !important;
  display: block;
  padding: 10px 0;
  transition: opacity 0.2s ease;
}

.banner a:visited,
.banner a:active {
  color: inherit;
  text-decoration: none;
}

.ticker-wrap {
  width: 100%;
  overflow: hidden;
  background-color: black;
  border-bottom: 1px solid white;
  padding: 10px 0;
  position: relative;
  z-index: 15;
}

.ticker {
  display: flex;
  width: max-content;
  animation: scrollTicker 30s linear infinite;
}

.ticker-item {
  font-family: "Special Elite", system-ui;
  font-size: 16px;
  color: white;
  padding: 0 40px;
  white-space: nowrap;
}

@keyframes scrollTicker {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.ticker-wrap:hover .ticker {
  animation-play-state: paused;
}

/* ======= 5. NAVIGATION ====== */
nav {
  display: flex;
  z-index: 69;
  margin: 25px 0 25px 0;
  padding: 0 50px;
  justify-content: center;
  gap: 25px;
}

nav button {
  font-family: "Shrikhand", serif;
  font-size: 14px;
  background-color: white;
  color: black;
  border: 1px solid black;
  outline: 1px solid black;
  outline-offset: -4px;
  padding: 10px 25px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex: 0 1 auto;
  white-space: nowrap;
}

nav button a {
  color: inherit;
  text-decoration: none;
}

nav button:hover {
  background-color: black;
  color: white;
  border: 1px solid black;
  outline: 1px solid black;
  outline-offset: -4px;
}

/* ====== 6. SECTIONS ====== */
#WELCOME {
  text-align: justify;
  hyphens: none;
  line-height: 1.6;
}

#WELCOME img {
  width: 100%;
  margin: 30px 0;
  height: 450px;
  object-fit: cover;
  display: block;
  border: 1px solid white;
  opacity: 0;
  animation: slowFadeIn 1.8s ease-in-out forwards;
  animation-delay: 0.8s;
}

#WELCOME a {
  color: inherit;
  text-decoration: underline;
}

/* --- WIDGET-PANEL --- */
.widget-panel {
  grid-column: 3;
  grid-row: 1 / span 2;
  position: sticky;
  top: clamp(20px, 4vh, 40px);
  height: calc(100vh - clamp(40px, 8vh, 80px));

  display: flex;
  flex-direction: column;
  gap: clamp(15px, 3vh, 30px);
  margin-right: clamp(20px, 3vw, 40px);
  z-index: 101;
  opacity: 0;
  animation: slowFadeIn 2.6s ease-in-out forwards;
  scrollbar-width: none;
}

.widget-panel::-webkit-scrollbar {
  display: none;
}

.CHANGELOG-box,
.TO-DO-LIST-box {
  width: 100%;
  flex: 1;
  height: auto;
  min-height: 130px;
  border: 1px solid white;
  background-color: rgba(0, 0, 0, 0.7);
  padding: clamp(15px, 2vw, 20px);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.scroll-header {
  margin-top: 0px;
  margin-bottom: 10px;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.CHANGELOG-box ul,
.TO-DO-LIST-box ul {
  overflow-y: auto;
  flex-grow: 1;
  margin: 10px 0;
  padding-left: 0;
  padding-right: 15px;
  text-align: justify;
  hyphens: none;
  line-height: 1.6;
  text-transform: none;
  font-size: 13px;
  list-style: none;
  min-height: 0;
}

.CHANGELOG-box ul::-webkit-scrollbar,
.TO-DO-LIST-box ul::-webkit-scrollbar {
  width: 8px;
}

.CHANGELOG-box ul::-webkit-scrollbar-thumb,
.TO-DO-LIST-box ul::-webkit-scrollbar-thumb {
  background: white;
  border-radius: 0px;
}

.CHANGELOG-box ul::-webkit-scrollbar-track,
.TO-DO-LIST-box ul::-webkit-scrollbar-track {
  background: transparent;
}

/* --- Quote Box --- */
blockquote {
  width: 100%;
  flex: none;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid white;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.7);
  margin: 0;
  box-sizing: border-box;
  overflow: visible;
  opacity: 0;
  animation: slowFadeIn 1s ease-in-out forwards;
}

blockquote a {
  text-decoration: none;
  color: inherit;
  display: block;
}

blockquote:hover {
  border: 1px solid rgba(0, 0, 0, 0.5);
  background-color: rgba(255, 255, 255, 0.9);
  transition-duration: 0.3s;
  color: darkslategray;
}

blockquote:hover .quote {
  color: black;
}

.quote {
  font-family: "Special Elite", system-ui;
  font-weight: 400;
  font-size: clamp(18px, 2.5vw, 36px);
  text-align: center;
  margin-bottom: 10px;
  margin-right: 15px;
  margin-left: 15px;
}

.RXK {
  margin-bottom: 15px;
  text-align: center;
  font-size: clamp(8px, 1.5vw, 14px);
}

/* ====== INFORMATION BLOCK ====== */
.INFO-block {
  font-family: "Inconsolata";
  font-size: clamp(13px, 1.5vw, 15px);
  color: rgba(255, 255, 255, 0.7);
  border-left: 2px solid white;
  padding-left: 15px;
  margin-top: 50px;
  margin-bottom: 40px;
  line-height: 1.5;
}

.INFO-block h2 {
  font-family: "Inconsolata";
  font-size: clamp(15px, 1.5vw, 17px);
  color: white;
  margin-bottom: 5px;
}

.INFO-block p {
  margin: 0;
  text-transform: uppercase;
}

.progression-status {
  margin-top: 20px;
  color: grey;
  font-size: 12px;
  display: flex;
  align-items: center;
}

.blinking-cursor {
  display: inline-block;
  width: 8px;
  height: 15px;
  background-color: white;
  margin-left: 8px;
  animation: blink-cursor 1s step-end infinite;
}

.blinking-cursor2 {
  display: inline-block;
  width: 8px;
  height: 1em;
  background-color: white;
  margin-left: 8px;
  animation: blink-cursor 1s step-end infinite;
  vertical-align: -2px;
}

@keyframes blink-cursor {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* ====== 7. FOOTER  ====== */
footer {
  grid-column: 1;
  grid-row: 2;
  position: relative;
  z-index: 2;
  background-color: black;
  border-right: 1px solid white;
  border-top: 1px solid white;
  box-sizing: border-box;
  padding: 50px clamp(20px, 4vw, 50px) 40px clamp(20px, 4vw, 50px);
  font-family: "Special Elite";
  font-size: 11px;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  opacity: 0;
  animation: slowFadeIn 1s ease-in-out forwards;
}

footer p {
  margin: 0;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dotted rgba(255, 255, 255, 0.2);
  margin-bottom: 6px;
}

footer .copyright {
  margin-top: 15px;
  font-family: "Inconsolata";
  font-size: 10px;
  border-bottom: none;
  color: white;
}

/* ====== 8. MEDIA QUERIES ======*/

/* --- A: BIG SCREENS --- */
@media (max-width: 1700px) {

  nav,
  .text-content {
    padding: 0 30px;
  }

  nav button {
    padding: 10px 15px;
    font-size: 16px;
  }

  #WELCOME img {
    height: 250px;
  }
}

/* --- B: MEDIUM SIZED SCREENS --- */
@media (max-width: 1400px) {
  .main-container {
    grid-template-columns: 33.33% 1fr;
  }

  nav {
    display: flex;
    flex-wrap: nowrap !important;
    justify-content: center;
    gap: 8px;
    padding: 0 10px !important;
  }

  nav button {
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
    font-size: 14px;
    white-space: nowrap;
  }

  .widget-panel {
    width: calc(33.33vw - clamp(15px, 2vw, 30px));
    right: clamp(15px, 2vw, 30px);
  }

  .CHANGELOG-box,
  .TO-DO-LIST-box,
  blockquote {
    background-color: rgba(0, 0, 0, 0.85);
  }

  blockquote {
    padding: 10px;
  }

  .quote {
    font-size: clamp(14px, 1.8vw, 22px);
    line-height: 1.2;
  }

  .RXK {
    font-size: 10px;
    margin-bottom: 5px;
  }

  .banner {
    font-size: 60px;
  }
}

/* --- C: TABLETS & PHONES --- */
@media (max-width: 1050px) {
  body {
    font-size: 15px;
  }

  .main-container {
    display: flex;
    flex-direction: column;
    height: auto;
    overflow: visible;
  }

  .background-image {
    display: none;
  }

  .content {
    grid-column: 1;
    grid-row: 1;
    position: relative;
    z-index: 2;
    border-right: 1px solid white;
    background-color: black;
    display: flex;
    flex-direction: column;
    opacity: 0;
  }

  nav {
    flex-wrap: nowrap !important;
    justify-content: center;
    gap: 8px;
    padding: 0 15px !important;
    margin: 25px 0 10px 0;
  }

  nav button {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    padding: 10px 12px;
  }

  .text-content {
    padding: 0 20px !important;
    box-sizing: border-box;
  }

  #WELCOME img {
    width: 100%;
    margin: 30px 0;
    box-sizing: border-box;
  }

  .INFO-block {
    font-family: "Inconsolata";
    font-size: clamp(13px, 1.5vw, 15px);
    color: rgba(255, 255, 255, 0.7);
    border-left: 2px solid white;
    padding-left: 15px;
    margin-top: 50px;
    margin-bottom: 0;
    line-height: 1.5;
  }

  .widget-panel {
    order: 2;
    position: relative;
    right: auto;
    left: auto;
    width: 100% !important;
    margin: 40px 0 0 0 !important;
    padding: 0px 20px 40px 20px;
    height: auto;
    background-color: black;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 20px;
    opacity: 1;
  }

  .CHANGELOG-box,
  .TO-DO-LIST-box,
  blockquote {
    width: 100% !important;
    height: auto !important;
    min-height: 200px;
    margin-bottom: 10px;
    background-color: rgba(0, 0, 0);
  }

  .CHANGELOG-box ul,
  .TO-DO-LIST-box ul {
    max-height: none;
    overflow-y: visible;
  }

  .CHANGELOG-box .datum {
    margin-top: 12px;
  }


  /* 3. FOOTER */
  footer {
    order: 3;
    width: 100%;
    border-right: none;
    padding: 40px 20px;
  }
}

/* --- D: VERY SMOL DISPLAYS --- */
@media (max-width: 480px) {
  nav button {
    font-size: 12px;
  }

  .banner {
    font-size: 40px;
  }

  .quote {
    font-size: 20px;
  }
}

/* ====== 9. SUBPAGES  ====== */
.subpage-fullscreen .main-container {
  display: block;
  width: 100%;
  max-width: 100%;
}

.subpage-fullscreen .full-header {
  width: 100%;
  border-bottom: 1px solid white;
  text-align: center;
}

/* --- GO BACK  --- */
.subpage-fullscreen .return-nav {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  padding: 0 40px 40px 0;
  box-sizing: border-box;
}

.subpage-fullscreen .return-btn {
  font-family: "Shrikhand", serif;
  font-size: 14px;
  background-color: white;
  color: black;
  text-decoration: none;
  letter-spacing: 2px;
  padding: 10px 25px;
  border: 1px solid black;
  outline: 1px solid black;
  outline-offset: -4px;
  text-transform: uppercase;
  display: inline-block;
  transition: all 0.35s;
}

.subpage-fullscreen .return-btn:hover {
  background-color: black;
  color: white;
  border: 1px solid white;
  outline: 1px solid black;
  outline-offset: -4px;
}
.subpage-fullscreen footer{
  border-right: none;
}

@media (max-width: 600px) {
  .subpage-fullscreen .return-nav {
    bottom: 40px;
    padding: 0 20px 40px 0;
    right: 15px;
    z-index: 9000;
  }

  .subpage-fullscreen .return-btn {
    font-size: 11px;
    padding: 10px 15px;
    letter-spacing: 1px;
    white-space: nowrap;
  }
}

.subpage-fullscreen .subpage-main {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 60px 20px;
  min-height: 60vh;
}

.subpage-box {
  width: 100%;
  max-width: 80%;
  border: 2px solid white;
  padding: 40px;
  background-color: black;
}


/* ==========================================
DEV MODE: CUZ THEM ANIMATIONS CAN BE ANNOYING


* {
  animation: none !important;
  transition: none !important;
  opacity: 1 !important;
  }

  ========================================== */