/* =========================
   BASE
========================= */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #1d497e;
    color: #eaeaea;
    padding-top: 50px;
}

main {
    position: relative;
    z-index: 1;
    padding: 35px;
}

/* =========================
   TYPOGRAPHY
========================= */

h1 {
    font-size: 2rem;
    font-weight: 400;
    text-align: center;
    color: #ffffff;
    margin: 0px 0 0px 0;
    letter-spacing: 1.35px;
}

h2 {
    font-size: 1.6rem;
    font-weight: 500;
    text-align: center;
    color: #bdbdbd;
    margin: 10px 0;
}

p {
    font-size: 1rem;
    line-height: 1.6;
    color: #cfcfcf;
    max-width: 700px;
    margin: 15px auto;
    text-align: center;
}

/* =========================
   NAVBAR REBORN
========================= */

.navbar {
    position: fixed; /* Keep it at the top while scrolling */
    top: 0;
    left: 0;
    width: 100%;
    height: 80px; /* Slightly shorter for a sleeker look */
    
    background: rgba(0, 0, 25, 0.6);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    
    z-index: 100;
    display: flex;
    align-items: center;
}

.navbar-content {
    width: 100%;
    max-width: 1200px; /* Keeps content from hitting the screen edges */
    margin: 0 auto;
    padding: 0 40px;
    
    display: flex;
    justify-content: space-between; /* Logo on left, Links on right */
    align-items: center;
}

.navbar .logo {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin: 0;
    /* Optional: text gradient to match your cards */
    background: linear-gradient(90deg, #ffffff, #3cf);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 30px; /* Spacing between links */
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.nav-links a:hover {
    opacity: 1;
    color: #33ccff; /* Matches your card border */
    text-shadow: 0 0 10px rgba(77, 255, 136, 0.5);
}

#navbar-fade {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -60px;
    height: 60px;
    background: linear-gradient(to bottom, rgba(0, 0, 25, 0.6), transparent);
    pointer-events: none;
}

.navbar::before {
    content: "";
    position: absolute;
    inset: -80px 0 0 0; /* shifts visible region down */
}

.navbar canvas {
    position: absolute !important;
    inset: 0;

    width: 100% !important;
    height: 100% !important;

    z-index: -2;
    display: block;
}
/* =========================
   MAIN LAYOUT
========================= */

main {
    padding: 35px;
}

/* =========================
   CARDS (TITLE / CONTENT BOX)
========================= */

.title-card,
.content-card {
    position: relative;
    border-radius: 16px;
    background: #000000;
    z-index: 0;

        
    background: linear-gradient(
        0deg,
        rgba(46, 19, 153, 0.05),
        rgba(51, 54, 255, 0.05)
    );

    backdrop-filter: blur(10px);

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* Safari support */

    border-radius: 4px;

    max-width: 1000px;
    margin: 40px auto;
    padding: 30px 25px;

    text-align: center;

    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;

    transition: transform 0.2s ease;
}

.title-card,
.content-card * {
    color: white;
}

.title-card:hover,
.content-card:hover {
    transform: translateY(-3px);
}

/* OUTER GRADIENT BORDER */
.title-card::before,
.content-card::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 4px; /* border thickness */

    border-radius: inherit;

    background: linear-gradient(0deg, #2e1399, #3336ff);

    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
        mask: calc();
    -webkit-mask-composite: xor;
    mask-composite: exclude;

    pointer-events: none;
}

/* THPACE canvas */
.content-card canvas,
.title-card canvas {
    position: absolute !important;
    inset: 0;

    width: 100% !important;
    height: 100% !important;
    opacity: .1;
    z-index: -1;
    display: block;
}

/* Keep text above THPACE */
.card-content {
    position: relative;
    z-index: 2;
}

.content-card .title-left {
    text-align: left;
    padding-left: 20px;
}
.content-card .title-left {
    text-align: left;
    padding-left: 20px;
}

.content-card .title-right {
    text-align: right;
    padding-right: 20px;
}

.content-card .title-middle {
    text-align: center;
}
/* Keep border above animation */
.content-card::before,
.title-card::before {
    z-index: 3;
}

/* =========================
   IFRAME (GAME AREA)
========================= */

.frame-container {
    width: 100%;
    height: 85vh;

    display: flex;
    justify-content: center;
    align-items: center;

    position: relative;
    z-index: 2;
}

#iframe-run3 {
    width: 100%;
    height: 100%;
    display: flex;
    border: none;
}

#iframe-mc {
    width: 100%;
    height: 100%;
    display: flex;
    border: none;
}

#vanta-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    height: 100vh;
}

/* =========================
   BUTTONS
========================= */

button {
    padding: 10px 20px;
    border: none;
    background: #ff4d4d;
    color: white;
    cursor: pointer;
    border-radius: 6px;

    transition: 0.2s ease;
}

button:hover {
    background: #ff2d2d;
    transform: scale(1.03);
}

/* =========================
   FOOTER (floating bottom-right)
========================= */

footer {
    position: fixed;
    bottom: 15px;
    right: 15px;

    background: #1a1a1a;
    color: #aaa;

    padding: 10px 14px;
    border-radius: 10px;

    border: 1px solid #2c2c2c;
    font-size: 13px;
}