:root {
  --themeColor: #7a45fb;
}

::selection {
  background: none;
}

::-moz-selection { /* Firefox */
  background: none;
}

@font-face {
  font-family: "Monsterrat";
  src: url("/font/Montserrat-Regular");
}

@font-face {
  font-family: "MonsterratBold";
  src: url("/font/Montserrat-Bold");
}


html {
  height: 100%;
  padding: 0;
  margin: 0;
  position: relative;
  font-family: 'Monsterrat';
}

h1 {
  font-family: 'Monsterrat';
}

p {
  font-family: 'Monsterrat';
}

select {
  font-family: 'Monsterrat';
  font-size: larger;
}

button {
  font-family: 'Monsterrat';
  font-size: larger;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  -webkit-writing-mode: horizontal-tb;
  writing-mode: horizontal-tb;
  -moz-writing-mode: horizontal-tb;
}

button:hover {
  cursor: pointer;
  cursor: -moz-pointer;
  cursor: -webkit-pointer;
}

img {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

h1 {
  font-size: x-large;
  font-weight: bold;
  display: inline-block;
}

body {
  height: 100%;
  padding: 0;
  margin: 0;
}

#configurator .shadowright {
  -webkit-box-shadow: inset -8px 0 5px -5px var(--themeColor);
  box-shadow: inset -8px 0 5px -5px var(--themeColor);
  transition: 0.5s ease-in-out;
}

#configurator .shadowright:hover {
  -webkit-box-shadow: none;
  box-shadow: none;
}

#configurator .noshadow {
  -webkit-box-shadow: none;
  box-shadow: none;
}

#configurator .checkbutton {
  background-color: #FFFFFF;
  color: #000000;
  border: none;
  border-radius: 5px;
  transition: ease-in-out 0.3s;
  margin: 0.3rem 0;
  padding: 0.4rem;
  width: 100%;
  text-align: left;
  border: 2px solid var(--themeColor);
}

#configurator .clickedbtn {
  background-color: var(--themeColor) !important;
  color: #FFFFFF !important;
}

#configurator #loadingscreen {
  background-color: #FFFFFF;
  width: 100vw;
  height: 100vh;
  position: absolute;
  left: 0;
  top: 0;
  align-content: center;
  text-align: center;
  z-index: 200;
  opacity: 1;
  transition: opacity 1s ease-in-out;
}

#configurator #loadingscreen>div {
  margin: auto;
  margin-top: 30vh;
}

#configurator #loadingscreen>div>h1 {
  font-family: 'Monsterrat';
  font-size: 3vh;
}

#configurator #loadinganimation {
  display: block;
  margin: auto;
  position: relative;
  width: 10rem;
  height: 10rem;
}

#configurator #loadinganimation img {
  position: absolute;
  opacity: 1;
  animation: controller-ripple 3s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

#configurator #loadinganimation img:nth-child(2) {
  animation-delay: -1.5s;
}

@keyframes controller-ripple {
  0% {
    top: 3.75rem;
    left: 3.75rem;
    width: 2.5rem;
    height: 2.5rem;
    opacity: 1;
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(270deg);
    top: 0px;
    left: 0px;
    width: 10rem;
    height: 10rem;
    opacity: 0;
  }
}

.tooltip {
  position: relative;
  display: inline-block;
  border-bottom: 1px dotted black;
}

/* Tooltip text */
.tooltip .tooltiptext {
  top: -100%;
  left: 110%;
  visibility: hidden;
  width: 120px;
  background-color: black;
  color: #fff;
  text-align: center;
  padding: 5px 0;
  border-radius: 6px;
  position: absolute;
  z-index: 10000;
}

/* Show the tooltip text when you mouse over the tooltip container */
.tooltip:hover .tooltiptext {
  visibility: visible;
}

#configurator #startquestion {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  background-color: #FFFFFF;
  z-index: 100;
  align-content: center;
  text-align: center;
  opacity: 1;
  transition: ease-in-out 0.5s;
}

#configurator #startquestion>div {
  margin: auto;
}

#configurator #startquestion>h1 {
  font-family: 'Monsterrat';
  font-size: 4vh;
}

