:root {
  --maxWidth: 1000px;
  --C: #175676;
  --C0: #f1faff;
  --C1: #4ba3c3;
  --C2: #d62839;
  --C3: #ba324f;
}


html {
  scroll-behavior: smooth;
}

body,
button,
input,
optgroup,
select,
textarea {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  font-size: 1rem;
}

a {
  text-decoration: none;
  color: var(--C);
}

a.button {
  padding: 10px 10px;
  border: none;
  border-radius: 5px;
  color: #fff;
  background: var(--C3);
}

h1,
h2,
h3 {
  margin-top: 2rem;
  font-weight: 500;
}

h1 {
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 2rem;
}

h2 {
  font-size: 1.3rem;
  letter-spacing: .01em;
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
  line-height: 2;
}

li {
  margin-bottom: 1rem;
}

/* auth */
.auth-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  align-content: center;
  background: var(--CB);
  height: 100vh;
}

.auth-header {
  display: flex;
  justify-content: center;
  padding: 10px;
  min-width: 300px;
}

.auth-header img {
  width: 150px;
  padding: 20px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  border-radius: 10px;
  padding: 20px;
}

/* forms */
form {
  padding-top: 10px;
  border-collapse: collapse;
}

.form-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-bottom: 20px;
  min-width: 300px;
}

input[type="text"],
input[type="email"],
input[type="password"] {
  width: 100%;
  padding: 5px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  unicode-bidi: plaintext;
}

select {
  width: 100%;
  padding: 5px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

form button {
  padding: 5px 10px;
  border: none;
  border-radius: 5px;
  color: #fff;
  background: var(--C);
  width: 100%;
}

.terms {
  margin: 10px 0;
}

.terms-box {
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 5px;
  height: 150px;
  overflow-y: scroll;
  background: #f9f9f9;
  max-width: 400px;
}

.loginOr {
  width: 100%;
  text-align: center;
  border-bottom: 2px solid #ddd;
  line-height: 0.1em;
  margin: 30px 0;
}

.loginOr>span {
  background: #fff;
  padding: 0 10px;
}

/* main 3 rows */
.wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.header {
  padding: 10px 0;
  margin-bottom: 20px;
}

.header .nav {
  max-width: var(--maxWidth);
  margin: auto;
  display: flex;
  padding: 5px 10px;
  justify-content: space-between;
}

.nav>div {
  display: flex;
  align-items: center;
}

.nav a {
  padding: 5px 10px;
  margin-inline-end: 10px;
  display: flex;
}



a.brand {
  color: var(--C);
}

.logo {
  font-weight: bold;
  color: #fff;
  background: var(--C);
  border-radius: 10px;
  padding: 5px;
  font-size: clamp(1rem, 2vw, 1.5rem);
  margin-inline-end: 5px;
  display: flex;
  align-items: center;
}

.brand .title {
  font-weight: 800;
  font-size: 28px;
}

.brand .slogan {
  font-size: 12px;
}

img.logo {
  height: 40px;
}

/* small screens */
@media screen and (max-width: 500px) {
  .nav {
    align-items: center;
  }

  .nav>div {
    flex-direction: column;
  }

  .nav a {
    padding: 2px 5px;
    margin: 0;
  }

  .brand .title {
    font-size: 22px;
  }
}

.main {
  overflow: auto;
  max-width: var(--maxWidth);
  width: 100%;
  margin: 0 auto;
  background-color: #fff;
}

.main .container {
  padding: 15px;
}


.footer {
  user-select: none;
  width: 100%;
  margin: 30px auto 10px;
  padding: 0 10px;
  text-align: center;
  padding: 30px 0;
  border-block: 1px solid #eee;
}

.footer>div {
  max-width: var(--maxWidth);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px;
  font-weight: bold;
}

.footer-right {
  display: flex;
  gap: 15px;
}


.warning {
  color: #663c00;
  font-size: 1.2rem;
  padding: 20px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background: #fff4e5;
}

.field {
  display: flex;
  justify-content: center;
  padding: 10px;
  gap: 10px;
}

/* loading */
.loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  /* Adjust thickness */
  background: transparent;
  z-index: 9999;
  overflow: hidden;
}

/* The actual progress bar */
.loading::after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, #4CAF50, #2196F3);
  /* Color gradient */
  transform: translateX(-100%);
  animation: loading 2s linear infinite;
}

