div#container {
    width: 100% !important;
    font-family: 'Roboto', 'Open Sans', sans-serif;
    color: #333; /* Neutral text color */
}

.exampleWarning {
    background-color: #FFE0B2;
    font-weight: bold;
    font-size: large;
    padding: 15px;
    margin: -5px -10px 5px -10px;
    color: #D32F2F;
}

.pageHeader {
    padding-top: 15px;
}

.ppLogo {
    float: right;
}

    .ppLogo img {
        height: 50px;
    }

/*Options*/
/* Sticky pageOptions */
.sticky {
    position: sticky;
    top: 0;
    z-index: 2000;
    background-color: #f9f9f9;
    border-bottom: 1px solid #ccc;
    padding: 10px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

.page-options-content {
    display: none;
}

/* Toggle button for entire pageOptions */
.toggle-page-options {
    display: block;
    margin-bottom: 10px;
    background-color: #007BFF;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

    .toggle-page-options:hover {
        background-color: #0056b3;
    }

/* Collapsible section controls */
.option-section {
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #ffffff;
}

.option-header {
    margin: 0;
    padding: 10px;
    font-size: 16px;
    font-weight: bold;
    background-color: #e9ecef;
    border-bottom: 1px solid #ccc;
    cursor: pointer;
}

    .option-header:hover {
        background-color: #d6d8db;
    }

.option-content {
    padding: 10px;
    display: none; /* Initially collapsed */
}
.option-expl {
    margin-top: 10px;
}

.toggle-controls,
.feature-controls {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #f9f9f9;
}

.section-toggle-group {
    margin-bottom: 15px;
}

.section-feature-controls {
    margin-left: 20px; /* Indent section-specific toggles */
    padding-top: 10px;
}

.toggle-controls label,
.feature-controls label {
    display: inline-block;
    margin-right: 15px;
    font-size: 14px;
    cursor: pointer;
}
/* Day Options Buttons */
.pageOptions .option-section .option-content button {
    background-color: #007BFF; /* Primary blue color */
    color: white; /* White text */
    border: none; /* Remove border */
    padding: 10px 20px; /* Add padding for better click area */
    border-radius: 5px; /* Rounded corners */
    cursor: pointer; /* Pointer cursor on hover */
    font-size: 14px; /* Font size */
    transition: background-color 0.3s ease; /* Smooth hover transition */
    margin-right: 10px; /* Space between buttons */
}

    .pageOptions .option-section .option-content button:hover {
        background-color: #0056b3; /* Darker blue on hover */
    }
/* Rename Page Input */
#txtname {
    width: 70%; /* Adjust width for better readability */
    padding: 10px; /* Add padding inside the input box */
    font-size: 14px; /* Adjust font size */
    border: 1px solid #ccc; /* Subtle border */
    border-radius: 5px; /* Rounded corners */
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1); /* Subtle inner shadow */
    margin-right: 10px; /* Space between input and button */
}

/* Rename Page Button */
.pageOptions .option-section .option-content button.rename-btn {
    background-color: #28a745; /* Green color */
    color: white; /* White text */
    border: none; /* Remove border */
    padding: 10px 20px; /* Add padding for better click area */
    border-radius: 5px; /* Rounded corners */
    cursor: pointer; /* Pointer cursor on hover */
    font-size: 14px; /* Font size */
    transition: background-color 0.3s ease; /* Smooth hover transition */
}

    .pageOptions .option-section .option-content button.rename-btn:hover {
        background-color: #218838; /* Darker green on hover */
    }

.toggle-checkbox {
    position: relative;
}
    /* Hide the default checkbox */
    .toggle-checkbox input[type="checkbox"] {
        display: none; /* Hide the native checkbox */
    }

    /* Container for the styled checkbox */
    .toggle-checkbox label {
        display: inline-flex;
        align-items: center;
        cursor: pointer;
        font-size: 14px;
        font-weight: 500;
    }

        /* Styled toggle button */
        .toggle-checkbox label::before {
            content: '';
            display: inline-block;
            width: 40px; /* Width of the toggle button */
            height: 20px; /* Height of the toggle button */
            border-radius: 20px; /* Rounded edges for toggle */
            background-color: #ddd; /* Default background color */
            margin-right: 10px; /* Space between toggle and label text */
            transition: background-color 0.3s ease;
            position: relative;
        }

        /* Toggle "knob" */
        .toggle-checkbox label::after {
            content: '';
            display: inline-block;
            width: 16px; /* Size of the knob */
            height: 16px;
            border-radius: 50%; /* Circular knob */
            background-color: white; /* Knob color */
            position: absolute;
            top: 2px; /* Align the knob vertically */
            left: 2px; /* Align the knob horizontally */
            transition: transform 0.3s ease;
        }

    /* Checked state */
    .toggle-checkbox input[type="checkbox"]:checked + label::before {
        background-color: #007BFF; /* Active background color (e.g., green) */
    }

    .toggle-checkbox input[type="checkbox"]:checked + label::after {
        transform: translateX(20px); /* Move knob to the right */
    }

    /* Hover effect */
    .toggle-checkbox label:hover::before {
        background-color: #ccc; /* Slightly darker background on hover */
    }

