:root {
  --sel-width: 300px;
  --sel-padding: 1rem;
  --sel-border: 1px;
  --m-bottom: 3px;
  --double-sel-padding: calc(var(--sel-padding) * 2);
  --double-sel-border: calc(var(--sel-border) * 2);
  --border-color: #c6c6c6;
  transition: all 3s;
}

.d-none {
  display: none !important;
}

.back {
  align-items: center;
  margin-right: var(--m-bottom);
}

.arrow {
  border: solid black;
  border-width: 0 1px 1px 0;
  aspect-ratio: 1;
  height: 10px;
  display: block;
}

.left {
  transform: rotate(135deg) translate(-2px, -2px);
  -webkit-transform: rotate(135deg) translate(-2px, -2px);
}

.title {
  width: 100%;
}

body,
a,
button {
  font-family: system-ui, sans-serif;
  font-size: 1rem;
  text-decoration: none;
  display: inline-block;
  color: black;
}

form {
  position: relative;
  z-index: 1;
  margin-bottom: var(--m-bottom);
}

.image {
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  height: 100vh;
  align-items: center;
  justify-content: center;
}

.image.flip {
  transform: rotate(180deg) translateY(-84.5%);
  z-index: -1;
  opacity: 0.3;
}

.title-container,
.selector-container,
.selector,
#buttons,
.back {
  display: flex;
  justify-content: space-between;
}

.back,
.title,
.selector-container,
.list-title {
  padding: var(--sel-padding);
  border: var(--sel-border) solid var(--border-color);
  border-radius: 4px;
  margin-bottom: var(--m-bottom);
  background: rgb(247 246 246);
  box-shadow: 1px 1px 1px black;
  /*text-transform: capitalize;*/
}

.list-title {
  background: white;
  border: none;
  box-shadow: none;
}
.selector-container {
  flex-direction: column;
}

form .selector-container,
.list .selector-container {
  width: var(--sel-width);
}

.selector-container:not(button) {
  /*     background-color: white; */
}

#buttons {
  justify-content: space-between;
}

a {
  position: relative;
  z-index: 10;
}

a button.selector-container {
  width: calc(
    (
        var(--sel-width) + var(--double-sel-padding) + var(--double-sel-border) -
          var(--m-bottom)
      ) / 2
  );
  text-align: left;
  height: 100%;
}

button.selector-container {
  margin-bottom: 0;
  flex-direction: row;
}

#tappo-selectors {
  flex-direction: column;
}

.selector {
  width: 100%;
  margin-bottom: var(--sel-padding);
}

.selector:last-child {
  margin-bottom: 0;
}

img {
  height: 100%;
}

img[src=""] {
  display: none;
}

input,
select,
button {
  cursor: pointer;
}

.loader {
  width: 18px;
  aspect-ratio: 1;
  border: 2px solid #000;
  border-bottom-color: transparent;
  border-radius: 50%;
  display: inline-block;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
}

@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.check {
  display: inline-block;
  transform: rotate(45deg);
  height: 16px;
  width: 8px;
  border-bottom: 2px solid #000;
  border-right: 2px solid #000;
  margin-top: -3px;
  margin-right: 4px;
}

button:active,
a:active {
  background-color: rgb(239, 239, 239);
  color: rgb(0, 0, 0, 0.25);
  border-color: var(--border-color);
  box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.25);
}

button:disabled {
  cursor: default;
}

@media screen and (max-width: 1000px) {
  #composition {
    position: relative;
  }

  #composition .image {
    position: absolute;
  }

  #composition .image.flip {
    display: none;
  }
}
