.header {
  text-align: center;
  padding: 15px;
  background-color: #f9fafb; /* Light background color for contrast */
  border-bottom: 2px solid #d1d5db; /* Subtle border */
}

.header .title {
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0;
  color: #1f2937; /* Dark gray for text */
}

.header a {
  color: #2563eb; /* Blue for links */
  text-decoration: none;
}

.header a:hover {
  text-decoration: underline;
}

.container {
  max-width: 800px; /* Optional: to limit the content width */
  margin: 0 auto;
}

TABLE.cal {
  border-collapse: collapse;
  border-width: 2px;
  border-style: solid;
  border-color: #cccccc;
  font-size: 8pt;
  font-family: arial,sans;
}
TABLE.cal TH {
  font-weight: bold;
  vertical-align: middle;
  color: blue;
  background-color: #e3e9ff;
}
TABLE.cal TD {
  height: 100px;
  width: 125px;
  text-align: right;
  vertical-align: top;
  background-color: white;
}
TABLE.list {
  border-collapse: collapse;
  border-width: 2px;
  border-style: solid;
  border-color: #cccccc;
  width: 90%;
  margin-left: auto;
  margin-right: auto;
  font-size: 10pt;
  font-family: arial,sans;
  background-color:white;
}
TABLE.list TH {
  font-weight: bold;
  color: blue;
  background-color: #e3e9ff;
}
TABLE.list TD {
  color: black;
  text-align: left;
  vertical-align: top;
  padding-top: 10px;
  padding-bottom: 10px;
}
TD.om {
  color: gray;
}
TD.today {
  background-color: #fff7d7 !important;
}
DIV.charter {
  text-align: left;
}

/* Properties for all of a class's sessions when the mouse hovers over
   one of them. */

DIV.msovr {
  background-color: lightgrey
}

/* Properties for course names where a class has >=6, <6, or 0 available
   spaces, and for the first session of a class. */
BUTTON.btn {
            text-decoration: none;
            border: none;
            padding: 4px 10px;
            font-size: 12px;
            font-weight: bold;
            background-color: #33ffff;
            color: black;
            border-radius: 5px;
            box-shadow: 7px 6px 28px 1px rgba(0, 0, 0, 0.24);
            cursor: pointer;
            outline: none;
            transition: 0.2s all;
}
        /* Adding transformation when the button is active */

BUTTON.btn:active {
            transform: scale(0.98);
            /* Scaling button to 0.98 to its original size */
            box-shadow: 3px 2px 22px 1px rgba(0, 0, 0, 0.24);
            /* Lowering the shadow */
}

a {
  font-weight: bold;
}
a:hover {
  color: red;
}

.first, .first A {
  font-weight: bold;
  font-size: 10pt;
  color: blue;
}

.additional, .additional A {
  color: black;
}

/* Properties for small annotations (e.g., optional costs) */

.note {
  font-size: small;
  white-space: nowrap;
}

/* Tooltip styling */
.tooltip {
  position: absolute;
  background: rgba(50, 50, 50, 0.95);
  color: #fff;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.4;
  max-width: 260px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease-in-out;
  z-index: 1000;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.tooltip.show {
  opacity: 1;
}

/* Codes inside tooltip */
#tooltip .tooltip-codes {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: #d0d0d0; /* light gray, readable on dark background */
}

/* Notes / cancellations inside tooltip */
#tooltip .tooltip-note {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: #ff7070; /* softer red than pure red */
}