/*Map sizes*/
.routeMap {
    width: 100%;
    height: 400px;
}
.lakeMap {
    width: 600px;
    height: 400px;
}
.campsiteMap, .poiMap, .epMap {
    width: 300px;
    height: 200px;
}

.routeMapWrapper {
    clear: both;
}

    .routeMapWrapper .mapPopupWrapper {
        width: 100%;
    }

/*Days*/
/* Style for Day Header */
.dayHeader {
    background-color: #f5ede4; /* Light Taupe */
    color: #5d4037; /* Warm Brown */
    padding: 10px 15px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 16px;
    border-radius: 5px;
    border: 1px solid #ddd; /* Border to match dayDataWrapper */
    border-left: 5px solid #8d6e63; /* Warm Brown Left Border */
    cursor: pointer; /* Indicates interactivity for collapsible headers */
    transition: background-color 0.3s ease;
}
    /* Hover Effect */
    .dayHeader:hover {
        background-color: #ede0d4; /* Slightly darker taupe for hover */
    }

    .dayHeader::before {
        content: "\f0da";
        font-family: 'Font Awesome 5 Free';
        font-weight: 900;
        font-size: large;
        margin-left: 8px;
        margin-right: 3px;
    }

    .dayHeader.dayOpen {
        border-radius: 5px 5px 0 0; /* Only round the top corners */
    }

        .dayHeader.dayOpen::before {
            content: "\f0d7";
            margin-right: 0px;
            margin-left: 5px;
        }
/* Style for Day Data Wrapper */
.dayDataWrapper {
    background-color: #eae2d9;
    padding: 15px; /* Add spacing inside the wrapper */
    margin-top: -14px; /* Move it up closer to the dayHeader */
    border-radius: 0 0 5px 5px; /* Match the bottom corners of the dayHeader */
    border: 1px solid #ddd; /* Subtle border to define the wrapper */
    border-top: none; /* Remove the top border for seamless alignment */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

    .dayDataWrapper .travelStatsWrapper {
        margin-bottom: 10px;
    }

.arriveTime {
    font-style: italic;
    margin-bottom: 5px;
}

.canoeicon {
    transform: rotate(90deg);
    height: 15px;
    vertical-align: bottom;
    display: inline-block;
    margin: 0 5px;
}

.hikeicon {
    padding: 0 1px;
    margin-right: 1px;
}

/*Stats Table*/
.allDayStats {
    border-collapse: collapse;
    margin-top: 20px;
    margin-bottom: 20px;
    color: #5d4037; /* Warm brown */
    max-width: 100%;
}

    .allDayStats td, .allDayStats th {
        border: 1px solid;
        text-align: center;
        padding: 4px;
        width: auto; /* Allow dynamic width */
    }

    .allDayStats tfoot {
        font-weight: bold;
    }

    .allDayStats tbody tr {
        cursor: pointer;
    }

        .allDayStats tbody tr:hover {
            background-color: lightgray;
        }

.allDayStatsWrapper {
    display: flex;
    justify-content: center;
}

/*Travel Time*/
/* Travel Stats Cards Wrapper */
.travelStatsWrapper {
    display: flex;
    flex-wrap: wrap; /* Allow cards to wrap on smaller screens */
    gap: 20px; /* Space between cards */
    justify-content: space-evenly; /* Distribute cards evenly */
    margin: 20px 0;
}

    /* Individual Travel Stats Cards */
    .travelStatsWrapper .detailcard {
        background-color: #fef8e6; /* Softer beige for a modern look */
        border: 1px solid #e0d4b6; /* Subtle border for separation */
        border-radius: 8px; /* Rounded corners for modern design */
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
        padding: 15px 20px;
        font-family: 'Roboto', sans-serif;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

        /* Card Hover Effect */
        .travelStatsWrapper .detailcard:hover {
            transform: translateY(-5px); /* Lift effect */
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); /* Slightly stronger shadow on hover */
        }

        /* Card Titles */
        .travelStatsWrapper .detailcard .cardtitle {
            font-family: 'Poppins', sans-serif; /* Modern and bold font for titles */
            font-weight: 600;
            font-size: 18px;
            margin-bottom: 10px;
            color: #333; /* Neutral dark text for titles */
            text-align: center;
        }

        /* Stats Text */
        .travelStatsWrapper .detailcard .cardline {
            font-size: 14px;
            line-height: 1.6; /* Better readability */
            margin: 5px 0;
            color: #666; /* Subtle text color for details */
        }

            /* Icon Styling */
            .travelStatsWrapper .detailcard .cardline i {
                color: #ffb74d; /* Light orange for icons */
                margin-right: 5px;
                font-size: 16px;
            }

        /* Footnotes or Explanations */
        .travelStatsWrapper .detailcard .cardfootnote {
            font-size: 12px;
            color: #999; /* Lighter color for less important text */
            margin-top: 10px;
            text-align: center;
            max-width: 400px;
        }

.paddle_time:before, .paddle_distance:before {
    background-image: url(/images/mapicons/canoeicon.png);
    background-size: 6px 19px;
    background-repeat: no-repeat;
    width: 6px;
    height: 19px;
    transform: rotate(90deg);
    vertical-align: sub;
    display: inline-block;
    margin: 0 4px 0 6px;
    content: "";
}

.portage_time:before, .portage_distance:before {
    content: "\f6ec";
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    padding: 0 1px;
    margin-right: 1px;
}

.load_time:before {
    content: "\f4ce";
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 11px;
    padding: 0 1px;
    vertical-align: text-bottom;
}

.portage_hilliness:before, .hillinessIndex:before {
    content: "\f6fc";
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 10px;
    display: inline-block;
    margin-top: 4px;
}
    .portage_hilliness:before {
        vertical-align: text-bottom;
    }
.hillinessIndex:before {
    vertical-align: text-top;
}

    .statsInsideWrapper {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: 100%;
    }

/*Detail sections and background colors*/
/* General styles for all detail sections */
.detailsection {
    padding: 15px;
    border-radius: 5px;
    font-family: 'Roboto', 'Open Sans', sans-serif; /* Common font */
    margin-bottom: 15px;
}

/* Specific colors for each detail section */
.lakedetails {
    background-color: #E3F2FD; /* Light Blue */
    color: #0D47A1; /* Navy Blue Text */
}

.epdetails {
    background-color: #E8F5E9; /* Light Green */
    color: #1B5E20; /* Dark Green Text */
}

.campsitedetails {
    background-color: #FFF3E0; /* Light Orange */
    color: #E65100; /* Deep Orange Text */
}

.portagedetails {
    background-color: #FFFDE7; /* Light Yellow */
    color: #C68A00; /* Golden Yellow Text */
}

.poidetails {
    background-color: #F3E5F5; /* Lavender */
    color: #6A1B9A; /* Purple Text */
}


/* Section Headers */
.detailsection h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    margin-bottom: 10px;
    margin-top: 0;
    font-size: x-large;
}

