@charset "utf-8";
body{
    font-family: "PT Sans Narrow", sans-serif;
    font-size: 20px;
    color: #ddd7d2;
    background-color: #121212;
}

main h2{
    text-align: center;
    font-size: 60px;
    letter-spacing: .05em;
    margin-bottom: 80px;
    color: #faf6f2;
}

header{
    background: url(../images/title.png) no-repeat right center/cover;
}

header .innerWrap{
    height: 720px;
    position: relative;
}

header nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;

    background-color: rgba(25, 25, 25, 0.8);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255,255,255,.08);
}

header nav ul{
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    margin: 10px auto;
    padding: 5px 20px;
    color: #f1f1f1;
}

header nav ul li:first-child {
    margin-right: auto; 
}

header nav ul li:nth-child(3) a {
    color: #ff9900; 
}

header nav ul li {
    margin-left: 20px; 
}

header nav ul li a:hover{
    text-decoration: underline;
    color: #ffb366;
}

.teko-heading {
  font-family: "Teko", sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
}

.pt-sans-narrow-regular {
  font-family: "PT Sans Narrow", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.pt-sans-narrow-bold {
  font-family: "PT Sans Narrow", sans-serif;
  font-weight: 700;
  font-style: normal;
}

.innerWrap{
    width: 1240px;
    margin: 0 auto;
    padding: 80px 20px 0;
}


.introSec {
    position: relative;
    color: #f5f5f5;
    text-align: center;
    overflow: clip;
}

.introSec::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
    pointer-events: none;
}

.introSec > * {
    position: relative;
    z-index: 2;
}

.introSec::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.6), transparent);
    pointer-events: none;
    z-index: 3;
}

.introVideo {
    max-width: 1200px;
    margin: 0 auto;
}

.introVideo img {
    display: block;
    width: 100%;
    height: auto;
}


.introSec p {
    line-height: 1.75;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
    padding-bottom: 50px;
}


.validFuncSec, 
.enemyAISec, 
.unitDataSec {
    background-color: #1e1e1e;
    padding-bottom: 120px;
    color: #e0ddd8;
}

.validFuncSecText, 
.enemyAISecText, 
.unitDataSecText {
    flex: 1;
    padding: 0px 200px;
    margin-bottom: 40px;
}

.validFuncSecText img, 
.enemyAISecText img,
.unitDataSecText img {
    width: 100%;
    height: auto;
    display: block;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.45);
}

.validFuncSecText video, 
.enemyAISecText video,
.unitDataSecText video {
    width: 100%;
    height: auto;
    display: block;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.45);
}

.validFuncSecText .subtitle, 
.enemyAISecText .subtitle, 
.unitDataSecText .subtitle {
    margin-top: 15px;
    font-family: "Teko", sans-serif;
    font-size: 36px;
    color: #ffcc80;
}

.validFuncSecText p, 
.enemyAISecText p, 
.unitDataSecText p {
    line-height: 1.6;
    margin-top: 10px;
    margin-bottom: 20px;
}


.unitDataSec {
    background-color: #1e1e1e;
    color: #e0ddd8;
}

.unitDataSecText .subtitle {
    color: #ffcc80;
}

.zoom-wrap {
  display: inline-block;
  position: relative;
  transition: transform 0.3s ease;
  cursor: zoom-in;
  border-radius: 10px;
}

.zoom-wrap img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.45);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  transform-origin: center center;
  z-index: 2;
}

.zoom-wrap:hover {
  transform: scale(2);
  z-index: 10;
}

.zoom-wrap:hover img {
  box-shadow: 0 12px 32px rgba(0,0,0,0.7);
}

.validFuncSec {
    background-color: #232a2f;
    color: rgba(255, 255, 255, 0.95);
}

.validFuncSecText .subtitle {
    color: #ffb84d;
}

.enemyAISec {
    background-color: #000000;
    color: #e6e3df;
}

.enemyAISecText .subtitle {
    color: #ffcc80;
}



.nextworkSec {
    background-color: #181818;
    padding-bottom: 120px;
    color: #e6e3df;
}

.next-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #222;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.35);
    text-align: center;
    gap: 14px;

    /* THIS is what centers it */
    margin: 40px auto 0;   /* top margin 40px, left/right auto = centered */
    width: fit-content;    /* shrink-wrap to its content */
}

.next-card-link {
    position: relative;
    display: block;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
}

.next-card-link img {
    display: block;
    width: 620px;
    height: auto;
    transition: transform 0.4s ease;
    border-radius: 14px;
}

.shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        120deg,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.5) 50%,
        rgba(255,255,255,0) 100%
    );
    transform: skewX(-20deg);
    transition: left 0.7s ease;
    pointer-events: none;
}

/* Hover effects */
.next-card-link:hover img {
    transform: scale(1.06);
}

