/* --------------------------------------------------------- */
/* GLOBALS */
/* --------------------------------------------------------- */

@font-face {
  font-display: swap;
  font-family: 'Quicksand';
  font-style: normal;
  font-weight: 600;
  src: url('./fonts/quicksand-600.woff2') format('woff2');
}

@font-face {
  font-display: swap;
  font-family: 'Quicksand';
  font-style: normal;
  font-weight: 500;
  src: url('./fonts/quicksand-500.woff2') format('woff2');
}

body {
  background-color: rgba(24, 24, 36, 1);
  margin: 0;
  padding: 0;
  color: white;
  font-family: 'Quicksand', sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 18px;
  letter-spacing: -0.1px;
}

:root {
  --blue_base: rgba(67, 172, 217, 1);
  --blue_hover: rgba(62, 157, 199, 1);
  --blue_pressed: rgba(58, 142, 179, 1);
  
  --green_base: rgba(127, 172, 58, 1);
  --green_hover: rgba(117, 157, 55, 1);
  --green_pressed: rgba(106, 142, 51, 1);

  --yellow_base: rgba(248, 218, 57, 1);
  --yellow_hover: rgba(224, 199, 54, 1);
  --yellow_pressed: rgba(201, 178, 51, 1);

  --orange_base: rgba(238, 131, 67, 1);
  --orange_hover: rgba(217, 120, 63, 1);
  --orange_pressed: rgba(194, 109, 59, 1);

  --red_base: rgba(195, 74, 63, 1);
  --red_hover: rgba(178, 69, 60, 1);
  --red_pressed: rgba(160, 63, 55, 1);

  --grey_base: rgba(82, 82, 92, 1);
  --grey_hover: rgba(93, 93, 103, 1);
  --grey_pressed: rgba(105, 105, 115, 1);
}

.layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.scene {
  position: absolute;
  inset: 0;
  margin-top: 60px;
  pointer-events: auto;
  overflow-y: auto;
  scrollbar-gutter: stable;
}

.scene.is_hidden {display: none;}
.scene.is_shown {display: block;}

#toasts  { z-index: 20; }
#overlays { z-index: 10; }
#scenes   { z-index: 0; }

.icon.large {width: 24px; height: 24px;}
.icon.regular {width: 21px; height: 21px;}
.icon.medium {width: 18px; height: 18px;}
.icon.small {width: 15px; height: 15px;}
.icon.tiny {width: 12px; height: 12px;}

/* Larger desktop and up */
@media (min-width: 1200px) {

  /* Width and height of the scrollbar */
  ::-webkit-scrollbar {
    width: 6px;
    height: 6px;
  }

  /* Track (background) */
  ::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 6px;
  }

  /* Handle (the draggable part) */
  ::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 6px;
  }

  /* Handle on hover */
  ::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.24);
  }

}

/* Larger desktop and up */
@media (max-width: 1200px) {

  /* Width and height of the scrollbar */
  ::-webkit-scrollbar {
    width: 3px;
    height: 3px;
  }

  /* Track (background) */
  ::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 3px;
  }

  /* Handle (the draggable part) */
  ::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 3px;
  }

  /* Handle on hover */
  ::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.24);
  }

}

/* --------------------------------------------------------- */
/* HEADERS */
/* --------------------------------------------------------- */

