﻿/*
 * Copyright (c) 2026 Mark A. Olbert
 * https://www.JumpForJoySoftware.com
 * fluid.css
 *
 * This file is part of JumpForJoy Software's BookDudes package.
 * 
 * BookDudes is free software: you can redistribute it and/or modify it 
 * under the terms of the GNU General Public License as published by the 
 * Free Software Foundation, either version 3 of the License, or 
 * (at your option) any later version.
 * 
 * BookDudes is distributed in the hope that it will be useful, but 
 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 
 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 
 * for more details.
 * 
 * You should have received a copy of the GNU General Public License along 
 * with BookDudes. If not, see <https://www.gnu.org/licenses/>.
 */

/* Reset basic margins */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: sans-serif;
    background-color: var(--background);
    color: var(--text);
}

/* 1. Fluid Container */
.wrapper {
    width: 90%; /* Occupies 90% of the screen width */
    max-width: 1200px; /* Prevents the site from getting too wide on huge monitors */
    margin: 20px auto; /* Centers the container horizontally */
}

/* Full-width fluid components */
.main-header, .main-footer {
    display: flex;
    width: 100%;
    background-color: var(--header-background);
    color: var(--header-text);
    padding: 20px;
    justify-content: center;
    border-radius: 6px;
}

/* 2. Flexible Grid Row */
.content-area {
    display: flex;
    flex-wrap: wrap; /* Allows items to wrap if the screen gets exceptionally narrow */
    gap: 2%; /* Keeps a fluid 2% gap between columns */
    margin: 20px 0;
}

/* 3. Percentage-Based Columns */
.main-content {
    flex: 1; /* Flex-grow allows it to fill remaining space */
    min-width: 60%; /* Roughly spans 60-70% of the parent row */
    background-color: var(--main-background);
    color: var(--main-text);
    padding: 20px;
    border-radius: 6px;
    border: 1px solid #ddd;
}

.sidebar {
    width: 28%; /* Spans 28% of the row width */
    min-width: 250px; /* Keeps the sidebar readable on smaller viewports */
    background-color: var(--sidebar-background);
    color: var(--sidebar-text);
    padding: 20px;
    border-radius: 6px;
}

.sidebar-link {
    font-weight: 500;
    font-size: 12pt;
    text-decoration: none;
    color: var(--sidebar-text);
}

.sidebar-link:hover {
    color: var(--sidebar-text-link);
    cursor: pointer;
}

h2 {
    margin-bottom: 25px;
}

h3 {
    margin-top: 15px;
    margin-bottom: 15px;
}
