@font-face {
  font-family: "Stolzl";
  src: url("../assets/fonts/stolzl_regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Stolzl";
  src: url("../assets/fonts/stolzl_medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Stolzl";
  src: url("../assets/fonts/stolzl_bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

::-webkit-scrollbar {
  width: 3px;
}

::-webkit-scrollbar-thumb {
  background-color: var(--gray-3);
  border-radius: 4px;
}

@supports (-moz-appearance:none) {
  * {
    scrollbar-width: thin;
    scrollbar-color: var(--gray-3) transparent;
  }
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

html {
  box-sizing: border-box;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-width: 320px;
  margin: 0;
  font-family: "Stolzl", sans-serif;
  font-weight: 400;
  font-size: var(--Paragraph-2);
  line-height: 140%;
  letter-spacing: -0.14px;
  color: var(--paragraph);
  background-color: var(--background);
  background-image: url("../assets/images/noise-effect-bg.webp");
  background-size: 50px 50px;
}

body.no-scroll {
  overflow: hidden;
}

body.show-overlay {
  overflow: hidden;

  .overlay {
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10;
    background-color: var(--overlay);
  }
}

main {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 400;
  line-height: 120%;
}

h1 {
  font-size: var(--H1);
  letter-spacing: -0.56px;
  color: var(--off-white);
}

h2 {
  font-size: var(--H2);
  letter-spacing: -0.48px;
  color: var(--off-white);
}

h3 {
  font-size: var(--H3);
  letter-spacing: -0.36px;
}

p {
  margin: 0;
}

a,
button,
input,
textarea,
select {
  padding: 0;
  font-family: inherit;
  font-weight: inherit;
  font-size: inherit;
  line-height: 140%;
  color: inherit;
  background-color: transparent;
  border: none;
  outline: none;
  text-decoration: none;
}

button {
  cursor: pointer;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
}

textarea {
  resize: vertical;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

.logo {
  display: block;
  width: max-content;

  svg {
    display: block;
  }
}

.logo__text {
  fill: var(--off-white);
}

.logo__separator {
  fill: var(--logo);
}

.hover-corner {
  display: none;
  position: absolute;

  path[stroke] {
    stroke: var(--hover-text);
  }
}

.hover-corner--top-left {
  top: 0;
  left: 0;
}

.hover-corner--top-right {
  top: 0;
  right: 0;
}

.hover-corner--bottom-left {
  bottom: 0;
  left: 0;
}

.hover-corner--bottom-right {
  bottom: 0;
  right: 0;
}

.icon-verified__base {
  fill: var(--green);
}

.icon-verified__tick {
  stroke: var(--base-main);
}

/* Spinner animation */
.spinner {
  position: relative;
  width: 50px;
  height: 50px;
}

.spinner::before {
  content: "";
  position: absolute;
  width: 48px;
  height: 48px;
  top: 0;
  left: 0;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: #D2BBE2;
  border-bottom-color: #6941C6;
  animation: spin 1.5s linear infinite;
}

.spinner::after {
  content: "";
  position: absolute;
  width: 32px;
  height: 32px;
  top: 9px;
  left: 9px;
  border-radius: 50%;
  border: 3px solid transparent;
  border-left-color: #9E77ED;
  border-right-color: #7F56D9;
  animation: spin 1s linear infinite reverse;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.overlay {
  display: none;
}

/* Стили для кнопок копирования */
.copy-wrapper {
  position: relative;
  display: inline-block;
}

.copy-btn-inline {
  position: relative;
  background-color: transparent; /* Прозрачный фон по умолчанию */
  color: #555555; /* Тёмно-серый цвет текста */
  border: none;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 11px;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
  margin-left: 8px;
  vertical-align: middle;
  display: flex;
  align-items: center;
  justify-content: center;
}

.copy-btn-inline:hover {
  background-color: #5D4B8C; /* Фиолетовый фон при наведении */
  color: white; /* Белый текст при наведении */
}

.copy-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  background-color: transparent; /* Прозрачный фон по умолчанию */
  color: #555555; /* Тёмно-серый цвет текста */
  border: none;
  border-radius: 4px;
  padding: 6px 10px;
  font-size: 12px;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
  text-align: right;
  width: auto;
  float: right;
  clear: both;
}

.copy-btn:hover {
  background-color: #5D4B8C; /* Фиолетовый фон при наведении */
  color: white; /* Белый текст при наведении */
}

/* Стиль для состояния "copied" */
.copy-btn-inline.copied,
.copy-btn.copied {
  background-color: #4A8C4B; /* Зеленый цвет для подтверждения */
  color: white; /* Белый цвет текста для состояния copied */
}

.overlay-content {
  position: relative;
  width: 100%;
  overflow: hidden; /* Для правильного отображения плавающих элементов */
}

/* Адаптивные стили для мобильных устройств */
@media (max-width: 768px) {
  .copy-btn-inline {
    font-size: 10px;
    padding: 3px 6px;
    margin-left: 4px;
  }
  
  .copy-btn {
    font-size: 11px;
    padding: 4px 8px;
  }
}