.header {
  z-index: 90;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 9px;
  align-items: center;
  width: auto;
  height: 60px;
  padding: 0 18px;
  background-color: rgba(24, 24, 36, 1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header_wordmark {
  color: white;
  text-align: left;
  font-size: 21px;
  padding-left: 6px;
  flex: 1;
}

.header_logo {
  display: block;
  position: relative;
  width: 24px;
  height: 24px;
  background-image: url("assets/logo.svg");
  background-position: center; /* Center the image */
  background-repeat: no-repeat; /* Do not repeat the image */
  background-size: cover; /* Resize the background image to cover the entire container */
}

.header_title {
  font-size: 18px;
  text-align: center;
  color: white;
  height: 36px;
  border-radius: 9px;
  line-height: 36px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header_title_editable {
  display: block;
  height: 36px;
  padding: 0 12px;
  font-size: 18px;
  text-align: center;
  color: white;
  border-radius: 9px;
  line-height: 36px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  outline: none;
  cursor: pointer;
  direction: ltr;
  unicode-bidi: plaintext;
}

.header_title_editable .icon {
  color: white;
}

.header_title_editable:hover {
background: rgba(255, 255, 255, 0.09);
}

.header_title_editable:focus {
background: rgba(255, 255, 255, 0.15);
border: 1px solid var(--green_base);
text-overflow: clip;
}

.app_version {
  width: 100%;
  padding-left: 6px;
  color: rgba(255, 255, 255, 0.25);
  font-size: 70%;
}

/* --------------------------------------------------------- */
/* Flags */
/* --------------------------------------------------------- */

.flag {
  display: inline-block;
  width: 21px;
  height: 21px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.flag-en-GB {background-image: url("flags/en-GB.svg");}
.flag-fr-FR {background-image: url("flags/fr-FR.svg");}
.flag-de-DE {background-image: url("flags/de-DE.svg");}
.flag-it-IT {background-image: url("flags/it-IT.svg");}
.flag-es-ES {background-image: url("flags/es-ES.svg");}

/* --------------------------------------------------------- */
/* SEARCH */
/* --------------------------------------------------------- */

.searchbar_section {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 600px;
  height: 48px;
  margin: 0 auto;
  padding: 24px 18px 0px 18px;
}

.searchbar {
  position: relative;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 15px;
  padding: 0 6px;
  width: 100%;
  height: 48px;
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 9px;
  box-sizing: border-box;
}

.searchbar:hover {
  background-color: rgba(255, 255, 255, 0.09);
}

.searchbar:active {
  background-color: rgba(255, 255, 255, 0.12);
}

.searchbar:focus-within {
  background-color: rgba(255, 255, 255, 0.12);
}

.searchbar_input {
  position: relative;
  padding-left: 9px;
  width: 100%;
  height: 48px;
  color: white;
  font-size: 15px;
  line-height: 48px;
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
}

.searchbar_input[contenteditable] {
  cursor: text;
}

.searchbar_input:empty::before {
  content: attr(data-placeholder);
  color: rgba(255, 255, 255, 0.50);
  font-family: Quicksand, sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 48px;
  letter-spacing: -0.1px;
  pointer-events: none;
}

.searchbar_input:not(:empty) + .searchbar_btn {
  display: flex;
}

.searchbar_btn {
  position: relative;
  flex: 0 0 auto;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 0;
  margin: 0;
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 9px;
  cursor: pointer;
}

.searchbar_btn:hover {
  background-color: rgba(255, 255, 255, 0.09);
}

.searchbar_btn:active {
  background-color: rgba(255, 255, 255, 0.12);
}

.searchbar_btn .icon {
  color: white;
}

.results_section {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 18px 0px 18px;
  margin: 0 auto;
  max-width: 600px;
}

.results_data {
  display: flex;
  gap: 12px;
  flex-flow: column;
  margin-bottom: 48px;
}

/* --------------------------------------------------------- */
/* DASHBOARD */
/* --------------------------------------------------------- */

.summary_wrapper {
  display: flex;
  flex-flow: column;
  gap: 12px;
  max-width: 600px;
  padding: 24px 18px 0 18px;
  margin: 0 auto;
}

.summary_title {
  color: white;
}

.metrics_grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  width: 100%;
}

.metric {
  display: flex;
  flex-flow: row;
  gap: 6px;
  min-width: 0;
  justify-content: flex-start;
  align-items: center;
  padding: 15px 15px;
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 9px;
  padding: 12px 18px;
}

.metric:hover {
  background-color: rgba(255, 255, 255, 0.09);
}

.metric:active {
  background-color: rgba(255, 255, 255, 0.12);
}

.metric_content {
  flex: 1 1 auto;
  min-width: 0;
}

.metric_data {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 18px;
  line-height: 24px;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


.metric_label {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 12px;
  line-height: 18px;
  color: rgba(255, 255, 255, 0.50);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.metric .icon {
  color: var(--yellow_base);
}

/* --------------------------------------------------------- */
/* DECKLIST */
/* --------------------------------------------------------- */

.decklist_section {
  grid-row-gap: 12px;
  flex-flow: column;
  padding: 12px 18px 0px 18px;
  display: flex;
  max-width: 600px;
  margin: 0 auto;
}

.decklist_title {
  color: white;
}

.decklist_wrapper {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9px;
  overflow: hidden;
}

.deck_wrapper {
  position: relative;
  display: flex;
  flex-flow: row;
  justify-content: space-between;
  align-items: center;
  height: 66px;
  background-color: rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.deck_wrapper:hover {
  background-color: rgba(255, 255, 255, 0.09);
}

.deck_wrapper:active {
  background-color: rgba(255, 255, 255, 0.12);
}

.deck_btn {
  display: flex;
  flex-flow: row;
  flex: 1;
  justify-content: flex-start;
  align-items: center;
  gap: 15px;
  height: 100%;
  padding-right: 15px;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}

.deck_content {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  overflow: hidden;
}

.deck_name {
  flex: 0 auto;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
  font-size: 15px;
  overflow: hidden;
  color: white;
}

.deck_total {
  color: rgba(255, 255, 255, 0.50);
  flex: 0 auto;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
  font-size: 12px;
  line-height: 15px;;
  overflow: hidden;
}

.deck_btn .icon {
  color: rgba(255, 255, 255, 0.33);
}

.deck_toggle_wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 15px;
  height: 100%;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  cursor: pointer;
}

.deck_toggle_wrapper input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.deck_checkbox_off {
  display: flex;
  position: relative;
  width: 24px;
  height: 24px;
  color: rgba(255, 255, 255, 0.12);
}

.deck_toggle_wrapper:hover input ~ .deck_checkbox_off {
  color: rgba(255, 255, 255, 0.15);
}

.deck_toggle_wrapper:active input ~ .deck_checkbox_off {
  color: rgba(255, 255, 255, 0.18);
}

.deck_toggle_wrapper input:checked ~ .deck_checkbox_off {
  display: none;
}

.deck_checkbox_on {
  display: none;
  position: relative;
  width: 24px;
  height: 24px;
  color: var(--green_base);
}

.deck_toggle_wrapper:hover input ~ .deck_checkbox_on {
  color: var(--green_hover);
}

.deck_toggle_wrapper:active input ~ .deck_checkbox_on {
  color: var(--green_pressed);
}

.deck_toggle_wrapper input:checked ~ .deck_checkbox_on {
  display: flex;
}

.deck_wrapper.dragging {
  opacity: 0.25;
}

.deck_wrapper.drop-above {
    border-top: 12px solid rgba(24, 24, 36, 1);
}

.deck_wrapper.drop-below {
    border-bottom: 12px solid rgba(24, 24, 36, 1);
}

/* --------------------------------------------------------- */
/* DECKLIST EEMPTY STATE */
/* --------------------------------------------------------- */

.decklist_empty_state {
  position: relative;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 48px 24px;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.00);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 9px;
  color: rgba(255, 255, 255, 0.50);
  font-size: 15px;
  font-weight: 600;
  line-height: 21px;
  text-align: center;
}

/* --------------------------------------------------------- */
/* SYNC STATUS */
/* --------------------------------------------------------- */

.synced_status {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 72px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.33);
}

/* --------------------------------------------------------- */
/* DECK SUMMARY */
/* --------------------------------------------------------- */

.deck_summary_section {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px 18px 0px 18px;
  max-width: 600px;
  margin: 0 auto;
}

.deck_status {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 48px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.50);
}

/* --------------------------------------------------------- */
/* CARDS */
/* --------------------------------------------------------- */

.cards_data {
  display: flex;
  gap: 12px;
  flex-flow: column;
  padding: 6px 18px 18px 18px;
  max-width: 600px;
  margin: 0 auto;
  margin-bottom: 48px;
}

.card_wrapper {
  border-radius: 9px;
}

.card_header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 3px;
  height: 54px;
  padding-left: 18px;
  padding-right: 9px;
  background: rgba(255, 255, 255, 0.09);
  border-radius: 9px 9px 0 0;
}

.card_label {
  flex-grow: 1;
  color: rgba(255, 255, 255, 0.25);
}

.card_question {
  padding: 18px;
  background-color: rgba(255, 255, 255, 0.06);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 15px;
  color: white;
}

.card_question:focus {
  background-color: rgba(255, 255, 255, 0.12);
}

.card_answer {
  padding: 18px;
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 15px;
  color: rgba(255, 255, 255, 0.75);
  border-radius: 0 0 9px 9px;
}

.card_answer:focus {
  background-color: rgba(255, 255, 255, 0.12);
}

.card_question:empty::before,
.card_answer:empty::before {
  content: attr(data-placeholder);
  color: rgba(255, 255, 255, 0.33);
  pointer-events: none;
}

.card_question:focus-visible,
.card_answer:focus-visible {
  outline: none;
}

/* --------------------------------------------------------- */
/* dialog */
/* --------------------------------------------------------- */

.dialog_wrapper {
  position: fixed;
  top: 0;  right: 0;  left: 0;  bottom: 0;
  display: none;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 18px;
  background-color: rgba(0, 0, 0, 0.66);
  pointer-events: none;
}

.dialog_bg {
  z-index: 0;
  position: absolute;
  top: 0;  right: 0;  left: 0;  bottom: 0;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: auto;
}

.dialog {
  z-index: 10;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 36px;
  margin: 0 auto;
  padding: 36px 48px;
  width: 100%; max-width: 600px;
  height: auto;
  background-color: rgba(38, 38, 48, 1);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 9px;
  pointer-events: auto;
}

.dialog_section {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 18px;
}

.dialog_title {
  color: white;
  font-size: 15px;
  text-align: center;
}

.dialog_input {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%; max-width: 300px;
  height: 108px;
  color: rgba(255, 255, 255, 0.25);
  font-size: 12px;
  line-height: 15px;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.09);
  border: 1px solid rgba(0, 0, 0, 0.09);
  border-radius: 6px;
}

