/* Add viewport meta tag in HTML file */
/* <meta name="viewport" content="width=device-width, initial-scale=1"> */

body {
    font-family: 'Trebuchet MS', Tahoma, Verdana, Helvetica;
}


p {
    font-family: 'Trebuchet MS', Tahoma, Verdana, Helvetica;
    font-size: 1em;
    line-height: 1.4em;
    margin-top: 0.7em;
    margin-bottom: 0.7em;
    text-indent: 0.75em;
    text-align: left; /* Add this line to left justify all <p> tags */
}

span.pdwQuestion {
    color: #0B5946;   /* #9b0156 - burgundy #0B5946 - green */
    font-size: 2rem;
}

hr.pdwhr {
    border: #0B5744 solid 2px;      /* #990055 - red #0B5744; - green */
}

/*
a:link {
    color: #990055;
\}

a:visited {
    color: #ffff;
}

a:hover {
    color: #ff6633;
}
*/

.mobile_invitation {
    padding: 25px 1px 8px 1px;
    font-size: 0.75em;
    text-align: center;
}

p.nav, .previous-next-buttons, .day_buttonsf {
    text-align: center;
    text-indent: 0;
}

p.envelope {
    text-indent: 0;
    display: block;#0B5744;   /* #990055 - red #0B5744; - green */
    background: 
    color: #ffffff;
    font-size: 0.7em;
    font-weight: 600;
    text-align: center;
}

.lesson_number {
    text-indent: 0;
    background: #0B5744;   /* #990055 - red #0B5744 - green */
    color: #ffffff;
    font-size: 1.5em;
    font-variant: small-caps;
    padding: 0 0.5em 0.15em 0.5em;
}

.week_dates {
    font-family: Georgia, 'Times New Roman', Times;
    font-size: 1.2em;
    font-style: italic;
    color: #0B5744;   /* #990055 - red #0B5744 - green */
    float: right;
    position: relative;
    top: -0.1em;
    margin-right: 0.5em;
    padding: 0.2em;
}

hr.response {
    margin: 1.3em 0 0 0;
    width: 100%;
}

p.day {
    text-indent: 0;
    display: block;
    background: #0B5744;   /* #990055 - red #0B5744 - green */
    color: #ffffff;
    padding: 0.15em 0.2em 0.15em 0.55em;
    font-size: 1.2em;
    font-variant: small-caps;
    margin-top: 1.5em;
}

p.sab, p#sab {
    text-indent: 0;
    border-top: solid 2px #0B5744;   /* #990055 - red #0B5744 - green */
    font-size: 1.5em;
    font-variant: small-caps;
}

.study {
    font-family: Georgia, 'Times New Roman', Times;
    font-style: italic;
    font-size: 0.9em;
}

.date {
    font-family: Georgia, 'Times New Roman', Times;
    font-variant: normal;
    font-size: 0.9em;
    font-style: italic;
    position: relative;
    color: #ffffff;
    margin-right: 0.5em;
    float: right;
    top: -5px;
}

h1, h2, h3, h4, h5 {
    font-family: Georgia, 'Times New Roman', Times;
    line-height: 1.15em;
}

h1, h2, h3, h4 {
    color: #0B5744;   /* #990055 - red #0B5744 - green */
}

h1 {
    font-size: 2.5em;
    font-weight: 800;
    font-style: italic;
}

/* Ensure text-center class works with h1 elements */
h1.text-center {
    text-align: center !important;
}

h2 {
    font-size: 1.7em important;
    font-weight: 800;
}

h3 {
    font-size: 1.4em;
    font-weight: 800;
    margin-top: 0.4em;
    margin-bottom: 0.5em;
}

h4 {
    line-height: 0.9em;
    font-weight: 800;
    font-style: italic;
    font-size: 105%;
    text-indent: 0;
}

h5, h6 {
    font-size: 0.95em;
    font-weight: bold;
    margin-bottom: 0.3em;
    line-height: 0.6em;
}

