@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

:root {
  --main-height: 70dvh;
  --header-height: 30dvh;
  --icon-large: 18px;
  --bg-color: #f4f4f5;
  --main-color: #87a4a9;
  --border-radius: 12px;
  --text-color: oklch(0.37 0.013 285.805);
  --card-bg-color: #fff;
}

::-webkit-scrollbar {
  display: none;
}

/*html {
  overflow: hidden;
}*/

#in-app-browser-message,
#ios-message,
#android-message {
  display: none;
}

body.is-in-app-browser #in-app-browser-message {
  display: block;
}

body.is-ios #ios-message {
  display: block;
}

body.is-android #android-message {
  display: block;
}

a,
button {
  -webkit-user-drag: none;
  user-drag: none;
}

button:active {
  opacity: 0.95;
  position: relative;
  top: 1px;
}

button:focus,
input:focus {
  outline: none;
  border: none;
  box-shadow: none;
}

#qrscreen,
#installscreen {
  justify-content: center;
  align-items: center;
  width: 100dvw;
  height: 100dvh;
  padding: 10%;
  text-align: center;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-size: 14px;
  line-height: 1.5;
}

b,
strong {
  font-weight: 600;
}

.hidden {
  display: none!important;
}

* {
  box-sizing: border-box;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

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

button,
a {
  touch-action: manipulation!important;
}

[data-card]:not([data-card=""]) {
  border: 1px solid var(--main-color);
}

[data-card]:not([data-card=""]).active {
  background: var(--main-color);
  color: var(--card-bg-color);
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  margin-bottom: 14px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 20px;
  font-size: 18px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
}

body,
html {
  background-color: var(--bg-color);
  color: #333;
  height: 100dvh;
  width: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.btn {
  -webkit-appearance: button;
  color: #333;
  border: 0;
  user-select: none;
  vertical-align: middle;
  text-align: center;
  border-radius: 6px;
  display: flex;
  font-size: .875rem;
  line-height: 1;
  align-items: center;
  padding: .25rem .35rem;
  border-color: var(--bg-color);
  background: var(--bg-color);
}

.btn .material-symbols-outlined {
  color: var(--main-color)!important;
  position: static;
}

.row {
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  width: 100%;
  display: flex;
}

.row:last-child {
  margin-bottom: 0!important;
}

.card {
  box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .025);
  border: 1px solid transparent;
  background: var(--card-bg-color);
  border-radius: var(--border-radius);
  width: 100%;
  position: relative;
}

.card-inner {
  display: block;
  width: 100%;
  height: 100%;
  padding: 1rem;
}

.card-reactions {
  z-index: 99;
  position: absolute;
  right: 6px;
  bottom: -6px;
  background: var(--card-bg-color);
  border: 1px solid var(--main-color);
  padding: 3px;
  border-radius: var(--border-radius);
  font-size: 9px;
  line-height: 9px;
}

.more-value-inner {
  padding-bottom: 1rem;
}

.reaction-btn-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start; /* start at the left */
  gap: 1rem;
  padding: 0;
  padding-bottom: 1rem;
}

.reaction-btn {
  -webkit-appearance: none;
  border-radius: 4px;
  text-align: center;
  border: 0;
  background: rgba(255, 255, 255, .5);
  padding: 8px 20px;
}

.card-reactions span {
  padding: 2px 4px;
  display: inline-block;
}

.material-symbols-outlined {
  font-size: 18px;
  margin: 0;
  position: relative;
  top: 4px;
}

#main,
.page {
  height: var(--main-height);
}

#header {
/*  background: green;*/
  padding-top: 1.5rem;
  position: relative;
  height: var(--header-height);
}

#header #header-logo {
  text-align: center;
/*  background: red;*/
  height: 40px;
}

#header #header-logo #header-logo-wrap {
  text-align: center;
  height: 100%;
}

#header #header-logo #header-logo-wrap img {
  max-height: 100%;
  width: auto!important;
  display: inline-block;
}

#header #header-img {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(30dvh - 1.5rem - 40px - 0.75rem);
  display: block;
/*  background: blue!important;*/
  background-size: cover;
  background-position: center center;
}

#header #header-fader {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 90px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, var(--bg-color) 100%);
}

#header #pageDots {
  position: absolute;
  z-index: 9;
  bottom: 0.75rem;
  left: 0;
  right: 0;
  height: 20px;
  display: flex;
  justify-content: center;
}

#header #pageDots #pageDotsWrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card-bg-color);
  padding: 0.2rem 0.4rem;
  border-radius: 20px;
}

#header #pageDots .pageDot {
  border-radius: 50%;
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--bg-color);
  margin-right: 1px;
  margin-left: 1px;
}

#header #pageDots .pageDot.active {
  background: var(--main-color);
}

#header #notifications:disabled {
  opacity: 0.5;
}

#header #more,
#header #notifications {
  z-index: 99;
  border-radius: 50%;
  position: fixed;
  top: 0.5rem;
  background: transparent;
  border: 1px solid var(--main-color);
  width: 32px;
  height: 32px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

#header #more {
  border: 1px solid var(--main-color);
  left: 0.75rem;
}

#header #notifications {
  right: 0.75rem;
}

#header .material-symbols-outlined {
  font-size: var(--icon-large);
  color: var(--main-color)!important;
}

#header #notifications .material-symbols-outlined {
  display: none;
}

#header #notifications.active .material-symbols-outlined {
  color: var(--card-bg-color)!important;
}

