/* General styles */
:root {
  --bg: #f7f7fb;
  --card: #ffffff;
  --accent: #2b6cb0;
  --muted: #666;
}
* {
  box-sizing: border-box;
}
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  margin: 0;
  background: var(--bg);
  color: #111;
}
main {
  max-width: 800px;
  margin: 36px auto;
  padding: 24px;
  background: var(--card);
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(20, 20, 40, 0.06);
}


/* Headings */
h1 {
  margin-top: 0;
  font-size: 20px;
}
h2 {
  margin-top: 0;
  font-size: 15px;
}
h2#rankingHeader {
  margin-top: 20px;
  margin-bottom: 0px;
  font-size: 25px;
}
#progress {
  font-size: 14px;
  color: var(--muted);
}
.muted {
  color: var(--muted);
  margin-top: 10px;
  margin-bottom: 10px;
}
#done {
  margin-top: 12px;
}


/* Owl pair buttons */
#pair {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin: 18px 0;
}
.owl-btn {
  flex: 1;
  padding: 18px;
  font-size: 16px;
  border-radius: 8px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
}
.owl-btn:active {
  transform: translateY(1px);
}


/* Images inside the owl buttons */
.owl-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 12px;
}
.owl-btn img.owl-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 8px;
  border: 1px solid #eee;
}



/* Two-column rankings layout */
#rankings-grid {
  display: flex;
  gap: 18px;
}
.rank-col {
  flex: 1;
}
.rank-col h3 {
  margin: 0px 0 8px 0;
  font-size: 15px;
}
.rank-col ol {
  padding-left: 0px;
}

/* Rankings list items */
.ranking-item {
  position: relative;
  overflow: hidden;
  margin-bottom: 2px;
  /* enable hyphenation of long words */
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  overflow-wrap: break-word;
}
.thumb-wrapper {
  float: left;
  position: relative;
  margin-right: 8px;
}
.ranking-thumb {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 4px;
  margin-right: 8px;
  display: block;
  vertical-align: middle;
  float: left;
}
.rank-badge {
  position: absolute;
  left: 2px;
  bottom: 2px;

  background: white;
  color: black;
  font-size: 10px;
  font-weight: bold;
  padding: 1px 4px;
  border-radius: 2px;
  line-height: 1;
}
