/* ==========================================================================
   Modern Design System - Crypt-X Revelation
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;600;800&family=Source+Code+Pro:wght@400;600&display=swap');

:root {
    /* Brand Colors */
    --clr-bg: #0a0a0b;
    --clr-surface: #121214;
    --clr-surface-alt: #1a1a1c;
    --clr-accent: #d4af37;
    --clr-accent-rgb: 212, 175, 55;
    --clr-accent-alt: #ffbf00;
    --clr-text: #e2e2e4;
    --clr-text-muted: #d1d1d6;
    --clr-parchment: #d7c5a1;

    /* Effects */
    --glass-bg: rgba(18, 18, 20, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.7);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Layout */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
}

/* Base Reset */
*,
::after,
::before {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    scroll-padding-top: 100px;
    /* Account for sticky header */
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

body {
    background-color: var(--clr-bg);
    color: var(--clr-text);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Hero Section */
.hero-section {
    background: var(--clr-bg);
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100vh;
}

.hero-wrapper {
    width: 100%;
    height: 100%;
    position: absolute;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.hero-overlay {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    background: radial-gradient(circle at center, transparent 0%, var(--clr-bg) 90%),
        linear-gradient(to bottom, transparent, var(--clr-bg));
    opacity: 0.8;
}

.hero-content {
    width: 100%;
    max-width: 1000px;
    padding: 120px 20px 40px;
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(3rem, 10vw, 5.5rem);
    line-height: 1.1;
    font-weight: 700;
    color: var(--clr-accent);
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.hero-subtitle {
    width: 100%;
    max-width: 700px;
    margin: 20px auto 40px;
    color: var(--clr-text);
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.6;
    font-weight: 300;
    opacity: 0.9;
}

.hero-btns {
    width: 100%;
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

/* Primary Button */
.snake-prim {
    position: relative;
    background: var(--clr-accent);
    color: #000;
    padding: 14px 40px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    overflow: hidden;
    z-index: 1;
    transition: var(--transition);
    border: 1px solid var(--clr-accent);
}

.snake-prim:hover {
    background: transparent;
    color: var(--clr-accent);
    box-shadow: 0 0 20px rgba(var(--clr-accent-rgb), 0.3);
    transform: translateY(-2px);
}

.snake-prim-green {
    background: #589442;
    border-color: #589442;
    color: #fff;
    padding: 14px 40px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    transition: var(--transition);
}

.snake-prim-green:hover {
    background: #6ab34f;
    transform: translateY(-2px);
}

/* Secondary Button */
.snake-sec {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: #fff;
    padding: 14px 40px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.snake-sec:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    transform: translateY(-2px);
}

.snake-prim:hover {
    background: #644f3a;
    color: #000
}

.snake-prim-green:hover {
    background: #D2B48C;
    color: #000
}

.snake-sec:hover {
    background: #fff;
    color: #000
}

.features {
    width: 100%;
    max-width: 1024px;
    padding: 100px 0;
    margin: 0 auto;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: start;
    -ms-flex-pack: start;
    justify-content: flex-start;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
    position: relative
}

.features::after {
    content: "";
    position: absolute;
    width: calc(100% - 40px);
    height: 1px;
    background: #f2f2f2;
    bottom: -1px;
    left: 20px
}

.features-box {

    padding: 5px
}


i {
    font-style: italic;
    /* white-space:nowrap */
}

.demo {
    width: 100%;
    max-width: 728px;
    padding: 100px 0;
    margin: 0 auto;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: start;
    -ms-flex-pack: start;
    justify-content: flex-start;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
    position: relative;
    text-align: center
}

.demo-box {
    width: 100%;
    padding: 20px
}

.editor {
    width: 100%;
    padding: 20px;
    background: #f8f8f8;
    border: 1px solid #ddd;
    overflow: auto;
    text-align: left
}

.code {
    font-family: 'Source Code Pro', monospace;
    font-size: small
}

.code>li {
    white-space: nowrap
}

.highlight {
    padding: 4px 8px;
    background: #f8f8f8;
    display: inline-block;
    color: #7f749a;
    font-family: 'Source Code Pro', monospace;
    font-size: small
}

.und {
    font-style: italic;
    color: #d82b0c;
    display: inline-block
}

.demo-box p {
    margin-bottom: 30px
}

.comment {
    display: block;
    color: #b9b9b9;
    margin-bottom: 5px
}

.ntr {
    color: #333;
    display: inline-block
}

.tag {
    color: #d82b0c;
    display: inline-block
}

.attribute {
    color: #d08701;
    display: inline-block
}

.link {
    color: #00c3e3;
    display: inline-block;
    text-decoration: underline
}

.not-link {
    color: #228b22;
    display: inline-block
}

.bl {
    color: #00c3e3
}

.space {
    display: inline-block;
    width: 20px
}

.footer {
    width: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding: 0 20px 100px 20px;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column
}

@media (max-width: 992px) {
    .features {
        flex-direction: column;
    }
}

.credit {
    margin-top: 20px;
    font-size: small;
    color: var(--clr-text-muted);
}

.credit>a {
    color: var(--clr-accent);
    font-weight: 700;
}

.credit>a:hover {
    text-decoration: underline
}

/* header css */


/* ==========================================================================
   Forms & Inputs
   ========================================================================== */

form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: left;
}

form .grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 600px) {
    form .grid {
        grid-template-columns: 1fr;
    }
}

label {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--clr-accent);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (min-width: 768px) {
    label.inline-label {
        width: 120px;
        margin-bottom: 0;
        flex-shrink: 0;
    }
}

input,
select,
textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    color: var(--clr-text);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--clr-accent);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(var(--clr-accent-rgb), 0.1);
}

/* Error & Success Messages */
.error,
.alert-message {
    background: rgba(255, 82, 82, 0.1);
    border: 1px solid rgba(255, 82, 82, 0.3);
    color: #ff5252;
    padding: 15px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    margin: 10px 0;
    text-align: center;
    display: block;
    width: 100%;
}

.success,
.success-message {
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid rgba(46, 204, 113, 0.3);
    color: #2ecc71;
    padding: 15px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    margin: 10px 0;
    text-align: center;
    display: block;
    width: 100%;
}

.success,
.success-message {
    background: rgba(var(--clr-accent-rgb), 0.1);
    border: 1px solid rgba(var(--clr-accent-rgb), 0.3);
    color: var(--clr-accent);
    padding: 15px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    margin: 10px 0;
    text-align: center;
}

/* global scroll 
 html {
    scroll-behavior: smooth;
  }
  */
/* section css with new header css */
.hero-overlay-med {
    width: 100%;
    height: 50%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    background: #000;
    opacity: .55
}

.hero-content-med {
    width: 100%;
    max-width: 1230px;
    padding: 30px;
    position: relative;
    z-index: 3;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column
}

.section {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;

}

.section-one {
    padding-top: 10px;
    padding-bottom: 10px;

    /* background-size: cover; */
    box-shadow: inset 0 0 0 2000px rgba(255, 255, 255, 0.236);
    /*background-image: linear-gradient(-125deg, rgb(255, 255, 255), rgb(251, 251, 251))*/


}

.section-two {
    padding-top: 10px;
    padding-bottom: 10px;
    background-image: linear-gradient(-125deg, rgba(84, 84, 84, 0.545), rgb(84, 84, 84, 0.545))
}

.section-three {
    padding-top: 10px;
    padding-bottom: 10px;
    background-image: linear-gradient(-125deg, rgb(255, 255, 255), rgb(251, 251, 251))
}

.logo img {
    transition: opacity 0.5s ease;
    /* Adjust duration and easing as needed */
}

/* */

.section-zero {
    height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    perspective: 2px;

}

.section-zero {
    overflow: hidden;
    transform-style: preserve-3d;
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.parallax {
    background-image: url('/img/OldGothicLibrary.webp');
    /* Replace 'path/to/your/image.jpg' with your image path */
    box-shadow: inset 0 0 0 2000px rgba(0, 0, 0, 0.5);
    background-attachment: scroll;
    /* Change from 'fixed' to 'scroll' */
    background-position: center;
    background-size: cover;
    height: 100vh;
}

.half {

    height: 20vh !important;

}

.no-parallax {
    background-color: #111;
    z-index: 999;
}

section h1 {

    text-align: center;
    font-size: 2rem;
    font-family: sans-serif;
    padding-bottom: 20px;

}



.bg::after {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
        url("/img/old_library_4_by_clappedbeanz_dfbim0t-fullview.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

@media screen and (min-width: 768px) {
    /*
    section h1 {
      font-size: 4rem;
    }
    .parallax h1 {
      font-size: 4rem;
    }
	*/

}

#hero {
    display: flex;
    justify-content: space-between;
}

#heroform {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    flex-wrap: nowrap;
    width: auto !important;
    margin: 10px;
}

/* Page content */
.content {
    padding: 16px;
}

/* The sticky class is added to the navbar with JS when it reaches its scroll position */
.sticky {

    top: 0;
    width: 100%;
}


/* ==========================================================================
   Header & Navigation
   ========================================================================== */

/* ==========================================================================
   Header & Navigation (Clean Restart)
   ========================================================================== */

.header {
    width: 100%;
    height: 80px;
    background-color: var(--glass-bg);
    backdrop-filter: blur(15px);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 3000;
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
}

.header.scrolled {
    height: 65px;
    background: rgba(10, 10, 11, 0.98);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Brand Title / Logo */
.logo {
    display: flex;
    align-items: center;
    z-index: 3100;
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--clr-accent);
    letter-spacing: 3px;
    text-transform: uppercase;
    transition: var(--transition);
}

.header.scrolled .logo {
    font-size: 1.25rem;
}

/* Desktop Menu */
.menu {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu li a {
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--clr-text-muted);
    position: relative;
    padding: 10px 0;
    display: block;
}

.menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--clr-accent);
    transition: var(--transition);
}

