@charset "utf-8";
body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: Verdana, sans-serif;
  font-size: 12pt;
  line-height: 1.3;
}

ul.jobs {
  position: relative;
  padding: 0;
  margin: 20px;
  max-width: 520px;
}
ul.jobs li {
  position: relative;
  list-style: none;
  margin: 4px 0;
  padding: 8px;
  background: #1f1f1f;
  color: #fff;
  border-radius: 4px;
  cursor: default;
  font-size: 14px;
}
ul.jobs li .tooltip {
  position: fixed !important;
  left: 790px !important;
  top: 120px !important;
  transform: none !important;
  margin: 0 !important;
  background: #091545;
  color: #fff;
  padding: 10px 14px;
  border-radius: 6px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.15);
  z-index: 1000;
  min-width: 200px;
  max-width: 550px;
  width: max-content;
  white-space: normal;
  word-wrap: break-word;
  font-size: 14px;
  line-height: 1.4;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}
ul.jobs li:hover .tooltip {
  opacity: 1;
  pointer-events: auto;
}

p { text-indent: 2em; margin: 0 0 1em 0; }

.background-container { position: relative; height: 100%; width: 100%; }
.overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.2); display: flex; flex-direction: column;
}

.columns {
  display: flex;
  gap: 20px;
  padding: 20px;
  flex: 1;
  overflow: hidden;
  background-color: #242323;
}

.column.menu-column   { flex: 0 0 auto; }   /* only as wide as the buttons */
.column.viewer-column { flex: 1; min-width: 0; display: flex; flex-direction: column;
}

/**#image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  padding: 20px;
}
#image-grid img {
  max-width: 100%;
  height: auto;
  object-fit: cover;
  border: 2px solid white;
  border-radius: 5px;
  transition: transform 0.4s ease;
}
#image-grid img:hover {
  transform: scale(1.2);
}
#image-grid .caption {
  font-size: 12px;
  background-color: black;
  color: white;
  padding: 8px;
  width:200px;
  margin-top: 8px;
  text-align: center;
}**/

#pictures.assignment {
      max-width: 1600px;           /* adjust this to control overall max width */
      margin: 0 auto;
    }

    #image-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));  /* equal columns */
      gap: 30px;                   /* space between items */
      padding: 10px;
    }

    .item {
      display: flex;
      flex-direction: column;
      align-items: center;         /* centers image and caption horizontally */
      text-align: center;
      background: white;
      border-radius: 8px;
      overflow: hidden;
      box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    }

    .item img {
      width: 100%;                 /* fills the column width */
      height: auto;
      display: block;
      object-fit: contain;         /* shows full image without cropping */
    }

    .caption {
      padding: 14px 12px 18px;
      font-size: 14px;             /* exactly as requested */
      line-height: 1.4;
      color: #444;
      background: #fafafa;
      width: 100%;
      margin-top: auto;            /* pushes caption to bottom if needed */
    }

    /* Optional: slightly smaller on narrow screens */
    @media (max-width: 600px) {
      #image-grid {
        gap: 20px;
      }
      .caption {
        font-size: 13px;
        padding: 12px 10px;
      }
    }
.top-menu {
  display: flex;
  justify-content: center;
  background-color: #000;
  backdrop-filter: blur(6px);
  padding: 10px;
  gap: 15px;
}
.top-menu a { text-decoration: none; color: inherit; }
.top-menu button {
  padding: 12px 24px;
  font-size: 12pt;
  color: white;
  background: linear-gradient(135deg, #4e8cff, #6f49ff);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.top-menu button.selected { background: linear-gradient(135deg, #6faaff, #4807fa); }
.top-menu button:hover {
  transform: scale(1.07);
  box-shadow: 0 4px 12px rgba(0,0,0,0.8);
  color: #000;
}

.column.menu-column {
  flex: 0 0 auto;
  padding: 15px;
  background-color: #000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.2);
  max-height: calc(100vh - 160px);
  overflow-y: auto;
}
img[src$=".jpg"] {
  border: 3px solid white;
  border-radius: 15px; /* adjust as needed */
}

.column.viewer-column {
  background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.3)), url('../img/610284.jpg') center/cover no-repeat;
  background-blend-mode: darken;
  flex: 1;
  padding: 15px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.2);
  max-height: calc(100vh - 160px);
  overflow-y: auto;
  color: #f5f5f5;
}
.column.viewer-column::-webkit-scrollbar { width: 8px; }
.column.viewer-column::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.3); border-radius: 4px; }

.menu { display: flex; flex-direction: column; gap: 5px; background: #000; }
.menu button {
  width: 160px;
  padding: 12px 24px;
  font-size: 12pt;
  color: white;
  background: linear-gradient(135deg, #4e8cff, #6f49ff);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
  text-align: center;
  white-space: nowrap;
}
.menu button.selected { background: linear-gradient(135deg, #80aaff, #a07fff); color: #000; }
.menu button:hover {
  transform: scale(1.07);
  box-shadow: 0 4px 12px rgba(0,0,0,0.8);
  color: #000;
}

.assignment { display: none; opacity: 0; }
.assignment.active { display: block; animation: fadeIn 1.6s ease forwards; }
@keyframes fadeIn { from {opacity: 0;} to {opacity: 1;} }

.awardlink {
  color: #a0d8ef;
  text-decoration: none;
  font-size: 1em;
  cursor: pointer;
  transition: color 0.3s ease;
  display: block;
}
.awardlink:hover { text-decoration: underline; color: #fff; }

#certModal {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.97);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 30px;
  padding: 20px;
  box-sizing: border-box;
}
#certModal .thumb {
  width: 380px;
  max-width: 90vw;
  border: 7px solid #fff;
  border-radius: 14px;
  box-shadow: 0 15px 50px rgba(0,0,0,0.9);
  cursor: pointer;
  transition: transform 0.4s ease;
}
#certModal .thumb:hover { transform: scale(2.5); }
#certModal .title { color: #fff; font-size: 1.2em; margin: 0; text-align: center; }
#closeModal {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 30px;
  font-weight: bold;
  color: #fff;
  background: rgba(0,0,0,0.7);
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
#closeModal:hover { background: rgba(200,0,0,0.8); }

.crew-chief-banner { margin: 10px 0 10px 0; }
.crew-chief-text {
  font-size: 14px;
  color: #282727;
  text-align: center;
}

