:root {
    --primary-color: #FF2E63;    
    --secondary-color: #00FFA3;  
    --accent-color: #4D4DFF;    
    --background-color: #08081A; 
    --surface-color: #12122A;   
    --text-color: #FFFFFF;      
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    font-family: 'Poppins', sans-serif;
    background: 
        radial-gradient(circle at 0% 0%, rgba(127, 90, 240, 0.15), transparent 50%),
        radial-gradient(circle at 100% 0%, rgba(44, 182, 125, 0.15), transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(255, 142, 60, 0.15), transparent 50%),
        radial-gradient(circle at 0% 100%, rgba(127, 90, 240, 0.15), transparent 50%),
        var(--background-color);
    color: var(--text-color);
    margin: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    text-align: center;
}

.hero-content {
    position: relative;
    background: rgba(18, 18, 42, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 50px rgba(255, 46, 99, 0.2);
    padding: 40px;
    border-radius: 15px;
    max-width: 700px;
    width: 100%;
    transition: all 0.5s ease-in-out;
}

h1 {
    font-size: 3rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(255, 46, 99, 0.5);
    animation: textGlow 2s ease-in-out infinite;
}

@keyframes textGlow {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.3); }
}

.code-example {
    background-color: var(--surface-color);
    border-radius: 10px;
    padding: 20px;
    margin-top: 30px;
    text-align: left;
    font-family: 'Courier New', monospace;
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-color);
}

.centering-methods {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.method {
    background: rgba(18, 18, 42, 0.8);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
    color: var(--text-color);
    cursor: pointer;
    animation: cardGlow 3s ease-in-out infinite;
}

@keyframes cardGlow {
    0%, 100% { box-shadow: 0 5px 15px rgba(255, 46, 99, 0.2); }
    50% { box-shadow: 0 5px 30px rgba(0, 255, 163, 0.3); }
}

.method:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 10px 40px rgba(77, 77, 255, 0.4);
}

.method h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .centering-methods {
        flex-direction: column;
    }

    h1 {
        font-size: 2rem;
    }
}

.divContainer {
    position: absolute;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    top: 0;
    left: 0;    
    z-index: -1;
}

.floating-div, .floating-div1, .floating-div2 {
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: float1 100s linear infinite, glow 3s ease-in-out infinite, neon 1.5s ease-in-out infinite;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    position: absolute;
    width: 175px;
    height: 50px;
    padding: 10px;
    text-align: center;
    color: white;
    border-radius: 10px;
}

.floating-div {
    top: 15%;
    left: 10%;
    opacity: 0.8;
    box-shadow: 0 0 20px rgba(127, 90, 240, 0.4);
}

.floating-div1 {
    top: 75%;
    left: 70%;
    opacity: 0.8;
    animation: float2 200s linear infinite;
    box-shadow: 0 0 20px rgba(44, 182, 125, 0.4);
}

.floating-div2 {
    top: 85%;
    left: 20%;
    opacity: 0.8;
    animation: float3 300s linear infinite;
    box-shadow: 0 0 20px rgba(255, 142, 60, 0.4);
}

@keyframes float1 {
    0% { transform: translate(0, 0); }
    25% { transform: translate(20vw, 10vh); }
    50% { transform: translate(-15vw, 20vh); }
    75% { transform: translate(25vw, -10vh); }
    100% { transform: translate(0, 0); }
}

@keyframes float2 {
    0% { transform: translate(0, 0); }
    25% { transform: translate(-20vw, -10vh); }
    50% { transform: translate(15vw, 10vh); }
    75% { transform: translate(-25vw, 15vh); }
    100% { transform: translate(0, 0); }
}

@keyframes float3 {
    0% { transform: translate(0, 0); }
    25% { transform: translate(25vw, 15vh); }
    50% { transform: translate(-20vw, -10vh); }
    75% { transform: translate(15vw, -15vh); }
    100% { transform: translate(0, 0); }
}