/* Animation */
@keyframes loading {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

.hero {
  display: grid;
  grid-template-columns: 1fr 300px;
  align-items: start;
  min-height: 400px;
}


.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10px;
}

.hero-left h1 {
  color: var(--C);
  text-shadow: 1px 1px 4px rgba(255, 255, 255, 0.8);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: start;
  margin: 10px;
}

.hero-left p {
  text-shadow: 1px 1px 4px rgba(255, 255, 255, 0.8);
  font-size: 1.2rem;
  padding: 10px;
}

.hero-right {
  height: 100%;
  width: 300px;
  background: url('/_elicitation.jpg') center/cover;
  border-radius: 50% 0;
  overflow: hidden;
}

@media screen and (max-width: 500px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto 300px;
    justify-items: center;
    min-height: 600px;
  }
}


.tiers {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  background: var(--C0);
  color: #444;
  padding-bottom: 50px;
}

.tier {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.tier .icon {
  font-size: 1.3rem;
  color: #fff;
  background: var(--C);
  border-radius: 4px;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tiers h3 {
  font-size: 1.3rem;
  margin: 0;
  font-weight: bold;
}

.tier h4 {
  font-size: 1rem;
  margin: 0;
}

.buttons {
  display: flex;
  justify-content: center;
  gap: 20px
}

.buttons a.button {
  display: flex;
  align-items: center;
}

.map {
  margin-bottom: 20px;
}

.mainpage-box {
  padding: 20px;
}


/* Guides */

.tutorial-container {
  padding: 30px;
}

.tutorial-content {
  min-height: 400px;
  font-size: 18px;
  line-height: 1.6;
}

.tutorial-buttons {
  padding: 30px;
  display: flex;
  justify-content: space-between;
}

.tutorial-buttons button {
  padding: 10px 20px;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.next-btn {
  background-color: var(--C3);
  color: white;
}

.back-btn {
  background-color: var(--C1);
  color: white;
}



#toc li {
  cursor: pointer;
  padding: 2px;
  color: var(--C);
}

dl {
  background-color: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 20px;
  max-width: 600px;
  margin: 10px auto;
}

dt {
  font-weight: 600;
  font-size: 1.1rem;
  margin-top: 16px;
  color: var(--C3);
  font-weight: bold;
}

dd {
  margin-left: 0;
  padding-left: 12px;
  margin-top: 6px;
  font-size: 1rem;
}

dd.example {
  color: var(--C);

}

dd.example::before {
  content: "Example: ";
  font-weight: bold;
}

figure {
  background-color: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px;
  margin: 20px 0;
}

figure img {
  display: block;
  width: 100%;
  max-width: 600px;
  height: auto;
  margin: 20px auto;
  border: 1px solid #aaa;
}

figcaption {
  text-align: center;
  font-size: 0.9rem;
  color: #6b7280;
  margin-top: 8px;
}

/* Downloads */

.tabs {
  display: flex;
  margin-bottom: 10px;
  justify-content: center;
  margin: 10px 0;
  border-bottom: 1px solid #eee;
}

.tab {
  padding: 10px 20px;
  border: 1px solid #ccc;
  cursor: pointer;
  background-color: #f1f1f1;
}

.tab.active {
  background-color: #ffffff;
  border-bottom: none;
}

.tab-content {
  display: none;
  margin-bottom: 50px;
}

.tab-content.active {
  display: block;
}


/* Datasets */
.downloadList {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.downloadList .card {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 10px;
  width: 200px;
  box-shadow: 0px 6px 10px rgba(0, 0, 0, 0.15);
}

.downloadList .card:hover {
  box-shadow: 0px 6px 10px rgba(100, 0, 0, 0.15);
}

.downloadList .card .title {
  font-size: 1.2rem;
  font-weight: bold;
  padding-bottom: 15px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.downloadList .card .stat {
  color: #777;
}

.downloadList .card .links {}

.downloadList code {
  background: var(--C);
  color: #fff;
  padding: 2px;
  font-size: 0.8rem;
}

/* download */
.datasetdesc {
  display: flex;
  gap: 20px;
  padding: 10px;
  justify-content: center;
  color: #555;
}

.datasetdesc div {
  display: flex;
  align-items: center;
  gap: 5px;
}

.downloadlinks {
  padding-block: 20px;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.downloadlinks a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px;
  background: var(--C3);
  color: #fff;
  border-radius: 5px;
}