/* Metaverse Theme - Modern, Energetic, Tech-focused */

/* Base styling and fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&family=Orbitron:wght@400;500;700&display=swap');

:root {
    --primary-color: #6600ff;
    --secondary-color: #00ccff;
    --accent-color: #ff3380;
    --dark-bg: #121212;
    --medium-bg: #1e1e2e;
    --light-bg: #2a2a3a;
    --text-light: #f0f0f0;
    --text-muted: #a0a0b0;
    --border-radius: 8px;
    --glow-shadow: 0 0 10px rgba(102, 0, 255, 0.5);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: linear-gradient(135deg, var(--dark-bg), var(--medium-bg));
    color: var(--text-light);
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    padding: 0;
    margin: 0;
    min-height: 100vh;
}

/* Container and layout */
body {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 1rem;
    color: var(--text-light);
    letter-spacing: 1px;
}

h1 {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin: 2rem 0;
    text-transform: uppercase;
}

h2 {
    font-size: 1.8rem;
    color: var(--secondary-color);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
    margin-top: 1rem;
}

h3 {
    font-size: 1.3rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

/* Links and buttons */
a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

a:hover {
    color: var(--accent-color);
    text-shadow: var(--glow-shadow);
}

a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background: linear-gradient(to right, var(--secondary-color), var(--accent-color));
    transition: width 0.3s ease;
}

a:hover::after {
    width: 100%;
}

/* Section hover effect to highlight links */
body>h3:hover a::after,
body>h2:hover a::after {
    width: 100%;
    transition: width 0.5s ease;
}

body>h3:hover a,
body>h2:hover a {
    text-shadow: var(--glow-shadow);
}

/* Add transition delay for staggered animation effect */
body>h3:hover a,
body>h2:hover a {
    transition-delay: 0.1s;
}

/* Create a subtle pulsing glow around links when section is hovered */
@keyframes linkPulse {
    0% {
        text-shadow: 0 0 5px rgba(0, 204, 255, 0.3);
    }

    50% {
        text-shadow: 0 0 10px rgba(0, 204, 255, 0.6);
    }

    100% {
        text-shadow: 0 0 5px rgba(0, 204, 255, 0.3);
    }
}

body>h3:hover a,
body>h2:hover a {
    animation: linkPulse 2s infinite;
    color: var(--secondary-color);
}

/* Make the sections themselves more interactive */
body>h3,
body>h2 {
    position: relative;
    overflow: hidden;
}

body>h3::before,
body>h2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(102, 0, 255, 0.05), rgba(0, 204, 255, 0.05));
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

body>h3:hover::before,
body>h2:hover::before {
    transform: translateX(0);
}

/* Improve link visibility in sections */
h3 a,
h2 a {
    position: relative;
    z-index: 2;
}

/* Cards and sections */
hr {
    border: none;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--accent-color), transparent);
    margin: 2rem 0;
}

/* Section styling */
body>h3,
body>h2 {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    border-left: 4px solid var(--accent-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body>h3:hover,
body>h2:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2), 0 0 15px rgba(102, 0, 255, 0.3);
}

/* Code styling */
pre {
    background: var(--dark-bg);
    border-radius: var(--border-radius);
    padding: 1rem;
    overflow-x: auto;
    border-left: 4px solid var(--primary-color);
    margin: 1rem 0;
}

code {
    font-family: 'Courier New', monospace;
    color: var(--accent-color);
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    display: block;
    margin: 1rem auto;
}

img:hover {
    transform: scale(1.02);
}

/* Iframe styling */
iframe {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    background: var(--light-bg);
    margin: 1rem 0;
}

/* API section styling */
#faucet,
#clock {
    display: block;
    padding: 1rem;
    background: var(--dark-bg);
    border-radius: var(--border-radius);
    margin: 1rem 0;
    border-left: 4px solid var(--secondary-color);
}

/* Special elements for metaverse vibe */
h1::before,
h1::after {
    content: '< >';
    color: var(--accent-color);
    font-size: 2rem;
    vertical-align: middle;
    margin: 0 1rem;
    opacity: 0.7;
}

/* Animation keyframes */
@keyframes pulse {
    0% {
        opacity: 0.7;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.7;
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    body {
        padding: 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    h1::before,
    h1::after {
        font-size: 1.5rem;
    }
}

/* Utility section highlighting */
[href*="Casino"] {
    color: goldenrod;
}

[href*="bob"],
[href*="slag"],
[href*="grease"],
[href*="ink"] {
    font-weight: bold;
}

/* Add some animated elements */
.resource-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 5px;
    border-radius: 50%;
    vertical-align: middle;
}

.resource-bob {
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
    box-shadow: 0 0 10px rgba(255, 107, 107, 0.7);
}

.resource-slag {
    background: linear-gradient(45deg, #339af0, #5bacee);
    box-shadow: 0 0 10px rgba(51, 154, 240, 0.7);
}

.resource-grease {
    background: linear-gradient(45deg, #20c997, #38d9a9);
    box-shadow: 0 0 10px rgba(32, 201, 151, 0.7);
}

.resource-ink {
    background: linear-gradient(45deg, #845ef7, #9775fa);
    box-shadow: 0 0 10px rgba(132, 94, 247, 0.7);
}