p.intro {
    font-size: 1.4em;
    margin-top: 0.4em;
    margin-bottom: 0.5em;
    font-variant: small-caps;
    text-indent: 0;
}

p.aques, .ques {
    font-weight: 800;
    font-size: 105%;
    font-style: italic;
    text-indent: 0;
}

.aref, .reference, .read_para {
    font-family: 'Trebuchet MS', Tahoma, Verdana, Helvetica;
    font-size: 100%;
    font-style: italic;
    font-weight: 400;
    text-indent: 0;
}

.read, .a-emphasis, .further_thought_s, .further {
    font-family: Georgia, 'Times New Roman', Times;
    color: #0B5744;   /* #990055 - red #0B5744 - green */
    font-weight: 900;
    font-style: italic;
    font-size: 105%;
    text-indent: 0;
}

p.memory_text {
    font-weight: 800;
    text-indent: 0;
}

p.key_thought {
    font-weight: 800;
    text-indent: 0;
    margin-bottom: 1.7em;
}

.poetry {
    text-indent: -1em;
    margin-left: 3em;
}

.first_para:first-letter {
    font-family: Georgia, 'Times New Roman', Times;
    font-size: 300%;
    color: #0B5744;   /* #990055 - red #0B5744 - green */
    padding: 0.05em 0.05em 0 0;
    text-indent: 0;
}

p.summary, .final_thought, .summary_week {
    background: #EBFFED;   /* #fff7fe - light pink #EBFFED - light green */
    padding: 0.5em;
    font-family: Georgia, 'Times New Roman', Times;
    font-weight: 800;
    text-indent: 0;
    font-style: normal;
}

p.small {
    font-size: 0.75em;
}

p.flush-left {
    text-indent: 0;
}

div.discussion {
    background: #EBFFED;  /* #fff7fe - light pink #EBFFED - light green */
    padding: 0.25em;
    font-family: Georgia, 'Times New Roman', Times;
    font-weight: 800;
    text-indent: 0;
}

/* Spacing between list items inside discussion blocks (visual blank line) */
.discussion ol > li {
    margin-bottom: 1em;
}
.discussion ol > li:last-child {
    margin-bottom: 0; /* Avoid extra space after final list item */
}

/* Spacing between list items inside discussion blocks (visual blank line) */
div.discussion ol > li {
    margin-bottom: 1em;
}
div.discussion ol > li:last-child {
    margin-bottom: 0; /* Avoid extra space after final list item */
}

/* Spacing between list items inside numbered blocks (visual blank line) */
div.numlists ol > li {
    margin-bottom: 1em;
}
div.numlists ol > li:last-child {
    margin-bottom: 0; /* Avoid extra space after final list item */
}


/* Spacing between list items inside unordered blocks (visual blank line) */
div.ulistsul > li {
    margin-bottom: 1em;
}
div.ulists ul > li:last-child {
    margin-bottom: 0; /* Avoid extra space after final list item */
}



.blockquote, poem {
    margin-left: 4em;
}

.small-caps, .tetra {
    font-variant: small-caps;
}

p.further_study {
    text-indent: 0;
    margin-top: 0.4em;
    margin-bottom: 0.5em;
}

li, ul {
    list-style-image: url('images/bullet16.png');
}

img.center {
    margin: auto;
    display: block;
    float: none;
}

img.cover {
    float: right;
    margin: 0 5px 20px 0;
    border-style: solid;
    border-color: #c0c0c0;
    border-top: none;
    border-left: none;
    border-right-width: thick;
    border-bottom-width: medium;
    width: 100%;
    height: auto;
}

img.inside_story_pix {
    float: right;
    margin-right: 0.5em;
    border: thin solid #000000;
}

.cover-image {
    width: auto;
    max-height: 320px;
}

.intro-image-sizes {
    float: left; /* Ensures the image floats to the left */
    margin-right: 15px; /* Adds spacing between the image and the text */
    max-width: 300px; /* Limits the width of the image container */
}

.intro-image-sizes img {
    width: 100%; /* Ensures the image scales within the container */
    height: auto; /* Maintains the aspect ratio */
}

