
/* ==== Base Layout ==== */
html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* ensures body stretches to full screen height */
    background: linear-gradient(to bottom, #bec3c7, #f0f4f2);
    background-repeat: no-repeat;
    background-attachment: fixed;
    font-family: "M PLUS Rounded 1c", sans-serif;
    color: #586266;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
}

main {
    flex: 1;
    padding-top: 60px;   /* room for header */
    padding-bottom: 60px;/* room for footer */
}

/* ==== Header & Footer ==== */
header {
    display: flex;
    background-color: #5e6a72;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    position: fixed;       /* Lock it at the top */
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #5e6a72;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
    position: fixed;       /* Lock it at the bottom */
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

/* ==== Footer Text ==== */

nav {
    display: flex;
    gap: 20px;
}

/* ==== Navigation ==== */
nav a {
    text-decoration: none;
    color: #f0f4f2;
    font-weight: 400;
}

nav a:hover {
    color:#c4d4cc;
}

.foot {
    color: #92A4A9;
}

@media (max-width: 900px) {
    main {
        padding-top: 30px;   /* room for header */
        padding-bottom: 30px;/* room for footer */
    }
    header {
        padding: 5px;
    }
    footer {
        padding: 5px;
    }

}