:root {
  --color-bg: #f9f7f6;
  --color-bg-footer: #f2efed;

  --color-primary: #127aca;

  --color-black: hsl(0, 0%, 0%);
  --color-gray2: hsl(0, 0%, 77%);
  --color-gray: hsl(0, 0%, 92%);
  --color-white: hsl(0, 0%, 100%);

  --color-text: hsl(0, 0%, 18%);
  --color-text-bold: hsl(0, 0%, 21%);

  --color-text-light: hsl(0, 0%, 40%);

  --color-link: #378ef0;
  --color-link-hover: #363636;
}

* {
  font-family: Arial, Helvetica, sans-serif;
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}
body {
  background: var(--color-bg);
}
footer {
  margin-top: 32px;
  background: var(--color-bg-footer);
  padding: 2rem 1.5rem 3rem;
}

footer a {
  color: var(--color-black);
  text-decoration: underline;
}

p,
li,
span {
  font-size: 16px;
}

ul {
  padding-left: 32px;
}

li {
  line-height: 1.6;
}

h1 {
  margin-bottom: 8px;
}
h1,
h2,
h3,
p {
  color: var(--color-text);
  line-height: 1.2;
}
strong,
b {
  color: var(--color-text-bold);
}

a {
  color: var(--color-link);
  text-decoration: none;
}
a:hover {
  color: var(--color-link-hover);
}

#root {
  display: flex;
  flex-direction: column;
  width: 100%;
  justify-content: space-between;
  min-height: 100dvh;
}

.container {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 0px 16px;
  position: relative;
}

input[type='text'],
input[type='file'],
input[type='email'],
select {
  display: inline-block;
  font-size: 12px;
  padding: 6px 10px;
  border: 1px var(--color-gray2) solid;
  border-radius: 5px;
  min-height: 32px;
  width: 100%;
  margin: 8px 0;
  background: var(--color-white);
}

/* https://codepen.io/VeronQ/details/LdYRBV */
.ripple {
  width: 2px;
  height: 2px;
  position: absolute;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  /* background-color: red; */
  animation: rippleEffect 0.5s ease-in-out;
}
@keyframes rippleEffect {
  0% {
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(var(--scale));
  }
}

button,
.btn {
  display: inline-block;
  font-size: 12px;
  font-weight: bold;
  padding: 6px 10px;
  background-color: var(--color-gray);
  border: 1px var(--color-gray2) solid;
  border-radius: 5px;
  cursor: pointer;
  line-height: 1.2;
  color: black;
  transition: opacity 0.2s;
  position: relative;
  overflow: hidden;
}
button:hover,
.btn:hover {
  opacity: 0.7;
}
.btn.blue {
  color: var(--color-white);
  background-color: var(--color-primary);
  border: 1px var(--color-primary) solid;
}
.btn.orange {
  color: var(--color-white);
  background-color: #e67e22;
  border: 1px #d35400 solid;
}
.btn.round {
  border-radius: 16px;
}
.btn:disabled {
  color: #1010104d;
  cursor: not-allowed;
}
.btn.blue.btn:disabled {
  opacity: 0.5;
  color: var(--color-white);
}

.btn.download {
  padding: 4px 8px;
}

input {
  background-color: var(--color-white);
}

div[id^='upload-area-'] {
  display: inline-block;
  padding: 16px;
  border: 2px #d1d1d1 dashed;
  width: 180px;
  text-align: center;
  background-color: var(--color-white);
}

div[id^='upload-area-'].is-dragover {
  border-color: gray;
  background-color: whitesmoke;
}

pre {
  padding: 8px;
  background: #eaeaea;
  color: #555;
  border-radius: 4px;
  overflow: auto;
  border: 1px #c4c4c4 solid;
  max-height: max(50vh, 312px);
}

code {
  font-family: monospace;
}

header > div {
  display: flex;
  justify-content: space-between;
  flex-direction: row;
}

header > div > div {
  padding-top: 24px;
}