.dialog_input::before {
  content: attr(data-placeholder);
}

.dialog_input:focus {
  outline: 2px solid var(--green_base);
}

.dialog_subtitle {
  color: rgba(255, 255, 255, 0.66);
  font-size: 12px;
  text-align: center;
  line-height: 15px;
}

.dialog_hint {
  color: rgba(255, 255, 255, 0.33);
  font-size: 12px;
  text-align: center;
  line-height: 15px;
}

.dialog_graphic {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%; max-width: 300px;
  border-radius: 3px;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.dialog_graphic_row {
  position: relative;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.dialog_graphic_cell {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 36px;
  color: rgba(255, 255, 255, 0.50);
  font-size: 12px;
  text-align: center;
  line-height: 15px;
  background-color: rgba(255, 255, 255, 0.06);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dialog_graphic_row.top {opacity: 1}
.dialog_graphic_row.middle {opacity: 0.65}
.dialog_graphic_row.bottom {opacity: 0.30}

/* --------------------------------------------------------- */
/* STUDY SESSION */
/* --------------------------------------------------------- */

.studycard_wrapper {
  display: flex;
  grid-column-gap: 6px;
  grid-row-gap: 6px;
  flex-flow: column;
  justify-content: space-between;
  max-width: 600px;
  min-height: calc(100vh - 96px);
  margin-left: auto;
  margin-right: auto;
  padding: 18px 18px 18px 18px;
  position: relative;
}

.studycard_snippet {
  background-color: rgba(255, 255, 255, 0.06);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 9px;
  flex-flow: column;
  flex: 1;
  justify-content: center;
  align-items: center;
  display: flex;
}

.studycard_question {
  display: flex;
  flex-flow: column;
  flex: 1;
  justify-content: center;
  align-items: center;
  padding: 36px;
  width: 100%;
  box-sizing: border-box;
}

.studycard_answer {
  display: none;
  flex-flow: column;
  flex: 1;
  justify-content: center;
  align-items: center;
  padding: 24px;
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  box-sizing: border-box;
}

.studycard_content {
  text-align: center;
  font-size: 24px;
  font-weight: 500;
  line-height: 30px;
}

.studycard_instructions {
  display: flex;
  flex: none;
  justify-content: center;
  align-items: center;
  height: 42px;
  color: rgba(255, 255, 255, 0.50);
  text-align: center;
  font-size: 12px;
}

.studycard_ratings {
  display: none;
  flex-direction: row;
  justify-content: space-between;
  gap: 9px;
}

/* --------------------------------------------------------- */
/* Login */
/* --------------------------------------------------------- */

.login_wrapper {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 18px;
}

.login_image {
  display: block;
  position: relative;
  width: 96px;
  height: 96px;
  background-image: url("assets/favicon.svg");
  background-position: center; /* Center the image */
  background-repeat: no-repeat; /* Do not repeat the image */
  background-size: cover; /* Resize the background image to cover the entire container */
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 100%;
}

.login_form {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 18px;
  width: 100%; max-width: 600px;
  padding: 36px 18px;
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 9px;
}

.login_title {
  position: relative;
  width: 100%; max-width: 300px;
  font-size: 18px;
  font-weight: 600;
  line-height: 24px;
  text-align: center;
}

.login_input {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 0;
  width: 100%; max-width: 300px;
  height: 48px;
  color: white;
  font-family: inherit;
  font-weight: inherit;
  line-height: 24px;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 9px;
}

.login_input:hover {
  background-color: rgba(255, 255, 255, 0.09);
}

.login_input:active {
  background-color: rgba(255, 255, 255, 0.12);
}

.login_input:focus {
  outline: none;
  border: 1px solid var(--green_base);;
  background-color: rgba(255, 255, 255, 0.12);
}

.login_button {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 0;
  width: 100%; max-width: 300px;
  height: 48px;
  font-family: inherit;
  font-weight: inherit;
  font-size: 15px;
  color: white;
  text-align: center;
  background: var(--green_base);
  border: none;
  border-radius: 9px;
  box-shadow: inset 0 -2px rgba(0, 0, 0, 0.33);
  cursor: pointer;
}

.login_button:hover {
  background: var(--green_hover);
}

.login_button:active {
  background: var(--green_pressed);
}

.login_button:disabled {
  background-color: rgba(255, 255, 255, 0.24);
}

.login_help {
  position: relative;
  width: 100%; max-width: 300px;
  font-size: 12px;
  font-weight: 600;
  line-height: 15px;
  text-align: center;
  color: rgba(255, 255, 255, 0.50);
}

/* --------------------------------------------------------- */
/* PRIMARY BUTTONS */
/* --------------------------------------------------------- */

.btn_primary {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 0;
  width: 100%;
  height: 54px;
  font-family: inherit;
  font-weight: inherit;
  font-size: 15px;
  color: white;
  text-align: center;
  border: none;
  border-radius: 9px;
  box-shadow: inset 0 -2px rgba(0, 0, 0, 0.33);
  cursor: pointer;
}

.btn_primary.blue {background: var(--blue_base);}
.btn_primary.blue:hover {background: var(--blue_hover);}
.btn_primary.blue:active {background: var(--blue_pressed);}

.btn_primary.green {background: var(--green_base);}
.btn_primary.green:hover {background: var(--green_hover);}
.btn_primary.green:active {background: var(--green_pressed);}

.btn_primary.yellow {background: var(--yellow_base);}
.btn_primary.yellow:hover {background: var(--yellow_hover);}
.btn_primary.yellow:active {background: var(--yellow_pressed);}

.btn_primary.orange {background: var(--orange_base);}
.btn_primary.orange:hover {background: var(--orange_hover);}
.btn_primary.orange:active {background: var(--orange_pressed);}

.btn_primary.red {background: var(--red_base);}
.btn_primary.red:hover {background: var(--red_hover);}
.btn_primary.red:active {background: var(--red_pressed);}

.btn_primary.grey {background: var(--grey_base);}
.btn_primary.grey:hover {background: var(--grey_hover);}
.btn_primary.grey:active {background: var(--grey_pressed);}

/* --------------------------------------------------------- */
/* RATING BUTTONS
/* --------------------------------------------------------- */

.button_rating {
  display: flex;
  flex-grow: 1;
  justify-content: center;
  align-items: center;
  height: 54px;
  width: 100%;
  border-radius: 9px;
  box-shadow: inset 0 -2px rgba(0, 0, 0, 0.33);
}

.button_rating .icon {
  color: rgba(255, 255, 255, 0.50);
  width: 24px;
  height: 24px;
}

.button_rating.blue {background: var(--blue_base);}
.button_rating.blue:hover {background: var(--blue_hover);}
.button_rating.blue:active {background: var(--blue_pressed);}

.button_rating.green {background: var(--green_base);}
.button_rating.green:hover {background: var(--green_hover);}
.button_rating.green:active {background: var(--green_pressed);}

.button_rating.yellow {background: var(--yellow_base);}
.button_rating.yellow:hover {background: var(--yellow_hover);}
.button_rating.yellow:active {background: var(--yellow_pressed);}

.button_rating.orange {background: var(--orange_base);}
.button_rating.orange:hover {background: var(--orange_hover);}
.button_rating.orange:active {background: var(--orange_pressed);}

.button_rating.red {background: var(--red_base);}
.button_rating.red:hover {background: var(--red_hover);}
.button_rating.red:active {background: var(--red_pressed);}

.btn_primary.grey {background: var(--grey_base);}
.btn_primary.grey:hover {background: var(--grey_hover);}
.btn_primary.grey:active {background: var(--grey_pressed);}

/* --------------------------------------------------------- */
/* FLOATING BUTTONS */
/* --------------------------------------------------------- */

.btn_floating {
  position: fixed;
  right: 24px;
  bottom: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 0;
  width: 60px;
  height: 60px;
  background-color: var(--green_base);
  border: none;
  border-radius: 54px;
  box-shadow: inset 0 -2px rgba(0, 0, 0, 0.33);
  cursor: pointer;
}

.btn_floating:hover {
  background-color: var(--green_hover);
}

.btn_floating:active {
  background-color: var(--green_pressed);
}

.btn_floating .icon {
  color: white;
  width: 24px;
  height: 24px;
}

.btn_floating_secondary {
  position: fixed;
  right: 24px;
  bottom: 93px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 0;
  width: 48px;
  height: 48px;
  background-color: var(--green_base);
  border: none;
  border-radius: 54px;
  box-shadow: inset 0 -2px rgba(0, 0, 0, 0.33);
  cursor: pointer;
}

.btn_floating_secondary:hover {
  background-color: var(--green_hover);
}

.btn_floating_secondary:active {
  background-color: var(--green_pressed);
}

.btn_floating_secondary .icon {
  color: white;
  width: 24px;
  height: 24px;
}

/* --------------------------------------------------------- */
/* GHOST BUTTONS */
/* --------------------------------------------------------- */

.btn_ghost {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 0;
  width: 36px;
  height: 36px;
  color: white; 
  font-family: inherit;
  font-weight: inherit;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 9px;
  text-decoration: none;
  cursor: pointer;
}

.btn_ghost:hover {
  background-color: rgba(255, 255, 255, 0.09);
}

.btn_ghost:active {
  background-color: rgba(255, 255, 255, 0.12);
}

.btn_ghost .icon {
  color: white;
  width: 21px;
  height: 21px;
}

/* --------------------------------------------------------- */
/* DROPDOWN BUTTONS */
/* --------------------------------------------------------- */

.dropdown_wrapper {
  position: relative;
  display: flex;
  flex-flow: column;
  justify-content: flex-start;
  align-items: flex-end;
}

.dropdown_btn {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  font-size: 18px;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 9px;
  cursor: pointer;
}

.dropdown_btn:hover {
  background-color: rgba(255, 255, 255, 0.06);
}

.dropdown_btn:active {
  background-color: rgba(255, 255, 255, 0.09);
}

.dropdown_btn .icon {
  color: white;
  width: 21px;
  height: 21px;
}

.dropdown_wrapper:focus-within .dropdown_menu {
  display: flex;
}

.dropdown_menu {
  position: absolute;
  display: none;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 3px 0;
  background-color: rgba(38, 38, 48, 1);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 9px;
  top: 42px;
  overflow: hidden;
}

.dropdown_item {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 120px;
  height: 42px;
  padding-left: 18px;
  padding-right: 18px;
  color: white;
  cursor: pointer;
  text-decoration: none;
}

.dropdown_item:hover {
  background-color: rgba(255, 255, 255, 0.06);
}

.dropdown_item:active {
  background-color: rgba(255, 255, 255, 0.09);
}

.dropdown_divider {
  height: 1px;
  width: 100%;;
  margin: 3px 0;
  background-color: rgba(255, 255, 255, 0.06);
}

/* --------------------------------------------------------- */
/* SPLIT BUTTONS */
/* --------------------------------------------------------- */

.split_wrapper {
  display: flex;
  /* display: none; */
  flex-flow: row;
  justify-content: center;
  align-items: center;
  gap: 4px;
  box-sizing: border-box;
  height: 42px;
  padding: 0px 2px;
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
}

.split_btn {
  display: flex;
  flex-flow: row;
  justify-content: center;
  align-items: center;
  gap: 6px;
  box-sizing: border-box;
  min-width: 36px;
  height: 36px;
  padding: 6px;
  background-color: rgba(255, 255, 255, 0.00);
  border-radius: 4px;
  cursor: pointer;
}

.split_btn:hover {
  background-color: rgba(255, 255, 255, 0.09);
}

.split_label {
    color: white;
    font-size: 15px;
    line-height: 15px;
}

@media screen and (max-width: 480px) {
  .split_label {
    display: none;
  }
}

.split_btn .icon {
    color: white;
}

.split_btn .icon.secondary {
    color: rgba(255, 255, 255, 0.5);
}

.split_flag {
  display: inline-block;
  width: 21px;
  height: 21px;
  margin: 0 3px;
  background-image: url("flags_new/de-DE.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.split_divider {
    width: 1px;
    height: 18px;
    background-color: rgba(255, 255, 255, 0.12);
}

/* --------------------------------------------------------- */
/* HIDDEN BUTTONS */
/* --------------------------------------------------------- */

.btn_hidden {
  position: relative;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 0;
  width: 100%;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.00);
  border-radius: 9px;
  border: none;
  cursor: pointer;
}

.btn_hidden:hover {
  background-color: rgba(255, 255, 255, 0.06);
}

.btn_hidden:active {
  background-color: rgba(255, 255, 255, 0.09);
}

.btn_hidden, #btn_toggle_modes_on {display: flex;}
.btn_hidden, #btn_toggle_modes_off {display: none;}

.btn_hidden .icon {
  color: rgba(255, 255, 255, 0.50);
}

/* --------------------------------------------------------- */
/* MODE BUTTONS */
/* --------------------------------------------------------- */

.modes_list, #list_study_modes {
  display: none;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 12px;
}

.btn_mode {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.5px;
  margin: 0;
  padding: 0 15px;
  width: 100%;
  height: 60px;
  font-family: inherit;
  font-weight: inherit;
  font-size: 12px;
  color: white;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.06);
  border-radius: 9px;
  border: none;
  cursor: pointer;
  box-sizing: border-box;
}

.btn_mode:hover {
  background-color: rgba(255, 255, 255, 0.09);
}

.btn_mode:active {
  background-color: rgba(255, 255, 255, 0.12);
}

.study_mode_description {
  color: rgba(255, 255, 255, 0.50);
}

/* --------------------------------------------------------- */
/* TOASTS */
/* --------------------------------------------------------- */

#toasts {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding-bottom: 32px;
}

