/* // <uniquifier>: Use a unique and descriptive class name
// <weight>: Use a value from 100 to 900 */

.rokkitt-normal {
  font-family: "Rokkitt", serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

body {
  font-family: 'Rokkitt' !important;
  margin: 0;
  user-select: none;
}

.mdl-dialog {
  font-family: 'Roboto' !important;
}

.mdl-dialog__title {
  font-size: 1.5em;
  padding: 16px 24px 0;
}

/*** Spinner ***/

.mdl-spinner--center {
  pointer-events: none;
  position: absolute;
  z-index: 998;
  left: 50%;
  top: 50%;
}

/*** Button Symbols ***/

.material-symbols-outlined {
  font-variation-settings:
    'FILL' 0,
    'wght' 400,
    'GRAD' 0,
    'opsz' 24;
  margin-top: 4px;
}

/*** Header and Footer ***/

#title {
  margin-left: 10px;
}

#left-controls>.mdl-button {
  margin-right: 10px;
}

#right-controls>.mdl-button {
  margin-left: 10px;
}

.mdl-layout__header.top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  min-height: 56px;
}

.mdl-layout__header.bottom {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 56px;
  min-height: 56px;
}

.mdl-layout__header .mdl-layout__drawer-button {
  margin: 4px;
  line-height: 56px;
}

.mdl-layout--no-drawer-button .mdl-layout__header-row {
  padding-left: 16px;
}

.mdl-layout__header.top .mdl-layout__header-row,
.mdl-layout__header.bottom .mdl-layout__header-row {
  padding: 0 16px 0 16px;
}

.mdl-layout__header-row .mdl-navigation,
.mdl-layout__header-row .mdl-navigation__link,
.mdl-layout__header-row {
  height: 56px;
  min-height: 56px;
}

#title,
#status {
  flex-shrink: 1;
}

/*** Dropdown Mdl stytle ***/

.mdlx-select_dropdown {
  font-family: 'Roboto' !important;
  color: rgba(0, 0, 0, 0.54);
  padding: 4px;
}

.mdlx-select_dropdown:focus-visible {
  outline: none;
  box-shadow: 0px 0px 2px 4px rgba(0, 0, 0, 0.12);
}

