* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --solana-purple: #9945FF;
    --solana-blue: #30CCFF;
    --solana-teal: #00C2FF;
    --solana-green: #14F195;
    --solana-gradient-1: linear-gradient(to right, #9945FF, #14F195);
    --solana-gradient-2: linear-gradient(to right, #9945FF, #30CCFF);
    --solana-gradient-3: linear-gradient(to bottom right, #9945FF, #14F195);
    --background-dark: #121212;
    --text-light: #F8F9FA;
    --card-bg: rgba(30, 30, 40, 0.7);
    --button-hover: rgba(255, 255, 255, 0.1);
    --heading-font: 'Inter', 'Arial', sans-serif;
    --body-font: 'Roboto', 'Helvetica', sans-serif;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Roboto:wght@300;400;500&display=swap');

body {
    font-family: 'Inter', 'Arial', sans-serif;
    background-color: var(--background-dark);
    color: var(--text-light);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden;
    /* Create a beautiful Solana-themed background gradient since background.png is not valid */
    background: linear-gradient(135deg, #121212 0%, #1e1e30 50%, #121212 100%);
    background-size: 400% 400%;
    animation: gradientAnimation 15s ease infinite;
    position: relative;
}

/* Create animated Solana-themed background elements */
body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(153, 69, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(20, 241, 149, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(48, 204, 255, 0.08) 0%, transparent 60%);
    z-index: -1;
}

/* Background animation */
@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    padding: 20px;
}

/* Header and navigation */
.header {
    width: 100%;
    text-align: center;
    margin-bottom: 30px;
}

.project-title {
    font-family: var(--heading-font);
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 20px;
    background: var(--solana-gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(153, 69, 255, 0.5);
}

.subtitle {
    font-family: var(--body-font);
    font-size: 1.2rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 25px;
    letter-spacing: 0.5px;
    text-align: center;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
    
    /* Add a subtle gradient text effect */
    background: linear-gradient(to right, #30CCFF, #14F195);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    
    /* Add subtle text shadow for better readability */
    text-shadow: 0 2px 10px rgba(20, 241, 149, 0.3);
    
    /* Add subtle animation */
    animation: subtitle-glow 3s infinite alternate;
}

@keyframes subtitle-glow {
    0% {
        text-shadow: 0 2px 10px rgba(20, 241, 149, 0.3);
    }
    100% {
        text-shadow: 0 2px 20px rgba(20, 241, 149, 0.5);
    }
}

.nav-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.nav-button {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.3);
    background: var(--button-hover);
    border-color: rgba(255, 255, 255, 0.2);
}

.nav-button.twitter {
    background: linear-gradient(135deg, rgba(29, 161, 242, 0.2), transparent);
    border-color: rgba(29, 161, 242, 0.3);
}

.nav-button.community {
    background: linear-gradient(135deg, rgba(153, 69, 255, 0.2), transparent);
    border-color: rgba(153, 69, 255, 0.3);
}

.nav-button.chart {
    background: linear-gradient(135deg, rgba(20, 241, 149, 0.2), transparent);
    border-color: rgba(20, 241, 149, 0.3);
}

/* Paper container and canvas */
.paper-container {
    position: relative;
    width: 100%;
    padding: 20px;
    margin-bottom: 30px;
    perspective: 1000px;
    transform-style: preserve-3d;
}

.paper {
    background-color: white;
    border-radius: 8px;
    width: 100%;
    height: 825px;
    /* Enhanced shadow effect with multiple layers */
    box-shadow: 
        0 10px 40px rgba(153, 69, 255, 0.2),
        0 2px 8px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        0 0 15px rgba(20, 241, 149, 0.1);
    /* Fixed subtle perspective */
    transform: rotateX(1deg);
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    /* Paper texture background */
    background-image: 
        linear-gradient(0deg, rgba(241, 241, 241, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(241, 241, 241, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    border-radius: 2px;
    /* Subtle paper edges */
    border: 1px solid rgba(0, 0, 0, 0.05);
    /* Add subtle glow effect */
    animation: subtle-glow 3s infinite alternate;
}

/* Subtle glow animation for the paper */
@keyframes subtle-glow {
    0% {
        box-shadow: 
            0 10px 40px rgba(153, 69, 255, 0.2),
            0 2px 8px rgba(0, 0, 0, 0.1),
            0 0 0 1px rgba(255, 255, 255, 0.05),
            0 0 15px rgba(20, 241, 149, 0.1);
    }
    100% {
        box-shadow: 
            0 10px 40px rgba(153, 69, 255, 0.25),
            0 2px 8px rgba(0, 0, 0, 0.1),
            0 0 0 1px rgba(255, 255, 255, 0.08),
            0 0 20px rgba(20, 241, 149, 0.15);
    }
}

/* Paper edges effect */
.paper:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8), transparent);
    border-radius: 2px 2px 0 0;
    z-index: 2;
}

.paper:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.8), transparent);
    border-radius: 0 0 2px 2px;
    z-index: 2;
}

/* Paper corners */
.paper-corner-tl, .paper-corner-tr, .paper-corner-bl, .paper-corner-br {
    position: absolute;
    width: 20px;
    height: 20px;
    z-index: 3;
}

.paper-corner-tl {
    top: 0;
    left: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    border-left: 1px solid rgba(0, 0, 0, 0.1);
    border-top-left-radius: 4px;
}

.paper-corner-tr {
    top: 0;
    right: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    border-top-right-radius: 4px;
}

.paper-corner-bl {
    bottom: 0;
    left: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    border-left: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom-left-radius: 4px;
}

.paper-corner-br {
    bottom: 0;
    right: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom-right-radius: 4px;
}

/* Paper fold effect */
.paper-fold {
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, transparent 50%, rgba(0, 0, 0, 0.02) 50%);
    z-index: 2;
}

