:root {
    --gng-primary: goldenrod;
    --gng-primary-initial-pulse: rgba(218, 165, 32, 0.6);
    --gng-primary-active-pulse: rgba(218, 165, 32, 0.9);
    --gng-primary-shadow: rgba(218, 165, 32, 0.7);
    --gng-secondary: navy;
    /*--gng-room1: rgb(139, 69, 19);
    --gng-room2: rgb(184, 134, 11);
    --gng-room3: rgb(170, 133, 34);*/
    --gng-room1: dodgerblue;
    --gng-room1-text: white;
    --gng-room2: cornflowerblue;
    --gng-room2-text: white;
    --gng-room3: royalblue;
    --gng-room3-text: white;
}

html {
    height: 100%;
    margin: 0;
    padding: 0;

    /* Ensure smooth scrolling when clicking category links */
    scroll-behavior: smooth;
}

body {
    min-height: 100%;
    min-width: 100%;
    margin: 0;
    padding: 0;

    display: block;
}

#main-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

.navbar {
    padding-top: 3px;
    padding-left: 3px;
    padding-right: 3px;
    padding-bottom: 0px;
}

main {
    padding-top: 85px;
}

a {
    text-decoration: none;
    color: var(--bs-white);
    cursor: pointer;

}

a:hover {
    text-decoration: wavy;
    color: var(--bs-secondary);
}

/* iframe size management for responsive display */
.doc-embed {
    width: 100%;
    height: 100vh;
}

.center {
    text-align: center;
}

.map-frame {
    width: "100%";
    height: "240px";
}

/* Index */
/* Style to create decorative box underneath navigation for index */
.headerBox {
    width: 95%;
    height: 5vh;
    position: relative;
    z-index: 0;
    border-radius: 25px;
    margin-bottom: 50px;
}

.headerRow {
    margin-top: 0rem !important;
}

/* Style to position logo under navigation for index */
.mainLogo {
    position: absolute;
    
    /* Horizontal Centering */
    left: 50%;
    transform: translateX(-50%);
    
    /* Vertical Floating */
    top: -40px;
    width: 250px;
    height: 103px;
    z-index: 10; /* Ensure it stays above the box borders */
}

/* Desktop: */
@media (min-width: 650px) {
    .mainLogo {
        width: 600px;
        height: 300px;
        top: -100px;
    }

    .headerBox {
        width: 95%;
        height: 10vh;
        position: relative;
        z-index: 0;
        border-radius: 25px;
        margin-bottom: 100px;
    }

    .navbar {
        padding-top: 7px;
        padding-left: 7px;
        padding-right: 7px;
        padding-bottom: 0px;
    }

    .headerRow {
        margin-top: 3rem !important;
    }

    .sub-item-container {
        margin-left: 2rem;
    }

    .map-frame {
        width: 600px;
        height: 450px;
    }
}

.bg-obsidian {
    background-color: #0d0d0d;
}

/* Primary style color classes */
.bg-gng-primary {
    background-color: var(--gng-primary);
    color: black;
}

.border-gng-primary {
    border: 2px solid var(--gng-primary);
}

.text-gng-primary {
    color: var(--gng-primary) !important;
}

.btn-gng-primary {
    background-color: var(--gng-primary);
    color: white;
}

.btn-gng-primary:hover {
    border-color: var(--gng-primary);
    color: white;
}

.btn-outline-gng-primary {
    border-color: var(--gng-primary);
    color: white;
}

.btn-outline-gng-primary:hover {
    background-color: var(--gng-primary);
    color: white;
}

.border-side-gng-primary {
    border-left: 2px solid var(--gng-primary);
    border-right: 2px solid var(--gng-primary);
}

.border-bottom-gng-primary {
    border-bottom: 4px solid var(--gng-primary) !important;
}

.border-glow-gng-primary {
    border: 4px solid var(--gng-highlight) !important;
    /* h-offset v-offset blur spread color */
    box-shadow: 0 4px 10px -2px var(--gng-primary-shadow);
    position: relative;
    z-index: 1;
}

/* Add a subtle pulse to the glow */
.border-glow-gng-primary.pulse {
    animation: primaryPulse 2s infinite ease-in-out;
}

@keyframes primaryPulse {
    0% { box-shadow: 0 4px 10px -2px var(--gng-primary-zero-pulse); }
    50% { box-shadow: 0 4px 15px 0px var(--gng-primary-active-pulse); }
    100% { box-shadow: 0 4px 10px -2px var(--gng-primary-initial-pulse); }
}