#configurator #startquestion>div>img {
  width: calc(100% - 2rem);
  max-width: 20rem;
  margin: 1rem;
  background-color: #f4f2fe;
  border-radius: 1rem;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.1);
  transition: ease-in-out 0.2s;
}

#configurator #startquestion>div>img:hover {
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.01);
}

#configurator .icon {
  background-color: #FFFFFF00;
  border: none;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
}

#configurator .icon>img {
  width: 100%;
  left: 0;
  top: 0;
  position: relative;
}

#configurator .second {
  display: inline-block;
  background-color: #FFFFFF;
  border-radius: 50%;
  padding: 0.3rem;
  margin: 0.5rem;
  width: 3rem;
  height: 3rem;
  z-index: 100;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.1);
  transition: ease-in-out 0.2s;
}

#configurator .second:hover {
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.01);
}

#configurator .availableicon {
  width: 1rem;
  height: 1rem;
  pointer-events: none;
}

#configurator .colorPrice {
  color: #AAAAAA;
  margin: 0;
  margin-top: 0.5rem;
  pointer-events: none;
}

#configurator .centermenu {
  position: absolute;
  text-align: center;
  left: 15%;
  right: 15%;
  margin-top: 2rem;
  padding: 1rem;
  background-color: #FFFFFF;
  border-radius: 1rem;
  z-index: 50;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

#configurator #resetmenu>div>button {
  border: none;
  width: 45%;
  padding: 0.5rem;
  border-radius: 5px;
  color: #FFFFFF;
}

#configurator #resetmenu>div :nth-child(1) {
  background-color: #FF0000;
}

#configurator #resetmenu>div :nth-child(2) {
  background-color: var(--themeColor);
}

#configurator #sharemenu {
  text-align: center;
  position: absolute;
  bottom: 0;
  z-index: 100;
  background-color: #FFFFFF;
  width: 100%;
  height: 55%;
  padding: 1rem;
  border-radius: 2rem 2rem 0 0;
}

#configurator #sharemenu>h1 {
  font-size: 5rem;
}

#configurator #sharemenu>div>a {
  display: inline-block;
  width: 4rem;
  height: 4rem;
}

#configurator #sharemenu>div>a>img {
  width: 4rem;
  height: 4rem;
}

#configurator #sharemenu>button {
  border: none;
  border-radius: 5px;
  background-color: var(--themeColor);
  color: #FFFFFF;
  padding: 0.5rem;
  margin-top: 1rem;
}

#configurator #buymenu {
  text-align: center;
  position: absolute;
  bottom: 0;
  z-index: 100;
  background-color: #FFFFFF;
  width: 100%;
  box-sizing: border-box;
  /* height: 34rem; */
  height: fit-content;
  padding: 0.5rem;
  border-radius: 1rem 1rem 0 0;
  overflow-y: scroll;
  max-height: 80vh;
}

#configurator #buymenu>h2 {
  margin: 0.5rem 0;
}

#configurator #buymenu>div>a {
  display: inline-block;
  width: 4rem;
  height: 4rem;
}

#configurator #buymenu>div>a>img {
  width: 4rem;
  height: 4rem;
}

#configurator #buymenu>button {
  border: none;
  border-radius: 5px;
  background-color: var(--themeColor);
  color: #FFFFFF;
  padding: 0.5rem;
  margin-top: 1rem;
  display: block;
  width: 100%;
  margin: 1rem auto;
}

.menu {
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.1);
}

#configurator #typemenu {
  position: absolute;
  bottom: 0;
  border-radius: 1rem 1rem 0 0;
  background-color: #FFFFFF;
  width: 100%;
  height: 90%;
  z-index: 100;
  overflow-y: scroll;
}

#configurator #typemenu>a {
  display: block;
  margin: 0.5rem;
}

#configurator #typemenu .selected {
  color: white;
  font-weight: bold;
  background: var(--themeColor);
}

#configurator #typemenu :nth-child(1) {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

#configurator #typemenu div {
  overflow: hidden;
}

#configurator #typemenu div h1 {
  font-size: 2rem;
  margin: 0.5rem 0;
}