/* Inside Story image wrappers mirror the intro image sizing but stay responsive */
.inside-story-image-sizes {
    max-width: 320px;
    margin: 0 auto 1.25rem;
}

.inside-story-image-figure {
    width: 100%;
    max-width: 320px;
}

.inside-story-image-holder {
    max-width: 100%;
}

.inside-story-image {
    width: 100%;
    height: auto;
    border: thin solid #000000;
}

@media (min-width: 768px) {
    .inside-story-image-sizes {
        float: right;
        margin-left: 1rem;
    }

    .inside-story-image-figure {
        max-width: 360px;
    }
}

p.location {
    font-family: "Times New Roman", Times, serif;
    display: block;
    background: #0B5744;   /* #990055 - red #0B5744 - green */
    color: #ffffff;
    padding: 0.15em 0.2em 0.15em 0.5em;
    font-size: 1.5em;
    font-variant: small-caps;
    text-indent: 0;
    margin-top: 1.5em;
}

p.author {
    font-style: italic;
    color: #0B5744;   /* #990055 - red #0B5744 - green */
}

p.lead {
    font-style: italic;
    color: #0B5744;   /* #990055 - red #0B5744 - green */
}

p.mission_credit {
    text-align: center;
    font-size: 0.7em;
    font-weight: 800;
}

.index_date {
    font-size: smaller;
    color: #0B5744;   /* #990055 - red #0B5744 - green */
    font-style: italic;
    vertical-align: middle;
}

#index_table td {
    padding: 5px;
    margin: auto;
}

.contributors {
    font-weight: bold;
}

p.credits {
    font-size: 0.8em;
    font-weight: 800;
    text-align: center;
}

p.gc-credits {
    font-size: 0.8em;
    text-align: center;
}

div.includes {
    text-indent: 0;
}

div.includes > p {
    text-indent: 0;
    text-align: center;
}

div.includes > h3 {
    text-align: center;
}

p.indx-credits {
    font-size: .75em;
    text-indent: 0;
}


/* Include styles control header & footer includes */
p.credits {
    font-size: .80em;
    font-weight: 800;
    text-align: center;
}

p.gc-credits {
    font-size: .80em;
    text-align: center;
}

div.includes {
    text-indent: 0em;
}

div.includes > p {
    text-indent: 0em;
    text-align: center;
}

div.includes > h3 {
    text-align: center;
}

.bg-primary-colour {
    background-color: #0B5744;   /* #990055 - red #0B5744 - green */
    color: #ffffff;
}


