@import url("https://fonts.googleapis.com/css2?family=Maven+Pro:wght@400;600&display=swap");

* {
  font-family: "Maven Pro", sans-serif;
}

body {
  background: url(./img/bg.svg);
  background-repeat: no-repeat;
  background-size: cover;
  color: white;
}

/** CSS Custom Utilities */

.navbar {
  background: rgba(255, 255, 255, 0.03);
  padding: 20px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.navbar-toggler-icon {
  background-image: url(./img/menu-navigation-grid-1529-svgrepo-com.png);
}

.main-container {
  margin-top: 30px;
  margin-bottom: 50px;
  display: flex;
  flex-direction: column;
}

.canvas-img {
  margin-top: 20px;
  width: 50vw;
  background: rgba(255, 255, 255, 0.03);
  padding: 5px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.canvas-generate {
  height: 210px;
}

.control-container {
  display: flex;
  flex-direction: column;
}

.bit-size,
.error-correction,
.border-size {
  margin-bottom: -40px;
  margin-top: 30px;
  font-size: 18px;
  font-weight: bold;
}

.download {
  margin-bottom: 300px;
  margin-top: 20px;
}

.generate {
  margin-top: 30px;
}

.generate-btn {
  padding: 16px 24px;
  border: none;
  font-size: 16px;
  color: #fff;
  border-radius: 7px;
  letter-spacing: 4px;
  font-weight: 600;
  transition: 0.5s;
  transition-property: box-shadow;
}

.generate-btn {
  background: transparent;
  box-shadow: 0 0 25px rgb(1, 235, 252);
}

.generate-btn:hover {
  box-shadow: 0 0 5px rgb(1, 235, 252), 0 0 25px rgb(1, 235, 252), 0 0 50px rgb(1, 235, 252), 0 0 100px rgb(1, 235, 252);
}

.footer-text {
  color: #848484;
}

.navbar-toggler:focus {
  outline: none;
  box-shadow: none;
}
.navbar-toggler:focus {
  outline: none;
  box-shadow: none;
  transform: scale(1.1);
}
/************  */
/***********  */

/** Github Button Style  */

.github-btn {
  margin-top: 20px;
  width: 20vw;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 18px 12px;
  gap: 20px;
  background-color: #181717;
  outline: 3px #181717 solid;
  outline-offset: -3px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: 400ms;
}

.github-btn .text {
  color: white;
  font-weight: 700;
  font-size: 1em;
  transition: 400ms;
  text-decoration: none;
}

.github-btn svg path {
  transition: 400ms;
}

.github-btn:hover {
  background-color: white;
}

.github-btn:hover .text {
  color: #181717;
}

.github-btn:hover svg path {
  fill: #181717;
}

/*******  */

/** Download Button Style Custom  */

.download-btn {
  display: inline-block;
  position: relative;
  padding: 16px 25px;
  background-color: #252525;
  color: white;
  font-family: sans-serif;
  text-decoration: none;
  font-size: 0.9em;
  text-align: center;
  text-indent: 15px;
  border: none;
  border-radius: 50px;
}

.download-btn:hover {
  background-color: #02081e;
  color: white;
}

.download-btn:before,
.download-btn:after {
  content: " ";
  display: block;
  position: absolute;
  left: 15px;
  top: 52%;
}

.download-btn:before {
  width: 13px;
  height: 2px;
  border-style: solid;
  border-width: 0 2px 2px;
}

.download-btn:after {
  width: 0;
  height: 0;
  margin-left: 3px;
  margin-top: -7px;
  border-style: solid;
  border-width: 4px 4px 0 4px;
  border-color: transparent;
  border-top-color: inherit;
  animation: downloadArrow 1s linear infinite;
  animation-play-state: paused;
}

.download-btn:hover:before {
  border-color: #cdefbd;
}

.download-btn:hover:after {
  border-top-color: #cdefbd;
  animation-play-state: running;
}

@keyframes downloadArrow {
  0% {
    margin-top: -7px;
    opacity: 1;
  }

  0.001% {
    margin-top: -15px;
    opacity: 0.4;
  }

  50% {
    opacity: 1;
  }

  100% {
    margin-top: 0;
    opacity: 0.4;
  }
}

/*******  */

/** Checkbox Button Style Custom  */

/* Customize the label (the checkbox-btn) */
.checkbox-btn {
  display: block;
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Hide the browser's default checkbox */
.checkbox-btn input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkbox-btn label {
  cursor: pointer;
  font-size: 14px;
}
/* Create a custom checkbox */
.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 25px;
  width: 25px;
  border: 2.5px solid #ffffff;
  transition: 0.2s linear;
}
.checkbox-btn input:checked ~ .checkmark {
  background-color: transparent;
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after {
  content: "";
  position: absolute;
  visibility: hidden;
  opacity: 0;
  left: 50%;
  top: 40%;
  width: 10px;
  height: 14px;
  border: 2px solid rgb(1, 235, 252);
  filter: drop-shadow(0px 0px 10px rgb(1, 235, 252));
  border-width: 0 2.5px 2.5px 0;
  transition: 0.2s linear;
  transform: translate(-50%, -50%) rotate(-90deg) scale(0.2);
}

/* Show the checkmark when checked */
.checkbox-btn input:checked ~ .checkmark:after {
  visibility: visible;
  opacity: 1;
  transform: translate(-50%, -50%) rotate(0deg) scale(1);
  animation: pulse 1s ease-in;
}

.checkbox-btn input:checked ~ .checkmark {
  transform: rotate(45deg);
  border: none;
}

@keyframes pulse {
  0%,
  100% {
    transform: translate(-50%, -50%) rotate(0deg) scale(1);
  }
  50% {
    transform: translate(-50%, -50%) rotate(0deg) scale(1.6);
  }
}

/******  */

/** Input Image Style  */

.input-div {
  position: relative;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 2px solid rgb(1, 235, 252);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  box-shadow: 0px 0px 100px rgb(1, 235, 252), inset 0px 0px 10px rgb(1, 235, 252), 0px 0px 5px rgb(255, 255, 255);
  animation: flicker 2s linear infinite;
}

.icon {
  color: rgb(1, 235, 252);
  font-size: 2rem;
  cursor: pointer;
  animation: iconflicker 2s linear infinite;
}

.input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer !important;
}

@keyframes flicker {
  0% {
    border: 2px solid rgb(1, 235, 252);
    box-shadow: 0px 0px 100px rgb(1, 235, 252), inset 0px 0px 10px rgb(1, 235, 252), 0px 0px 5px rgb(255, 255, 255);
  }

  5% {
    border: none;
    box-shadow: none;
  }

  10% {
    border: 2px solid rgb(1, 235, 252);
    box-shadow: 0px 0px 100px rgb(1, 235, 252), inset 0px 0px 10px rgb(1, 235, 252), 0px 0px 5px rgb(255, 255, 255);
  }

  25% {
    border: none;
    box-shadow: none;
  }

  30% {
    border: 2px solid rgb(1, 235, 252);
    box-shadow: 0px 0px 100px rgb(1, 235, 252), inset 0px 0px 10px rgb(1, 235, 252), 0px 0px 5px rgb(255, 255, 255);
  }

  100% {
    border: 2px solid rgb(1, 235, 252);
    box-shadow: 0px 0px 100px rgb(1, 235, 252), inset 0px 0px 10px rgb(1, 235, 252), 0px 0px 5px rgb(255, 255, 255);
  }
}

@keyframes iconflicker {
  0% {
    opacity: 1;
  }

  5% {
    opacity: 0.2;
  }

  10% {
    opacity: 1;
  }

  25% {
    opacity: 0.2;
  }

  30% {
    opacity: 1;
  }

  100% {
    opacity: 1;
  }
}

/*!  */

/** Input Style  */

.textInputWrapper {
  position: relative;
  width: 50vw;
  margin: 12px 5px;
  --accent-color: rgb(1, 235, 252);
}

.textInputWrapper:before {
  transition: border-bottom-color 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
  border-bottom: 1px solid rgba(0, 0, 0, 0.42);
}

.textInputWrapper:before,
.textInputWrapper:after {
  content: "";
  left: 0;
  right: 0;
  position: absolute;
  pointer-events: none;
  bottom: -1px;
  z-index: 4;
  width: 100%;
}

.textInputWrapper:focus-within:before {
  border-bottom: 1px solid var(--accent-color);
}

.textInputWrapper:before {
  transition: border-bottom-color 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
  border-bottom: 1px solid rgba(0, 0, 0, 0.42);
}

.textInputWrapper:focus-within:before {
  border-bottom: 1px solid var(--accent-color);
  transform: scaleX(1);
}

.textInputWrapper:focus-within:after {
  border-bottom: 2px solid var(--accent-color);
  transform: scaleX(1);
}

.textInputWrapper:after {
  content: "";
  transform: scaleX(0);
  transition: transform 250ms cubic-bezier(0, 0, 0.2, 1) 0ms;
  will-change: transform;
  border-bottom: 2px solid var(--accent-color);
  border-bottom-color: var(--accent-color);
}

.textInput::placeholder {
  transition: opacity 250ms cubic-bezier(0, 0, 0.2, 1) 0ms;
  opacity: 1;
  user-select: none;
  color: white;
}

.textInputWrapper .textInput {
  border-radius: 5px 5px 0px 0px;
  box-shadow: 0px 2px 5px rgb(35 35 35 / 10%);
  max-height: 50px;
  background-color: #252525;
  transition-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1);
  transition-duration: 200ms;
  transition-property: background-color;
  color: white;
  font-size: 18px;
  font-weight: 500;
  padding: 12px;
  width: 100%;
  border-left: none;
  border-bottom: none;
  border-right: none;
}

.textInputWrapper .textInput:focus,
.textInputWrapper .textInput:active {
  outline: none;
}

.textInputWrapper:focus-within .textInput,
.textInputWrapper .textInput:focus,
.textInputWrapper .textInput:active {
  background-color: #02081e;
}

.textInputWrapper:focus-within .textInput::placeholder {
  opacity: 0;
}

/** END input style * **/

.container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.vertical-center {
  margin: 0;
  position: absolute;
  top: 50%;
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
}

canvas {
  padding-left: 0;
  padding-right: 0;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

.slidecontainer {
  width: 100%;
}

.slider {
  -webkit-appearance: none;
  width: 100%;
  height: 25px;
  background: rgba(255, 255, 255, 0.03);
  outline: none;
  opacity: 0.9;
  border-radius: 10px;
  -webkit-transition: 0.2s;
  transition: opacity 0.2s;
}

.slider:hover {
  opacity: 1;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 25px;
  height: 25px;
  background: rgb(1, 235, 252);
  cursor: pointer;
  border-radius: 50px;
}

.slider::-moz-range-thumb {
  width: 25px;
  height: 25px;
  background: rgb(1, 235, 252);
  cursor: pointer;
}

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

.tooltip .tooltiptext {
  visibility: hidden;
  width: 300px;
  background-color: black;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px 0;

  /* Position the tooltip */
  position: absolute;
  z-index: 1;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
}

.center {
  text-align: center;
}

/***  */

/*!!  Responsive Area */

/** Mobile Screen  */
@media screen and (max-width: 776px) {
  .textInputWrapper {
    position: relative;
    width: 80vw;
  }

  .subheader {
    font-size: 18px;
  }

  .github-btn {
    width: 50vw;
  }
}

/** End Mobile Screen */

/** Tablet Screen  */
@media screen and (max-width: 1024px) {
  .github-btn {
    width: 60vw;
  }
}
/** End tablet screen  */
