/* Document 2 of 10: The main stylesheet (style.css) for the Dopamine Website. */

/* Define custom properties for a consistent color scheme and animations. */
:root {
    --glow-color: hsl(180, 100%, 50%);
    --transition-speed: 0.3s;
}

/* Use the Inter font family defined in the HTML. */
body {
    font-family: 'Inter', sans-serif;
}

/* Style for the container of each interactive module. */
.module-container {
    background-color: #1f2937; /* bg-gray-800 */
    border-radius: 1rem; /* rounded-xl */
    padding: 2rem;
    border: 1px solid #374151; /* border-gray-700 */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    animation: fadeIn 0.5s ease-in-out;
    max-width: 800px;
    margin: auto;
}

/* Keyframe animation for fading in new modules. */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Styling for the active navigation button to indicate the current module. */
.nav-button.active-nav {
    transform: scale(1.1);
    box-shadow: 0 0 15px var(--glow-color), 0 0 25px var(--glow-color);
    border: 1px solid var(--glow-color);
}

/* General button styling for a consistent look and feel across the app. */
.dopamine-button {
    background-color: #374151; /* bg-gray-700 */
    color: #ffffff; /* text-white */
    font-weight: 600; /* font-semibold */
    padding: 0.75rem 1.5rem; /* py-3 px-6 */
    border-radius: 9999px; /* rounded-full */
    border: 1px solid #4b5563; /* border-gray-600 */
    transition: all var(--transition-speed) ease;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

.dopamine-button:hover {
    background-color: #4b5563; /* hover:bg-gray-600 */
    transform: translateY(-2px);
    box-shadow: 0 8px 12px rgba(0,0,0,0.2);
}

.dopamine-button:active {
    transform: translateY(0);
}

/* Generic card styling for content within modules. */
.card {
    background-color: #374151; /* bg-gray-700 */
    border-radius: 0.75rem; /* rounded-lg */
    padding: 1.5rem;
    border: 1px solid #4b5563; /* border-gray-600 */
}