@keyframes glow {
    0% { filter: brightness(1) blur(0px); }
    50% { filter: brightness(1.5) blur(3px); }
    100% { filter: brightness(1) blur(0px); }
}

@keyframes neon {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 255, 255, 0.4), 0 0 40px currentColor; }
    50% { box-shadow: 0 0 40px rgba(255, 255, 255, 0.6), 0 0 80px currentColor; }
}

.centered-demo {
    position: relative;
    display: inline-block;
    margin: 20px auto;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    padding: 15px 30px;
    border-radius: 10px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(127, 90, 240, 0.3);
    animation: float 3s ease-in-out infinite, neon 1.5s ease-in-out infinite;
    border: 2px solid rgba(255, 255, 255, 0.1);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

.playground-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: 
        radial-gradient(circle at 0% 0%, rgba(127, 90, 240, 0.15), transparent 50%),
        radial-gradient(circle at 100% 0%, rgba(44, 182, 125, 0.15), transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(255, 142, 60, 0.15), transparent 50%),
        radial-gradient(circle at 0% 100%, rgba(127, 90, 240, 0.15), transparent 50%),
        var(--background-color);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.5s ease-in-out;
    transform: translateY(20px);
    display: flex;
    flex-direction: column;
    padding: 20px;   
}

.playground-section.active {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.hero-content.fade-out {
    opacity: 0;
    transform: translateY(-20px);
}

.playground-container {
    flex: 1;                
    display: flex;          
    flex-direction: column;     
    height: 100%;
    padding: 80px 20px 20px;
}

.playground-area {
    flex: 1;
    background: var(--surface-color);
    border-radius: 15px;
    position: relative;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.3);
    overflow: auto;
    max-height: calc(100vh - 200px);
    padding: 20px;
}

.playground-area::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

.playground-area::-webkit-scrollbar-track {
    background: var(--surface-color);
    border-radius: 6px;
}

.playground-area::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 6px;
    border: 3px solid var(--surface-color);
}

.playground-area::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
}

.playground-btn {
    margin-top: 30px;
    padding: 15px 30px;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-color);
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(127, 90, 240, 0.3);
    animation: neon 1.5s ease-in-out infinite;
}

.playground-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(127, 90, 240, 0.5);
}

.back-btn {
    position: fixed;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-color);
    cursor: pointer;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(127, 90, 240, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    text-decoration: none;
}

.back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(127, 90, 240, 0.5);
}

.back-btn.home-btn {
    top: 20px;
    left: 20px;
}

.back-btn:not(.home-btn) {
    top: 20px;
    right: 20px;
}

.hidden {
    display: none !important;
}

/* Control Buttons */
.controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.control-btn {
    padding: 12px 24px;
    background: var(--surface-color);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.control-btn:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    box-shadow: 0 0 20px rgba(127, 90, 240, 0.3);
    transform: translateY(-2px);
}

/* Target Div */
.target-div {
    width: 200px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(127, 90, 240, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
    animation: neon 1.5s ease-in-out infinite;
}

@keyframes neon {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.4),
                   0 0 40px var(--primary-color);
    }
    50% { 
        box-shadow: 0 0 40px rgba(255, 255, 255, 0.6),
                   0 0 80px var(--primary-color);
    }
}

.playground-wrapper {
    display: flex;
    gap: 20px;
    flex: 1;
}

.elements-panel {
    width: 250px;
    background: var(--surface-color);
    border-radius: 15px;
    padding: 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.element-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 15px;
    cursor: grab;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 15px;
}

.element-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
    box-shadow: 0 0 20px rgba(127, 90, 240, 0.2);
}

.element-item:active {
    cursor: grabbing;
}

.preview-box {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.preview-box.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;  
}

.element-item span {
    color: var(--text-color);
    font-size: 14px;
}

