/* Global Reset and Base Styles */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --background-color: #f8f9fa;
    --text-color: #343a40;
    --light-text: #ffffff;
    --max-width: 1200px;
    --padding-base: 1rem;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--padding-base);
}

/* Header Styles */
.main-header {
    background-color: var(--text-color);
    color: var(--light-text);
    padding: 0.75rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.brand-link {
    color: var(--light-text);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: opacity 0.3s ease;
}

.brand-link:hover {
    opacity: 0.85;
}

/* Main Content & Hero Section */
.content-area {
    flex-grow: 1;
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.hero {
    text-align: center;
    padding: 2rem 0;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* Button Styles */
#greetingButton {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    color: var(--light-text);
    background-color: var(--primary-color);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
}

#greetingButton:hover {
    background-color: #0056b3;
}

#greetingButton:active {
    transform: scale(0.98);
}

#messageOutput {
    margin-top: 1.5rem;
    font-size: 1.2rem;
    font-weight: bold;
    min-height: 1.5em; /* Prevents layout shift when text appears */
    color: green;
}


/* Footer Styles */
.main-footer {
    background-color: var(--text-color);
    color: var(--secondary-color);
    text-align: center;
    padding: 1rem 0;
    font-size: 0.9rem;
    margin-top: auto; /* Pushes footer to the bottom */
}

/* Responsive Adjustments */
@media (min-width: 768px) {
    .hero h1 {
        font-size: 3.5rem;
    }

    .hero p {
        font-size: 1.3rem;
    }
}