@import './fonts.css';

*,
::before,
::after {
  box-sizing: border-box;
}
h1,
h2,
h3,
h4 {
  margin: 0;
}
p {
  margin: 0;
}
ul {
  padding: 0;
  margin: 0;
  list-style: none;
}
button {
  border: none;
  background-color: transparent;
  padding: 0;
  margin: 0;
  color: inherit;
}
pre {
  margin: 0;
}

body {
  font-family: 'Proxima';
  color: #392955;

  --accent_color_light: #ff50bf;
  --accent_gradient: linear-gradient(90.13deg, #fa4bb4 0.11%, #ed32cf 98.12%);
}

body.omro-theme {
  --accent_color_light: #8457d5;
  --accent_gradient: linear-gradient(
    90.13deg,
    #818bec 0.11%,
    #8457d5 30.86%,
    #8546ce 53.85%,
    #b346ce 99.89%
  );
}

body.omro-new-theme {
  --accent_color_light: #cd0bf0;
  --accent_gradient: linear-gradient(95deg, #9641ff 0%, #c022eb 100%);
  color: #fff;
}

body.omro-new-theme .container {
  position: relative;
  background: radial-gradient(
    256.77% 160.51% at 25.95% 135.11%,
    rgba(19, 16, 71, 0) 0%,
    #131047 100%
  );
}

body.omro-new-theme .container:before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  padding: 1px;
  background: linear-gradient(
    197deg,
    rgba(45, 203, 243, 0.2) 0%,
    rgba(78, 105, 255, 0.5) 100%
  );
  border-radius: inherit;
  mask: conic-gradient(#000 0 0) content-box exclude, conic-gradient(#000 0 0);
}

body.omro-new-theme .looking-glass__form {
  color: var(--accent_color_light);
}

body.omro-new-theme .looking-glass__input {
  color: inherit;
}

body.omro-new-theme .looking__glass-form-results {
  color: #000;
}

.container {
  width: 100%;
  max-width: 1060px;
  height: fit-content;
  padding: 50px 70px;
  border-radius: 5px;
  box-shadow: 1px 1px 10px rgba(63, 19, 90, 0.1);
  background: #fff;
  transition: height 1.55s;
}
.container.opened {
  height: 800px;
}

.top-part__wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 37px;
}

.information__list {
  width: 550px;
  display: flex;
  flex-direction: column;
}

.information__item {
  display: flex;
  justify-content: space-between;
  margin-top: 25px;
}

.looking__glass-form-results {
  width: 100%;
  height: 400px;
  background: #fff;
  box-shadow: 1px 1px 10px rgba(63, 19, 90, 0.07);
  border-radius: 5px;
}

.information__title {
  font-weight: 800;
  font-size: 20px;
  line-height: 1.2;
  color: var(--accent_color_light);
}

.information__parameter-value {
  width: 345px;
  font-size: 20px;
}

.information__parameter-name {
  white-space: nowrap;
  font-weight: 800;
  font-size: 18px;
  line-height: 1.2;
}

.information__value-link {
  color: var(--accent_color_light);
}

.looking-glass__form {
  width: 293px;
}

.select-wrapper {
  position: relative;
  height: 58px;
  margin-top: 20px;
}

.select__dropdown {
  /* display: none; */
  position: absolute;
  top: 0;
  left: 10px;
  width: calc(100% - 20px);
  padding: 10px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
  background-color: #fff;
  box-shadow: 1px 1px 10px rgba(63, 19, 90, 0.1);
  outline: 1px solid var(--accent_color_light);
  pointer-events: initial;
}

.select__dropdown-wrapper {
  position: absolute;
  top: calc(100% - 5px);
  left: -10px;
  width: calc(100% + 20px);
  height: 0;
  z-index: 151;
  overflow: hidden;
  transition: height 0.15s;
  pointer-events: none;
}

.select__dropdown-wrapper.opened {
  height: 200px;
}

.select__dropdown-option {
  width: 100%;
  height: 40px;
  padding: 9px 20px;
  font-size: 20px;
}

.select__dropdown-option:hover {
  color: var(--accent_color_light);
  cursor: pointer;
}

.looking-glass__result-text {
  height: 100%;
  width: 100%;
  padding: 30px 10px 30px 50px;
  font-size: 18px;
  line-height: 22px;
  overflow-x: auto;
}

.looking-glass__result-text::-webkit-scrollbar-track {
  height: 10px;
  background-color: red;
}
.looking-glass__result-text::-webkit-scrollbar-thumb {
  background-color: green;
}

.looking-glass__input {
  width: 100%;
  height: 58px;
  background-color: #fff;
  box-shadow: 1px 1px 10px rgba(63, 19, 90, 0.1);
  border-radius: 5px;
  font-size: 18px;
  text-align: start;
  padding: 17px 15px;
  color: #392955;
  border: 0;
  outline: 0;

  &::placeholder {
    color: #b3a9c1;
  }
}

.looking-glass__input:focus {
  outline: 1px solid var(--accent_color_light);
}
.looking-glass__input.error {
  outline: 2px solid #ff2d53;
}

.form__input-warning {
  display: none;
  width: 100%;
  margin-top: 5px;
  color: #ff2d53;
  font-size: 16px;
}

.select__indicator {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 17px 15px;

  border-radius: 5px;
  background: #fff;
  box-shadow: 1px 1px 10px rgba(63, 19, 90, 0.07);
  font-size: 20px;
  cursor: pointer;
}

.fake_placeholder {
  font-size: 18px;
  color: #b3a9c1;
}

.select__indicator:hover {
  outline: 1px solid var(--accent_color_light);
}

.select__indicator.opened {
  outline: 1px solid var(--accent_color_light);
}
.select__indicator.opened > .select__indicator-icon {
  transform: rotateZ(135deg);
}

.select__indicator-icon {
  position: absolute;
  top: 20px;
  right: 20px;
  display: block;
  width: 12px;
  height: 12px;
  border-bottom: 2px solid var(--accent_color_light);
  border-left: 2px solid var(--accent_color_light);
  cursor: pointer;
  pointer-events: none;
  transform: rotateZ(-45deg);
  transition: transform 0.15s;
}

.looking__glass-form-select {
  margin-top: 20px;
  padding-top: 20px;
  width: 293px;
  height: 58px;
  background-color: #fff;
  box-shadow: 1px 1px 10px rgba(63, 19, 90, 0.1);
  border-radius: 5px;
  font-size: 20px;
  line-height: 24px;
  text-align: center;
  border: 0;
  outline: 0;
}

.looking-glass__btn {
  width: 100%;
  height: 58px;
  margin-top: 17px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 99px;
  font-weight: 800;
  font-size: 18px;
  background-color: #f9f2ff;
  box-shadow: 0px 4px 5px rgba(0, 0, 0, 0.15);
  cursor: pointer;
}

.looking-glass__btn:hover {
  background-image: var(--accent_gradient);
}
.looking-glass__btn:hover .btn-text {
  -webkit-text-fill-color: initial;
  color: #fff;
}

.btn-text {
  display: none;
  font-weight: 800;
  line-height: 1;
  background-image: var(--accent_gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.btn-text.shown {
  display: inline;
}

.backdrop {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 150;

  transition: opacity 0.15s;
  pointer-events: none;
  opacity: 0;
}
.backdrop.opened {
  pointer-events: initial;
  opacity: 1;
}

/* dark theme */
body.dark-theme {
  color: #fff;

  .container {
    position: relative;
    border-radius: 24px;
    background: radial-gradient(125% 101.87% at 56.01% 101.87%, #291137 0%, #2c173d 100%);
    z-index: 0;

    &::before {
      content: '';
      position: absolute;
      z-index: -1;
      inset: 0;
      padding: 1px;
      background: linear-gradient(180.57deg, #ac3add 0.49%, rgba(199, 53, 209, 0.39) 106.54%);
      border-radius: inherit;
      mask: conic-gradient(#000 0 0) content-box exclude, conic-gradient(#000 0 0);
    }
  }

  .looking-glass__input {
    background-color: #3e3848;
    color: #fff;
  }

  .select__indicator {
    background-color: #3e3848;
    color: #fff;
  }

  .select__dropdown {
    background-color: #3e3848;
  }

  .looking__glass-form-results {
    background-color: #3e3848;
  }

  .looking-glass__btn {
    background-color: #3d3649;
  }
}

/* ADAPTIVE */
@media screen and (max-width: 1024px) {
  .container {
    padding: 35px 40px;
  }
  .looking-glass__form {
    width: 240px;
  }

  .information__parameter-value {
    width: 270px;
  }
  .information__list {
    width: 450px;
  }
  .information__item {
    margin-top: 20px;
  }
  .information__title {
    font-size: 18px;
  }
  .information__parameter-name {
    font-size: 16px;
  }
  .information__parameter-value {
    font-size: 16px;
  }
  .looking-glass__input {
    font-size: 18px;
  }
  .select__dropdown-option {
    font-size: 18px;
  }
  .select__indicator {
    font-size: 18px;
  }
  .form__input-warning {
    font-size: 14px;
  }
}

@media screen and (max-width: 780px) {
  .top-part__wrapper {
    flex-direction: column;
  }
  .looking-glass__form {
    margin-top: 35px;
  }
  .looking-glass__input {
    height: 55px;
  }
  .select-wrapper {
    height: 55px;
  }
  .looking-glass__btn {
    height: 55px;
  }
}

@media screen and (max-width: 550px) {
  .container {
    padding: 20px 10px;
  }
  .information__list {
    width: auto;
    text-align: center;
  }
  .information__title {
    text-align: center;
  }
  .information__item {
    flex-direction: column;
  }
  .information__parameter-value {
    margin-top: 6px;
    width: auto;
  }
  .looking-glass__form {
    margin-top: 25px;
    width: 100%;
  }
  .select-wrapper {
    margin-top: 15px;
  }
  .looking-glass__btn {
    margin-top: 15px;
  }
}
