/* Stack the two content containers */
.main,
.sidebar {
  display: block;
  width: 100%;
  font-size: 1.1em;
}
H1 {
  font-size: 1.5em;
}

#chatNotification {
  position: fixed;
  padding: 8px;
  margin-left: 50%;
  margin-top: 30%;
  z-index: 100;
  transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
}
#chatInput {
  height: 55px;
  width: 100%;
}

.chatMe {
  text-align: right;
  background-color: #999;
  color: #fff;
  padding: 0px;
  border-radius: 8px;
  text-shadow: none;
  width: 66%;
  margin-left: 33%;
}
.chatYou {
  text-align: left;
  background-color: #eee;
  color: #000;
  padding: 0px;
  border-radius: 8px;
  text-shadow: none;
  width: 66%;
}
.grades {
  color: red;
}
.facilitatorGrades {
  color: red;
  font-size: 1.3em;
  font-weight: bold;
}
.comments {
  color: blue;
}
.alert {
  /* color intentionally not set here — let Bootstrap's per-variant
     --bs-alert-color apply (danger=red, success=green, info=blue, etc.) */
  font-size: 140%;
}

#message-list {
  overflow-y: auto;
}

#return-message-list-icon {
  display: block;
}

#message-list-block {
  display: none;
}
#message-content-block {
  display: block;
}
.marker {
  background-color: yellow;
}
.highlight {
  color: red;
}
.sidebar {
  display: none;
}

.sidebar p {
  text-shadow: none;
}
.ui-collapsible-heading-toggle {
  font-size: 80%;
}

#headerImage2 {
  display: none;
}
#headerImage3 {
  display: none;
}
#headerImage4 {
  display: none;
}

/* First breakpoint at 576px */
/* Inherits mobile styles, but floats containers to make columns */
@media all and (min-width: 36em) {
  /* .main { float: left; width:79%; } */
  /* .sidebar { display: block; float: left; width:19%; padding-right:2%;} */
}

/* Second breakpoint at 800px */
@media all and (min-width: 50em) {
  .main {
    float: left;
    width: 73%;
  }
  .sidebar {
    display: block;
    float: left;
    width: 25%;
    padding-right: 2%;
  }
  #chatInput {
    width: 68%;
  }
  #show_widgets {
    display: none;
  }
  #message-list {
    max-height: 16em;
    overflow-y: auto;
  }
  #headerImage1 {
    display: none;
  }
  #headerImage2 {
    display: block;
  }

  #message-content-block {
    display: block;
  }
  #message-list-block {
    display: block;
  }
  #return-message-list-icon {
    display: none;
  }

  /* You can also tweak any other styles in a breakpoint */
}

/* Second breakpoint at 1024px */
/* Adjusts column proportions, tweaks base H1 */
@media all and (min-width: 64em) {
  .main {
    width: 77%;
  }
  .sidebar {
    width: 21%;
    padding-right: 2%;
  }
  #chatInput {
    width: 74%;
  }

  #headerImage2 {
    display: none;
  }

  #headerImage3 {
    display: block;
  }
  /* You can also tweak any other styles in a breakpoint */
}

/* Second breakpoint at 1344px */
/* Adjusts column proportions, tweaks base H1 */
@media all and (min-width: 84em) {
  #headerImage3 {
    display: none;
  }
  #headerImage4 {
    display: block;
  }
}

.ui-limit-width {
  max-width: 900px;
}
.main .ui-body table {
  width: 100% !important;
}
table,
th,
td {
  border-collapse: collapse;
  border: 0p;
}
table {
  margin-bottom: 1em;
}
#message-list-block table,
th,
td {
  border: 0;
  border-collapse: collapse;
}

.forum table,
.forum th,
.forum td {
  border: 1px solid black;
  border-collapse: collapse;
}
.error {
  color: red;
}

.error h1 {
  font-size: 100%;
}

.icon {
  float: left;
  padding-right: 10px;
  padding-bottom: 10px;
  width: 75px;
}

.messages table {
  width: 100%;
  overflow: hidden;
}
.messages th {
  /* background-color:lightgrey;*/
  font-size: 80%;
}