.next-card-link:hover .shine {
    left: 120%;
}

/* Text */
.next-card-text {
    color: #ddd;
    line-height: 1.6;
    font-size: 20px;
}


footer {
    background-color: #1a1a1a;
    color: #f1f1f1;
    padding: 14px 10px 20px;
    text-align: center;
}

/* Table */
/* Unit Data Table (compact, no scrollbar) */
.unitTableWrap {
    background: #202020;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.45);
    overflow: visible; /* removed scroll */
    max-height: none;  /* allow full height */
    margin-top: 10px;
    margin-bottom: 20px;
}

.unitTable {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px; /* smaller base font */
    table-layout: fixed;
}

.unitTable thead th {
    position: sticky;
    top: 0;
    background: #2a2a2a;
    color: #ffcc80;
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    z-index: 1;
    font-size: 14px;
    letter-spacing: 0.03em;
}

.unitTable tbody td, 
.unitTable tbody th {
    padding: 6px 10px;
    vertical-align: top;
    border-bottom: 1px solid rgba(255,255,255,.06);
    color: #e0ddd8;
}

.unitTable .unitName {
    font-weight: 700;
    color: #faf6f2;
    white-space: nowrap;
    font-size: 14px;
}

.unitTable .coords {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Courier New", monospace;
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 1.4;
    font-size: 6px; /* very small coordinate text */
    opacity: 0.9;
}

/* unified look — no highlight */
.unitTable .edge {
    background: none;
    border: none;
    padding-left: 10px;
}


.validityTableWrap {
    background: #202020;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.45);
    overflow: visible; /* removed scroll */
    max-height: none;  /* allow full height */
    margin-top: 10px;
    margin-bottom: 20px;
}

.validityTable {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px; /* smaller base font */
    table-layout: fixed;
}

.validityTable thead th {
    position: sticky;
    top: 0;
    background: #2a2a2a;
    color: #ffcc80;
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    z-index: 1;
    font-size: 14px;
    letter-spacing: 0.03em;
}

.validityTable tbody td, 
.validityTable tbody th {
    padding: 6px 10px;
    vertical-align: top;
    border-bottom: 1px solid rgba(255,255,255,.06);
    color: #e0ddd8;
}

.validityTable tbody td.enum {
    font-weight: 700;
    color: #faf6f2;
    white-space: nowrap;
    font-size: 14px;
}

.validityTable .others {
    color: #faf6f2;
    white-space: nowrap;
    font-size: 14px;
}

.validFuncSec .validityTable col.col-enum  { width: 30%; }
.validFuncSec .validityTable col.col-color { width: 20%; }
.validFuncSec .validityTable col.col-desc  { width: 50%; }

.validityTable .edge {
  background: none;
  border: none;
  padding-left: 10px;
}

/* Parallax */
.introSec::before{
    content: "";
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: url(../images/projectcloud.png) no-repeat center/cover;
    z-index: -1;
    opacity: 0.25;
}

/* Tooltips */
.tip {
    position: relative;
    cursor: help;
    text-decoration: underline dotted;
    writing-mode: horizontal-tb;
    text-orientation: mixed;
}

.tip::after {
    content: attr(data-tip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    transform: translateX(-50%);

    display: inline-block;
    min-width: 200px;
    max-width: 260px;
    padding: 8px 10px;

    white-space: normal;
    overflow-wrap: anywhere; 
    word-break: normal;
    line-height: 1.4;
    text-align: left;

    color: #111;
    background: rgba(245, 245, 245, 0.95);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,.25);
    font-size: 14px;

    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity .15s ease, visibility .15s ease;
    z-index: 20;

    writing-mode: horizontal-tb;
    text-orientation: mixed;
}

.tip::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 100%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(245, 245, 245, 0.95);
    opacity: 0;
    visibility: hidden;
    transition: opacity .15s ease, visibility .15s ease;
    z-index: 19;
}

.tip:hover::after,
.tip:hover::before,
.tip:focus-visible::after,
.tip:focus-visible::before {
    opacity: 1;
    visibility: visible;
}

.tip.tip-left::after { left: 0; transform: none; }
.tip.tip-left::before { left: 12px; transform: none; }

.tip.tip-right::after { left: auto; right: 0; transform: none; }
.tip.tip-right::before { left: auto; right: 12px; transform: none; }

.tip-evasionRate::after { 
    font-weight: normal;
    content: "Evasion Rate \A\A Takes reduced damage by the given percentage.\A Example: 4 Damage + 50% evasion rate = 2 Damage";
    white-space: pre-line;
}

.tip-unspotted::after { 
    font-weight: normal;
    content: "Unspotted \A\A Enemies will not target the unit until it is exposed within their Action Range.";
    white-space: pre-line;
}
