html {
  height: 100%;
  width: 100%;
}

body {
  background-color: black;
  user-select: none;

  animation: fadeIn 1s ease-in-out both;
}

img {
  -webkit-user-drag: none;
  user-select: none;
}

.brand-image {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 150px;
  height: auto;
  z-index: 1000;

  animation: fadeIn 1s ease-in-out 1s both;
}

.share-box {
  position: absolute;
  bottom: 5px;
  right: 5px;
  width: 50px;
  height: 70px;
  z-index: 1000;

  animation: fadeIn 1s ease-in-out 2s both;
}

.random-box {
  position: absolute;
  top: 80px;
  right: 5px;
  width: 50px;
  height: 50px;
  z-index: 1000;

  animation: fadeIn 1s ease-in-out 2s both;
}

@keyframes diceRoll {
  0% {
    transform: rotate(0deg);
  }
  
  20% {
    transform: rotate(-15deg);
  }
  
  50% {
    transform: rotate(30deg);
  }

  100% {
    transform: rotate(-360deg);
  }
}

.random-box.animate {
  animation: diceRoll 1s ease-in-out both;
}

.copied-label {
  position: absolute;
  top: 0;
  margin: 0;
  text-align: center;
  width: 100%;
  color: white;

  opacity: 0;

  transition: opacity 0.5s ease-in-out;
}

.copied-label.active {
  opacity: 1;

  transition: none;
}

.share-image {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
  height: auto;
  cursor: pointer;

  filter: brightness(0) invert(1);
  transition: filter 0.2s ease;
}

.share-image:hover {
  filter: none;
}

input {
  background-color: black;
  color: white;
  border: 1px ridge #262626;
  border-bottom: 2px solid #262626;
  outline: none;
  box-sizing: border-box;

  transition: border-bottom 0.2s ease-in-out;
}

input:focus {
  border-bottom: 2px solid white;
}

select {
  background-color: black;
  color: white;
  border: 1px ridge #262626;
  border-bottom: 2px solid #262626;
  outline: none;
  box-sizing: border-box;

  transition: border-bottom 0.2s ease-in-out;
}

select:hover {
  border-bottom: 2px solid white;
}

.checkmark {
  background-color: white;
}


@keyframes activeBorderGlow {
  0% {
    box-shadow: 0 0 20px rgb(55, 0, 255, 0.6), 0 0 30px rgb(55, 0, 255, 0.4), 0 0 40px rgb(55, 0, 255, 0.3);
  }

  50% {
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.6), 0 0 30px rgba(0, 255, 255, 0.4), 0 0 40px rgba(0, 255, 255, 0.3);
  }

  100% {
    box-shadow: 0 0 20px rgb(55, 0, 255, 0.6), 0 0 30px rgb(55, 0, 255, 0.4), 0 0 40px rgb(55, 0, 255, 0.3);
  }
}

@keyframes borderGlow {
  0% {
    box-shadow: 0 0 20px rgb(55, 0, 255, 0.6), 0 0 30px rgb(55, 0, 255, 0.4), 0 0 40px rgb(55, 0, 255, 0.3);
  }

  50% {
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.6), 0 0 30px rgba(0, 255, 255, 0.4), 0 0 40px rgba(0, 255, 255, 0.3);
  }

  100% {
    box-shadow: 0 0 20px rgb(55, 0, 255, 0.6), 0 0 30px rgb(55, 0, 255, 0.4), 0 0 40px rgb(55, 0, 255, 0.3);
  }
}