.portagePhoto, .campsiteMap, .campsitePhoto, .lakePhoto, .lakeMap, .poiMap, .poiPhoto, .epMap, .epPhoto {
    display: inline-block;
}

.photoTitle {
    font-size: small;
    font-style: italic;
    text-align: right;
}

.mapPopupWrapper {
    position: relative;
    display: inline-block;
    vertical-align: top;
    z-index: 500;
}

.magnific-map {
    position: absolute;
    z-index: 500;
    height: 100%;
    width: 100%;
    cursor: pointer;
}

.reviewsHeader {
    font-weight: bold;
    margin: 5px 0;
}

/*Lake Detail Section*/
.fishReportTitle {
    font-weight: bold;
    margin: 10px 0 3px 0;
    text-decoration: underline;
}

.lakeFish ul {
    padding-left: 0;
}

.lakeFish li {
    display: inline-block;
    margin: 5px;
    padding: 5px;
    background: lightgray;
    border-radius: 5px;
}

.mnDnrAck {
    font-size: smaller;
    font-style: italic;
}

.divlakedepthimg {
    text-align: center;
    margin: 10px;
}

.lakedepthimg {
    max-width: 300px;
}

.lakePhoto {
    vertical-align: top;
}

    .lakePhoto img {
        max-height: 400px;
    }

.lakeStats {
    margin-bottom: 20px;
}

/*Portage Detail Section*/
.portElevGraph {
    width: 100%;
    max-width: 768px;
}

.portagePhoto img {
    max-height: 250px;
}

.portageHillinessExplanation {
    font-size: x-small;
    margin-top: 6px;
    max-width: 600px;
}

/*Notes and Reviews*/
.review {
    margin: 5px;
    border: 1px solid;
    padding: 4px;
    border-radius: 5px;
}


.reviewHeader {
    font-weight: bold;
}

.reviewVisited {
    font-style: italic;
    margin-top: 3px;
}

.reviewDescription {
    margin: 3px 0 0 5px;
}

/*Campsite Detail Section*/
.campsiteName {
    font-size: large;
    margin: 20px 0 3px 0;
    font-weight: bold;
}

.campsitePhoto img {
    max-height: 200px;
}