.toast {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 36px;
  max-width: 320px;
  margin: 3px 0;
  padding: 0px 18px;
  background-color: var(--green_base);
  font-size: 15px;
  color: white;
  text-align: centre;
  border-radius: 6px;
  animation: fadein 0.5s forwards, fadeout 0.5s ease-in 2s forwards;
}

@keyframes fadein {
  from {
    height: 0px;
    opacity: 0; 
    transform: scale(0.25);
  }
  to {
    height: 36px;
    opacity: 1; 
    transform: scale(1);
  }
}

@keyframes fadeout {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(0.25);
  }
}

/* --------------------------------------------------------- */
/* SKELETON */
/* --------------------------------------------------------- */

.skeleton_inner {
  flex-flow: column;
  justify-content: flex-start;
  align-items: flex-start;
  width: 100%;
  max-width: 600px;
  margin-top: 24px;
  display: flex;
  position: relative;
  top: 0;
  left: 0;
  right: 0;
}

.skeleton_search {
  background-color: rgba(255, 255, 255, 0.03);
  border-radius: 9px;
  width: 100%;
  height: 48px;
  margin-bottom: 24px;
}

.skeleton_header {
  background-color: rgba(255, 255, 255, 0.02);
  border-radius: 0;
  width: 100%;
  height: 60px;
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}