.target-div {
    width: 200px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(127, 90, 240, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
    animation: neon 1.5s ease-in-out infinite;
    cursor: grab;
    user-select: none;
    touch-action: none;
}

.target-div:active {
    cursor: grabbing;
}

.target-div.dragging {
    opacity: 0.8;
    box-shadow: 0 0 30px rgba(127, 90, 240, 0.5);
}

@keyframes neon {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.4),
                   0 0 40px var(--primary-color);
    }
    50% { 
        box-shadow: 0 0 40px rgba(255, 255, 255, 0.6),
                   0 0 80px var(--primary-color);
    }
}

.target-div.image-div {
    background-color: transparent;
    background-image: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    overflow: hidden;
}

.target-div.image-div:hover {
    opacity: 0.9;
}

.grid-center-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    justify-content: center;
    align-items: center;
    min-height: 100%;
    width: 100%;
    padding: 20px;
}

/* Challenge Page Specific Styles */
.game-container {
    text-align: center;
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
    background: rgba(26, 26, 26, 0.5);
    border-radius: 15px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37),
                0 0 20px rgba(255, 0, 255, 0.3);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: all 0.3s ease;
}

.canvas {
    width: 600px;
    height: 400px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    margin: 20px auto;
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(4px);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

.draggable {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    position: absolute;
    cursor: grab;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    backdrop-filter: blur(4px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    font-weight: bold;
    animation: neon 1.5s ease-in-out infinite;
    user-select: none;
}

.draggable:hover {
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37),
                0 0 20px rgba(255, 0, 255, 0.3);
}

.draggable:active {
    cursor: grabbing;
    transform: scale(1.05);
}

.draggable.centered {
    border: 2px solid var(--secondary-color);
    box-shadow: 0 0 15px var(--secondary-color),
                0 0 30px var(--secondary-color);
    animation: centerGlow 1.5s ease-in-out infinite;
}

@keyframes centerGlow {
    0%, 100% { 
        box-shadow: 0 0 20px var(--secondary-color),
                   0 0 40px var(--secondary-color);
    }
    50% { 
        box-shadow: 0 0 40px var(--secondary-color),
                   0 0 80px var(--secondary-color);
    }
}

@keyframes neon {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.4),
                   0 0 40px var(--primary-color);
    }
    50% { 
        box-shadow: 0 0 40px rgba(255, 255, 255, 0.6),
                   0 0 80px var(--primary-color);
    }
}

#startGame, #retryButton {
    background: rgba(51, 51, 51, 0.8);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 12px 24px;
    font-size: 1.1rem;
    margin: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    border-radius: 5px;
    backdrop-filter: blur(4px);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-color);
    cursor: pointer;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(127, 90, 240, 0.3);
    transition: all 0.3s ease;
}



#startGame:hover, #retryButton:hover {
    transform: translateX(-3px);
    box-shadow: 0 0 20px rgba(127, 90, 240, 0.5);
}


#memePopup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(26, 26, 26, 0.95);
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 15px;
    text-align: center;
    z-index: 1000;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37),
                0 0 20px rgba(255, 0, 255, 0.3);
    backdrop-filter: blur(4px);
    min-width: 300px;
}

#memePopup img {
    max-width: 100%;
    border-radius: 5px;
    margin-bottom: 15px;
}

#memeQuote {
    margin: 15px 0;
    font-size: 1.1rem;
    color: white;
}

/* this is for the hidden retry buttons */
.hidden {
    display: none !important;  
}

.fade-out {
    opacity: 0 !important;
    transition: opacity 0.5s ease;
}

.fade-in {
    animation: fadeIn 0.5s ease-in forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Meme Mode Specific Styles - Arsh */
/* Memes Mode Styles */
#container {
    position: fixed;
    top: 60vh;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 50;
    width: 100%;
    max-width: 800px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 20px;
    flex-wrap: wrap;
}

