/* --- BASIC RESET AND MY FONT PREFERENCE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Verdana, sans-serif;
    line-height: 1.6;
}

/* --- MAIN PAGE LAYOUT MOBILE FIRST (GRID) --- */
body {
    display: grid;
    grid-template-areas: 
    "header"
    "nav"
    "main"
    "aside"
    "footer";
    gap: 10px;          /* Visually separates the elements */
    min-height: 100vh;  /* Full viewport height */
}

header {
    grid-area: header;
    padding: 1rem;
    background-color: palevioletred;
    color: white;
}

nav {
    grid-area: nav;
    padding: 1rem;
    background-color: palevioletred;
    border-radius: 0 16px 16px 0;
}

nav ul {
    display: flex;
    flex-direction: column;
    gap: 20px;          /* Space between links */
    list-style: none;   /* Removes bullet points */
}

nav a {
    padding: 10px 15px;
    background-color: lavender;
    color: #000;
    text-decoration: none;
    border-radius: 5px;
}

nav a:hover,
nav a:focus {
    background-color: palegoldenrod;
}

main {
    grid-area: main;
    padding: 2rem;
    background: url("../images/valentinesbackground.webp") no-repeat;
    background-size: cover;
    border-radius: 16px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

aside {
    grid-area: aside;
    padding: 2rem;
    background-color: lavender;
    border-radius: 16px 0 0 16px;
}

footer {
    grid-area: footer;
    padding: 1rem;
    background-color: powderblue;
}

/* --- Between layout --- */
@media (min-width: 510px) {
    nav,
    nav ul {
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        gap: 20px;          /* Space between links */
        list-style: none;   /* Removes bullet points */
    }
}

/* --- BETTER LAYOUT FOR BIGGER SCREENS (Watch and use when it isn't too crowded) --- */
@media (min-width: 920px) {
body {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto 1fr auto;
    grid-template-areas: 
    "header header header"
    "nav main aside"
    "footer footer footer";
    gap: 10px;          /* Visually separates the elements */
    min-height: 100vh;  /* Full viewport height */
}

nav ul {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 20px;          /* Space between links */
    list-style: none;   /* Removes bullet points */
}
}
