/* Псевдоэлемент для создания эффекта плавного появления */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000000;  /* Фон, который исчезнет при загрузке */
    z-index: 9999;  /* Слой выше всего остального контента */
    opacity: 1;
    transition: opacity 1.5s ease;  /* Плавная анимация исчезновения */
}

/* Когда сайт загружен, псевдоэлемент плавно исчезает */
body.loaded::before {
    opacity: 0;
    pointer-events: none;  /* Отключаем взаимодействие, чтобы не блокировать контент */
}

/* Центрирование по вертикали и горизонтали */
html, body {
    min-height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;   /* Размещаем элементы в колонку */
    justify-content: center;  /* Вертикальное центрирование */
    align-items: center;      /* Горизонтальное центрирование */
    text-align: center;
    padding: 0;
    overflow: hidden;
    transition: background-color 0.5s, color 0.5s; /* Плавный переход между темами */
}
.center-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh; /* всё по центру экрана */
  width: 100vw;
}

body.light-theme {
    background-color: #f4f4f4;
    color: #212121;
}

/* Тёмная тема */
body.dark-theme {
    background-color: #000000;
    color: #f4f4f4;
}

body.light-theme ::selection {
  background: #000;    /* чёрный фон */
  color: #fff;         /* белый текст */
}

body.dark-theme ::selection {
  background: #fff;    /* белый фон */
  color: #000;         /* чёрный текст */
}

body.light-theme .gray-footer-button:hover {
    border-color: #000; /* черная обводка на светлой теме */
}

body.dark-theme .gray-footer-button:hover {
    border-color: #fff; /* белая обводка на темной теме */
}
 .typewriter{
/*     border-right: 2px solid; */
    white-space: normal;
    overflow: hidden;
    font-size: 5em;
    font-family: "Nunito Sans", sans-serif;
    cursor: pointer; /* Добавляем указатель, чтобы показать интерактивность */
    color: inherit;
}


#type-text, .cursor {
  display: inline;
}
.typewriter {
  text-align: center;
  font-size: 5em;
  font-family: "Nunito Sans", sans-serif;
  color: inherit;
  /* убери border-right! */
}
.cursor {
  width: 2px;
  height: 1em;
  background: currentColor;
  animation: blink 1s steps(1) infinite;
  /* не нужен vertical-align и margin-left, лучше padding-left */
  padding-left: 2px;
}
@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}


/* Отступы между заголовком и текстом */
h1 {
    margin-bottom: 20px;  /* Отступ снизу у заголовка */
    color: #fff;
}

 .button-container {
            display: flex;
            gap: 5px;
            position:fixed;
            bottom:30px;
            right: 60px;
            scale: 130%;
            

        }

        .gray-footer-button {
           
            border-radius: 9999px;
            font-family: sans-serif;
            font-size: 14px;
           
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            cursor: pointer;
            transition: transform 0.2s ease, opacity 0.2s ease;
            text-decoration: none;
            user-select: none;
            transition:
              background-color 0.5s,
              color 0.5s,
              border-color 0.5s,
              transform 0.2s,
              opacity 0.2s;
        }

        .gray-footer-button:hover {
            transform: scale(0.98);
            opacity: 0.9;
        }

        body.dark-theme .gray-footer-button svg {
            width: 16px;
            height: 16px;
            fill: white;
        }

        body.light-theme .gray-footer-button svg {
            fill: black;
             width: 16px;
            height: 16px;
        }
        .gray-footer-button svg {
            transition: fill 0.5s;
        }

        body.dark-theme .gray-footer-button {
               background: #0c0c0c;
            border: 2px solid rgba(41, 40, 40, 0.2);
             color: white;
        }

        body.light-theme .gray-footer-button{
          background:#ececec ;
           border: 2px solid rgba(146, 146, 146, 0.2);
           color:black;  
        }

        .with-text {
            padding: 6px 14px;
        }

        .icon-only {
            width: 42px;
            height: 42px;
            padding: 0;
            border-radius: 50%;
        }

        .gray-footer-button p {
            margin: 0;
        }

/* Новый класс для зачёркивания текста */
.strikethrough {
    text-decoration: line-through;
}

@media screen and (max-width: 768px) {
  .button-container {
    left: 0;
    right: 0;
    bottom: 30px;
    width: 100vw;
    justify-content: center;
    transform: none;
    position: fixed;
    z-index: 10000;
  }
  .typewriter {
    font-size: 3em;
    max-width: 98vw;
/*     max-height: 15vh; */
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  html, body {
    min-height: 100dvh;
    overflow-x: hidden;
  }
}
