body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "San Francisco", Helvetica, Arial, sans-serif;
  color: #444;
}
/*
 * Formatting the header area
 */
header {
  background-color: #DFB887;
  height: 35px;
  width: 100%;
  opacity: .9;
  margin-bottom: 10px;
}
header h1.logo {
  margin: 0;
  font-size: 1.7em;
  color: #fff;
  text-transform: uppercase;
  float: left;
}
header h1.logo:hover {
  color: #fff;
  text-decoration: none;
}
/*
 * Centering the body content
 */
.container {
  width: 95%;
  margin: auto !important;
}

div.home {
  padding: 10px 0 30px 0;
  background-color: #E6E6FA;
  -webkit-border-radius: 6px;
     -moz-border-radius: 6px;
          border-radius: 6px;
}
div.about {
  padding: 10px 0 30px 0;
  background-color: #E6E6FA;
  -webkit-border-radius: 6px;
     -moz-border-radius: 6px;
          border-radius: 6px;
}
h2 {
  font-size: 3em;
  margin-top: 40px;
  text-align: center;
  letter-spacing: -2px;
}
h3 {
  font-size: 1.7em;
  font-weight: 100;
  margin-top: 30px;
  text-align: center;
  letter-spacing: -1px;
  color: #999;
}
.menu {
  float: right;
  margin-top: 8px;
}
.menu li {
  display: inline;
}
.menu li + li {
  margin-left: 35px;
}
.menu li a {
  color: #444;
  text-decoration: none;
}
/*
 * Formatting the navigation bar
 */
nav {
  display: flex;
  justify-content: center;
  align-items: left;
  background-color: #333;
  padding: 10px;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

nav a {
  color: #fff;
  text-decoration: none;
  padding: 10px 20px;
  margin: 0 10px;
  font-weight: 400; /* keep normal */
}

button {
  font-size: 20px;
  padding: 10px 20px;
}

/* Set font size of tables */
table {
  border-collapse: collapse;
  width: 100%;
}
th, td {
  text-align: left;
  padding: 8px;
}
th {
  background-color: #dddddd;
}
#gwas_option .select2-container--default .select2-selection--multiple {
  width: 400px;
  height: 110px;
}

/* styles.css */
.centered-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 15vh; /* You can adjust this to control vertical centering */
}

.centered-container-mainImage {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 80vh; /* You can adjust this to control vertical centering */
}

.centered-image {
  max-width: 120%; /* Ensure the image fits within the container */
}

/* styles.css */
.left-aligned-image {
  display: flex;
  align-items: flex-start; /* Align the image to the top */
}

.scaled-image {
  max-width: 60%; /* Ensure the image fits within the container */
  width: auto; /* Scale down the image while maintaining its aspect ratio */
}

/* styles.css */
.container-main {
  display: flex;
  gap: 18px;
  margin-top: 12px;
}

.column {
  flex: 1;
  padding: 22px 22px;
  color: rgba(255,255,255,0.95);
  text-align: justify; /* Justify alignment */
  min-height: 100px; /* Adjust as needed */
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Vertical separation */
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(15,23,42,0.14);
  border: 1px solid rgba(255,255,255,0.18);
  background-size: 100% 100%;
}

/* reusable cards for forms (annotation, etc.) */
.card{
  padding: 22px 22px;
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(15,23,42,0.14);
  border: 1px solid rgba(255,255,255,0.18);
  background: #ffffff;
}

.card h4, .card h6{
  margin: 0 0 10px 0;
}

.card small{
  opacity: 0.9;
}

.column h2{
  margin: 0 0 10px 0;
  font-size: 28px;
  text-align: left;
  letter-spacing: -0.5px;
}

.column p{
  font-size: 16px;
  line-height: 1.45;
  margin: 0 0 10px 0;
}

.column p:last-child{
  margin-top: auto; /* pushes last paragraph down → more even layout */
}

/* ✅ gradients (soft, consistent palette) */
#column1{ background: linear-gradient(135deg, #2fb69b 0%, #1f8e87 100%); }
#column2{ background: linear-gradient(135deg, #6f86d6 0%, #4b5fbf 100%); }
#column3{ background: linear-gradient(135deg, #ff9a6a 0%, #e86b51 100%); }
#column4{ background: linear-gradient(135deg, #3b8b82 0%, #245c58 100%); }
#column5{ background: linear-gradient(135deg, #b48ce6 0%, #8e6ccf 100%); }
#column6{ background: linear-gradient(135deg, #8892e6 0%, #606ad6 100%); }