.menu li a:hover {
    color: var(--clr-accent);
}

.menu li a:hover::after,
.menu li a.active::after {
    width: 100%;
}

/* Mobile Toggle */
.menu-btn {
    display: none !important;
}

.menu-icon {
    display: none;
    cursor: pointer;
    padding: 20px 10px;
    z-index: 3200;
    user-select: none;
}

.navicon {
    background: var(--clr-accent);
    display: block;
    height: 2px;
    position: relative;
    width: 24px;
    transition: background .2s ease-out;
}

.navicon:before,
.navicon:after {
    background: var(--clr-accent);
    content: '';
    display: block;
    height: 100%;
    position: absolute;
    transition: all .2s ease-out;
    width: 100%;
}

.navicon:before {
    top: 8px;
}

.navicon:after {
    top: -8px;
}

/* Responsive / Mobile View */
@media (max-width: 992px) {
    .menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: radial-gradient(circle at center, var(--clr-surface-alt) 0%, var(--clr-bg) 100%);
        backdrop-filter: blur(25px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.6s cubic-bezier(0.85, 0, 0.15, 1);
        z-index: 3100;
        gap: 30px;
    }

    .menu li a {
        font-family: 'Cinzel', serif;
        font-size: 1.8rem;
        color: var(--clr-text);
        letter-spacing: 2px;
    }

    .menu-icon {
        display: block;
    }

    .menu-btn:checked~.menu {
        right: 0;
    }

    .menu-btn:checked~.menu-icon .navicon {
        background: transparent;
    }

    .menu-btn:checked~.menu-icon .navicon:before {
        transform: rotate(-45deg);
        top: 0;
    }

    .menu-btn:checked~.menu-icon .navicon:after {
        transform: rotate(45deg);
        top: 0;
    }
}