#header #notifications.active {
  background: var(--main-color);
}

#header #notifications .notifications_off {
  display: inline-block;
}

#header #notifications.active .notifications_active {
  display: inline-block;
}

#header #notifications.active .notifications_off {
  display: none;
}

#main {
  display: block;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
/*  scroll-behavior: smooth;*/
  overflow-x: auto;
  position: relative;
  z-index: 9;
}

.page {
  display: flex;
  flex-direction: column;
  float: left;
  width: 100dvw;
  scroll-snap-align: start;
  overflow-y: scroll;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  padding-bottom: calc(0.75rem + 50px);
}

.card-inner p:last-child {
  margin-bottom: 0;
}

.card[data-scroll="true"] .card-inner {
  height: calc(var(--main-height) - 2.5rem);
  overflow-y: scroll;
}

.row[data-fillheight="true"] {
  height: 100%;
}

.stars,
.labels {
  display: flex;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.stars .btn,
.labels .btn {
  margin-right: 1px;
  margin-bottom: 1px;
}

.labels .btn {
  border-radius: 20px;
  padding: .35rem .45rem;
  font-size: 80%;
}

.stars .material-symbols-outlined {
  color: #333;
  font-size: var(--icon-large);
}

#qrscreen #qrcode {
  width: 180px;
  height: 180px;
  margin-bottom: 0.75rem;
}

#app-message {
  padding: 2rem;
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  z-index: 9999;
  background: var(--bg-color);
}

#installscreen,
#qrscreen {
  display: none;
}

#installscreen {
  flex-direction: column;
}

#splashscreen {
  justify-content: center;
  align-items: center;
  text-align: center;
}

@media (hover: hover) and (pointer: fine) {
  #qrscreen {
    display: flex!important;
  }
}

@media (pointer: none), (pointer: coarse) {
  #installscreen {
    display: flex!important;
  }
}

@media (display-mode: fullscreen) {

}

#cardie-brand {
  display: block!important;
}

#qrscreen,
#installscreen,
#cardie-brand {
  pointer-events: none;
}

body[data-pwa="true"] #cardie-brand,
body[data-pwa="true"] #qrscreen,
body[data-pwa="true"] #installscreen {
  display: none!important;
}

body[data-pwa="true"] #app {
  display: block!important;
}

#panel,
#panel-backdrop {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
}

#panel {
  z-index: 99;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  background: var(--main-color);
  color: var(--card-bg-color);
  padding: 1.5rem;
  transform: translateY(100dvh);
  transition: transform 0.75s ease;
}

#panel-backdrop {
  top: 0;
  opacity: 0;
  z-index: 98;
  pointer-events: none;
  background: transparent;
}

#app {
  transition: opacity 0.25s ease-in-out;
}

body[data-panel]:not([data-panel=""]) #app {
  opacity: .5;
}

body[data-panel]:not([data-panel=""]) #panel {
  transform: translateY(0);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

body[data-panel]:not([data-panel=""]) #panel-backdrop {
  pointer-events: auto;
  opacity: 1;
}

#installscreen #app-icon {
  margin-bottom: 1.5rem;
}

#installscreen #app-icon img {
  border-radius: var(--border-radius);
  margin-bottom: 0.5rem;
}

#cardie-brand {  
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  font-weight: 600;
  font-size: 75%;
  position: fixed;
  opacity: .5;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 999999;
}

#update-app {
  border-radius: 40px;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(0,0,0,.75);
  font-weight: 600;
  color: #fff;
  display: flex;
  justify-content: center;
  margin: 0.75rem;
  padding: 0.75rem;
  font-size: 14px;
  line-height: 18px;
}

#panel .btn {
  font-weight: 600;
  display: block;
  width: 100%;
  padding: 0.75rem;
  border-radius: 40px;
}

#panel label {
  display: block;
  font-weight: 600;
  padding-bottom: 0.25rem;
}

#panel input {
  border: 1px solid rgba(255, 255, 255, 1);
  width: 100%;
  font-size: 16px;
  padding: .45rem .55rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, .05);
  color: #fff;
}

.card[data-highlight="true"] {
  background: linear-gradient(270deg, red, orange, yellow, green, blue, indigo, violet);
  background-size: 400% 400%;
  animation: rainbowShift 16s ease infinite;
}

@keyframes rainbowShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.card[data-highlight="true"] .card-inner {
  background: var(--card-bg-color);
  border-radius: var(--border-radius);
}

#footer {
  background: var(--card-bg-color);
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50px;
  z-index: 999;
  display: flex;
  justify-content: between;
  align-items: center;
  padding: 4px 0.5rem;
  border-top: 1px solid rgba(0,0,0,.1);
}

#footer button {
  color: #333;
  border: 0;
  background: transparent;
  -webkit-appearance: none;
  border-radius: 4px;
  width: 100%;
  height: 100%;
  margin: 0 2px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#footer button.active {
  color: var(--main-color);
}

#footer button .material-symbols-outlined {
  pointer-events: none;
  font-size: 28px!important;
  top: 0;
}

@media (orientation: portrait) or (min-width: 740px) {
  #main {
    padding-top: calc(20dvh);
    margin-top: calc(-20dvh);
    height: calc(var(--main-height) + 20dvh);
  }
}

@media (min-width: 740px) {
  #main {
    margin-left: auto;
    margin-right: auto;
  }

  #main,
  .page {
    width: 740px;
  }
}