#configurator #typemenu div img {
  height: 4rem;
  margin: 0 1rem 0 0;
}

#configurator #typemenu button {
  border: none;
  margin: 0.5rem;
  background-color: #FFFFFF00;
  color: var(--themeColor);
  font-weight: bold;
  font-size: 2rem;
}

#configurator #menu {
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  background-color: #FFFFFF;
  flex: 0 0 auto;
  margin-bottom: 0;
  align-self: flex-end;
  width: 100%;
  border-radius: 1rem 1rem 0 0;
  z-index: 10;
  flex-grow: 0;
  box-sizing: border-box;
}

#configurator {
  overflow: hidden;
  position: relative;
  background: rgb(255, 255, 255);
  background: -moz-linear-gradient(0deg, rgba(255, 255, 255, 1) 0%, rgba(244, 242, 254, 1) 100%);
  background: -webkit-linear-gradient(0deg, rgba(255, 255, 255, 1) 0%, rgba(244, 242, 254, 1) 100%);
  background: linear-gradient(0deg, rgba(255, 255, 255, 1) 0%, rgba(244, 242, 254, 1) 100%);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#ffffff", endColorstr="#f4f2fe", GradientType=1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

#configurator .images_container {
  position: relative;
  max-height: 70%;
  max-width: 100%;
  flex: 1 1 auto;
  min-height: 10px;
  min-width: 10px;
}

#configurator .images {
  width: 145%;
  height: 180%;
  position: absolute;
  top: -40%;
  left: -24%;
  z-index: 2;
  transition-duration: 1s;
}

#configurator .back {
  z-index: 1;
  width: 40%;
  left: 0;
  top: -5%;
  height: 60%;
}

@keyframes flasher {
  0% {
    opacity: 0.00;
  }

  40% {
    opacity: 1.00;
  }

  60% {
    opacity: 1.00;
  }

  100% {
    opacity: 0.00;
  }
}

@-moz-keyframes flasher {
  0% {
    opacity: 0.00;
  }

  40% {
    opacity: 1.00;
  }

  60% {
    opacity: 1.00;
  }

  100% {
    opacity: 0.00;
  }
}

@-webkit-keyframes flasher {
  0% {
    opacity: 0.00;
  }

  40% {
    opacity: 1.00;
  }

  60% {
    opacity: 1.00;
  }

  100% {
    opacity: 0.00;
  }
}

@-o-keyframes flasher {
  0% {
    opacity: 0.00;
  }

  40% {
    opacity: 1.00;
  }

  60% {
    opacity: 1.00;
  }

  100% {
    opacity: 0.00;
  }
}

@-ms-keyframes flasher {
  0% {
    opacity: 0.00;
  }

  40% {
    opacity: 1.00;
  }

  60% {
    opacity: 1.00;
  }

  100% {
    opacity: 0.00;
  }
}

#configurator .no-opacity {
  opacity: 0;
}

#configurator .flash {
  /* opacity: 0; */
  /* transition: 0.3s ease-in-out; */
  /* animation: flasher ease-in-out 2s;
    -moz-animation: flasher ease-in-out 2s;
    -webkit-animation: flasher ease-in-out 2s;
    -o-animation: flasher ease-in-out 2s;
    -ms-animation: flasher ease-in-out 2s; */
  animation: flasher 0.5s ease-in-out 2;
  -moz-animation: flasher 0.5s ease-in-out 2;
  -webkit-animation: flasher 0.5s ease-in-out 2;
  -o-animation: flasher 0.5s ease-in-out 2;
  -ms-animation: flasher 0.5s ease-in-out 2;
}

#configurator .images>img {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  max-width: 100%;
  max-height: 100%;
  margin: auto;
}

#configurator #typedata {
  display: flex;
  justify-content: space-between;
  align-content: center;
  padding: 0.8rem 1rem;
  flex-shrink: 0;
  flex-grow: 0;
}

#configurator #typeButtons {
  display: inline-block;
  margin: 0;
  min-width: fit-content;
}

#configurator #typeButtons>button {
  margin: auto 0;
  display: inline-block;
}

#configurator #currentlySelectedTypeImage {
  float: left;
  height: 2.5rem;
}