.links {
    margin: 20px 0;
    width: 100%;
    max-width: 800px;
    text-align: center;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.navbar {
    overflow-x: 0;
    overflow-y: 0.5 rem;
    background-color: #0B5744;   /* #990055 - red #0B5744 - green */
    display: flex;
    justify-content: space-between;
    position: relative;
    align-items: center;
    overflow: hidden;
    width: 100%;
    margin: 0 auto;
}

.preferences-holder .preferences-modal-opener {
    color: #ffffff;
    font-size: 1.6rem;
    line-height: 1;
    padding: 0.15rem;
    border: none;
    background: transparent;
}

.preferences-holder .preferences-modal-opener:hover,
.preferences-holder .preferences-modal-opener:focus {
    color: #EBFFED;
    text-decoration: none;
    outline: none;
}

.preferences-tip-popover .popover-header {
    background-color: #0B5744;
    color: #ffffff;
    font-weight: 600;
}

.preferences-tip-popover .popover-body {
    font-size: 0.9em;
    color: #0B5744;
}

.preferences-tip-popover .btn-tip-dismiss {
    padding: 0.1rem 0;
}


.links a {
    padding: 10px 15px;
    color: #0B5744;   /* #990055 - red #0B5744 - green */
    text-decoration: none;
    border: 2px solid #000000;
    display: inline-block;
    margin: 0;
}

.links a:hover {
    text-decoration: underline;
    background-color: #0B5744;   /* #990055 - red #0B5744 - green */
}


/* End Include Styles */
/* This section controls the appearance of the bar indicating the beginning of the official lesson */
div.enclose {
    display: table;
    width: 100%;
}
div.encl_row { 
      display:table-row;
      background:#0B5744;   /* #990055 - red #0B5744 - green */
      color:#ffffff;	
      font-size:.70em;	
      font-weight:600;	
      line-height: 140%;
}
div.encl_col_left {
    display: table-cell;
    width: 35%;
    text-align: left;
    padding-left: 1em;
}
div.encl_col_center {
    display: table-cell;
    width: 30%;
    text-align: center;
}
div.encl_col_right {
    display: table-cell;
    width: 35%;
    text-align: right;
    padding-right: 1em;
}
a.DayBarHRef:link
	{
	color: #ffffff; /* #990055 - red #0B5744; - green */
	text-decoration:none;
	font-size: 1.1em;
	vertical-align: -7%;
	}
a.DayBarHRef:visited
	{
	color: #ffffff;   /*  #990055  */ 
	text-decoration:none;
	font-size: 1.1em;
	vertical-align: -7%;
	}
a.DayBarHRef:hover
	{
	color: white;
	font-weight:bold;
	text-decoration: none;
	}	

a.DayBarHRefArrows:link
	{
	color: white; /* #68013a - dark burgundy #07382C - dark green */
	text-decoration:none;
	}

a.DayBarHRefArrows:visited
	{
	color: white;
	text-decoration:none;
	}

a.DayBarHRefArrows
	{
	color: #ffffff;           /*#990055;  #0B5744; */
	text-decoration: none !important;
	font-size: 1.1em;
	vertical-align: -7%;
	}

a.DayBarHRefArrows:hover
	{
	color: white;
	font-weight:bold;
	text-decoration: underline !important;
	}	

a.DayBarHRefWD:link
	{
	color: white; /* #68013a - dark burgundy #07382C - dark green */
	text-decoration:none;
	}
a.DayBarHRefWD:visited
	{
	color: white;
	text-decoration:none;
	}
a.DayBarHRefWD:hover
	{
	color: white;
	text-decoration: underline;
	}

.float-right {
    float: right;
    margin-right: 20px; /* Adjust the margin as needed */
}

.responsive-img {
    max-width: 100%;
    height: auto;
}

.container-regular {
    max-width: 1320px;
}


/* Styles for thenavbar  */
#sidebar {
    /*border: 1px #2b2b2b solid;*/
    /*width: 90px; */
    /* background: #DAA520; */
    float: left;
    margin-right: 10px;
    }

/* ========================================
   HIGHLIGHTING STYLES
   ======================================== */

/* User-created highlights */
mark.user-highlight {
    border-radius: 2px;
    padding: 0 2px;
    transition: opacity 0.2s ease;
}

mark.user-highlight:hover {
    opacity: 0.8;
    outline: 1px dashed rgba(0, 0, 0, 0.3);
}

/* Highlighting controls in modal */
#highlightColorPreview {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 2px solid #ccc;
    border-radius: 4px;
    vertical-align: middle;
    margin-left: 10px;
}

/* Color picker styling */
#highlightColor {
    cursor: pointer;
    /* Make color picker wider for better popup positioning */
    width: 80px !important;
    height: 40px !important;
    border: 2px solid #0B5946 !important;   /* #9b0156 - burgundy #0B5946 - green */
}

/* Custom color picker container for centering */
.color-picker-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* For browsers that support it, try to center the color picker popup */
#highlightColor::-webkit-color-swatch-wrapper {
    padding: 0;
}

