@import url("https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css");

html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
  font: revert;
  font-family: 'Noto Sans', sans-serif;
  padding-inline-start: 0;
}

* {
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
  font-family: 'Noto Sans', sans-serif;
}

html,
body {
  margin: 0;
  height: 100%;
  scroll-behavior: smooth;
}

input,
button,
textarea,
select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
  outline: none;
}

/* For some reason IPHONE has a bug where it does not work without min height. */
input[type="date"]{
  min-height: 1.2em;
}

button {
  cursor: pointer;
}

/* a blue color as a generic focus style */
button:focus-visible {
  outline: 2px solid #4a90e2 !important;
  outline: -webkit-focus-ring-color auto 5px !important;
}

a {
  text-decoration: none;
}

/* Global colors */
:root {
  --color-input-focus: #1E91D6;
  --color-input-error: #E0121D;
  --color-input-success: #428D39;
  --color-input-outline: #D2D4DA;
  --color-input-warning: #ffa600;

  --color-icon-background-1: #D9D9D966;
  --color-black: #000000;
}

/* General styles */

.card-group-title {
  position: relative;
  font-weight: 700;
  font-size: 45px;
  text-align: center;
  line-height: normal;
}

.card-group-description {
  font-size: 18px;
  line-height: 27px;
}

.description-text {
  font-size: 18px;
  line-height: 27px;
}

.button-primary {
  background-color: var(--color-background-1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  position: relative;
  cursor: pointer;
}

.button-primary:disabled, .button-primary:disabled * {
    background: color-mix(in srgb, var(--color-background-1) 80%, var(--color-black));
    color: color-mix(in srgb, var(--color-background-1) 40%, var(--color-black));
    cursor: not-allowed;
}

.button-secondary {
  border: 2px solid;
  border-color: var(--color-background-1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  position: relative;
  cursor: pointer;
  transition: opacity 300ms ease-in-out;
}

.button-secondary[disabled] {
  opacity: 50%;
}

.button-secondary-text {
  position: relative;
  width: fit-content;
  margin-top: -2px;
  font-weight: 600;
  color: var(--color-background-1);
  font-size: 14px;
  letter-spacing: 0;
  line-height: 24.5px;
  white-space: nowrap;
}

.messages {
  position: fixed;
  top: 0;
  width: 100vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 100%;
  transition: ease-in-out 300ms;
  transition-property: opacity;
}

.messages .success, .messages .error {
  position: relative;
  padding: 16px;
  width: 100%;
  text-align: center;

  font-weight: 700;
  color: var(--color-background-1);
  font-size: 24px;
  letter-spacing: 0;
  line-height: normal;
}

.messages .success {
  background-color: var(--color-accent-4);
}

.messages .error {
  background-color: var(--color-input-error);
}

@media only screen and (max-width: 1280px) {
  .card-group-title {
    font-size: 32px;
  }
}