/* Paper shadow */
.paper-shadow {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 5px;
    bottom: 0;
    background: transparent;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    z-index: -1;
    transform: translateZ(-10px);
    filter: blur(10px);
}

#drawingCanvas {
    width: 100%;
    height: 100%;
    cursor: crosshair;
    position: relative;
    z-index: 1;
}

/* Tools and controls */
.tools {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    width: 100%;
    padding: 20px;
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.color-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.color {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.color:hover {
    transform: scale(1.3);
    animation: color-pulse 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes color-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.35); }
    100% { transform: scale(1.3); }
}

.color.black { background-color: #000000; }
.color.white { background-color: #FFFFFF; }
.color.red { background-color: #FF0000; }
.color.blue { background-color: #0000FF; }
.color.green { background-color: #00FF00; }
.color.yellow { background-color: #FFFF00; }
.color.orange { background-color: #FFA500; }
.color.purple { background-color: #800080; }
.color.pink { background-color: #FFC0CB; }
.color.brown { background-color: #A52A2A; }
.color.solana-purple { background-color: #9945FF; }
.color.solana-blue { background-color: #30CCFF; }
.color.solana-teal { background-color: #00C2FF; }
.color.solana-green { background-color: #14F195; }
.color.solana-light-purple { background-color: #AF7EFF; }
.color.solana-light-blue { background-color: #7BE9FF; }

.color.eraser { 
    background-color: #FFFFFF; 
    border: 1px solid #ddd;
    position: relative;
}

.color.eraser:after {
    content: 'E';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #666;
    font-weight: bold;
    font-size: 14px;
}

.brush-size {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

#brushSize {
    width: 180px;
    cursor: pointer;
    -webkit-appearance: none;
    height: 6px;
    background: linear-gradient(to right, var(--solana-purple), var(--solana-green));
    border-radius: 10px;
    outline: none;
    transition: height 0.3s ease, background 0.3s ease;
}

#brushSize::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.3s ease;
}

#brushSize::-webkit-slider-thumb:hover {
    transform: scale(1.3);
    background-color: var(--solana-purple);
}

#brushSize + label {
    color: var(--text-light);
    font-weight: 500;
}

#clearBtn, #submitWallet {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

#clearBtn, #submitWallet {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.8), rgba(255, 82, 82, 0.8));
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 82, 82, 0.3);
}

#clearBtn:hover, #submitWallet:hover {
    transform: translateY(-3px);
}

#clearBtn:active, #submitWallet:active {
    transform: translateY(0);
}

#clearBtn::after, #submitWallet::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%, -50%);
    transform-origin: 50% 50%;
}

#clearBtn:focus:not(:active)::after, 
#submitWallet:focus:not(:active)::after {
    animation: ripple 0.5s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(30, 30);
        opacity: 0;
    }
}

/* Wallet submission */
.wallet-submission {
    display: flex;
    gap: 15px;
    width: 100%;
    padding: 20px;
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#walletInput {
    flex: 1;
    padding: 15px 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

#walletInput::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

#walletInput:focus {
    border-color: var(--solana-blue);
    box-shadow: 0 0 0 3px rgba(48, 204, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
}

#submitWallet {
    background: var(--solana-gradient-1);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(153, 69, 255, 0.3);
}

#submitWallet:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(153, 69, 255, 0.4);
}

/* Magic effects */
@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .project-title {
        font-size: 2.5rem;
    }
    
    .nav-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .paper {
        height: 600px;
    }
    
    .tools {
        flex-direction: column;
        align-items: center;
    }
    
    .wallet-submission {
        flex-direction: column;
    }
    
    #walletInput, #submitWallet {
        width: 100%;
    }
}

/* Particles container */
#particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

/* Individual particles */
.particle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.5;
    pointer-events: none;
    animation: float 15s infinite ease-in-out;
}

/* Particle animation */
@keyframes float {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
    }
    33% {
        transform: translateY(-50px) translateX(30px) rotate(120deg);
    }
    66% {
        transform: translateY(20px) translateX(-20px) rotate(240deg);
    }
    100% {
        transform: translateY(0) translateX(0) rotate(360deg);
    }
}

/* Secondary font for controls and labels */
.tools label, button, .wallet-submission label, .color-picker-label {
    font-family: var(--body-font);
    font-weight: 400;
}

/* Typography hierarchy for labels */
.section-label {
    font-family: var(--body-font);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.7);
}

/* Project info section */
.info-section {
    margin-top: 25px;
    width: 100%;
}

.info-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.info-card h3 {
    font-family: var(--heading-font);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-light);
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.info-card p {
    font-family: var(--body-font);
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}

/* Canvas controls section */
.canvas-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.control-btn {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    padding: 8px 16px;
    border-radius: 8px;
    font-family: var(--body-font);
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.control-btn i {
    font-size: 0.85rem;
} 