#centered-box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 100;
    background: rgba(26, 26, 26, 0.95);
    border-radius: 15px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37),
                0 0 20px rgba(255, 0, 255, 0.3);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 20px;
    min-width: 300px;
    display: none;
}

#centered-box.visible {
    display: block;
    opacity: 1;
}

#spooky-heading {
    font-size: clamp(1.5rem, 5vw, 3rem);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(255, 46, 99, 0.5);
    animation: textGlow 2s ease-in-out infinite;
    position: absolute;
    top: 15vh;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    text-align: center;
    padding: 0 20px;
}

#quote {
    font-size: 28px;
    font-weight: bold;
    color: var(--primary-color);
    text-shadow: 0 0 20px rgba(255, 46, 99, 0.6);
    margin-bottom: 15px;
}

#explanation {
    margin-top: 20px;
    font-size: 20px;
    color: var(--text-color);
    font-weight: 500;
}

#centered-box img {
    max-width: 300px;
    height: auto;
    margin: 20px 0;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

#centered-box img:hover {
    transform: scale(1.05);
}

/* Memes Mode Buttons */
.memes-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--text-color);
    border: 2px solid rgba(255, 255, 255, 0.1);
    padding: 12px 24px;
    font-size: 1.1rem;
    margin: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    border-radius: 5px;
    backdrop-filter: blur(4px);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

.memes-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3),
                0 0 20px rgba(255, 0, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Animation for text slide-in */
@keyframes slideIn {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.textual-code {
    opacity: 0;
    transform: translateY(50px);
    animation: slideIn 1s forwards;
    margin-top: 20px;
    font-size: 16px;
    color: var(--text-color);
    text-align: left;
}

.textual-code pre {
    background: var(--surface-color);
    color: var(--primary-color);
    padding: 10px;
    border-radius: 5px;
}

.textual-code-visible {
    opacity: 1;
    transition: opacity 0.5s ease-in;
}

/* Update back button styles */
.back-btn.options-btn {
    font-size: 24px;
    padding: 8px 16px;
    line-height: 1;
}

/* Position the back buttons */
.back-btn.home-btn {
    top: 20px;
    left: 20px;
}

.back-btn.options-btn {
    top: 20px;
    right: 20px;
}

/* Memes Mode Button Styles */
.btn {
    background: rgba(51, 51, 51, 0.8);
    color: var(--text-color);
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 25px 30px;
    font-size: 1.2rem;
    margin: 0 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    border-radius: 10px;
    backdrop-filter: blur(4px);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: 0.5s;
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3),
                0 0 20px rgba(255, 0, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn:hover::before {
    left: 100%;
}

#flexbox-btn {
    background: linear-gradient(135deg, #FF2E63, #FF8E3C);
}

#grid-btn {
    background: linear-gradient(135deg, #4D4DFF, #00FFA3);
}

#absolute-btn {
    background: linear-gradient(135deg, #7F5AF0, #2CB67D);
}

/* Container adjustment for buttons */
#container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 20px;
}

/* Add fade-in animation for code blocks */
pre {
    background: var(--surface-color);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    opacity: 0;
    animation: fadeInCode 1s ease forwards;
    overflow-x: auto;
}

@keyframes fadeInCode {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Style the code inside pre tags */
pre code {
    color: var(--text-color);
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.5;
}

#choose-weapon {
    font-size: clamp(1rem, 3vw, 1.5rem);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(255, 46, 99, 0.5);
    animation: textGlow 2s ease-in-out infinite;
    position: absolute;
    top: 35vh;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    text-align: center;
    padding: 0 20px;
}

/* Add media query for very small screens */
@media (max-height: 500px) {
    #spooky-heading {
        top: 10vh;
    }
    
    #choose-weapon {
        top: 30vh;
    }
}

/* Add media query for smaller screens */
@media (max-height: 700px) {
    #container {
        top: 70vh;
    }
}

@media (max-width: 768px) {
    #container {
        gap: 10px;
        padding: 10px;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 1rem;
    }
}
