html {
  box-sizing: border-box;
}
*,
*::before,
*::after {
  box-sizing: inherit;
}
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  font-size: 1.5em;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}
h1, h2, h3, h4, h5, h6 {
  text-align: center;
  font-size: 2rem;
}
label {
  font-size: 1.5rem;
  font-weight: normal;
}
.red-text {
  color: #ca2f2f;
}
button {
  cursor: url(./img/cursor.png), auto;
  margin-top: 10px;
  padding: 10px;
  border: none;
  border-radius: 5px;
  background-color: #007bff;
  color: #fff;
}
button:hover {
  background-color: #0056b3;
}
#result {
  padding-bottom: 20px;
  margin-top: 20px;
  border-bottom: 1px solid #000;
}
.result {
  text-align: center;
}
#profit {
  font-weight: 600;
}
#profitForm .form-label {
  margin-bottom: 0.25rem;
  font-weight: 500;
}
#profitForm .form-control {
  width: 100%;
  padding: 6px 10px;
  font-size: 1.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.image-icon {
  width: 100px;
  height: auto;
  padding: 5px;
  object-fit: contain;
  margin: 0 auto;
}
.input-wrapper {
  position: relative;
}
.input-label-inline {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-style: italic;
  color: #888;
  pointer-events: none;
  font-size: 0.85em;
}
.referal-url {
  display: flex;
  flex-direction: column;
  max-width: 30%;
  margin-top: 10px;
  float: right;
}
.referal-url a {
  text-decoration: none;
  transition: background-size 0.3s, color 0.3s, font-weight 0.3s;
}
.referal-url a:hover {
  background-size: 100% 2px;
  color: #ca2f2f;
  font-weight: 600;
  cursor: url(https://gui-challenges.web.app/svg-favicon/dist/assets/favicon.cb17c595.svg), auto;
}
.lol-container {
  perspective: 1000px;
  width: 320px;
  height: 427px;
  position: relative;
  margin: 2em auto;
  cursor: url(https://gui-challenges.web.app/svg-favicon/dist/assets/favicon.cb17c595.svg), auto;
}
.lol-image {
  width: 100%;
  height: 100%;
  position: absolute;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}
.lol-container:hover .lol-image {
  transform: rotateY(180deg);
}
.front, .back {
  width: 100%;
  height: 100%;
  position: absolute;
  backface-visibility: hidden;
}
.front {
  background: url(./img/sensey-delo-govorit.jpg) no-repeat center center / cover;
  z-index: 2;
}
.back {
  background: url(./img/no-inogda-pizdit.jpg) no-repeat center center / cover;
  transform: rotateY(180deg);
  z-index: 1;
  opacity: 0;
}
.lol-container:hover .back {
  opacity: 1;
}
@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
    align-items: stretch !important;
  }
  .form-row > div {
    margin-bottom: 0.5rem;
  }
  .referal-url {
    padding: 1em;
    min-width: fit-content;
    float: none;
    margin: 0 auto;
  }
  .image-icon {
    margin-bottom: 0.5rem;
  }
}
.mb-1 {
  margin-bottom: 0.25rem !important;
}
.mt-4 {
  margin-top: 1.5rem !important;
}
.mb-4 {
  margin-bottom: 1.5rem !important;
}