#configurator #currentlySelectedType {
  display: inline-block;
  margin: 0;
}

#configurator #extrathingsform {}

#configurator #extrathingsform div {
  padding: 0.2rem;
  display: flex;
  justify-content: space-between;
}

#configurator input[type="checkbox"] {
  display: grid;
  place-content: center;
  width: 2em;
  height: 2em;
}

#configurator input[type="checkbox"]::before {
  content: "";
  width: 1.4em;
  height: 1.4em;
  transform: scale(0);
  transition: 70ms transform ease-in-out;
  background-color: var(--themeColor);
}

#configurator input[type="checkbox"]:checked::before {
  transform: scale(1);
}

#configurator .popup {
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  background-color: #00000088;
  z-index: 10000;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

#configurator .popup>div {
  text-align: center;
  position: absolute;
  margin: 1rem;
  padding: 0.5rem;
  border-radius: 0.3rem;
  display: block;
  background-color: #f4f2fe;
}

#configurator #materials {
  white-space: nowrap;
  overflow: auto;
  border: 1px solid #CCCCCC;
  border-left: 0;
  border-right: 0;
  padding: 0.8rem 1rem;
  flex-shrink: 0;
  flex-grow: 0;
  display: flex;
  justify-content: space-evenly;
}

#configurator #materials>button {
  margin: 0 1rem;
  color: var(--themeColor);
  background-color: white;
  border: 2px solid var(--themeColor);
  font-weight: bold;
  padding: 1rem;
  border-radius: 100vmax;
}

#configurator #colors {
  flex-shrink: 1;
  white-space: nowrap;
  overflow: auto;
  overflow-y: hidden;
  display: flex;
  align-content: flex-start;
}

#configurator #colors>button {
  border: 1px solid #00000033;
  border-collapse: collapse;
  width: 33.333%;
  min-width: 33.333%;
  padding: 0.3rem;
  position: relative;
  display: flex;
  flex-direction: column;
  align-content: flex-start;
  text-align: center;
  background: #AAAAAA00;
  box-sizing: border-box;
  height: 200px;
}

#configurator #colors :hover {
  border: 1px solid var(--themeColor);
  color: var(--themeColor);
}

#configurator #colors>button>img {
  margin: 0 auto;
}

#configurator #colors>button>p {
  pointer-events: none;
  margin: 0 auto;
}

#configurator #colors>button>p:nth-child(1) {
  font-size: 0.8rem;
}

#configurator #colors>button>h4 {
  text-align: center;
  line-height: normal;
  pointer-events: none;
  word-wrap: normal;
  white-space: normal;
  margin: auto;
  font-size: 14px;
}

#configurator #colors>button>div {
  display: block;
  border: 1px solid #555555;
  border-radius: 50%;
  width: calc(6rem - 0.6rem - 2px);
  height: calc(6rem - 0.6rem - 2px);
  background-color: #00000000;
  background-size: cover;
  padding: 0;
  margin: 0.5rem auto;
  pointer-events: none;
}

#configurator #pricedata {
  background-color: #f5f7fa;
}

#configurator #pricedata>div {
  display: flex;
  justify-content: space-between;
}

#configurator #pricedata>div>div {
  padding: 0 0.5rem;
  font-size: 1.6vh;
  display: inline-block;
}

#configurator #pricedata>p {
  padding: 1rem;
  display: none;
}

#configurator #pricedata>div>p {
  padding: 1rem;
  margin: 0;
  margin: 0;
}

#configurator #pricedata>div>button {
  width: 3rem;
  height: 2rem;
  border: none;
  background-color: var(--themeColor);
  margin: auto 1rem;
  padding: 0;
  border-radius: 5px;
}

#configurator #pricedata>div>button>img {
  height: 100%;
  margin: auto;
}

#configurator #materials .selected {
  color: var(--themeColor);
  font-weight: bold;
}

#configurator #colors .selected {
  border: 1px solid var(--themeColor);
  color: var(--themeColor);
}

#configurator #progressbar {
  position: relative;
  overflow: visible;
  height: 0.5rem;
  flex-grow: 0;
  flex-shrink: 0;
}