/* Secondary style color classes */
.bg-gng-secondary {
    background-color: var(--gng-secondary);
}

.border-gng-secondary {
    border: 2px solid var(--gng-secondary);
}

.border-character-dashboard-box {
    border: 5px ridge var(--gng-secondary);
    padding: 5px 10px 5px 10px;
}

.border-player-dashboard-box {
    border: 5px ridge var(--gng-secondary);
    padding: 5px 10px 5px 10px;
}

.text-gng-secondary {
    color: var(--gng-secondary) !important;
}

.border-side-gng-secondary {
    border-left: 2px solid var(--gng-secondary);
    border-right: 2px solid var(--gng-secondary);
}

.btn-gng-secondary {
    background-color: var(--gng-secondary);
    color: white;
}

.btn-gng-secondary:hover {
    border-color: var(--gng-secondary);
    color: white;
}

.btn-outline-gng-secondary {
    border-color: var(--gng-secondary);
    color: white;
}

.btn-outline-gng-secondary:hover {
    background-color: var(--gng-secondary);
    color: white;
}

#errorToast {
    border-top: none;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Styles for trait tracker */
.blood-tracker {
  /* Shape & Sizing */
  width: 32.5px;
  height: 50px;
  border-radius: 50%;
  position: relative;
  overflow: hidden; /* Keeps the shimmer inside the gem */
  cursor: pointer;

  /* Base Color, Depth, and Static Shine */
  background: 
    /* The static top-right reflection */
    radial-gradient(ellipse at 75% 25%, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0) 40%),
    /* The core ruby color and 3D shading */
    radial-gradient(ellipse at bottom left, #e61c38 0%, #8a0314 60%, #3a0005 100%);
  
  /* Adds physical depth to the stone itself */
  box-shadow: 
    0 15px 25px rgba(0, 0, 0, 0.4), 
    inset 0 -5px 15px rgba(0, 0, 0, 0.6);
}

.blood-tracker-used {
  /* Shape & Sizing */
  width: 32.5px;
  height: 50px;
  border-radius: 50%;
  position: relative;
  overflow: hidden; /* Keeps the shimmer inside the gem */

  /* Dull, Dark Color & Flat Depth (No shine layer) */
  background: 
    /* A very dark, desaturated red gradient for basic 3D volume without reflection */
    radial-gradient(ellipse at bottom left, #5c1822 0%, #36070e 60%, #1f0105 100%);
  
  /* Heavier, Softer Shadows */
  box-shadow: 
    0 10px 20px rgba(0, 0, 0, 0.6), 
    inset 0 -5px 15px rgba(0, 0, 0, 0.8);
}

/* The Shimmer Layer (Invisible until hover) */
.blood-tracker::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%; 
  height: 200%;
  
  /* The bright diagonal light beam */
  background: linear-gradient(
    225deg, 
    rgba(255, 255, 255, 0) 40%, 
    rgba(255, 255, 255, 0.6) 50%, 
    rgba(255, 255, 255, 0) 60%
  );
  
  /* Start position: Pulled up and to the right */
  transform: translate(50%, -50%);
  transition: transform 0.6s ease-in-out;
  pointer-events: none; /* Ensures the hover state doesn't flicker */
}

/* 4. The Hover Animation */
.blood-tracker:hover::after {
  /* End position: Sweeps down and to the left */
  transform: translate(-50%, 50%);
}

/* The Bright, Interactive Sapphire */
.willpower-tracker {
  width: 50px;
  height: 50px;
  position: relative;
  cursor: pointer;

  /* The cookie-cutter that creates the 8-pointed star */
  clip-path: polygon(
    50% 0%, 58% 28%, 85% 15%, 72% 42%, 
    100% 50%, 72% 58%, 85% 85%, 58% 72%, 
    50% 100%, 42% 72%, 15% 85%, 28% 58%, 
    0% 50%, 28% 42%, 15% 15%, 42% 28%
  );

  /* Deep rich blues with a bright white reflection in the top-left */
  background: 
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0) 35%),
    radial-gradient(circle at center, #2d6fc4 0%, #1a468c 50%, #061533 100%);
}