/* variables*/


a {
    text-decoration: none;
}

ul {
    list-style: none;
}

.menu li a:focus~.sub-menu {
    display: none;
    /* Hide sub-menu when a link is focused */
}

.container.page {
    text-align: center !important;
}

.left {
    justify-content: left;
    text-align: left;
}

.theme-selection {
    padding-bottom: 5px;
}

.content {
    display: flex;
    align-items: top;
    flex-wrap: wrap;
    justify-content: flex-start;
    /* Align items to the start */
    gap: 20px;
    /* Add consistent spacing between items */
}

.contents {
    display: flex;
    align-items: top;
    flex-wrap: wrap;
    justify-content: space-between;
}

.horizontal-left {
    display: flex;
    align-items: center;
    justify-content: left;
    margin-bottom: 10px;
    /* Adjust space between sections */
}

.horizontal-right {
    display: flex;
    align-items: center;
    justify-content: right;
    margin-bottom: 10px;
    /* Adjust space between sections */
}

.horizontal-center {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    /* Adjust space between sections */
}

.horizontal-center-down {
    flex: 1 1 250px;
    /* Minimum width of 250px, grows as space allows */
    max-width: 300px;
    /* Optionally, limit the max width */
    box-sizing: border-box;
    padding: 10px;
    background-color: rgba(255, 255, 240, 0.8);


    border-radius: 8px;
    text-align: center;
}

