/* -----------------------------------------------------------
   GENERAL PAGE STYLING
----------------------------------------------------------- */

:root {
    --sand: #f4d2a9;
    --terracotta: #cb7c5d;
}

/* -----------------------------------------------------------
   FULL-SCREEN BACKGROUND IMAGE — APPLIES TO ALL PAGES
----------------------------------------------------------- */

body {
    margin: 0;
    background: url("../img/mountains.png") no-repeat center center fixed;
    background-size: cover; /* Makes the image fill the screen */
    font-family: Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* -----------------------------------------------------------
   HEADER + FOOTER
----------------------------------------------------------- */

header {
    background: rgba(203, 124, 93, 0.85);
    padding: 1rem;
}

#top-nav {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

#top-nav button {
    padding: 0.5rem 1rem;
    border: 1px solid #fff;
    background: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    border-radius: 6px;
    cursor: pointer;
}

/* -----------------------------------------------------------
   LAYOUT CONTAINER
   Flexbox gives us a fixed invisible sidebar on the right
----------------------------------------------------------- */

#layout {
    display: flex;
    justify-content: flex-start;
    flex: 1;
    position: relative;
}

/* -----------------------------------------------------------
   MAIN CONTENT
   Still centered because justify-content:center is applied
----------------------------------------------------------- */

#main-content {
    flex: 1;
    width: 700px;
    margin: 0 auto;
    max-width: 90%;
    padding: 2rem;
    text-align: center;
}

/* -----------------------------------------------------------
   LEFT SIDEBAR
----------------------------------------------------------- */
#left-sidebar {
    width: 150px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;

    /* Position tight to the left side */
    padding: 1rem 0.5rem 0 0.5rem;
}

/* Placeholder sidebar buttons */
.sidebar-btn {
    padding: 0.5rem;
    border: 1px solid #444;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 4px;
    cursor: pointer;
}


.sidebar-btn:hover {
    background: white;
}

/* FOOTER — matches header style */
footer {
    background: rgba(203, 124, 93, 0.85);
    color: white;
    text-align: center;
    padding: 1rem;
}

/* -----------------------------------------------------------
   FADE-IN EFFECT for Dynamic Loading
----------------------------------------------------------- */

.fade {
    opacity: 0;
    transition: opacity 0.4s ease-in;
}

.fade.show {
    opacity: 1;
}
