:root {
  --colorDark: #002e56;
  --colorBlue1: #006ab9;
  --colorBlue: #0087ec;
  --colorLightGreen: #CFDC8C;
  --colorGreen: #AFC53F;
  --colorOrange: #FF9244;
  --colorWhite: #FFFFFF;
  --colorGrey: #D9D9D9;
  --colorLightGray: #F7F7F7;
  --colorGreyText: #B9B9B9;
  --colorLightGray05: rgba(247, 247, 247, 0.6);
  --colorBlue05: rgba(0, 106, 185, 0.7);

  --heightMobMenu: 300px;
}

body,
html {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    color: #444444;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    overflow: hidden;
}


/* img loader */
img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
    display: inline-block;
}

* {
    touch-action: manipulation;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

.frame {
    top: 0;
    position: absolute;
    left: 0;
    padding: 1rem;
}

.frame__title {
    font-size: 1rem;
    display: inline-block;
}

.frame__links {
    display: inline-block;
    margin: 0 2rem;
    text-transform: lowercase;
}

.frame__links a {
    display: inline-block;
    margin: 0 0.25rem;
    text-decoration: none;
    color: red;
}

.frame__links a:focus,
.frame__links a:hover {
    text-decoration: underline;
}

#c {
    width: 100%;
    height: 100%;
    display: block;
    top: 0;
    left: 0;
}

.options {
    position: absolute;
    left: 0;
}

.option {
    background-size: cover;
    background-position: 50%;
    background-color: white;
    margin-bottom: 3px;
    padding: 10px;
    height: 55px;
    width: 55px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.option:hover {
    border-left: 5px solid white;
    width: 58px;
}

.option.--is-active {
    border-right: 3px solid red;
    width: 58px;
    cursor: default;
}

.option.--is-active:hover {
    border-left: none;
}

.option img {
    height: 100%;
    width: auto;
    pointer-events: none;
}

.info {
    padding: 0 1em;
    display: flex;
    justify-content: flex-end;
}

.info p {
    margin-top: 0;
}

.tray {
    width: 100%;
    height: 50px;
    position: relative;
    overflow-x: hidden;
}

.tray__slide {
    position: absolute;
    display: flex;
    left: 0;
    /*   transform: translateX(-50%);
  animation: wheelin 1s 2s ease-in-out forwards; */
}

.tray__swatch {
    content: "";
    transition: 0.1s ease-in;
    height: 50px;
    min-width: 50px;
    flex: 1;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    background-size: cover;
    background-position: center;
}

.tray__swatch:nth-child(5n+5) {
    margin-right: 20px;
}

/* Content list */

.content_list {
    width: 100%;
    height: 50px;
    position: relative;
    overflow-x: hidden;
}

.content_list_slide {
    position: absolute;
    display: flex;
    left: 0;
    /*   transform: translateX(-50%);
  animation: wheelin 1s 2s ease-in-out forwards; */
}

.content_grid_list {
    width: 100%;
    height: 90px;
    position: relative;
    overflow-x: hidden;
}

.content_grid_list_slide {
    display: grid;
    position: absolute;
    grid-template-rows: min-content 1fr;
    grid-template-columns: repeat(10, 9.1%);

    width: 100%;
    top: 0px;
    /*   transform: translateX(-50%);
  animation: wheelin 1s 2s ease-in-out forwards; */
}

.content_list_swatch {
    content: "";
    background-size: cover;
    transition: 0.1s ease-in;
    flex: 1;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.3);
    text-align: center;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 26px;
    width: 26px;
    background-color: #bbbbbb;
    background-image: none;
    border-radius: 10%;
    margin-right: 5px;
    margin-bottom: 5px;
    border: 1px solid #80808052;
    cursor: pointer;
}

.content_list_swatch.active {
    transform: scale(1.05);
    -moz-transform: scale(1.05);
    -webkit-transform: scale(1.05);
    -o-transform: scale(1.05);
    -ms-transform: scale(1.05);

    -webkit-transition: transform .5s ease-in-out;
    -moz-transition: transform .5s ease-in-out;
    -ms-transition: transform .5s ease-in-out;
    border-width: 2px;
}

.content_list_swatch:hover {
    border: 2px solid #3a72a780;
}

.drag-notice {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2em;
    width: 15em;
    height: 5em;
    box-sizing: border-box;
    font-size: 0.9em;
    font-weight: 800;
    text-transform: uppercase;
    text-align: center;
    color: #ffffff;
    border-radius: 1em;
    background: #00000080;
    position: absolute;
}

.drag-notice.start {
    -webkit-animation: popout 0.25s 1.3s forwards;
    animation: popout 0.25s 1.3s forwards;
}

/* ! ******************************* */
.controls {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-content: center;
  width: 180px;
  /* margin-left: auto;
  margin-right: 0; */
  bottom: 10px;
  right: 0px;
}

.card {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
  width: 100%;
}

.card.invisible {
  display: none;
}

.card__title {
  font-weight: 400;
  font-size: 16px;
  line-height: 20px;
  margin-left: 2px;
}

.card__content {
  display: flex;
  flex-direction: row;
  width: 100%;
  justify-content: center;
}

.card__content.vertical {
  flex-direction: column;
}

.card__container {
  width: 100%;
  margin: 6px 0 0;
}

.card__container.inner{
  margin-bottom: 6px;
}