.theme-section {
    width: 100%;
    /* Ensures the section takes up full width of the container */
    margin-bottom: 5px;
    /* Adds some spacing below the title */
}

.qr-code-section {
    width: 100%;
    /* Ensures the QR code takes up full width of the container */
    margin-bottom: 10px;
    /* Adds some spacing below the QR code */
    text-align: center;
    /* Centers the QR code image */
}

.quest-link-section {
    width: 100%;
    /* Ensures the link takes up full width of the container */
    margin-top: auto;
    /* Pushes the link to the bottom if there's extra space */
    text-align: center;
    /* Centers the link text */
}

.left-content,
.right-content {
    margin: 0 5px;
    /* Adjust margin as needed */
}

.center-content {
    text-align: center;
}

.clearboth {
    clear: both;
}

select {
    padding: 12px 16px;
    background-color: var(--clr-surface-alt);
    border: 1px solid var(--glass-border);
    color: var(--clr-text);
    border-radius: var(--radius-sm);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    /* Standard 16px */
    cursor: pointer;
    min-width: 200px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23d4af37' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
    padding-right: 45px;
    transition: var(--transition);
}

select:focus {
    outline: none;
    border-color: var(--clr-accent);
    box-shadow: 0 0 0 3px rgba(var(--clr-accent-rgb), 0.2);
}

.quest-filter-wrap {
    margin-bottom: 40px;
    display: flex;
    justify-content: flex-start;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
    width: 100%;
    max-width: 320px;
}

.filter-group label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--clr-accent);
}

@media (max-width: 768px) {
    select {
        font-size: 1.1rem;
        /* ~17.6px to prevent iOS auto-zoom and improve legibility */
        padding: 14px 16px;
        width: 100%;
    }

    .quest-filter-wrap {
        justify-content: center;
        /* Optionally center the whole block on mobile */
    }

    .filter-group {
        max-width: 100%;
    }
}

textarea {
    width: 100%;
    padding: 5px;
    ;
}

.create {
    width: 70% !important;
}

.create_add {
    width: 20%;
}

.form_create {
    padding: 10px 15px !important;
}

.question,
.answer {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 10px;
}

