/* _________________________ screen dim _________________________ */

#black-overlay {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  background-color: black;
  transition: opacity 0.5s ease-in-out;
  opacity: 1;
  pointer-events: none;
}
#black-overlay.off {
  opacity: 0;
}

/* _________________________ Loading _________________________ */

#loading-square-inner {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);

  border: 4px solid white;
  background-color: transparent;
  height: 100px;
  width: 100px;
  animation: loading-square-anim 5s infinite linear;
}

#loading-screen {
  pointer-events: none;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  background-color: skyblue;
  transition: opacity 0.5s ease-in-out;
  opacity: 0;
  transition: opacity 0.25s ease-out;
}
#loading-screen.on {
  transition: opacity 0.25s ease-in;
  opacity: 0.5;
}

@keyframes loading-square-anim {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* _________________________ notify.js _________________________ */

#notification {
  border: 4px solid white;
  height: 15%;
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 2;
  transition: transform 0.25s ease-out;
  transform: translateY(-100%) scale(0.9);

  background: linear-gradient(90deg, transparent, skyblue, transparent);
  background-size: 200% 100%;
  backdrop-filter: blur(5px);

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  font-size: 3vh;
  text-align: center;
}
#notification.activate {
  transition: transform 0.25s ease-in;
  transform: translateY(0%) scale(1);
}

/* _________________________ common _________________________ */

.column {
  display: flex;
  flex-direction: column;
}

.row {
  display: flex;
  flex-direction: row;
}

.rounded {
  border-radius: 16px;
}

/* _________________________ ShopCore _________________________ */

html,
body {
  font-family: Arial, Helvetica, sans-serif;
  color: white;
  margin: 0;
  padding: 0;
  background-color: rgba(100, 108, 255, 0.5);
}

a {
  font-weight: 500;
  color: #646cff;
  text-decoration: inherit;
}

.center {
  display: flex;
  justify-content: center;
}

h1 {
  text-align: center;
}

button {
  margin: 0.1rem;
  padding: 0.5rem;
  border: none;
  color: white;
  background-color: rgba(0, 0, 0, 0.5);
}

input {
  font-size: large;
  width: 15%;
  margin-right: 5%;
  background-color: transparent;
  color: greenyellow;
  border: none;
}

#product_search {
  z-index: 1;
  position: fixed;
  width: 100%;
  border: none;
  background-color: rgba(102, 51, 153, 0.5);
  height: 5vh;
}

.side-pan {
  width: 29.5vw;
  margin-top: 5.5vh;
  background-color: rgba(102, 51, 153, 0.5);
}

#basket_wrapper {
  overflow-y: scroll; /* needed to enable scroll */
  height: 17rem; /* needed to enable scroll */
}

#categories-wrapper,
#editor-content-wrapper {
  margin-top: 5.5vh;
  margin-right: 0.1rem;
  width: 69.5vw;
  text-align: center;
  overflow-y: scroll;
  height: 94vh;
  background-color: rgba(102, 51, 153, 0.5);
}

.typical_container {
  padding: 0.2rem;
  text-align: center;
}

.icon {
  height: 4rem;
}

.sub_category {
  margin: 0.2rem;
}

.product {
  display: flex;
  flex-direction: row;
  width: 100%;
}

.elem_shell {
  margin: 0.2rem;
  background-color: rgba(0, 0, 0, 0.5);
}

.quantity {
  font-size: xx-large;
}

.trash {
  margin: 1rem;
}

#shop-guide,
#editor-guide,
#changelog-guide {
  text-align: center;
  background-color: rgba(102, 51, 153, 0.5);
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  padding: 1rem;
}

#lookup.play {
  animation: tilt 1s ease-in-out 1;
}

#PRINT_LIST_CONTENT {
  text-align: center;
  font-size: larger;
}

#splash {
  text-align: center;
}

.splash_txt {
  font-size: 5vh;
}
.splash_txt.slide_L {
  animation: fadeIn 1s forwards, slide_L 1s forwards;
}
.splash_txt.slide_R {
  animation: fadeIn 1s forwards, slide_R 1s forwards;
}

@keyframes search_highlight {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.25);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes slide_L {
  from {
    color: white;
    transform: translateX(5vw) scale(1) rotate(-10deg);
  }
  to {
    color: #646cff;
    transform: translateX(-5vw) scale(2) rotate(10deg);
  }
}

@keyframes slide_R {
  from {
    color: white;
    transform: translateX(-5vw) scale(1) rotate(10deg);
  }
  to {
    color: #646cff;
    transform: translateX(5vw) scale(2) rotate(-10deg);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes tilt {
  0% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(10deg);
  }
  75% {
    transform: rotate(-10deg);
  }
  100% {
    transform: rotate(0deg);
  }
}