.campsiteMap {
    vertical-align: top;
}

.campStat {
    padding-right: 15px;
}

/*POI Detail Section*/
.poiPhoto img {
    max-height: 200px;
}

.poiMap {
    vertical-align: top;
}

/*EP Detail Section*/
.epPhoto img {
    max-height: 200px;
}

.epDescription {
    margin: 10px 0;
}

.epMap {
    vertical-align: top;
}

/*Star Ratings*/
.campsiteName .rating_star {
}

.reviewDetails .rating_star {
    font-size: small;
    margin-top: 4px;
    margin-right: -5px;
}

.rating_star:after {
    font-family: 'Font Awesome 5 Free';
    color: darkgoldenrod;
}

.rating_empty_star:after {
    content: "\f005";
    font-weight: 400;
}

.rating_filled_star:after {
    content: "\f005";
    font-weight: 900;
}

.rating_half_star:after {
    content: "\f5c0";
    font-weight: 900;
}

.rating_text {
    display: none;
}

@media print {
    body {
        background: none;
        margin: 0;
        padding: 0;
        font-size: 12pt;
    }

    div#container {
        width: 100%;
        margin: 0 auto;
        padding: 10px;
        color: #333 !important;
    }

    /*Do not show certain elements*/
    .pageOptions {
        display: none;
    }

    .breakAvoid {
        page-break-inside: avoid;
    }

    .dayHeader {
        background: none;
        color: unset;
        border: none;
        border-bottom: 2px solid #ccc;
        font-size: unset;
    }

        .dayHeader::before {
            content: none !important;
        }

    .dayDataWrapper {
        background: none !important;
        box-shadow: none;
    }

    .detailsection {
        background: none !important;
        box-shadow: none !important;
        border: 1px solid #ccc;
        color: #333 !important;
    }

        .detailsection h3 {
            color: #000;
            font-size: 16pt;
            margin-bottom: 10px;
        }

    img {
        max-width: 100%;
        height: auto;
        page-break-inside: avoid;
    }

    /*Show text instead of stars*/
    .rating_star {
        display: none;
    }

    .rating_text {
        display: inline;
    }


    /*Adjust stats table*/
    .allDayStats {
        font-size: x-small;
        width: 100%;
        page-break-inside: avoid;
        color: #333;
    }

        .allDayStats td, .allDayStats th {
            padding: 3px;
            border: 1px solid #ccc;
        }

    /*Lake Maps - important for overview*/
    a.mapPopupWrapper:has(.lakeMap), .routeMapWrapper {
        display: block !important;
        text-align: center;
    }

    .lakeMap {
        width: 100%;
    }

        .lakeMap, .routeMap {
            width: 768px; /*About 8 inches*/
            max-width: 100%
        }

    .lakePhoto {
        display: none; /*Don't have room for it*/
    }

    /*Change review border color to match other borders*/
    .review {
        border-color: #ccc;
        page-break-inside: avoid;
    }

    /*Page break before days - select all but first*/
    .dayWrapper + .dayWrapper {
        page-break-before: always;
    }

    /*Make stat cards smaller*/
    .travelStatsWrapper .detailcard {
        background: none !important;
        border-color: #ccc;
        padding: 5px;
    }
        .travelStatsWrapper .detailcard .cardtitle {
            margin-bottom: 5px;
        }
        .travelStatsWrapper .detailcard .cardline {
            line-height: unset;
        }
    .portage_hilliness:before, .hillinessIndex:before {
        vertical-align: text-top;
    }

    /*Lake Depth Maps*/
    /* Wrapper settings */
    .divlakedepthimg {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100vh; /* Full height of the page */
        width: 100vw; /* Full width of the page */
        page-break-before: always;
        page-break-inside: avoid;
    }

    .lakedepthimg {
        max-width: initial;
        page-break-inside: avoid;
    }
    /* Rotate the image */
    .wide-image {
        transform: rotate(90deg); /* Rotate image */
        transform-origin: center;
        max-height: 100vw; /* Fit the rotated image within the page width */
        max-width: 100vh; /* Fit the rotated image within the page height */
    }

    .tall-image {
        max-height: 100vh;
        max-width: 100vw;
    }


    /*Only show lake depth maps*/
    .onlylakedepth * {
        display: none;
    }

        .onlylakedepth *:has(.divlakedepthimg):not(.duplicate), *:has(.onlylakedepth) {
            all: unset;
            display: block;
            margin: 0;
            padding: 0 !important;
            border: none;
            box-shadow: none;
            width: auto;
            height: auto;
            background: none !important;
        }

    .onlylakedepth .divlakedepthimg {
        display: flex;
        page-break-before: unset;
        page-break-after: unset;
    }

        .onlylakedepth .divlakedepthimg > a, .onlylakedepth .lakedepthimg {
            display: inline;
        }
}