@media (max-width: 600px) {

    .question,
    .answer {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ==========================================================================
   Quest & Page Containers
   ========================================================================== */

.quest,
.page {
    background: var(--clr-surface);
    width: min(100%, 1200px);
    margin: 40px auto;
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-lg);
    color: var(--clr-text);
    position: relative;
    overflow-x: hidden;
}

@media (max-width: 768px) {

    .quest,
    .page {
        padding: 20px 15px;
        margin: 20px auto;
        border-radius: var(--radius-md);
    }
}

.quest::before,
.page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 0% 0%, rgba(var(--clr-accent-rgb), 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.quest h2,
.page h2 {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    color: var(--clr-accent);
    margin-bottom: 30px;
    border-bottom: 2px solid rgba(var(--clr-accent-rgb), 0.2);
    padding-bottom: 10px;
}






.quest p a:hover,
.page p a:hover {
    text-decoration: underline;
}


.quest a.confirm-deletion,
.page a.confirm-deletion {
    text-decoration: none;
    color: red;
    margin-left: 10px;
}

.question {
    width: 100%;
}

input[type="text"] {

    padding: 8px;

}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }




}

.W100 {
    width: 100% !important;
    max-width: unset;
}

/* ==========================================================================
   Parallax & Animations
   ========================================================================== */

#section-zero,
.parallax {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
}

.parallax.bg {
    background-image: linear-gradient(rgba(10, 10, 11, 0.4), rgba(10, 10, 11, 0.8)),
        url('/img/OldGothicLibrary.webp');
}

.moving-bg {
    background-image: linear-gradient(rgba(10, 10, 11, 0.7), rgba(10, 10, 11, 0.7)),
        url('/img/oldGothicMonastery.webp');
    background-size: cover;
    background-attachment: fixed;
    animation: moveBackground 200s linear infinite alternate;
}

.moving-bg-1 {
    background-image: linear-gradient(rgba(10, 10, 11, 0.7), rgba(10, 10, 11, 0.7)),
        url('/img/OldGothicLibrary.webp');
    background-size: cover;
    background-attachment: fixed;
    animation: moveBackground 200s linear infinite alternate;
}

@keyframes moveBackground {
    from {
        background-position: 0% 50%;
    }

    to {
        background-position: 100% 50%;
    }
}

@media (max-width: 768px) {

    .dashboard-content .quest>div[style*="grid-template-columns"],
    .dashboard-content .quest div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
}


.section {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 100px 0px;
    position: relative;
    z-index: 10;
}

/* Keyboard Key Divider */
.key-divider {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 40px 0;
}

.key-divider span {
    background-color: #444;
    /* Key background color */
    color: #fff;
    /* Key text color */
    font-family: 'Courier New', monospace;
    /* Monospace font for keys */
    font-size: 16px;
    border: 1px solid #333;
    /* Key border color */
    border-radius: 5px;
    padding: 10px 15px;
    margin: 5px;
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.2);
    /* Slight shadow for 3D effect */
}

.star-divider {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 20px 0;
}

.star-divider span {
    background-color: #444;
    /* Key background color */
    color: #fff;
    /* Key text color */
    font-family: 'Courier New', monospace;
    /* Monospace font for keys */
    font-size: 16px;
    border: 1px solid #333;
    /* Key border color */
    border-radius: 5px;
    padding: 2px 2px;
    width: 25px;
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.2);
    /* Slight shadow for 3D effect */
}

/* Responsive collapse for mobile */
@media (max-width: 600px) {
    .key-divider span {
        /* flex: 1 1 30%; */
        margin: 3px;
        font-size: 14px;
        padding: 8px 12px;
    }
}

.alert-message {
    background-color: #ffcccc;
    /* Light red background to make it stand out */
    color: #b30000;
    /* Dark red text */
    padding: 15px;
    /* Add padding around the text */
    margin: 20px 0;
    /* Add some margin to space it out from other content */
    border: 1px solid #ff6666;
    /* Red border */
    border-radius: 5px;
    /* Rounded corners */
    font-size: 16px;
    /* Slightly larger font size */
    font-weight: bold;
    /* Make the text bold */
    text-align: center;
    /* Center the text */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    /* Add a subtle shadow for depth */
}