.unread-messages {
  font-size: 80%;
  font-weight: bold;
}

.messages-0 {
}

.messages-1 {
  color: red;
}

.messages-2 {
  color: orange;
}
.messages-3 {
  color: blue;
}
.messages-4 {
  color: green;
}

#message blockquote {
  font-style: italic;
  font-size: 1rem;       /* fixed unit so nested quotes don't keep shrinking */
  margin-left: 0;        /* don't march further right on each reply */
  margin-right: 0;       /* use full width */
  padding-left: 0.8em;
  border-left: 2px solid #ccc;
}

blockquote {
  border-left: 2px solid #ccc;
  padding-left: 1em;
  margin-left: 2em;
  margin-right: 2em;
}

.reresponses {
  font-size: 95%;
  margin-left: 10px;
}
.rereresponses {
  font-size: 90%;
  margin-left: 20px;
}

.correct_answer:before {
  color: green;
  font-size: 180%;
  content: "✔";
}
/*.correct_answer_not_selected:before {
color:red;
font-size:120%;
content: "✔";
}*/
.correct_answer_not_selected {
  background-color: yellow;
  padding: 0.1em 0.2em;
}
.incorrect_answer:before {
  color: red;
  font-size: 120%;
  content: "✘";
}

#popupGrade-popup {
  right: 0 !important;
  left: auto !important;
  width: 80vw;
}
audio {
  width: 100% !important;
}
video {
  width: 100% !important;
  /*max-width: 600px;*/
  height: auto !important;
}
.presentation {
  float: left;
  width: 100%;
}
.prehide {
  display: none;
}

.prehide.vs-in {
  display: block;
  transition: opacity 0.5s linear;
}

.vs-out {
  opacity: 0.5;
  display: none;
  transition: opacity 0.5s linear;
}

.attendance_calendar {
  background-color: white;
  font-size: 0.7em;
}

.course_start {
  color: blue;
  background-color: lightgrey;
}
.course_end {
  color: blue;
  background-color: lightgrey;
}
.outside_course {
  color: lightgrey;
}
.logged {
  background-color: lightgreen;
}
.not_logged {
  background-color: pink;
}
.future {
  color: grey;
}

img.round-profile {
  object-fit: cover;
  border-radius: 50%;
  height: 25px;
  width: 25px;
}

/* Sidebar */
/* Main Content */
#page-content-wrapper {
  font-size: 1.1em;
  width: 100%;
  padding: 15px;
  transition: all 0.5s;
}
@media screen and (max-width: 480px) {
  #page-content-wrapper {
    font-size: 1em;
    padding: 0px;
  }
}

/* Change the width of the sidebar to display it*/
#wrapper.menuDisplayed #sidebar-wrapper {
  width: 250px;
}

#wrapper.menuDisplayed #page-content-wrapper {
  padding-left: 250px;
}