.skeleton_title {
  background-color: rgba(255, 255, 255, 0.03);
  border-radius: 9px;
  width: 78px;
  height: 18px;
  margin-bottom: 12px;
}

.skeleton_metric {
  background-color: rgba(255, 255, 255, 0.03);
  border-radius: 9px;
  flex: 1;
  width: 100%;
  max-width: 600px;
  height: 68px;
}

.skeleton_metric_row {
  grid-column-gap: 6px;
  grid-row-gap: 6px;
  flex-flow: row;
  grid-template-rows: auto auto;
  grid-template-columns: 1fr 1fr;
  grid-auto-columns: 1fr;
  width: 100%;
  margin-bottom: 12px;
  display: grid;
}

.skeleton_outer {
  flex-flow: column;
  justify-content: flex-start;
  align-items: center;
  padding-left: 24px;
  padding-right: 24px;
  display: flex;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

.skeleton_button {
  background-color: rgba(255, 255, 255, 0.03);
  border-radius: 9px;
  width: 100%;
  height: 54px;
  margin-bottom: 60px;
}

.skeleton_subtitle {
  background-color: rgba(255, 255, 255, 0.03);
  border-radius: 9px;
  width: 48px;
  height: 18px;
  margin-bottom: 12px;
}

.skeleton_topdeck {
  background-color: rgba(255, 255, 255, 0.03);
  border-bottom: 2px solid rgba(24, 24, 36, 1);
  border-radius: 9px 9px 0 0;
  width: 100%;
  height: 66px;
}

.skeleton_middledeck {
  background-color: rgba(255, 255, 255, 0.03);
  border-bottom: 2px solid rgba(24, 24, 36, 1);
  border-radius: 0;
  width: 100%;
  height: 66px;
}

.skeleton_bottomdeck {
  background-color: rgba(255, 255, 255, 0.03);
  border-radius: 0 0 9px 9px;
  width: 100%;
  height: 66px;
  margin-bottom: 60px;
}

/* Apply shimmer to all skeleton blocks */
.skeleton_search,
.skeleton_title,
.skeleton_metric,
.skeleton_button,
.skeleton_subtitle,
.skeleton_topdeck,
.skeleton_middledeck,
.skeleton_bottomdeck {
  position: relative;
  overflow: hidden; /* clips the moving highlight to rounded corners */
}

/* The moving highlight */
.skeleton_header::after,
.skeleton_search::after,
.skeleton_title::after,
.skeleton_metric::after,
.skeleton_button::after,
.skeleton_subtitle::after,
.skeleton_topdeck::after,
.skeleton_middledeck::after,
.skeleton_bottomdeck::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-120%);
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.06) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  animation: skeleton-shimmer 1.25s ease-in-out infinite;
  pointer-events: none;
}

@keyframes skeleton-shimmer {
  to { transform: translateX(120%); }
}