* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header {
  background: #6487dc;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

header img {
  height: auto;
  width: 250px;
}

.header-img-right {
  height: auto;
  width: 100px;
}

nav ul {
  list-style: none;
  display: flex;
}

nav li:not(:last-child)::after {
  content: "|";
  margin: 0px 12px;
  color: #fff;
}

nav a {
  text-decoration: none;
  color: #fff;
  font-weight: bold;
  font-size: 65%;
  font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
}

nav a:hover {
  text-decoration: underline;
}

.desc img {
  width: 353px;
  height: auto;
}

.heroglobe img {
  width: auto;
  height: auto;
}

.layout {
  display: flex;
  flex: 1;
}
.sidebar {
  background: #ececec;
  width: 200px;
  flex-shrink: 0;
  padding: 20px;
}

.sidebar-left {
  border-right: 1px solid #ccc;
}

.sidebar-left p {
  text-decoration: none;
  font-size: 85%;
  padding: 3px 0;
}

.sidebar-left p a:hover {
  color: #6487dc;
}

.sidebar-left p a {
  text-decoration: none;
  color: inherit;
}

.sidebar-right {
  background: #ffffff;
}

main {
  flex: 1;
  background: #ffffff;
}
main h3 {
  margin: 0 20px 10px;
  font-size: 16px;
  font-weight: 600;
  padding: 6px 12px 6px 18px;
  color: #ffffff;
  background: #8caae6;
  background: linear-gradient(to right, #8caae6 62%, #ffffff 100%);
  max-width: 1000px;
  border-radius: 10px 0px 0px 0px;
}
main p {
  padding: 20px;
  font-size: 14px;
}

.blurb p {
  padding: 20px;
  font-size: 14px;
}

.blurb h1 {
  text-align: center;
  font-size: 18px;
}

table {
  border-collapse: collapse;
  width: 100%;
  max-width: 1000px;
  margin: 0 20px 20px;
}
.table-container {
  max-width: 100%;
  max-height: 30%;
  margin: 0 20px 20px;
  overflow-x: auto;
}

.table-container table {
  width: 100%;
  min-width: 700px;
  margin: 0;
  border-collapse: collapse;
}
thead th {
  text-align: left;
  padding: 6px 10px;
  border-bottom: 2px solid #999;
  font-size: 13px;
}

tbody tr {
  border-bottom: 1px solid #e5e5e5;
  cursor: pointer;
}

tbody tr:hover {
  background: #eef3fb;
}

tbody tr.read {
  background: #d4d4d4;
}

tbody tr.read:hover {
  background: #c8c8c8;
}

td {
  padding: 6px 10px;
  vertical-align: middle;
}

.col-date {
  width: 110px;
  color: #333;
}
.col-num {
  width: 30px;
  color: #555;
  font-weight: bold;
}
.col-icon {
  width: 30px;
  text-align: center;
  color: #555;
}
.row-icon {
  width: 24px;
  height: 24px;
  vertical-align: middle;
}

.col-subject a {
  color: #1a4faa;
  text-decoration: none;
  font-weight: bold;
}
tr.read .col-subject a {
  text-decoration: line-through;
  color: #555;
  font-weight: normal;
}

.col-subject a:hover {
  text-decoration: underline;
}
.empty {
  padding: 40px;
  text-align: center;
  color: #888;
}
.buttons {
  display: contents;
  margin: 20px 0;
}
.buttons img {
  margin-left: 20px;
}
.code-block {
  padding: 14px 20px 16px;
}

.code-header {
  display: flex;
  font-size: 12px;
  margin-bottom: 8px;
}
.code-header img {
  display: block;
  margin-left: 114px;
}

.copy-btn {
  font-family: inherit;
  font-size: 11px;
  text-transform: uppercase;
  background-color: #8caae6;
  padding: 4px 10px;
  cursor: pointer;
}

.copy-btn:hover {
  background: #6487dc;
}

.copy-btn:active {
  transform: translate(1px, 1px);
}

.copy-btn.copied {
  background: #d4d4d4;
}

.code-text {
  font-family: inherit;
  font-size: 12;
  line-height: 1.5;
  background: #d4d4d4;
  padding: 8px;
  height: 68px;
}

.code-text:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

footer {
  background: #6487dc;
  padding: 15px;
  text-align: left;
  font-size: 65%;
}

@media (max-width: 700px) {
  .layout {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    border: none;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
  }
}
div.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin-left: 20px;
}

div.gallery-item {
  margin: 5px;
  width: 180px;
  height: auto;
}

div.gallery-item:hover {
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
}

div.gallery-item img {
  width: 100%;
  height: auto;
}

div.gallery-item div.desc {
  padding: 15px;
  text-align: center;
}
.modal-overlay {
  position: fixed;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(12px);
  z-index: 9999;
}
.modal-overlay.active {
  display: flex;
}
.modal-box {
  position: relative;
  max-width: 90%;
  width: min(700px, 95%);
  padding: 1rem;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}
.modal-box img {
  display: block;
  width: 100%;
  height: auto;
}
.modal-close,
.modal-nav {
  position: absolute;
  border: none;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 1.2rem;
  padding: 0.6rem 0.85rem;
  cursor: pointer;
}
.modal-close {
  top: 12px;
  right: 12px;
}
.modal-nav {
  top: 50%;
  transform: translateY(-50%);
}
.modal-prev {
  left: 12px;
}
.modal-next {
  right: 12px;
}