/* Sidebar styling */
.sidebar-header {
  height: 50px;
  position: relative;
  background: #212531;
  background: linear-gradient(to right bottom, #2f3441 50%, #212531 50%);
  padding-top: 0.5em;
  font-size: 120%;
  font-weight: bold;
  text-align: center;
}

.sidebar-nav {
  padding: 0;
  list-style: none;
  transition: all 0.5s;
  width: 100%;
  text-align: left;
  margin-bottom: 46px;
  white-space: nowrap;
}

.sidebar-nav li {
  line-height: 25px;
  width: 100%;
  transition: all 0.3s;
  padding: 10px;
  color: #ddd;
  border-bottom: 1px solid black;
}

.sidebar-nav li a {
  display: block;
  text-decoration: none;
  color: #ddd;
}

.sidebar-nav li:hover {
  background: rgba(180, 180, 200, 0.5);
}

.sidebar-nav-overlay {
  background-color: rgba(0, 0, 0, 0.7);
}

.navbar {
  z-index: 9999;
}

.card-nav {
  object-fit: cover;
  min-height: 10em;
  max-height: 10em;
  position: relative;
  overflow: clip;
}

.card-img-overlay a {
  text-decoration: none;
}

.breadcrumb-item.active,
.breadcrumb-item a,
.breadcrumb-item + .breadcrumb-item::before,
.breadcrumb-item.active::before {
  color: var(--bs-gray-500);
}

.breadcrumb-item a:hover {
  color: var(--bs-gray-300);
}

.accordion-button:not(.collapsed) {
  background-color: var(--bs-gray-200);
}

.rounded-pill {
  text-decoration: none;
}

.modal {
  z-index: 10040;
}

.bottom-icons {
  position: absolute;
  bottom: 1em;
  left: 1em;
}
.bottom-icons-right {
  position: absolute;
  bottom: 1em;
  /* left: 1em; */
  text-align: right;
  right: 1.6em;
  width: 1em;
}
.top-icons-right {
  position: absolute;
  top: 0.5em;
  text-align: center;
  right: 0.3em;
  width: 5em;
}
#documentsBackground {
  margin-left: auto;
  margin-right: auto;
  max-width: 48em;
  font-size: 1em;
}
#notesBackground {
  margin-left: auto;
  margin-right: auto;
  max-width: 48em;
  font-size: 1em;
}
#notesBackground h1 {
  font-size: 1.4em;
}
#notesBackground h2 {
  font-size: 1.1em;
}
#notesBackground h3 {
  font-size: 1.1em;
}
#notesBackground h4 {
  font-size: 1.1em;
}
#notesBackground h5 {
  font-size: 1.1em;
}
#notesBackground h6 {
  font-size: 1.1em;
}

.quiz li {
  padding-top: 0.5em;
  padding-bottom: 0.5em;
}

.ui-bar-b {
  background-color: #0d6efd;
  color: white;
}

#message-list {
  cursor: pointer;
}

/* Community */
.community-feed-profile-image {
  width: 70px;
  border-radius: 50%;
}
.small-community-feed-profile-image {
  width: 25px;
  border-radius: 50%;
}
.medium-community-feed-profile-image {
  width: 45px;
  border-radius: 50%;
}
.dropdown-toggle-plain::after {
  content: none;
}
.commentAreaHeight {
  height: 40px;
}
.feed-comment {
  font-size: 1rem;
}
.feed-entry-content {
  font-family: Georgia, Times, "Times New Roman", serif;
}
.feed-entry-content h2 {
  margin-top: 1.7rem;
  margin-bottom: 1rem;
}
.feed-entry-content p {
  line-height: 1.7rem;
}
.feed-entry iframe {
  width: 100%;
}
.feed-entry video {
  width: 100%;
}
.constrained {
  max-height: 800px;
  overflow-y: hidden;
}
.comments-constrained {
  max-height: 200px;
  overflow-y: hidden;
}

.comments-nonconstrained {
  max-height: 600px;
  overflow-y: scroll;
}

.community-unread-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: #ffc107;
  flex: 0 0 auto;
}
/* Channels wrap as compact pills at every screen size; the rail is a
   full-width bar above the feed. */
.community-channel-rail .channel-scroll {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.community-channel-rail .channel-group {
  display: contents;
}
.community-channel-rail .channel-link {
  white-space: nowrap;
  flex: 0 0 auto;
}

.feed-entry-content img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  object-position: 50% 50%;
  padding-top: 1em;
  padding-bottom: 1em;
}
@media screen and (max-width: 480px) {
  .feed-entry-content img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    object-position: 50% 50%;
    padding-top: 1em;
    padding-bottom: 1em;
  }
}
.modal-body iframe {
  width: 100%;
}

.biblio-info {
  background-color: #fcfad6;
  padding-top: 10px;
  padding-bottom: 30px;
  padding-right: 10px;
  border: 2px solid #8b8b7a;
  border-radius: 10px;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
}

@media (max-width: 576px) {
  #editorDiv {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: -12px;
    /* margin-right: -12px;*/
    box-sizing: border-box;
  }
  /* (Optional) allow parent col full width for editor */
  .col-xxl-8.col-xl-9.col-lg-10.col-md-12.col-sm-12 {
    flex: 0 0 100%;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
  }
}
