
/* Import a Star Wars-esque font (e.g., "Pathway Extreme" for a scifi feel) */
@import url('https://fonts.googleapis.com/css2?family=Pathway+Extreme:wght@400;700&display=swap');

:root {
    --star-wars-yellow: #ffe81f;
    --dark-space-blue: #1a1a2e;
    --button-bg-dark: #33415c;
    --button-bg-light: #4a5c7c;
    --text-light: #ffffff;
    --shadow-color: rgba(0, 0, 0, 0.4);
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Pathway Extreme', sans-serif;
    background-color: var(--dark-space-blue);
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    align-items: center;
    text-align: center;
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

header {
    width: 100%;
    padding: 2rem 1rem;
    background: linear-gradient(180deg, rgba(26,26,46,1) 0%, rgba(26,26,46,0.8) 70%, rgba(26,26,46,0) 100%);
    box-shadow: 0 4px 8px var(--shadow-color);
}

.star-wars-banner {
    max-width: 100%;
    height: auto;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(255, 232, 31, 0.3);
}

h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    color: var(--star-wars-yellow);
    text-shadow: 0 0 10px rgba(255, 232, 31, 0.7), 0 0 20px rgba(255, 232, 31, 0.4);
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

#welcome-text {
    font-size: clamp(1rem, 3vw, 1.4rem);
    margin-top: -0.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.9);
}

#soundboard-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); /* Adjusted minmax for better mobile spacing */
    gap: 1.5rem;
    padding: 2rem;
    width: 100%;
    max-width: 1200px;
    margin: 2rem auto;
    flex-grow: 1; /* Allow container to grow and push footer down */
}

.sound-button {
    background-color: var(--button-bg-dark);
    border: 2px solid var(--star-wars-yellow);
    color: var(--text-light);
    padding: 1rem;
    text-align: center;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    border-radius: 10px;
    box-shadow: 0 4px 15px var(--shadow-color);
    transition: all 0.2s ease-in-out;
    min-height: 120px; /* Ensure buttons have a minimum size */
}

.sound-button:hover {
    background-color: var(--button-bg-light);
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 6px 20px rgba(255, 232, 31, 0.4);
    border-color: var(--text-light);
}

.sound-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px var(--shadow-color);
    background-color: var(--button-bg-dark);
}

.sound-button svg { /* Styling Lucide icons */
    width: 40px;
    height: 40px;
    margin-bottom: 0.8rem;
    color: var(--star-wars-yellow);
    filter: drop-shadow(0 0 5px rgba(255, 232, 31, 0.5));
}

footer {
    width: 100%;
    padding: 1.5rem;
    background-color: rgba(26, 26, 46, 0.7);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-top: 2rem; /* Ensure space above footer */
    box-shadow: 0 -4px 8px var(--shadow-color);
}

.sound-button.playing {
    border-color: #aaffaa; /* Brighter, "active" color */
    box-shadow: 0 0 20px rgba(170, 255, 170, 0.7); /* Green glow */
    transform: scale(1.05); /* Slight bounce */
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    #soundboard-container {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 1rem;
        padding: 1rem;
    }

    .sound-button {
        font-size: 0.95rem;
        padding: 0.8rem;
        min-height: 100px;
    }

    .sound-button svg {
        width: 30px;
        height: 30px;
        margin-bottom: 0.5rem;
    }

    header {
        padding: 1.5rem 1rem;
    }

    h1 {
        font-size: 2.5rem;
    }
    #welcome-text {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    #soundboard-container {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 0.8rem;
        padding: 0.8rem;
    }

    .sound-button {
        font-size: 0.9rem;
        padding: 0.6rem;
        min-height: 80px;
    }

    .sound-button svg {
        width: 25px;
        height: 25px;
        margin-bottom: 0.4rem;
    }

    h1 {
        font-size: 2rem;
    }
}
    