.card__checkbox-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* text-align: center; */
  font-weight: 600;
  font-size: 12px;
  line-height: 120%;
  height: 38px;
  width: 100%;
  border: 1px solid var(--colorBlue);
  border-radius: 2px;
  border-radius: 0.625rem;
  color: var(--colorDark);
  /* cursor: pointer; */
  margin: 6px 0 0;
  padding: 0 8px 0 0;
  background-color: var(--colorLightGray05);

  transition: all 0.3s;
}

.card__checkbox-container-noborder {
  border: none;
}

.card__checkbox-wrapper {
  display: flex;
  align-items: center;
  width: 100%;
}

.card__checkbox {
  position: absolute;
  z-index: -1;
  opacity: 0;
}

.card__checkbox+label {
  display: inline-flex;
  flex-grow: 1;
  align-items: center;
  user-select: none;
}

.card__checkbox+label::before {
  content: " ";
  background-image: url("../src/ui/hide.png");
  background-size: 20px;
  display: inline-block;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  flex-grow: 0;
  border: 0px solid var(--colorGrey);
  border-radius: 2px;
  margin: 0 10px;
  background-repeat: no-repeat;
  background-position: center center;
}

.card__checkbox:checked+label::before {
  border-color: var(--colorBlue);
  background-image: url("../src/ui/show.png");
  background-size: 22px;
}

.card__checkbox-label {
  cursor: pointer;
}

.card__checkbox-container:hover {
  color: var(--colorBlue);
  border: 1px solid var(--colorDark);
}

.card__container.vertical {
  margin: 4px 2px 2px;
  padding-right: 4px;
}

.card__container.vertical:last-child {
  margin-bottom: 12px;
}

.card__container.invisible {
  display: none;
}

.card__button {
  display: flex;
  align-items: center;
  /* justify-content: center; */
  text-align: center;
  font-style: normal;
  font-weight: 700;
  font-size: 12px;
  line-height: 120%;
  height: 38px;
  /* width: 100%; */
  border: 1px solid var(--colorBlue);
  border-radius: 2px;
  border-radius: 0.625rem;
  color: var(--colorDark);
  cursor: pointer;
  transition: all 0.3s;
  background-color: var(--colorLightGray05);
  box-shadow: 0 2px 4px rgba(2, 13, 173, 0.25);
}

.card__button-img {
  width: 24px;
  height: 24px;
  object-fit: cover;
  /* border-radius: 50%; */
  border-radius: 4px;
  border: 1px solid var(--colorDark);
  margin: 8px;
}

.card__button-text {
  /* margin-left: 8px; */
  padding: 6px;
}

.card__button--active{
  border: .0625rem solid transparent;
  background: transparent;
  background-color: var(--colorBlue1);
  color: var(--colorLightGray);
  font-weight: 400;
}

.card__button:hover {
  /* background-color: var(--colorBlue); */
  /* color: var(--colorDark); */
  font-weight: 700;
  border: 1px solid var(--colorDark);
}

.card__button--active:hover{
  background-color: var(--colorBlue);
  transition: background-color .15s cubic-bezier(.55,.085,.68,.53);
  font-weight:normal;
  cursor: auto;
}


.card-invisible {
  display: none;
}

.card-inner {
  border-bottom: none;
  padding-bottom: 0px;
}

.clickable {
  cursor: pointer;
}

.webar-qr {
  width: 180px;
}

.webar-qr-img {
  border: 1px solid var(--colorBlue);
  /* border-radius: 2px; */
  max-width: 120px;
  max-height: 120px;
  margin: auto;
}

.webar-qr-img img {
  border-radius: 5px;
}

.webar-qr-title {
  margin-top: 4px;
  width: 100%;
  text-align: center;
  color: var(--colorDark);
}

#ar-button {
  border: 1px solid var(--colorBlue);
}

/* ! ******************************* */

@-webkit-keyframes popout {
    to {
        -webkit-transform: scale(0);
        transform: scale(0);
    }
}

@keyframes popout {
    to {
        -webkit-transform: scale(0);
        transform: scale(0);
    }
}

@-webkit-keyframes wheelin {
    to {
        -webkit-transform: translateX(0);
        transform: translateX(0);
    }
}

@keyframes wheelin {
    to {
        -webkit-transform: translateX(0);
        transform: translateX(0);
    }
}

@media (max-width: 960px) {
    .options {
        top: 0;
    }

    .info {
        padding: 0 1em 1em 0;
    }

    .info__message {
        display: flex;
        align-items: flex-end;
    }

    .info__message p {
        margin: 0;
        font-size: 0.7em;
    }

    .frame {
        left: auto;
        right: 0;
        padding-left: 6rem;
    }

    .frame__links {
        display: block;
        margin: 0;
        text-align: right;
    }
}

@media (max-width: 720px) {
    .info {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 0 1em 1em;
    }

    .info__message {
        margin-bottom: 1em;
    }

    .controls {
      width: calc(100% - 20px);
      flex-direction: row;
      gap: 6px;
      left: 10px;
      bottom: 5px;
    }

    .card {
      width: 50%;
    }
}


@media (max-width: 100000px) {
    .info {
        padding: 1em 2em;
    }

    .info__message {
        display: none;
    }

    .options {
        bottom: 50px;
    }

    .option {
        margin-bottom: 1px;
        padding: 5px;
        height: 45px;
        width: 45px;
        display: flex;
    }

    .option.--is-active {
        border-right: 2px solid red;
        width: 47px;
    }

    .option img {
        height: 100%;
        width: auto;
        pointer-events: none;
    }
  
    .loading {
        position: fixed;
        z-index: 50;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        background: #ffffff;
        display: flex;
        justify-content: center;
        align-items: center;
    }
}
