/* Sets the height and background for the entire page */
html, body {
    height: 100%; /* Important for vertical centering */
    margin: 0;
    background-color: white;
    font-family: 'Rock Salt', cursive; /* Default font for text elements */
    color: #222; /* Dark gray text */
}

/* This container manages the centering of all content */
.main-container {
    display: flex;
    flex-direction: column; /* Stacks H1, P, and NAV vertically */
    justify-content: center; /* Centers content vertically in the middle of the screen */
    align-items: center; /* Centers content horizontally */
    height: 100%;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
}

/* ---------------------------------- */
/* 2. HEADER TEXT STYLES (Rock Salt)  */
/* ---------------------------------- */

/* Styling for the main title: "Dirty After Work." */
h1 {
    margin: 0;
    font-weight: normal; 
    font-family: 'Rock Salt', cursive; /* Ensures the scratched font is applied */

    /* Sets the bottom margin to 3rem to create space before the navigation */
    margin: 0 0 3rem 0; 

    /* Responsive Font Size: Min 2.5rem, Max 7rem, adjusts based on 10% viewport width */
    font-size: clamp(2.5rem, 10vw, 7rem); 
    line-height: 1.2;
}

/* Styling for the subtitle: "A Website." */
p {
    /* Sets the bottom margin to 6rem to create space before the navigation */
    margin: 0 0 6rem 0; 
    
    font-family: 'Rock Salt', cursive; /* Ensures the scratched font is applied */

    /* Responsive Font Size: Smaller than H1 */
    font-size: clamp(1rem, 4vw, 2.2rem);
}

/* ---------------------------------- */
/* 3. NAVIGATION STYLES (Heebo)      */
/* ---------------------------------- */

.main-nav {
    /* Removed redundant margin-top, space is handled by the P tag's margin-bottom */
    display: flex; 
    flex-wrap: wrap; 
    justify-content: center; 
    max-width: 80vw; 
    text-align: center;
}

/* Styling for the individual links */
.main-nav a {
    font-family: 'Heebo', sans-serif; /* Uses the clean, modern font */
    font-size: clamp(1rem, 3vw, 1.5rem); 
    text-decoration: none; 
    color: #444; 
    padding: 0.5rem 1.5rem;
    margin: 0.5rem;
    border: 1px solid transparent; 
    transition: all 0.3s ease;
}

/* Hover/Active State */
.main-nav a:hover {
    color: #000; 
    border-color: #000; /* Adds the subtle border on hover */
    cursor: pointer;
}

/* Mobile Adjustments */
@media (max-width: 600px) {
    .main-nav a {
        padding: 0.5rem 1rem;
        margin: 0.3rem;
    }
}
