body {
    /* Стили для всего тела сайта */
    font-family: Arial, sans-serif; /* Шрифт. Если нет Arial, возьмёт любой без засечек */
    background: rgb(0, 0, 0);
    color: #ffffff; /* Цвет основного текста (тёмно-серый) */
    padding: 20px; /* Отступы от краёв окна */
}



.colorGrey{
  color: rgb(158, 157, 157);
  margin: 0;
  padding: 0;
}


.name{
    color: rgb(3, 182, 107);
}


.container {
  display: flex; /* Включаем flexbox */
  justify-content: space-between; /* Равномерное распределение */
  align-items: flex-start; /* Выравнивание по верху */
  gap: 20px; /* Расстояние между колонками */
  max-width: 1800px; /* Максимальная ширина контейнера */
  margin: 0 auto; /* Центрирование контейнера */
  padding: 20px;
}

.LeftSide{
    margin-left: auto;
    text-align: left;
    flex: 1;
}
.Center {
  max-width: 1400px;
  text-align: center; 
  color: rgb(217, 255, 255);
  font-size: 20px;
  opacity: 0;
  padding: 20px;
  animation-delay: 0.5s;
  animation: fadeIn 1.5s ease forwards; /* Анимация */
}

.RightSide{
    margin-right: auto;
    text-align: right;
    flex: 1;

}


.img {
    border-radius: 15px;    
    width: 300px;
    height: 300px;
}

.ImgCenter {
    width: 300px;
    height: 300px;
    margin: 0 0 0 0;
}

.BestTextRed{
    color: rgb(3, 111, 161);
}

.BestTextRed h1{
    font-size: 140px;
}

.Text {
    max-width: 900px; /* Сужаем текст */
    margin: 0 auto; /* Центрируем */
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(0, 163, 251, 0.3);
    text-align: justify; /* Красивое выравнивание */
    line-height: 1.6; /* Межстрочный интервал */
    font-size: 30px; /* Увеличил размер текста */
}

/* Стили для блока "Заслуги" */
.Achievements {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  margin: 30px auto;
  max-width: 1200px;
  padding: 25px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  border: 1px solid rgba(3, 182, 107, 0.4);
  animation: fadeIn 1s ease 0.5s both;
}

.AchievementText {
  flex: 1;
  text-align: left;
  padding-right: 20px;
}

.AchievementText h3 {
  color: #03b66b;
  font-size: 32px;
  margin-bottom: 20px;
  text-align: center;
}

.AchievementText ul {
  list-style-type: none;
  padding-left: 0;
}

.AchievementText li {
  margin-bottom: 15px;
  padding-left: 30px;
  position: relative;
  font-size: 22px;
  line-height: 1.4;
  color: #d9ffff;
}

.AchievementText li:before {
  content: "🏆";
  position: absolute;
  left: 0;
  top: 0;
}

.AchievementImage {
  flex: 0 0 350px;
  text-align: center;
}

.AchievementImage img {
  width: 100%;
  height: auto;
  border-radius: 15px;
  border: 3px solid #03b66b;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease;
}

.AchievementImage img:hover {
  transform: scale(1.03);
}

.img-caption {
  margin-top: 15px;
  font-style: italic;
  color: #03b66b;
  font-size: 18px;
  line-height: 1.4;
}

/* Стили для блока "Цитаты" */
.quote {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  margin: 30px auto;
  max-width: 1200px;
  padding: 25px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  border: 1px solid rgba(182, 3, 122, 0.4);
  animation: fadeIn 1s ease 0.5s both;
}

.quoteText {
  flex: 1;
  text-align: left;
  padding-right: 20px;
}

.quoteText li {
  margin-bottom: 15px;
  padding-left: 30px;
  position: relative;
  font-size: 22px;
  line-height: 1.4;
  color: #d9ffff;
}

.quoteText li:before {
  content: "⚔️";
  position: absolute;
  left: 0;
  top: 0;
}

/* Стили для блока "Биография" */
.Biography {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  margin: 30px auto;
  max-width: 1200px;
  padding: 25px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  border: 1px solid rgba(3, 182, 27, 0.349);
  animation: fadeIn 1s ease 0.5s both;
} 

.BiographyText {
  flex: 1;
  text-align: left;
  padding-right: 20px;
}



.theme{
  color:black;
}


.ImpotanText {
  color: whitesmoke;
  font-size: 30px;
}



/* Стили для игры */
.game-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 20px;
    border: 3px solid #ff6b00;
    box-shadow: 0 0 40px rgba(255, 107, 0, 0.4);
    animation: fadeIn 1s ease;
}