@keyframes shadowGlow {
  0% {
    filter: drop-shadow(0 0 10px rgb(55, 0, 255, 1))
  }

  50% {
    filter: drop-shadow(0 0 10px rgb(212, 8, 137, 1))
  }

  100% {
    filter: drop-shadow(0 0 10px rgb(55, 0, 255, 1))
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes rotateIn {
  0% {
    left: -170px;
    transform: rotate(90deg);
  }

  100% {
    left: -90px;
    transform: rotate(40deg);
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes fadeInOut {
  0% {
    opacity: 0;
  }

  20%,
  80% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

#side-settings {
  width: 120px;
  height: auto;
  top: 150px;
  position: fixed;
  z-index: 1000;
  background-color: rgba(20, 20, 20, 0.9);
  border-radius: 12px;
  border: 1px solid #262626;
  transform: rotate(40deg);
  transform-origin: top right;
  left: -90px;

  animation: rotateIn 1s ease-in-out 1s backwards;

  transition: left 1.5s ease, top 1.5s ease, transform 1.5s ease;
}


#side-settings.active {
  transition: left 0.5s ease, top 0.5s ease, transform 0.5s ease;
  transform: rotate(0);
  left: 0px;
  top: 100px;
  animation: activeBorderGlow 10s linear infinite;
}

#side-settings.inactive {
  transform: rotate(40deg);
  left: -90px;
  top: 150px;
  animation: borderGlow 20s linear infinite;
}

.gear-image {
  position: absolute;
  width: 20px;
  height: auto;
  right: 0px;
  top: 0px;
  cursor: pointer;

  animation: spin 5s ease 5s infinite;
}

#side-settings.active .gear-image {
  animation: spin 10s linear infinite;
}

#side-settings-content {
  margin: 5px;
  margin-top: 25px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.settings-text {
  color: white;
  font-size: 13px;
  text-wrap: nowrap;
  font-family: Arial, Helvetica, sans-serif;
}

.settings-button {
  position: relative;
  width: 90%;
  height: 25px;

  margin-top: 5px;

  background-color: rgb(44, 58, 73);
  border-width: 2px;
  border-color: black;
  border-style: solid;
  cursor: pointer;

  transition: width 0.3s, background-color 0.3s, border-color 0.3s;
}

.topMenuItem {
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.bottomMenuItem {
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

.settings-button:hover {
  width: 100%;
  background-color: rgb(70, 117, 210, 0.5);
  border-color: #cad0fc;
  animation: borderGlow 5s linear infinite;
}

.loading-image {
  position: absolute;
  top: 85px;
  left: 15px;
  width: 50px;
  height: 50px;
  z-index: 1000;

  transition: opacity 1s ease-in-out, left 1.5s ease;
  opacity: 0;
}

.loading-image.active {
  opacity: 0.4;
}

#side-settings.active~.loading-image {
  transition: opacity 1s ease-in-out, left 0.5s ease;
  
  left: 140px;
}

/* The switch - the box around the slider */
.switch {
  position: relative;
  display: inline-block;
  width: 90%;
  height: 25px;
  margin-top: 5px;
  transition: width 0.3s;
}

.switch:hover .slider {
  background-color: rgb(70, 117, 210, 0.5);
  border-color: #cad0fc;

  animation: borderGlow 5s linear infinite;
}

.switch:hover {
  width: 100%;
}

/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-width: 2px;
  border-color: black;
  border-style: solid;
  background-color: rgb(44, 58, 73);
  
  transition: transform 0.3s, background-color 0.3s, border-color 0.3s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 21px;
  width: 21px;
  left: 0px;
  bottom: 0px;

  outline: 2px solid black;
  
  background-color: rgb(128, 25, 0);
  transition: transform 0.3s ease, background-color 0.3s, border-color 0.3s, border-bottom-left-radius 0.3s, border-bottom-right-radius 0.3s;
}

.slider.bottomMenuItem:before {
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 0;
}

input:checked + .slider {
  background-color: rgb(44, 73, 44);
}

input:checked + .slider:before {
  transform: translateX(74px);
  background-color: rgb(34, 128, 0);
}

input:checked + .slider.bottomMenuItem:before {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 8px;
}

.switch:hover input:checked + .slider:before {
  transform: translateX(85px);
}

.slider-text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7.5px;
  user-select: none;
  cursor: pointer;
  margin-right: 5px;
  margin-left: 5px;
  text-align: right;
  opacity: 1;
}

.switch input:checked~.slider-text {
  text-align: left;
  animation: fadeIn 0.5s ease-in-out both;
}