.success-message {
    background-color: #e6ffcc;
    /* Light green background for success */
    color: #336600;
    /* Dark green text */
    padding: 15px;
    /* Add padding around the text */
    margin: 20px 0;
    /* Add some margin to space it out */
    border: 1px solid #99cc66;
    /* Soft green border */
    border-radius: 5px;
    /* Rounded corners */
    font-size: 16px;
    /* Slightly larger font size */
    font-weight: bold;
    /* Make the text bold */
    text-align: center;
    /* Center the text */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    /* Subtle shadow for depth */
}

.horizontal-center-down-wide {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 200px;
    width: 90%;
    margin-bottom: 15px;
    /* margin: 2px; */
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    overflow: hidden;
}

.ticker-container {
    color: #1b1b1a;
    width: 100%;
    height: 200px;
    /* Adjust to fit your design */
    overflow: hidden;
    /* background: rgba(255, 255, 255, 0.8); */
    /* White opaque background */


    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);

    position: relative;
    border: 1px solid #4A3B2C;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 20px;
    background: rgba(255, 255, 240, 0.8);
}

.ticker-wrap {

    top: 0;
    left: 0;
    right: 0;
    animation: ticker-scroll 40s linear infinite;
}

.ticker-item {
    padding: 10px 0;
    border-bottom: 1px solid #333;
}

@keyframes ticker-scroll {
    0% {
        transform: translateY(180px);
        /* Start at the top */
    }

    100% {
        transform: translateY(-100%);
        /* Move up completely */
    }
}



.leaderboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 10px 0 16px;
}

.boards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.board-card {
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    background: #1a1a1c !important;
    color: #e2e2e4 !important;
    font-weight: bold;
    padding: 12px 14px;
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease;
}

.board-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.board-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 6px;
    color: var(--clr-accent);
}

.board-meta {
    color: var(--clr-text-muted);
    font-size: .9rem;
    margin-bottom: 8px;
}

.board-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.board-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 6px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, .08);
}

.board-list li:last-child {
    border-bottom: 0;
}

.board-pos {
    font-weight: 700;
    min-width: 1.5em;
    text-align: center;
}

.board-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.board-score {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}

/* change highlight when a row updates */
.row-changed {
    animation: rowPulse .9s ease;
}

@keyframes rowPulse {
    0% {
        background: #e6ffea;
    }

    100% {
        background: transparent;
    }
}

.hidden-card {
    display: none;
}

.quest-details-container {
    margin-top: 20px !important;

    color: #1b1b1a;
}

.pt-10 {
    padding-top: 10px;
}

.pt-20 {
    padding-top: 20px;
}

.pb-10 {
    padding-bottom: 10px;
}

.pb-20 {
    padding-bottom: 20px;
}

/* ==========================================================================
   Responsive Spacing & Layout FIXES
   ========================================================================= */

@media (max-width: 992px) {
    .container {
        padding: 0 20px;
    }
}

@media (max-width: 768px) {

    /* Hero Content Adjustments */
    .hero-content {
        padding: 100px 15px 30px;
        min-height: auto;
    }

    .hero-subtitle {
        margin: 10px auto 25px;
        font-size: 1rem;
        padding: 0 10px;
        line-height: 1.5;
    }

    /* Primary Content Containers */
    .quest,
    .page {
        padding: 30px 20px;
        margin: 20px auto;
        width: 95%;
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-sm);
    }

    .quest h2,
    .page h2 {
        font-size: 1.8rem;
        margin-bottom: 20px;
        text-align: center;
    }

    /* Buttons Layout */
    .hero-btns {
        flex-direction: column !important;
        width: 100%;
        gap: 15px;
        max-width: 280px;
        margin: 0 auto;
    }

    .hero-btns a {
        width: 100%;
        text-align: center;
        padding: 14px 25px;
        font-size: 0.9rem;
    }

    /* Header Nav Fixes */
    .navbar {
        height: 70px;
        padding: 0 20px;
    }

    .logo {
        font-size: 1.25rem;
        letter-spacing: 2px;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 85px 10px 20px;
    }

    .quest,
    .page {
        padding: 25px 15px;
        margin: 15px auto;
        width: 100%;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
}

