body {
  font-family: 'Roboto', sans-serif;
  background: linear-gradient(
      rgba(0, 0, 0, 0.764),
      rgba(0, 0, 0, 0.764)
    ),
    url('bg.png');
  background-size: cover;
  background-attachment: fixed;
  color: white;
  transition: all 0.5s ease;
}

h1,
h2 {
  font-weight: 300;
}

button {
  align-items: center;
  appearance: none;
  border-radius: 4px;
  border-style: none;
  box-shadow: rgba(0, 0, 0, 0.2) 0 3px
      1px -2px,
    rgba(0, 0, 0, 0.14) 0 2px 2px 0,
    rgba(0, 0, 0, 0.12) 0 1px 5px 0;
  box-sizing: border-box;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-family: Roboto, sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  height: 36px;
  justify-content: center;
  letter-spacing: 0.0892857em;
  line-height: normal;
  min-width: 64px;
  outline: none;
  overflow: hidden;
  padding: 0 16px;
  position: relative;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: box-shadow 280ms
    cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  vertical-align: middle;
  will-change: transform, opacity;
}

button:hover {
  box-shadow: rgba(0, 0, 0, 0.2) 0 2px
      4px -1px,
    rgba(0, 0, 0, 0.14) 0 4px 5px 0,
    rgba(0, 0, 0, 0.12) 0 1px 10px 0;
}

button:disabled {
  background-color: rgba(0, 0, 0, 0.12);
  box-shadow: rgba(0, 0, 0, 0.2) 0 0 0 0,
    rgba(0, 0, 0, 0.14) 0 0 0 0,
    rgba(0, 0, 0, 0.12) 0 0 0 0;
  color: rgba(0, 0, 0, 0.37);
  cursor: default;
  pointer-events: none;
}

button:not(:disabled) {
  background-color: #6200ee;
}

button:focus {
  box-shadow: rgba(0, 0, 0, 0.2) 0 2px
      4px -1px,
    rgba(0, 0, 0, 0.14) 0 4px 5px 0,
    rgba(0, 0, 0, 0.12) 0 1px 10px 0;
}

button.nobg {
  background: transparent;
}

span.ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: ripple 600ms linear;
  background-color: rgba(
    255,
    255,
    255,
    0.7
  );
}

header {
  position: absolute;
  top: 60px;
  background: rgba(0, 0, 0, 0.461);
  width: 85%;
  height: 50px;
  border-radius: 35px;
}

main {
  margin-top: 120px;
}

a {
  color: rgb(123, 111, 255);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

footer {
  background: transparent;
  border-top: 2px solid aquamarine;
  width: 100%;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
}

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

.product-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.product {
  width: 300px;
  height: 300px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.461);
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #444;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px
    rgba(0, 0, 0, 0.2);
  z-index: 1;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.dropdown-content a {
  color: white;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {
  background-color: #555;
}

.dropdown.show .dropdown-content {
  display: block;
  opacity: 1;
}

.flex-block {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
}

.bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.621);
}

.block-buy-grafika-mala {
  width: 85%;
  height: 70%;
  background: rgba(0, 0, 0, 0.78);
  border-radius: 16px;
  backdrop-filter: blur(30px);
  transform: scale(1);
  animation: block-show 200ms;
}

/* Styl loadera */
.loader {
  display: inline-block; /* Ustawienie wyświetlania na inline-block */
  width: 16px;
  height: 16px;
  border: 2px solid #333; /* Obramowanie loadera - ciemny */
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-left: 3px; /* Przesunięcie w lewo */
  margin-right: 5px;
}

.form-control {
  position: relative;
  margin: 20px 0 40px;
  width: 190px;
}

.form-control input {
  background-color: transparent;
  border: 0;
  border-bottom: 2px #fff solid;
  display: block;
  width: 100%;
  padding: 15px 0;
  font-size: 18px;
  color: #fff;
}

.form-control input:focus,
.form-control input:valid {
  outline: 0;
  border-bottom-color: lightblue;
}

.form-control label {
  position: absolute;
  top: 15px;
  left: 0;
  pointer-events: none;
}

.form-control label span {
  display: inline-block;
  font-size: 18px;
  min-width: 5px;
  color: #fff;
  transition: 0.3s
    cubic-bezier(
      0.68,
      -0.55,
      0.265,
      1.55
    );
}

.form-control input:focus + label span,
.form-control input:valid + label span {
  color: lightblue;
  transform: translateY(-30px);
}

#text-optimize {
  margin-top: -30px;
  margin-left: 45px;
}

#error-redeem {
  color: red;
}

/* Animacja obracania loadera */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

@media (max-width: 870px) {
  .product-container {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  #text-optimize {
    margin-top: -40px;
  }
}

@keyframes block-show {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

@keyframes block-hide {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(0);
  }
}