.checkbox {
  font-family: monospace;
  position: relative;
  top: -2px;
}

.flex {
  display: flex;
}

.margin-0 {
  margin: 0px;
}
.margin-right-8 {
  margin-right: 8px;
}
.margin-top-8 {
  margin-top: 8px;
}
.margin-top-48 {
  margin-top: 48px;
}
.margin-top-64 {
  margin-top: 64px;
}
.margin-bottom-8 {
  margin-bottom: 8px;
}
.margin-bottom-48 {
  margin-bottom: 48px;
}
.margin-bottom-64 {
  margin-bottom: 64px;
}

.has-text-small {
  font-size: small;
}

#upload-area {
  display: flex;
  justify-content: space-evenly;
  gap: 16px;
}

#qrcode > .popup-box > div {
  background-color: var(--color-white);
  text-align: center;
  margin-bottom: 16px;
}

.popup {
  width: 100vw;
  height: 100vh;
  background-color: #00000080;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1;
}

.popup-box {
  position: fixed;
  background: gainsboro;
  padding: 16px;
  border-radius: 5px;
  transform: translate(-50%, -50%);
  left: 50%;
  top: 50%;
  border: 1px #a7a7a7 solid;
  z-index: 10;
  width: min(320px, 90%);
  box-sizing: content-box;
}
.popup-box h3 {
  margin-top: 0px;
}

.overflow-auto {
  overflow: auto;
}

.hidden {
  display: none !important;
}

div[id^='upload-area-'] > p {
  margin: 0px;
  margin-top: 8px;
  font-size: 14px;
}

#create-credentials-form {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
}

#create-credentials-form > div {
  flex-basis: calc(50% - 12px);
}

@media only screen and (max-width: 600px) {
  #create-credentials-form > div {
    flex-basis: 100%;
  }
}

.offline-message {
  font-size: large;
  text-align: center;
}

#announcement {
  background: antiquewhite;
  padding: 1px 16px;
  margin: 0;
  border-radius: 8px;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1em;
}
.legal-table tr {
  border-bottom: 1px solid #ccc;
  text-align: left;
}
.legal-table th,
.legal-table td {
  padding: 8px;
}

#service-cards {
  display: flex;
  gap: 24px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.service-card {
  flex: 1;
  min-width: 280px;
  background: var(--color-white);
  border: 2px solid var(--color-gray2);
  border-radius: 8px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.service-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.service-header h3 {
  margin: 0;
  font-size: 20px;
}

.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: bold;
  padding: 4px 8px;
  background-color: var(--color-gray);
  border: 1px var(--color-gray2) solid;
  border-radius: 4px;
  color: var(--color-text);
  white-space: nowrap;
}

.badge.blue {
  color: var(--color-white);
  background-color: var(--color-primary);
  border: 1px var(--color-primary) solid;
}

.service-card p {
  margin: 0;
  color: var(--color-text-light);
  line-height: 1.5;
}

.service-card .btn {
  margin-top: auto;
  text-align: center;
  width: 100%;
}

@media only screen and (max-width: 600px) {
  #service-cards {
    flex-direction: column;
  }
  
  .service-card {
    min-width: 100%;
  }
}

.hero {
  text-align: center;
}

.hero-title {
  font-size: 32px;
  margin-bottom: 16px;
  font-weight: bold;
}

.hero-subtitle {
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-text-light);
  max-width: 640px;
  margin: 0 auto;
}

.steps {
  display: flex;
  gap: 32px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.step {
  flex: 1;
  min-width: 200px;
  text-align: center;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  margin: 0 auto 16px;
}

.step h3 {
  margin: 0 0 8px 0;
  font-size: 18px;
}

.step p {
  margin: 0;
  color: var(--color-text-light);
  line-height: 1.5;
}

@media only screen and (max-width: 600px) {
  .hero-title {
    font-size: 24px;
  }
  
  .hero-subtitle {
    font-size: 16px;
  }
  
  .steps {
    flex-direction: column;
    gap: 24px;
  }
}
