body {
  font-family: 'Open Sans', sans-serif;
  font-size: 15px;
  line-height: 1.35em;
}

h1 {
  font-size: 115%;
  margin-top: 3.0em; /* adjust as needed */
  margin-bottom: 2.0em; /* adjust as needed */
}

h2 {
  font-size: 110%;
  margin-top: 2.5em; /* adjust as needed */
  margin-bottom: 2.0em; /* adjust as needed */
}

.heading {
  width: 80%;
  margin: 20px auto 0;
  color: rgba(43,75,119,1);
  padding-left: 1px;
}

.heading.closed {
  background-color: rgba(43,75,119,0.4);
  padding: 5px 10px 5px 10px;
  color: white;
}

.heading.open {
  background-color: transparent;
  color: rgba(43,75,119,1);
}

.box {
  width: 80%;
  margin: 5px auto 5px;
  padding: 5px 10px 5px;
  background-color:  rgba(200, 200, 200, 0.2);
  text-align: justify;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  overflow: hidden;
  width: 100%;
  height: 0;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

@media (max-width: 600px) {
  body {
    font-size: 18px;
  }

  .box {
    width: 95%;
  }
  .heading {
    width: 95%;
  }
}

.table {
  border: 2px solid white;
  border-collapse: collapse;
  padding: 5px;
  font-size: 95%;
  text-align: left;
}

.table.checkboxcol23 {
  text-align: center;
  width:20%;  
}

.table td.table-center {
  text-align: center;
}

.table td.table-right {
  text-align: right;
}

.down-arrow {
    font-size: 11px;
    color: royalblue;
}
.up-arrow {
    font-size: 11px;
    color: dodgerblue;
}
.tooltip {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 150px;
  background-color: lightsteelblue;
  color: black;
  text-align: center;
  border-radius: 5px;
  padding: 5px 0;
  position: absolute;
  z-index: 1;
  top: 150%;
  left: 50%;
  margin-left: -60px;
  opacity: 0;
  transition: opacity 0.3s;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

.tooltip .tooltiptext.long {
  white-space: normal;
  width: 140px; /* check width of tooltip, this should be smaller */ 
}



.tooltip:focus .tooltiptext,
.tooltip:focus-within .tooltiptext {
  visibility: visible;
  opacity: 1;
}

.tooltip .tooltiptext {
  white-space: normal;
  padding: 5px;
}

/* Logo boxes */
.box.logo {
  background-color: white;
  text-align: center;
}

/* Funding and partner logos: one centred row, same height (thanks page); wraps on narrow screens */
.partner-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 30px;
  width: 80%;
  margin: 15px auto;
}
.partner-logos img {
  height: 45px;
  width: auto;
}

/* Country and language switch (top of every page) */
.locale-bar {
  width: 80%;
  margin: 8px auto 0;
  text-align: right;
  font-size: 90%;
}
.locale-bar label {
  margin-left: 10px;
  color: rgba(43,75,119,1);
}

/* Large buttons */
button.big {
  min-width: 200px;
  min-height: 40px;
  padding: 4px 12px;
}

/* Social dashboard: one table, 3 rows x 6 columns. Fixed layout keeps the
   column proportions at every window width; long words wrap or hyphenate. */
table.dashboard,
table.promotions {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}
table.dashboard td,
table.promotions td {
  border: 2px solid white;
  padding: 5px;
  font-size: 95%;
  text-align: left;
  vertical-align: middle;
  overflow-wrap: break-word;
  hyphens: auto;
}
table.dashboard col.lab { width: 21%; }
table.dashboard col.val { width: 12.33%; }
table.dashboard.round td.val { text-align: center; }
table.dashboard.results td.val { text-align: right; }

table.promotions col.lab { width: 20%; }
table.promotions col.sel { width: 30%; }
table.promotions select {
  width: 100%;
  max-width: 100%;
}

/* Translations page */
table.langtable {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}
table.langtable th,
table.langtable td {
  border: 2px solid white;
  padding: 5px;
  font-size: 95%;
  text-align: left;
  vertical-align: middle;
  overflow-wrap: break-word;
}
table.langtable col.lang { width: 22%; }
table.langtable col.quality { width: 13%; }
table.langtable col.progress { width: 18%; }
table.langtable col.countries { width: 32%; }
table.langtable col.file { width: 15%; }
table.langtable progress { width: 100%; }
table.langtable .code { color: #777; font-size: 85%; }
.level {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 10px;
  font-size: 85%;
  white-space: nowrap;
}
.level-high { background: #d7ecd9; color: #1e5b27; }
.level-medium { background: #fbeccb; color: #7a5300; }
.level-low { background: #f7d6d3; color: #8a1f17; }
.level-reviewed { background: rgba(43,75,119,1); color: white; }
.level-source { background: #e2e2e2; color: #333; }

/*

.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip .tooltiptext {
  visibility: hidden;
  background-color: lightsteelblue;
  color: black;
  text-align: center;
  border-radius: 5px;
  padding: 5px 5px;
  position: absolute;
  z-index: 1;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
  white-space: nowrap; /* prevent text from wrapping */
}


/*}
.info-sign::before {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: white;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}*/



/*
myapp/
├── app.py
├── templates/
│   ├── index.html
│   ├── about.html
│   └── contact.html
└── static/
    ├── css/
    │   └── styles.css
    ├── js/
    └── img/
*/