:root {
    --header-height: 60px;
    --color-logo: #ffffff;
    --color-background: #ffffff;
    --color-text: #24292f;
    --color-primary: #0366d6;
    --color-secondary: #6a737d;
    --color-border: #d0d7de;
    --color-header-bg: #A00;
    --color-header-text: #ffffff;
    --color-footer-bg: #f6f8fa;
    --color-list-meta: #57606a;
    --color-h1: #333;
    --color-border: #ccc;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

body {
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--color-secondary) var(--color-background);
}

.content {
  padding: 0 20px;
}

/* Стили для WebKit браузеров (Chrome, Safari) */
body::-webkit-scrollbar {
  width: 8px;
}

body::-webkit-scrollbar-track {
  background: var(--color-background);
}

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

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--color-background);
    color: var(--color-text);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif;
    line-height: 1.5; 
    /* font-size: 16px; */
    margin: 0;
    padding: 0;
}

#back-to-top {
  position: fixed; /* Фиксированное положение */
  bottom: 20px; /* Отступ от нижнего края */
  right: 20px; /* Отступ от правого края */
  background-color: #007bff; /* Цвет фона кнопки */
  color: white; /* Цвет текста/иконки */
  border: none; /* Убираем рамку */
  border-radius: 50%; /* Делаем кнопку круглой */
  width: 50px; /* Ширина кнопки */
  height: 50px; /* Высота кнопки */
  display: none; /* Скрываем кнопку по умолчанию */
  align-items: center; /* Центрируем содержимое по вертикали */
  justify-content: center; /* Центрируем содержимое по горизонтали */
  cursor: pointer; /* Указываем, что это кнопка */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3); /* Тень для кнопки */
  transition: background-color 0.3s; /* Плавный переход цвета фона */
  z-index: 1001;
}

#back-to-top:hover {
  background-color: #0056b3; /* Цвет фона при наведении */
}


h1 {
    text-align: center;
    color: var(--color-h1);
}

p {
    text-align: center;
    margin-top: 20px;
}

a {
    font-weight: 500;
    color: var(--color-primary);
    text-decoration: inherit;
}

a:hover {
    color: var(--color-secondary);
    text-decoration: none;
}

input, select, button {
  -webkit-appearance: none;
  -moz-appearance: none;
}

input, select {
  margin-bottom: 10px;
  padding: 8px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
}

input {
  font-size: 16px;
}

.alert {
  position: absolute;
  bottom: 100px;
  left: 10px;
  background-color: #ffcc00; /* Цвет фона */
  color: #333; /* Цвет текста */
  padding: 20px;
  border-radius: 10px; /* Плавные углы */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Тень */
  max-width: 280px;
  margin: 20px auto;
  font-size: 14px;
}

.alert strong {
  font-weight: bold;
}

.alert__close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #333;
}

.search-container {
  display: flex;
  flex-direction: row;

  gap: 10px;
  height: 50px;
}

.search-input {
  margin: 0;
  width: 400px;
}

.search-button, .copy-button {
  display: flex;
  align-items: center;
  background-color: var(--color-background);
  padding: 5px 10px;
  cursor: pointer;
  border: 1px solid var(--color-border);
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.search-button:hover, .copy-button.hover {
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.search-button:active, .copy-button:active {
  transform: scale(0.95);
  opacity: 0.8;
}

.search-button:disabled, .copy-button:disabled {
  background-color: var(--color-secondary);
  cursor: not-allowed;
}

.search-button:not(:hover), .copy-button:not(:hover) {
  transform: scale(1);
}

.search-button__title {
  font-weight: bold;
  text-transform: uppercase;
  user-select: none;
}

.search-button__icon {
  margin-right: 5px;
}

.search-button__icon::before {
  content: "🔍";
}

.copy-button__icon::before {
  content: "📋";
}

#search-results {
  display: flex;
  flex-direction: column;
  list-style: none;
  padding: 20px;
}

#search-results > li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

#search-results > li > p {
  text-align: start;
  margin: 10px;
}

.app-header {
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    background: var(--color-header-bg);
    color: var(--color-header-text);
    padding: 4px 24px;
    align-items: center;
    height: var(--header-height);
    z-index: 1000;
}
    
/* .app-header--fixed-top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
} */

.app-header--hidden {
  transform: translateY(-100%);
  transition: transform 0.3s ease-in-out;
}

@font-face {
  font-family: 'Squada One';
  src: url('/static/fonts/SquadaOne-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

.logo {
    position: relative;
    font-family: 'Squada One', sans-serif;
    font-size: 32px;
    font-weight: 600;
    color: var(--color-header-text);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease; /* Плавный переход */
}

.logo:hover {
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.8); /* Яркая тень */
  color: #fff; /* Цвет текста при наведении */
}

.logo-link {
  display: inline-block; /* Позволяет применять стили к ссылке */
  text-decoration: none; /* Убирает подчеркивание */
}

/* Отключаем эффект при наведении на ссылку */
.logo-link:hover .logo {
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.8); /* Яркая тень */
  color: #fff; /* Цвет текста при наведении */
}

.nav {
    margin-left: 24px;
}
  
.nav__icon {
    display: none;
    font-style: 24px;
    cursor: pointer;
}
    
.nav__items {
    display: flex;
}

.nav__item {
    list-style: none;
}

.nav--link {
    margin-right: 16px;
    color: var(--color-header-text);
    text-transform: uppercase;
    text-decoration: none;
}
    
.nav--link:hover {
    color: rgba(255, 255, 255, 0.7);
}
        
.nav--link:hover, .nav--link:active {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.app-main {
    font-size: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    margin: 0 auto;
    width: 100%;
    max-width: 1000px;
    margin-top: var(--header-height);
    padding: 20px;
}

footer {
    position: relative;
    display: flex;
    flex-shrink: 0;
    flex-direction: row;
    justify-content: center;
    gap: 10px;
    flex-shrink: 0;
    text-align: center;
    background-color: var(--color-footer-bg);
    border-top: 1px solid var(--color-border);
    z-index: 2;
}



@media screen and (max-width: 1024px) {   
    .app-container {
      width: 100%;
    }
    
    .app-header {
      height: var(--header-height);
    }
    
    .app-main {
      padding: 80px 0 0 0;
    }
    
    .logo {
      font-size: 16px;
    }
  }
  
  @media screen and (max-width: 768px) {
  
    h1 {
      font-size: 24px;
    }
    
    .app-container {
      width: 100%;
    }
    
    .app-header {
      justify-content: space-between;
    }
    
    .app-main {
      padding: 20px 0 0 0;
    }
    
    .logo {
      font-size: 24px;
    }
    
    .nav {
      display: none;
      flex-direction: column;
      position: absolute;
      top: var(--header-height);
      left: 0;
      width: 100%;
      background-color: var(--color-header-bg);
      padding: 20px 0;
      margin: 0;
    }
    
    .nav.active {
      display: flex;
    }
    
    .nav__icon {
      display: block;
      font-size: 24px;
    }
    
    .nav__items {
      flex-direction: column;
      align-items: center;
      margin: 0;
      padding: 0;
    }
    
    .nav__item {
      margin: 10px 0;
    }

    .search-input {
      width: 300px;
    }
  }