* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  text-align: center;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  font-family: "Inter", sans-serif;
  color: #e9e9e9;
  background: #000;
  overflow: hidden;
}

@keyframes normal-big-normal {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.6);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes normal-big-button {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
  }
}

/* Matrix Style */
canvas {
  position: fixed;
  right: 0;
  top: 0;
  height: 100%;
  width: 100%;
  z-index: -1;
}

main {
  max-width: 80%;

  padding: 2rem 1rem;
  background: conic-gradient(at left bottom, rgb(11, 11, 15), rgb(22, 27, 36));
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgb(255 255 255 / 0.05);
}

header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

header h1 {
  font-weight: 900;
  text-transform: uppercase;
  font-size: 2rem;
  color: rgb(130, 52, 233);

  margin-bottom: 1rem;
}

header h2 {
  font-weight: 400;
  font-size: 1.2rem;
  width: 100%;
  margin-bottom: 2rem;
}

h2 strong {
  color: rgb(130, 52, 233);
  font-weight: 900;
}

.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.input-container {
  position: relative;
  width: 100%;
}

.input-wrapper {
  margin-bottom: 1rem;
}

.input-wrapper input {
  background-color: rgba(46, 46, 46, 0.2);
  color: white;
  padding: 0.8rem 3rem 0.8rem 3.5rem;

  border: 1px solid #dadada;
  border-radius: 6px;
  width: 100%;
  border: 1px solid rgba(255 255 255 / 0.1);

  font-size: 1.5rem;
}

.input-wrapper input:focus {
  outline: 2px solid rgba(255, 255, 255, 0.1);
}

.input-wrapper label {
  text-transform: initial;
  margin-bottom: 1rem;
  font-size: 1.15rem;
  font-weight: 400;

  display: block;
}

.input-container .currency {
  position: absolute;
  top: 0.85rem;
  left: 8px;

  font-weight: 500;
  font-size: 1.5rem;
}

.controls-container {
  position: absolute;
  top: 1.5rem;
  right: 2rem;

  display: flex;
  gap: 1.5rem;
}

#add-money {
  color: rgb(0, 175, 0);
  animation: 2s linear infinite backwards normal-big-normal;
}

#remove-money {
  color: rgb(211, 0, 0);
}

/* Input Number remove arrows: Chrome, Safari, Edge, Opera */
/* Firefox */
input[type="number"] {
  appearance: none;
  -moz-appearance: textfield;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
}

.content p {
  font-size: 1.2rem;
  font-weight: 700;
}

.progress {
  background-color: rgb(22, 27, 36);
  border-radius: 20px;
  position: relative;
  height: 2rem;
  width: 300px;
}

.progress-done {
  background: linear-gradient(to left, rgb(140, 0, 255), rgb(94, 68, 239));
  box-shadow: 0 3px 3px -5px rgb(140, 0, 255), 0 2px 5px rgb(94, 68, 239);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 0;
  opacity: 0;
  transition: all 450ms ease;
}

#money-result {
  font-weight: 700;
  font-size: 2.5rem;
  color: rgb(1, 155, 1);
}

#money-result.no-gain {
  color: rgb(211, 0, 0);
}

main button {
  padding: 8px 16px;
  margin-top: 2rem;

  background: none;
  background-color: rgb(140, 0, 255);

  color: white;
  text-transform: uppercase;
  font-weight: 700;

  border: white;
  border-radius: 6px;
  cursor: pointer;
  animation: 2s linear infinite backwards normal-big-button;
  box-shadow: 0 25px 50px -12px rgb(255 255 255 / 0.05);
}

.post-interaction {
  max-width: 80%;

  padding: 2rem 1rem;
  background: conic-gradient(at left bottom, rgb(11, 11, 15), rgb(22, 27, 36));
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgb(255 255 255 / 0.05);
}

.post-interaction h1 {
  font-weight: 900;
  text-transform: uppercase;
  font-size: 2rem;
  color: rgb(130, 52, 233);

  margin-bottom: 1rem;
}

.post-interaction h2 {
  font-weight: 400;
  font-size: 1.2rem;
  width: 100%;
  margin-bottom: 2rem;
}

.post-interaction strong {
  color: rgb(130, 52, 233);
  font-weight: 900;
}

.post-interaction p {
  font-size: 1rem;
  font-weight: 700;
  color: #00b45f;
}

.content-tutorial p:first-child {
  margin-top: 1rem;
}

.content-tutorial p:last-child {
  color: white;
}

.post-interaction button {
  padding: 8px 16px;
  margin-top: 2rem;

  background: none;
  background-color: rgb(140, 0, 255);

  color: white;
  text-transform: uppercase;
  font-weight: 700;

  border: white;
  border-radius: 6px;
  cursor: pointer;
  transition: opacity 400ms;
  animation: 2s linear infinite backwards normal-big-button;
  box-shadow: 0 25px 50px -12px rgb(255 255 255 / 0.05);
}

.iframe-wrapper {
  background: none;
  padding: 178.21782178217822% 0 0 0;
  position: relative;
}

.hidden {
  opacity: 0;
  display: none;
}

.show {
  opacity: 1;
  display: inline-block;
}

.display-off {
  display: none;
}

.display-on {
  display: flex;
}