.mdlx-select {
  display: flex;
  min-width: 200px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.mdlx-checkbox {
  display: flex;
  min-width: 200px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.mdlx-checkbox_input:focus-visible {
  outline: none;
  box-shadow: 0px 0px 2px 4px rgba(0, 0, 0, 0.12);
}

.mdlx-slider {
  display: flex;
  min-width: 200px;
  justify-content: space-between;
  margin-right: -20px;
  margin-bottom: 10px;
}

.mdlx-link,
.mdlx-upload,
.mdlx-download {
  display: flex;
  min-width: 200px;
  margin-bottom: 10px;
}

.mdlx-download a {
  min-width: 200px;
}

.mdlx-upload__input {
  display: none;
}

.mdlx-upload__overlay {
  cursor: pointer;
  /* mdl styles for links */
  color: rgb(115, 150, 194);
  font-weight: 500;
  text-decoration: underline;
}

/*** Center Panel ***/

.mdl-layout__content {
  position: fixed;
  top: 56px;
  bottom: 56px;
  left: 0;
  right: 0;
  /* background-color: #dfd8d0; */
  /* background-color: #524439; */
  /* background-color: #436084; */
  background-color: #7396c2;
  overflow: auto;
}

.mdl-layout__content:focus-visible,
.page-content:focus-visible,
.game-canvas:focus-visible {
  outline: none;
}

.page-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  transition: opacity 200ms ease-in;
  opacity: 0;
}

.page-content.sluzl,
.page-content.words,
.page-content.numbers,
.page-content.cartivor,
.page-content.sphere,
.page-content.cubrid,
.game-canvas {
  height: 100%;
  width: 100%;
}

.page-content.cards {
  padding: 8px;
}

/*** Cards ***/

.card-image {
  padding: 0;
}

.card-image:focus-visible {
  box-shadow: 0px 0px 4px 4px rgba(255, 255, 255, 0.2);
}

.card-image.mdl-card {
  width: 160px;
  height: 202px;
  min-height: 202px;
  background-repeat: no-repeat;
  background-position: top;
  margin: 8px;
  background-color: #b5d4f4;
  border-radius: 6px;
  cursor: pointer;
  overflow: visible;
}

.card-image>.mdl-card__actions {
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
  padding: 4px;
  margin: 160px 0px 0px 0px;
  background: rgba(0, 0, 0, 0.2);
  height: 46px;
}

.card-image__filename {
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  text-transform: none;
}

.spacer-card {
  visibility: hidden;
}

/*** Sluzl Cards ***/

.sluzl-card .mdl-card__actions {
  display: flex;
}

.sluzl-card .mdl-card__actions>.material-symbols-outlined {
  margin-top: 14px;
  font-size: 20px;
  width: 20px;
  color: #fff;
}

.mdl-badge[data-badge]:after {
  top: -5px;
  right: -5px;
  background: #80a179;
  z-index: 2;
  font-size: 20px;
  width: 32px;
  height: 32px;
  box-shadow: -2px 2px 2px 0px rgba(0, 0, 0, 0.2),
    0px 0px 1px 1px rgba(255, 255, 255, 0.2);
}

.new.mdl-badge[data-badge]:after {
  left: -5px;
  font-size: 12px;
  background: #db4524;
}

/*** Dialog ***/

.mdl-dialog {
  width: fit-content;
  max-width: 80%;
  max-height: 80%;
}

.mdl-dialog__actions {
  padding: 8px 24px 8px 24px;
  flex-direction: row;
}

.mdl-dialog .table-holder {
  overflow-y: scroll;
  height: 230px;
}

.mdl-dialog .mdl-data-table {
  background-color: #f8f8f8;
}

.mdl-button.ok {
  margin-right: -12px
}

.mdl-dialog .material-symbols-outlined {
  vertical-align: bottom;
}

.mdl-dialog__title.section {
  padding: 0 0;
  background-color: rgba(0, 0, 0, 0.1);
  line-height: normal;
  margin: 0 0 8px 0;
}

/*** Button ***/

.mdl-button {
  text-transform: lowercase;
}

/*** Cartivor ***/

.cartivor-header {
  background-color: black;
  height: 20px;
  width: 100%;
  padding: 0 0 0 8px;
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  cursor: move;
}

.cartivor-title {
  color: white;
  font-size: 14px;
  line-height: 20px;
}

.cartivor-close {
  width: 16px;
  border: 1px solid white;
  color: white;
  text-align: center;
  margin: 1px;
  vertical-align: 0px;
  line-height: 18px;
  cursor: pointer;
}

.cartivor-window {
  position: absolute;
  background-color: white;
  border: 1px black;
  box-shadow: -2px 2px 3px 0px rgba(0, 0, 0, 0.3);
  cursor: default;
  z-index: 1;
}

.cartivor-button {
  position: absolute;
  white-space: normal;
  height: fit-content;
  line-height: 24px;
  cursor: pointer;
  min-width: unset;
  padding: 2px;
}

.cartivor-port {
  position: absolute;
  color: white;
  font-size: 14px;
  overflow-y: scroll;
}

.cartivor-window .cartivor-port {
  border: 1px solid #ddd;
  padding: 4px;
  box-sizing: border-box;
  color: black;
  box-shadow: -2px 2px 2px inset rgba(0, 0, 0, 0.3);
}

/*** Sphere / Cubrid ***/

.reminder {
  position: absolute;
  left: 4px;
  top: 4px;
  font-size: 18px;
  vertical-align: text-bottom;
}

.clues {
  position: absolute;
  left: 4px;
  bottom: 4px;
  display: flex;
  flex-direction: column;
}

.clues .mdl-button {
  margin: 4px;
  opacity: 0.5;
  text-align: left;
  font-family: 'Rokkitt';
}

.clues .mdl-button img {
  vertical-align: middle;
}

.clues .mdl-button.selected {
  opacity: 1.0;
}

/* Mobile */

@media screen and (max-width: 520px) {
  .mdl-layout__header.top {
    height: 36px;
    min-height: 36px;
  }

  .mdl-layout__header.bottom {
    height: 36px;
    min-height: 36px;
  }

  .mdl-layout__header .mdl-layout__drawer-button {
    line-height: 36px;
  }

  .mdl-layout__header-row .mdl-navigation,
  .mdl-layout__header-row .mdl-navigation__link,
  .mdl-layout__header-row {
    height: 36px;
    min-height: 36px;
  }

  .mdl-layout__content {
    top: 36px;
    bottom: 36px;
  }

  .mdl-button--fab.mdl-button--mini-fab {
    height: 32px;
    min-width: 32px;
    width: 32px;
  }

  .material-symbols-outlined {
    font-size: 20px;
  }

  .mdl-layout__header.top .mdl-layout__header-row,
  .mdl-layout__header.bottom .mdl-layout__header-row {
    padding: 0 8px 0 8px;
  }

  .mdl-layout--no-drawer-button .mdl-layout__header-row {
    padding-left: 8px;
  }

  .mdl-layout__title,
  .mdl-layout-title {
    font-size: 16px;
  }
}