#configurator #progressbar #progress {
  height: 100%;
  width: 10%;
  background-color: var(--themeColor);
}

#configurator #progressbar img {
  right: 0.2rem;
  top: 0.2rem;
  width: 1.5rem;
  height: 1.5rem;
  position: absolute;
  border-radius: 1rem;
  display: block;
}

#configurator #controllerbuttons {
  z-index: 15;
}

@media only screen and (min-width: 1025px) {
  #configurator #menu> :nth-child(1) {
    display: flex;
    flex-direction: column;
    flex-shrink: 1;
    max-height: min-content;
    flex-grow: 1;
    height: 20rem;
  }

  #configurator #menu> :nth-child(2) {
    flex-shrink: 0;
    flex-grow: 0;
    height: max-content;
  }

  #configurator {
    flex-direction: row;
  }

  #configurator #loadingscreen>div>h1 {
    font-size: 3vw;
  }

  #configurator #startquestion>h1 {
    font-size: 8vh;
  }

  #configurator #startquestion>div>img {
    width: 30vw;
    max-width: unset;
  }

  #configurator #currentlySelectedType {
    font-size: 2.5vw;
  }

  #configurator #sharemenu, #configurator #typemenu {
    position: absolute !important;
    padding: 1rem;
    box-sizing: border-box;
    display: block;
    z-index: 100;
    background-color: #FFFFFF;
  }

  #configurator #buymenu, #configurator #typemenu {
    max-height: unset;
    position: absolute !important;
    padding: 1rem;
    box-sizing: border-box;
    display: block;
    z-index: 100;
    background-color: #FFFFFF;
  }

  #configurator .second {
    display: block;
    margin-top: 2rem;
  }

  .menu {
    align-self: flex-start !important;
    position: relative !important;
    /* width: 38.2%; */
    width: 30% !important;
    min-width: 30rem;
    height: calc(100vh - 2rem) !important;
    border-radius: 1rem !important;
    margin: 1rem !important;
    right: 0 !important;
  }

  #configurator .popup>div {
    max-width: 20rem;
    margin: auto;
    display: block;
  }

  #configurator .checkbutton:hover {
    cursor: pointer;
    cursor: -moz-pointer;
    cursor: -webkit-pointer;
    background-color: var(--themeColor) !important;
    color: #FFFFFF !important;
  }

  #configurator #colors {
    flex-shrink: 1;
    flex-grow: 1;
    overflow-y: auto;
    overflow-x: hidden;
  }

  #configurator #centermenu {
    left: 30%;
    width: 40%;
  }

  #configurator .images {
    text-align: center;
    left: -20%;
    top: -20%;
  }

  #configurator .images>img {
    max-width: auto;
    max-height: auto;
  }

  #configurator .back {
    left: 0;
    top: 0;
  }

  #configurator #colors {
    white-space: normal;
    flex-wrap: wrap;
  }

  #configurator #colors>button>p:nth-child(1) {
    font-size: 1rem;
  }

  #configurator .large {
    overflow-y: scroll;
  }

  #configurator #spacediv {
    width: 100%;
    height: 4rem;
  }

  #configurator #pricedata {
    bottom: 0;
    width: 100%;
    border-radius: 0 0 1rem 1rem;
  }

  #configurator #colors>button>h4 {
    font-size: 18px;
  }

  .tooltip .tooltiptext {
    left: unset;
    top: -10%;
    right: 110% !important;
  }
}

.hidden {
  display: none !important;
}

.errorStyle {
  padding: 1rem 0 2rem 0 !important;
  box-shadow: 0 10px 20px rgb(0 0 0 / 25%);
}

.errorStyle h1 {
  font-family: 'MonsterratBold';
  color: var(--themeColor);
}

.errorStyle button {
  background-color: white;
  border: 1px solid var(--themeColor);
  color: var(--themeColor);
  padding: 9px 32px;
  border-radius: 0.3rem;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 4px 2px;
  cursor: pointer;
  transition: background-color .3s, border .3s;
}

.errorStyle button:hover {
  background-color: var(--themeColor);
  border: 1px solid var(--themeColor);
  color: white;
}