/* ==========================================================================
   Contrast & Readability Fixes
   ========================================================================== */

h3,
h4,
h5,
h6 {
    color: var(--clr-accent);
    margin-bottom: 1rem;
    font-family: 'Cinzel', serif;
}

strong {
    color: var(--clr-accent-alt);
    font-weight: 700;
}

::placeholder {
    color: var(--clr-text-muted);
    opacity: 0.6;
}

/* Ensure all types of inputs are readable */
[type="number"],
[type="tel"],
[type="url"],
[type="search"] {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    color: var(--clr-text);
}

/* ==========================================================================
   Dashboard & Tabs
   ========================================================================== */

.dashboard-container {
    max-width: 1200px;
    margin: 40px auto;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 30px;
    align-items: flex-start;
}

@media (max-width: 992px) {
    .dashboard-grid {
        display: block !important;
    }

    .dashboard-container {
        margin: 10px auto !important;
        padding: 0 10px !important;
        width: 100% !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }

    .dashboard-sidebar {
        position: relative !important;
        top: 0 !important;
        width: 100% !important;
        margin: 0 0 20px 0 !important;
        padding: 10px !important;
        box-sizing: border-box !important;
    }

    .dashboard-content {
        width: 100% !important;
        margin: 0 !important;
        padding: 20px 10px !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }
}




.dashboard-tab-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

@media (max-width: 992px) {
    .dashboard-tab-list {
        flex-direction: row !important;
        overflow-x: auto !important;
        padding-bottom: 5px !important;
        -webkit-overflow-scrolling: touch;
        gap: 15px;
        width: 100%;
        scrollbar-width: none;
        /* Firefox */
    }

    .dashboard-tab-list::-webkit-scrollbar {
        display: none;
        /* Safari and Chrome */
    }

    .dashboard-tab {
        white-space: nowrap;
        flex-shrink: 0;
    }
}


.dashboard-tab {
    padding: 14px 20px;
    border-radius: var(--radius-md);
    color: var(--clr-text-muted);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
}

.dashboard-tab i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.dashboard-tab:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--clr-text);
}

.dashboard-tab.active {
    background: rgba(var(--clr-accent-rgb), 0.15);
    color: var(--clr-accent);
    box-shadow: inset 0 0 0 1px rgba(var(--clr-accent-rgb), 0.3);
}

.dashboard-content {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 30px;
    min-height: 600px;
    animation: fadeIn 0.4s ease-out;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .dashboard-content {
        padding: 20px 15px;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr !important;
    }
}

.stat-card {
    background: var(--clr-surface-alt);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100% !important;
}

.stat-value {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    color: var(--clr-accent);
    display: block;
    width: 100%;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--clr-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dashboard-title {
    font-family: 'Cinzel', serif;
    color: var(--clr-accent);
    margin-bottom: 25px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .dashboard-title h2 {
        font-size: 1.4rem !important;
        text-align: center;
        width: 100%;
    }

    .dashboard-title {
        flex-direction: column;
        text-align: center;
        justify-content: center;
    }
}

/* Dashboard Specific Table styling */
.purchase-table-wrapper {
    overflow-x: auto;
    margin-top: 20px;
}

.purchase-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
}

.purchase-table th {
    text-align: left;
    padding: 12px 15px;
    color: var(--clr-accent);
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.purchase-table td {
    background: rgba(255, 255, 255, 0.03);
    padding: 15px;
    color: var(--clr-text);
}

.purchase-table tr td:first-child {
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.purchase-table tr td:last-child {
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.purchase-table tr:hover td {
    background: rgba(255, 255, 255, 0.05);
}

.solve-grid input,
.solve-grid select {
    padding: 8px;
    width: auto !important;
}