.card.green { background: linear-gradient(135deg, #2fb69b 0%, #1f8e87 100%); color: #fff; }
.card.orange{ background: linear-gradient(135deg, #ff9a6a 0%, #e86b51 100%); color: #fff; }
.card.teal  { background: linear-gradient(135deg, #3b8b82 0%, #245c58 100%); color: #fff; }
.card.sand  { background: linear-gradient(135deg, #eae7d1 0%, #d8d0b3 100%); color: #111827; }

/* links inside cards */
/* links inside the colored homepage columns only */
#column1 a, #column2 a, #column3 a, #column4 a, #column5 a, #column6 a{
  color: #ffffff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
#column1 a:hover, #column2 a:hover, #column3 a:hover,
#column4 a:hover, #column5 a:hover, #column6 a:hover{
  opacity: 0.9;
}

.column a:hover{ opacity: 0.9; }

.image-container-foot {
  display: flex; /* Use flexbox to create a horizontal layout */
  justify-content: space-between; /* Distribute images evenly */
  margin-top: 80px; /* Add some top margin for spacing */
}

.image-container-foot img {
  max-height: 90px; /* Adjust the value to control the size of the images */
}

.annot-grid{
  display: flex;
  flex-wrap: wrap;          /* ✅ allows columns to drop under instead of overlapping */
  align-items: flex-start;
  gap: 18px;
  margin: 0 20px;           /* keep your spacing */
}

.annot-col-variants{ flex: 0 0 22.5%; min-width: 260px; }
.annot-col-middle  { flex: 1 1 520px; min-width: 420px; }
.annot-col-gtex    { flex: 0 0 320px; min-width: 280px; }
.annot-col-email   { flex: 0 0 320px; min-width: 280px; }

.annotation-grid{
  display: grid;
  grid-template-columns: 22.5% 15% 25% 30%;
  grid-template-areas:
    "list settings gtex submit"
    "list settings gtex submit";
  gap: 20px;
  align-items: start;
}

.col-list    { grid-area: list; }
.col-settings{ grid-area: settings; }
.col-gtex    { grid-area: gtex; }
.col-submit  { grid-area: submit; }

/* grid spacing is handled here (NOT margins on items) */
.annotation-grid{
  display: grid;
  gap: 18px;          /* tweak to taste */
  align-items: start;
}

/* Safari/overflow safety for form controls */
.card textarea{
  width: 100%;
  box-sizing: border-box;
  max-width: 100%;
  display: block;
}

/* optional: stop grid items from overflowing */
.annotation-grid > * { min-width: 0; }

/* =========================
   ABOUT page styles
   ========================= */

/* About layout helpers */
.about-two { align-items: stretch; }
.about-half { flex: 1; }

.about-card{
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(15,23,42,0.14);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 22px 22px;
  color: rgba(255,255,255,0.95);
}

/* give About cards friendly gradients (match your palette) */
#about-info     { background: linear-gradient(135deg, #6f86d6 0%, #4b5fbf 100%); }
#about-timeline { background: linear-gradient(135deg, #3b8b82 0%, #245c58 100%); }
#about-next     { background: linear-gradient(135deg, #ff9a6a 0%, #e86b51 100%); }
#about-data     { background: linear-gradient(135deg, #b48ce6 0%, #8e6ccf 100%); }
#about-feedback { background: linear-gradient(135deg, #2fb69b 0%, #1f8e87 100%); }

/* IMPORTANT: only style links INSIDE about cards (NOT navbar) */
#about .about-card a,
#about .about-card a:visited{
  color: #ffffff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
#about .about-card a:hover{ opacity: 0.9; }

/* Timeline */
.timeline{
  margin-top: 10px;
  position: relative;
  padding-left: 18px;
}
.timeline:before{
  content:"";
  position:absolute;
  left: 6px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: rgba(255,255,255,0.35);
  border-radius: 2px;
}
.tl-item{
  position: relative;
  display: flex;
  gap: 14px;
  padding: 10px 0;
}
.tl-dot{
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.95);
  position: absolute;
  left: 0px;
  top: 18px;
}
.tl-content{
  margin-left: 18px;
}
.tl-title{
  font-weight: 800;
  letter-spacing: -0.2px;
}
.tl-text{
  opacity: 0.95;
  line-height: 1.45;
  margin-top: 3px;
}

/* Lists & mini cards */
.nice-list{
  margin: 10px 0 0 18px;
  line-height: 1.6;
}
.mini-cards{
  display: grid;
  gap: 12px;
  margin-top: 10px;
}
.mini-card{
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 14px;
  padding: 12px 14px;
}
.mini-title{
  font-weight: 800;
  margin-bottom: 4px;
}
.mini-text{
  line-height: 1.45;
  opacity: 0.95;
}

/* Feedback form */
.feedback-form{ margin-top: 12px; }
.fb-row{ margin: 12px 0; }
.fb-label{ display:block; font-weight: 800; margin-bottom: 6px; }
.fb-input, .fb-textarea{
  width: 100%;
  box-sizing: border-box;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.25);
  padding: 10px 12px;
  background: rgba(255,255,255,0.12);
  color: #fff;
  outline: none;
}
.fb-input::placeholder, .fb-textarea::placeholder{ color: rgba(255,255,255,0.7); }

.fb-submit{
  border: none;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 800;
  cursor: pointer;
  background: rgba(255,255,255,0.95);
  color: #0f172a;
}
.fb-submit:hover{ opacity: 0.95; }

/* Stars (CSS-only, simple) */
.star-rating{
  display: inline-flex;
  flex-direction: row-reverse;
  gap: 6px;
  font-size: 22px;
}
.star-rating input{ display:none; }
.star-rating label{
  cursor: pointer;
  color: rgba(255,255,255,0.35);
}
.star-rating input:checked ~ label{ color: rgba(255,255,255,0.95); }
.star-rating label:hover,
.star-rating label:hover ~ label{ color: rgba(255,255,255,0.8); }

.flash-ok{
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 10px 12px;
  border-radius: 12px;
}

.plot-with-info { position: relative; }

.info-icon{
  position:relative;
  cursor:help;
  font-size:14px;
  color:#2563eb;
}

.info-tooltip{
  display:none;
  position:absolute;
  top:120%;
  left:50%;
  transform:translateX(-50%);
  background:#111827;
  color:#fff;
  padding:6px 8px;
  border-radius:6px;
  font-size:12px;
  white-space:nowrap;
  z-index:1000;
}

.info-icon:hover .info-tooltip{
  display:block;
}

/* wrapper (make it take the full row so "right" actually means right) */
.info-wrap{
  position: relative;
  display: flex;
  justify-content: flex-end; /* icon to the right */
  width: 100%;
  margin-bottom: 6px;
}

/* the icon itself (optional polish) */
.info-wrap .info-icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
}

/* the bubble */
.info-wrap .info-tip{
  position: absolute;
  top: 100%;
  right: 0;          /* keep inside right edge */
  left: auto;
  margin-top: 6px;

  width: max-content;
  max-width: min(420px, calc(100vw - 24px)); /* never overflow viewport */
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,.12);

  white-space: normal;      /* allow wrapping */
  overflow-wrap: anywhere;  /* break long tokens */
  z-index: 9999;

  display: none;
}

/* show on hover */
.info-wrap:hover .info-tip{
  display: block;
}

.submit-container {
    padding: 16px;
    background: #9FD8C6;
    margin: 20px;
    text-align: center;
    border-radius: 14px;
}

.submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    background: linear-gradient(135deg, #4C837A, #3A6F66);
    color: white;

    border: none;
    border-radius: 999px; /* pill-shaped */
    padding: 12px 22px;

    font-size: 16px;
    font-weight: 600;
    cursor: pointer;

    box-shadow: 0 6px 16px rgba(0,0,0,0.18);
    transition: all 0.2s ease;
}

.submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.22);
}

.submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(0,0,0,0.18);
}

.btn-icon {
    font-size: 18px;
    line-height: 1;
}

/* Jordan: code (75%) + logo (25%) inside full-width card */
.code-row{ display:flex; gap:14px; align-items:center; }
.code-col{ flex: 0 0 85%; min-width:0; }
.logo-col{ flex: 0 0 15%; display:flex; justify-content:flex-end; align-items:center; }

/* Polygenius: logo inside box on the right of the title */
.card-head{ display:flex; align-items:center; justify-content:space-between; gap:12px; }

.tool-logo{ max-height:50px; width:auto; display:block; }