/* Reset default margins/padding */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Use Montserrat as the default font */
html, body {
    height: 100%;
    font-family: 'Montserrat', sans-serif;
}

/* 
    FLEX LAYOUT:
    - The body is a column: header at top, main expands in middle, footer at bottom.
*/
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Full viewport height */
}

/* HEADER */
header {
    background: #fff;
    padding: 1rem 0; /* Extra space top/bottom */
    text-align: center;
}

header nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

header nav ul li {
    margin: 0 1rem;
}

header nav ul li a {
    text-decoration: none;
    font-weight: bold;
    color: #333;
}

.logo img {
    height: 48px;
    width: auto;
}

/* MAIN */
main {
    flex: 1;
    padding: 2rem;
    background: #f5f5f5;
    /* Remove justify-content and align-items to let content flow naturally */
}

.content-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.page-title {
    margin-bottom: 2rem;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

/* FOOTER */
footer {
    background: #fff;
    text-align: center;
    padding: 1rem;
    border-top: 1px solid #ccc;
}

.footer-separator {
    margin: 0 0.5rem; /* space around separator */
}

/* CONTAINERS */
.canvas-container, .spreadsheet-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.canvas-container canvas {
    display: block;
    width: 80%;
    max-width: 1000px;
}

.spreadsheet-container iframe {
    border: none;
}

/*
  MEDIA QUERY:
  - Increase base font size or adjust spacing on smaller screens
  - Also let the canvas container have some constraints

*/
@media (max-width: 600px) {
    html {
        font-size: 18px; /* slightly larger text on smaller screens if desired */
    }
}
