@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&family=Lato:wght@300;400;700&display=swap');

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1a102e; 
}
::-webkit-scrollbar-thumb {
    background: #4c3a6e; 
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #d4af37; 
}

body {
    font-family: 'Lato', sans-serif;
    background-color: #0f0a1e;
    color: #e2e8f0;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .mystic-font {
    font-family: 'Cinzel', serif;
}

/* Starry Background Animation */
.stars, .twinkling {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.stars {
    background: #000 url('http://www.script-tutorials.com/demos/360/images/stars.png') repeat top center;
    z-index: -2;
}

.twinkling {
    background: transparent url('http://www.script-tutorials.com/demos/360/images/twinkling.png') repeat top center;
    z-index: -1;
    animation: move-twink-back 200s linear infinite;
    opacity: 0.4;
}

@keyframes move-twink-back {
    from {background-position:0 0;}
    to {background-position:-10000px 5000px;}
}

/* Floating Animation */
.float {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0% { transform: translate(0,  0px); }
    50% { transform: translate(0, 15px); }
    100% { transform: translate(0, -0px); }
}

/* Custom glow effects */
.glow-text {
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.glow-box {
    box-shadow: 0 0 15px rgba(45, 27, 78, 0.5);
    transition: all 0.3s ease;
}

.glow-box:hover {
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.4);
    border-color: #d4af37;
}

/* Loader */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0f0a1e;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

/* Arcana Card Styles */
.arcana-card {
    background: linear-gradient(145deg, #1a102e, #2d1b4e);
    border: 1px solid #4c3a6e;
}

/* Navigation Menu - Bottom Fixed usually, or side */
.mystic-nav-item {
    position: relative;
    overflow: hidden;
}
.mystic-nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: #d4af37;
    transition: width 0.3s ease;
}
.mystic-nav-item:hover::after {
    width: 100%;
}
