/* ========== Accessibility Adjustments ============= */

/* Subtle darken and lift on hover for Canvas buttons */
.btn:hover {
  filter: brightness(98%);
  transform: translateY(-0.7px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

/* Button Row class to dynamically handle aligned buttons */
.button-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
}

.button-row .btn {
  min-width: 200px;
  padding: 0.75rem 1.25rem;
  font-size: 1.125rem;
  font-weight: 500;
  text-align: center;
}

@media (max-width: 600px) {
  .button-row {
    flex-direction: column;
    align-items: center;
  }
}

.button-row a {
  background-color: #aa1010;
  color: #ffffff;
  text-decoration: none;
  padding: 0.75rem 1.25rem;
  border-radius: 6px;
  font-size: 1.5rem;
  font-weight: 500;
  text-align: center;
  transition: background-color 0.2s ease;
  min-width: 200px;
}

.button-row a:hover {
  background-color: #c22020;
}

/* End Button Row class */

/* Only darken linked images on hover */
#content a img:hover {
  filter: brightness(92%) !important;
  transition: filter 0.2s ease-in-out !important;
  cursor: pointer !important;
}

/* ========== End Accessibility Adjustments ============= */

/* ========== Misc. Canvas Formatting ============= */
/* Blockquotes */
.uiw-highlight-box,
blockquote {
  border-left: 4px solid #aa1010;
  background-color: #fafafa;
  padding: 0.75em 1.25em;
  margin: 1em 0 1.5em;
  color: #333;
  font-style: italic;
  border-radius: 4px;
}

/* Collapsible Section Container */
details.collapsible-section {
  margin: 1em 0;
  border: 1px solid #ccc;
  border-radius: 0.5em;
  background: #f9f9f9;
  overflow: hidden;
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

/* Highlight when open */
details.collapsible-section[open] {
  box-shadow: 0 0 0 2px #aa1010;
  background: #fff;
}

/* Collapsible Header Styling */
summary.collapsible-heading {
  font-size: 1.2em;
  font-weight: 600;
  padding: 0.75em 1em;
  cursor: pointer;
  background-color: #fff;
  color: #aa1010;
  border-bottom: 1px solid #ccc;
  position: relative;
  list-style: none;
  outline: none;
}

/* Expand/Collapse Icon */
summary.collapsible-heading::after {
  content: "+";
  position: absolute;
  right: 1em;
  font-size: 1.2em;
  transition: transform 0.3s ease;
}

/* Change icon when open */
details.collapsible-section[open] summary.collapsible-heading::after {
  content: "−";
  transform: rotate(0deg);
}

/* Collapsible Content Area */
.collapsible-content {
  padding: 1em;
  font-size: 1em;
  color: #333;
}

.modern-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  background: linear-gradient(90deg, #991010 0%, #aa1010 50%, #c22020 100%);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  color: #ffffff;
  margin-top: 1.25rem;     /* Added */
  margin-bottom: 0.75rem;  /* Maintained */
}

.modern-header h2 {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1;
}

/* H3 Header Block */
.modern-header-h3 {
  background: linear-gradient(90deg, #991010 0%, #aa1010 50%, #c22020 100%);
  padding: 0.6rem 0.9rem;
  border-radius: 6px;
  margin-top: 1.25rem;  
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.modern-header-h3 h3 {
  margin: 0;
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* H4 Header Block */
.modern-header-h4 {
  background: linear-gradient(90deg, #991010 0%, #aa1010 50%, #c22020 100%);
  padding: 0.6rem 0.9rem;
  border-radius: 6px;
  margin-top: 1rem;      
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.modern-header-h4 h4 {
  margin: 0;
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

/* Adjust Class for Contrast */
.todo-details__context {
  color: #333 !important; /* Dark gray text for better contrast */
}

/* ======================================= */
/* ========== GRADEBOOK TRAY ============= */
/* ======================================= */

/*
#gradebook-status-tray .gcn_tray-wrapper {
  right: 0;
  left: auto;
}

.gcn_tray-wrapper {
  transition: transform 0.3s ease-in-out;
}

.gcn_tray-wrapper:not(.gcn_open) {
  transform: translateX(100%);
}

.gcn_tray-wrapper.gcn_open {
  transform: translateX(0%);
}
*/