/* The Shimmer Layer (Invisible until hover) */
.willpower-tracker::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%; 
  height: 200%;
  
  /* The diagonal light beam */
  background: linear-gradient(
    225deg, 
    rgba(255, 255, 255, 0) 40%, 
    rgba(255, 255, 255, 0.6) 50%, 
    rgba(255, 255, 255, 0) 60%
  );
  
  /* Start position: Top right */
  transform: translate(50%, -50%);
  transition: transform 0.6s ease-in-out;
  pointer-events: none;
}

/* The Hover Animation */
.willpower-tracker:hover::after {
  /* End position: Sweeps to bottom left */
  transform: translate(-50%, 50%);
}

/* The Dull, Used Sapphire */
.willpower-tracker-used {
  width: 50px;
  height: 50px;
  position: relative;
  
  /* Identical 8-point star shape */
  clip-path: polygon(
    50% 0%, 58% 28%, 85% 15%, 72% 42%, 
    100% 50%, 72% 58%, 85% 85%, 58% 72%, 
    50% 100%, 42% 72%, 15% 85%, 28% 58%, 
    0% 50%, 28% 42%, 15% 15%, 42% 28%
  );

  /* Dark, desaturated blues lacking any shiny reflection */
  background: radial-gradient(circle at center, #1b2e47 0%, #0f1c2e 60%, #050b14 100%);
}

.willpower-tracker-shadow-wrapper {
  /* This reads the shape of the star inside it and casts a perfect shadow */
  filter: drop-shadow(0px 8px 10px rgba(0, 0, 0, 0.6));
}

/* 1. The Bright, Interactive Topaz */
.luck-tracker {
  width: 50px;
  height: 50px;
  position: relative;
  cursor: pointer;

  /* A 16-point polygon that creates a faceted, 4-leaf clover shape */
  clip-path: polygon(
    50% 0%, 65% 15%, 60% 40%, /* Top Lobe */
    85% 35%, 100% 50%, 85% 65%, /* Right Lobe */
    60% 60%, 65% 85%, 50% 100%, /* Bottom Lobe */
    35% 85%, 40% 60%, 15% 65%, /* Left Lobe */
    0% 50%, 15% 35%, 40% 40%, 
    35% 15% /* Back to start */
  );

  /* Golden/Amber hues with a bright white reflection in the top-left */
  background: 
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 30%),
    radial-gradient(circle at center, #ffe600 0%, #d48c00 50%, #4a2e00 100%);
}

/* The Shimmer Layer (Invisible until hover) */
.luck-tracker::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%; 
  height: 200%;
  
  /* The diagonal light beam */
  background: linear-gradient(
    225deg, 
    rgba(255, 255, 255, 0) 40%, 
    rgba(255, 255, 255, 0.6) 50%, 
    rgba(255, 255, 255, 0) 60%
  );
  
  /* Start position: Top right */
  transform: translate(50%, -50%);
  transition: transform 0.6s ease-in-out;
  pointer-events: none;
}

/* The Hover Animation */
.luck-tracker:hover::after {
  /* Sweeps to bottom left */
  transform: translate(-50%, 50%);
}

/* The Dull, Used Topaz */
.luck-tracker-used {
  width: 50px;
  height: 50px;
  position: relative;
  
  /* Identical faceted clover shape */
  clip-path: polygon(
    50% 0%, 65% 15%, 60% 40%, 
    85% 35%, 100% 50%, 85% 65%, 
    60% 60%, 65% 85%, 50% 100%, 
    35% 85%, 40% 60%, 15% 65%, 
    0% 50%, 15% 35%, 40% 40%, 
    35% 15%
  );

  /* Desaturated mustards and dark browns lacking any shiny reflection */
  background: radial-gradient(circle at center, #5c4716 0%, #302202 60%, #120c00 100%);
}

.luck-tracker-shadow-wrapper {
  /* This reads the shape of the clover inside it and casts a perfect shadow */
  filter: drop-shadow(0px 8px 10px rgba(0, 0, 0, 0.6));
}

/* Style for field descripton on forms  */
.field-description {
    padding: 10px 5px 10px 15px;
}

/* --- Modifies Bootstrap floating-label functionality --- */
.form-floating > label {
    transition: opacity .15s ease-in-out, transform .15s ease-in-out, color .15s ease-in-out;
    transform: translateX(0.75rem);
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label,
.form-floating > .form-select ~ label {
    transform: scale(0.85) translateY(-0.75rem) translateX(0.75rem);
    font-weight: 700;
}
/* --- End modification of Bootstrap floating-label functionality --- */