#highlightColor::-webkit-color-swatch {
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* General modal styles for scrolling (applies to all screen sizes) */
.modal-content {
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.modal-body {
    overflow-y: auto;
    overflow-x: hidden;
    max-height: calc(90vh - 120px); /* Account for header and footer */
}

/* Mobile-specific adjustments for color picker */
@media (max-width: 768px) {
    #highlightColor {
        width: 80px !important;
        height: 50px !important;
        margin: 0 auto;
        display: block;
    }
    
    .color-picker-container {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 1rem 0;
        margin: 0 auto;
        max-width: 100px;
    }
    
    /* Ensure modal is properly sized on mobile - SMALLER */
    .modal-dialog {
        margin: 2rem auto !important;
        max-width: 400px !important;
        width: 85% !important;
    }
    
    .modal-content {
        width: 100% !important;
        max-height: 80vh !important;
        overflow-y: auto !important;
    }
    
    .modal-body {
        max-height: calc(100vh - 200px);
        overflow-y: auto;
        padding: 1rem !important;
    }
    
    /* Ensure form controls take full width on mobile */
    .modal-body .form-control,
    .modal-body .form-select {
        width: 100% !important;
        max-width: 100% !important;
        font-size: 16px !important; /* Prevents iOS zoom */
    }
    
    /* Labels should be full width */
    .modal-body .form-label {
        width: 100%;
        text-align: left !important;
        font-size: 14px !important;
    }
    
    /* Buttons should be centered but not too wide */
    .modal-body .btn {
        width: auto;
        min-width: 150px;
    }
    
    /* Additional spacing for mobile */
    .mb-3 {
        margin-bottom: 1.5rem !important;
    }
}

/* Info text for highlighting */
.highlight-info {
    font-size: 0.85em;
    color: #666;
    font-style: italic;
    margin-top: 5px;
}

/* Button styling for clear highlights */
.btn-clear-highlights {
    margin-top: 10px;
}

/* Highlighting Instructions Collapsible Section */
#highlightInstructions .card-body {
    padding: 1rem;
    font-size: 0.9em;
    line-height: 1.5;
}

#highlightInstructions ol,
#highlightInstructions ul {
    margin-bottom: 0.5rem;
}

#highlightInstructions li {
    margin-bottom: 0.25rem;
    list-style-image: none; /* Remove custom bullet for instruction lists */
}

#highlightInstructions ol li {
    list-style-type: decimal;
}

#highlightInstructions ul li {
    list-style-type: disc;
}

#highlightInstructions kbd {
    background-color: #f4f4f4;
    border: 1px solid #ccc;
    border-radius: 3px;
    box-shadow: 0 1px 0 rgba(0,0,0,0.2);
    color: #333;
    display: inline-block;
    font-size: 0.85em;
    font-weight: 700;
    line-height: 1;
    padding: 2px 4px;
    white-space: nowrap;
}

/* Style the collapse button */
.btn-link[data-bs-toggle="collapse"] {
    color: #0B5946;   /* #9b0156 - burgundy #0B5946 - green */
    font-size: 0.95em;
    font-weight: 600;
}

.btn-link[data-bs-toggle="collapse"]:hover {
    color: #68013a;   /* #68013a - dark burgundy #07382C - dark green */
    text-decoration: underline !important;
}

.btn-link[data-bs-toggle="collapse"] i {
    margin-right: 5px;
}

kbd {
    /* Base Key Style (Non-Hovered) */
    background-color: #f7f7f7;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 3px 6px;
    margin: 0 1px;
    
    /* Font and Layout */
    font-family: monospace;
    font-size: 0.9em;
    line-height: 1;
    display: inline-block;
    
    /* Depth and Shadow (Gives it a "raised" look) */
    color: #333;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2), 0 0 0 2px #fff inset;
    text-shadow: 0 1px 0 #fff;
    transition: all 0.1s ease-out; /* Smooths the transition */
}

kbd:hover {
    /* Hover Effect */
    background-color: #fcfcfc; /* Slightly lighter background */
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.3); /* Slightly darker shadow for emphasis */
    cursor: default; /* Change cursor to the default pointer to avoid distraction */
}

kbd:active {
    /* Optional: Provides a "pressed" look when clicked */
    box-shadow: none; /* Removes the shadow */
    transform: translateY(1px); /* Moves the key down by 1 pixel */
}