.game-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 107, 0, 0.1);
    border-radius: 15px;
    font-size: 24px;
    font-weight: bold;
}

.stat {
    text-align: center;
    color: #ff6b00;
}

.stat-label {
    display: block;
    font-size: 18px;
    color: #d9ffff;
    margin-bottom: 5px;
}

.game-area {
    position: relative;
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid #03b66b;
    margin-bottom: 25px;
}

.character {
    position: absolute;
    width: 80px;
    height: 80px;
    background: rgba(3, 182, 107, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    color: white;
    cursor: pointer;
    user-select: none;
    transition: transform 0.1s;
    z-index: 10;
    box-shadow: 0 5px 20px rgba(3, 182, 107, 0.5);
    border: 3px solid white;
}

.slipper {
    position: absolute;
    width: 60px;
    height: 40px;
    background: #8B4513;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    user-select: none;
    z-index: 5;
    transform: rotate(45deg);
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    border: 2px solid #A0522D;
}

.babushka {
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 20px;
    color: #ff6b00;
    font-weight: bold;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

.game-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.game-btn {
    padding: 15px 30px;
    font-size: 20px;
    font-weight: bold;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#startBtn {
    background: linear-gradient(45deg, #03b66b, #02a85a);
    color: white;
}

#startBtn:hover {
    background: linear-gradient(45deg, #02a85a, #01974f);
    transform: scale(1.05);
}

#pauseBtn {
    background: linear-gradient(45deg, #ff6b00, #ff5500);
    color: white;
}

#pauseBtn:hover {
    background: linear-gradient(45deg, #ff5500, #ff4400);
    transform: scale(1.05);
}

#resetBtn {
    background: linear-gradient(45deg, #3742fa, #2f34d1);
    color: white;
}

#resetBtn:hover {
    background: linear-gradient(45deg, #2f34d1, #272bb8);
    transform: scale(1.05);
}

.game-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.game-instructions {
    background: rgba(255, 107, 0, 0.1);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 25px;
    border-left: 4px solid #ff6b00;
}

.game-instructions h3 {
    color: #ff6b00;
    margin-top: 0;
}

.game-instructions p {
    margin: 8px 0;
    font-size: 18px;
    color: #d9ffff;
}

.achievements {
    background: rgba(3, 182, 107, 0.1);
    padding: 20px;
    border-radius: 15px;
    border-left: 4px solid #03b66b;
}

.achievements h3 {
    color: #03b66b;
    margin-top: 0;
}

.achievement {
    padding: 12px 20px;
    margin: 8px 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    font-size: 18px;
    color: #d9ffff;
    transition: all 0.3s ease;
    opacity: 0.5;
}

.achievement.unlocked {
    background: rgba(3, 182, 107, 0.3);
    opacity: 1;
    transform: translateX(10px);
    box-shadow: 0 5px 15px rgba(3, 182, 107, 0.3);
}




/* Галерея */
.gallery-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
    height: 100%;
}

.gallery-img {
    width: 300px;
    height: 300px;
    border-radius: 15px;
    object-fit: cover;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.gallery-img:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 25px rgba(3, 182, 107, 0.5);
    border: 2px solid #03b66b;
}


/* Кликер евреева */ 

.ClickerEvreeva {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 20px;
    padding: 30px;
    margin: 30px 0;
    border: 3px solid #ff4757;
    box-shadow: 0 10px 30px rgba(255, 71, 87, 0.3);
}

.ClickerStats {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    border: 2px solid #ffa502;
}

.ClickerGame-area{
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    margin-bottom: 30px;
}

.Upgrade-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.stat-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.ClickerCharacter {
    display: flex;
    justify-content: center;
    align-items: center;
}



.ClickerUpgrateText{
    font-size: 100px;
    color: #11b864;
}

.ClickerUpgrade{
    font: 30px;
}

.upgrades-box {
  max-height: 400px; /* Фиксированная высота */
  overflow-y: auto; /* Вертикальная прокрутка */
  margin-top: 10px;
  padding-right: 5px;
}

/* Стилизация скроллбара */
.upgrades-box::-webkit-scrollbar {
  width: 8px;
}

.upgrades-box::-webkit-scrollbar-track {
  background: #333;
  border-radius: 4px;
}

.upgrades-box::-webkit-scrollbar-thumb {
  background: #666;
  border-radius: 4px;
}

.ClickerUpgrade {
    padding: 12px 15px;
    margin-bottom: 10px;
    background: rgba(68, 68, 68, 0.8);
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 22px;
    color: #d9ffff;
    transition: all 0.3s ease;
    border: 1px solid rgba(3, 182, 107, 0.3);
}

.ClickerUpgrade:hover {
    background: rgba(85, 85, 85, 0.9);
    border-color: rgba(3, 182, 107, 0.6);
}

.ClickerUpgrade .colorGrey {
    margin: 0 10px;
    flex-grow: 1; /* Позволяет элементу занять доступное пространство */
}

/* Улучшаем внешний вид контейнера улучшений */
.Upgrade-contener {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 15px;
    padding: 20px;
    border: 2px solid #ffa502;
}
.character-card {
    cursor: pointer;
    transition: transform 0.1s;
    user-select: none;
}

.character-card:active {
    transform: scale(0.95);
}

.character-card:hover {
    transform: scale(1.02);
}
/* Стили для кнопки улучшения в кликере */

.ClickerBuyButton {
    background: linear-gradient(45deg, #03b66b, #02a85a);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    white-space: nowrap;
    margin-left: 15px;
    transition: all 0.3s ease;
    min-width: 100px;
    text-align: center;
}


.ClickerBuyButton:hover {
    background: linear-gradient(45deg, #02a85a, #01974f);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(3, 182, 107, 0.4);
}

.ClickerBuyButton:active {
    transform: scale(0.95);
}


.ClickerBuyButton.not-enough {
    background-color: #f44336;
    animation: shake 0.5s;
}

.ClickerBuyButton:disabled {
    background: #666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.TestEvreev {
    background: rgba(26, 26, 26, 0.8); /* Полупрозрачный темный фон */
    padding: 60px 20px;               /* Больше отступов сверху и снизу */
    border-radius: 15px;
    border: 2px solid #ff4500;        /* Оранжево-красная рамка под стать игре выше */
    text-align: center;
    color: white;
    margin: 40px auto;
    max-width: 900px;                 /* Растягиваем блок пошире */
    box-shadow: 0 0 20px rgba(255, 69, 0, 0.3); /* Легкое свечение */
}

#question-text {
    font-size: 2.5em;                 /* Делаем шрифт крупным */
    font-weight: bold;
    margin-bottom: 30px;
    font-family: 'Arial Black', sans-serif;
    margin: 20;
}


#options {
    display: flex;          /* Включаем гибкую сетку */
    flex-direction: column; /* Выстраиваем кнопки в столбик */
    align-items: center;    /* Центрируем их по горизонтали */
    gap: 15px;              /* ВОТ ОН - тот самый отступ между кнопками */
    margin-top: 30px;       /* Отступ от вопроса до кнопок */
}


.test-btn {
    background-color: #ff0000;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1em;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    width: 80%;             /* Делаем кнопки одинаковой ширины */
    max-width: 500px;       /* Но не шире 500px, чтобы не были на весь экран */
    transition: 0.3s;
    border-radius: 5px;     /* Немного скруглим углы для стиля */
}

.test-btn:hover {
    background-color: #ffffff;
    color: #ff0000;
    transform: scale(1.02); /* Легкий эффект при наведении */
}

#percent {
    font-size: 2em;
    color: #ff0000;
}


@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Анимация появления картинок */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.8s ease forwards;
}


/* Эффект попадания тапка */
@keyframes hit {
    0% { transform: scale(1) rotate(45deg); }
    50% { transform: scale(1.5) rotate(45deg); }
    100% { transform: scale(1) rotate(45deg); }
}

@keyframes characterHit {
    0% { transform: scale(1); }
    50% { transform: scale(0.8); background: #ff4757; }
    100% { transform: scale(1); }
}

@keyframes newSlipper {
    0% { transform: translateY(-50px) rotate(45deg); opacity: 0; }
    100% { transform: translateY(0) rotate(45deg); opacity: 1; }
}

/* Адаптивность */
@media (max-width: 768px) {
    .game-stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .game-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .game-btn {
        width: 80%;
    }
    
    .game-area {
        height: 300px;
    }
}


/* Адаптивность для мобильных устройств */
@media (max-width: 1100px) {
  .Achievements {
    flex-direction: column;
    gap: 30px;
  }
  
  .AchievementText {
    padding-right: 0;
  }
  
  .AchievementImage {
    flex: 0 0 auto;
    width: 80%;
    margin: 0 auto;
  }
  
  .AchievementText h3 {
    font-size: 28px;
  }
  
  .AchievementText li {
    font-size: 20px;
  }
}


@keyframes fadeIn { /* анимация появление текста */
    from {
        opacity: 0; /* Начало: прозрачный */
        transform: translateY(30px); /* Слегка смещён вниз */
    }
    to {
        opacity: 1; /* Конец: полностью видимый */
        transform: translateY(0); /* На своём месте */
    }
}
