/* Импортируем шрифт Libre Baskerville с Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Rubik+Wet+Paint&display=swap');

/* Сброс стандартных стилей */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Тело страницы */
body {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    font-family: "Rubik Wet Paint", system-ui;
    font-weight: 600;
    color: #ffffffa2;
    

    /* Фон */
    background-image: 
        radial-gradient(circle at center, rgba(0,0,0,0) 35%, rgba(0,0,0,0.95) 100%),
        url('./img/Gemini_Generated_Image_16482e16482e1648 (1).png');
    background-size: cover;
 
    position: relative;

    /* Пульсация / дыхание */
    animation: breath 2s infinite alternate, bg-zoom 12s infinite;
}

/* Пульсация / дыхание */
@keyframes breath {
  0%   { filter: brightness(100%) contrast(100%); }
  50%  { filter: brightness(115%) contrast(120%); }
  100% { filter: brightness(100%) contrast(100%); }
}
@keyframes bg-zoom {
    0% { background-size: 100% 100%; }
    25% { background-size: 105% 105%; }
    50% { background-size: 110% 110%; }
    75% { background-size: 105% 105%; }
    100% { background-size: 100% 100%; }
}
/* Glow / подсветка глаз */
body::after {
  content: "";
  position: absolute;
  top:0; left:0;
  width:100%; height:100%;
  pointer-events: none;

  background: radial-gradient(circle at 50% 35%, rgba(255,0,0,0.3), transparent 60%);
  animation: glow 3s infinite alternate;
}

@keyframes glow {
  0%   { transform: scale(1) translate(0,0); opacity: 0.2; }
  50%  { transform: scale(1.2) translate(20px,10px); opacity: 0.5; }
  100% { transform: scale(1) translate(0,0); opacity: 0.2; }
}

/* Основной контейнер на весь экран */
.wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column; /* все элементы вниз */
    justify-content: center; /* центрирование по вертикали */
    align-items: center;     /* центрирование по горизонтали */
    position: relative;
}

/* Блок презентации с фоном и затемнением */
.presentation {
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('./img/bg.jpg') no-repeat center center;
    background-size: cover;
    display: flex;
    flex-direction: column; /* вертикально */
    justify-content: center;
    align-items: center;
}

/* Заголовок */
h2 {
    position: absolute;
    top: 10px;
    right: 10px;      /* не отрицательное значение */
    max-width: 90%;    /* ограничение по ширине */
    font-size: 30px;
    color: #ffffff39;
    background: linear-gradient(90deg, #ff0101 0%, #ffffff 25%, #ff0000 50%, #ffffff 75%, #ff0000 100%);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textGlow 10s linear infinite;
}



/* Селекты и кнопки */
select, button {
    position: relative;
        /* фиксированная ширина */


width: 200px;   /* фиксированная ширина */
    max-width: 90%;  /* не выйдут за экран */
    padding: 20px;
    font-size: 14px;

    border-radius: 25px;
  
    font-weight: 300;
          font-family: "Rubik Wet Paint", system-ui;
    border: none;
transition: color 500ms ease, transform 500ms ease;
    display: block;       /* чтобы точно занимали одну строку */
    margin: 3px 0;       /* вертикальные отступы между элементами */
    cursor: pointer;
    top:3px;
    transform: scale(1.1);
    color: rgb(177, 175, 175);
right: -10px;

box-shadow:
        inset 0 0 15px rgba(0,0,0,0.9),
        0 0 12px rgba(0,0,0,0.6);
        
        animation: buttonGlow 5s ease infinite;
}
@keyframes buttonGlow {
    0% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
    100% { background-position: 0% 0%; }
}

/* Фон для селектов */
select {
    
    border: none;
    cursor: pointer;
    color: #b0b0b0e9;
    
    background: 
        linear-gradient(270deg, rgba(255, 243, 243, 0), rgba(0,0,0,0.5), rgba(255, 255, 255, 0.142)),
        url('img/Gemini_Generated_Image_crtrdncrtrdncrtr.png') no-repeat center center;
    background-size: 220% 220%;
    background-blend-mode: darken; /* делает фон темнее */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: darkFlow 6s linear infinite; /* анимация «живой тьмы» */
    
    
}

/* Анимация тёмного слоя */
@keyframes darkFlow {
    0% {
        background-position: 0% 0%, center center;
    }
    50% {
        background-position: 70% 70%, center center;
    }
    100% {
        background-position: 0% 0%, center center;
    }
}

/* При наведении эффект «подпрыгивания» */
select:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0);
}
/* Кнопка */
button {
    
   background-color: rgba(0, 0, 0, 0.026);
      color: #000000b9;
    text-align: center;

    /* Стеклянный эффект */
    background: linear-gradient(
        135deg,
     
    );
    background-size: 50px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    border-radius: 20px;


    /* Мягкая тень */
  box-shadow:
        inset 0 0 15px rgba(0,0,0,0.9),
        0 0 12px rgba(0,0,0,0.6);

    text-shadow: 0 0 18px rgba(0, 0, 0, 0.4);

    cursor: pointer;

    transition:
        transform 0.4s ease,
        box-shadow 0.4s ease,
        background 0.4s ease;
    font-weight: 600;
    cursor: pointer;
        background: linear-gradient(90deg, #000000a3 0%, #ffffff 25%, #000000a3 50%, #ffffff 75%, #000000a3 100%);
    background-size: 300% 100%; /* расширяем, чтобы движение было плавным */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

}

/* Эффект при наведении на кнопку */
button:hover {

    transform: scale(1.2);
}

/* Блок для результата */
.result {

     padding: 18px 32px;
    width: 20%;           /* ширина блока */
    font-size: 30px;
    font-weight: 600;
    letter-spacing: 1px;
    text-align: center;    /* центрируем текст внутри блока */
    cursor: pointer;
    margin: 0px auto 0 auto; /* 100px сверху, автоматический отступ слева и справа */
      
    /* Градиент текста с повторениями для бесконечного эффекта */
    background: linear-gradient(90deg, #000000 0%, #ffffff 25%, #000000 50%, #ffffff 75%, #000000 100%);
    background-size: 200% 100%; /* расширяем, чтобы движение было плавным */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    /* Плавная бесконечная анимация */
    /* animation: textGlow 12s linear infinite; */

    /* Стеклянный фон */
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 20px;

    /* Мягкая тень */
    box-shadow:
        inset 0 0 15px rgba(0,0,0,0.9),
        0 0 12px rgba(0,0,0,0.6);

    text-shadow: 0 0 18px rgba(255,255,255,0.2);
    animation: demonGlitch 8s infinite;
}
.result:hover {
  animation: demonShake 0.15s infinite;
}


@keyframes textGlow {
    0%   { background-position: 0% 0%; }
    100% { background-position: -300% 0%; } /* двигаем влево, чтобы не было резкого возвращения */
    
}
@keyframes demonGlitch {
  0%, 94%, 100% { transform: none; }
  95% { transform: skewX(6deg) translateX(-4px); }
  96% { transform: skewX(-6deg) translateX(4px); }
}
@keyframes demonShake {
  0% { transform: translate(0,0); }
  25% { transform: translate(-2px,2px); }
  50% { transform: translate(2px,-2px); }
  75% { transform: translate(-2px,-2px); }
  100% { transform: translate(2px,2px); }
}
/* Частицы энергии */
/* Частица энергии */
.demon-particle {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,0,0,1) 0%, rgba(255,0,0,0.2) 70%);
    pointer-events: none;
    mix-blend-mode: screen;
    filter: blur(2px);
    animation: demonParticleMove 1s forwards;
}

@keyframes demonParticleMove {
    0% { transform: translate(0,0) scale(1); opacity: 1; }
    100% { transform: translate(var(--x), var(--y)) scale(0.2); opacity: 0; }
}
body::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('./img/Gemini_Generated_Image_16482e16482e1648 (1).png') no-repeat center center;
    background-size: cover;
    opacity: 0.1;
    pointer-events: none;
    animation: crackGlow 4s infinite alternate;
    z-index: -1;
}
@keyframes crackGlow {
    0% { opacity: 0.05; transform: scale(1) rotate(0deg); }
    50% { opacity: 0.15; transform: scale(1.02) rotate(1deg); }
    100% { opacity: 0.05; transform: scale(1) rotate(0deg); }
}

.search-wrapper {
    position: relative;
    display: inline-block;
}

.search-wrapper input {
    width: 100%;
    max-width: 225px;
    padding: 8px 12px 6px 33px; /* место для лупы */
    font-size: 16px;
    font-weight: 300;
    color: #fff;
    font-family: "Rubik Wet Paint", system-ui;

    border: none;
    border-radius: 20px;
    outline: none;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);

    background: linear-gradient(
        120deg,
        rgba(255,0,0,0.2),
        rgba(255,69,0,0.2),
        rgba(139,0,0,0.2),
        rgba(255,0,0,0.2)
    );
    background-size: 200% 100%;
    animation: gradient-move 3s linear infinite;

    box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
    text-align: left;
}

/* Демоническая лупа */
.search-wrapper::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    border: 2px solid #3d0f0f;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.5), transparent 70%);
    box-shadow: 0 0 6px #ff3c3c, 0 0 12px #8b0000, 0 0 18px #ff4500;
    animation: glow 1.5s infinite alternate;
}

.search-wrapper::after {
    content: '';
    position: absolute;
    left: 21px;
    top: 21px;
    width: 8px;
    height: 2px;
    background: linear-gradient(90deg, #ff0000, #000000e2);
    transform: rotate(45deg);
    transform-origin: left center;
    box-shadow: 0 0 4px #ff3c3c, 0 0 8px #8b0000;
    animation: glow 1.5s infinite alternate;
}

@keyframes glow {
    0% {
        box-shadow: 0 0 4px #ff3c3c, 0 0 10px #8b0000, 0 0 15px #ff4500;
    }
    100% {
        box-shadow: 0 0 8px #ff3c3c, 0 0 15px #8b0000, 0 0 25px #ff4500;
    }
}

@keyframes gradient-move {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}


.info-btn {
    margin-top: 0px;
    padding: 10px 18px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 8px;
     position: absolute;
     right: 0px;
     bottom: 3px;
}
.info-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 999;
    justify-content: center;
    align-items: center;
}

.info-content {
    background: #ffffff;
    color: #000;
    padding: 25px;
    width: 90%;
    max-width: 1000px;
    border-radius: 12px;
    position: relative;
    font-family: Arial, sans-serif;
    max-height: 80vh;
    overflow-y: auto;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 14px;
    cursor: pointer;
    font-size: 20px;
}
.boosty-btn {
    position: fixed;
    bottom: 20px;
  
   
    color: #fff;
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    transition: 0.3s;
}
.boosty-btn:hover {
    transform: translateY(-2px);
    background: #303030;
}


/* ===================== */
/* 📱 MOBILE = PC SCALE */
/* ===================== */
@media (max-width: 768px) {

  body {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    font-family: "Rubik Wet Paint", system-ui;
    font-weight: 600;
    color: #ffffffa2;
    

    /* Фон */
    background-image: 
        radial-gradient(circle at center, rgba(0,0,0,0) 35%, rgba(0,0,0,0.95) 100%),
        url('./img/Gemini_Generated_Image_16482e16482e1648 (1).png');
    background-size:cover;
     background-position: center top;
    position: relative;

    /* Пульсация / дыхание */
    animation: breath 2s infinite alternate, bg-zoom 8s infinite;
}


/* Пульсация / дыхание */
@keyframes breath {
  0%   { filter: brightness(100%) contrast(100%); }
  50%  { filter: brightness(115%) contrast(120%); }
  100% { filter: brightness(100%) contrast(100%); }
}
@keyframes bg-zoom {
    0% { background-size: 100% 100%; }
    25% { background-size: 105% 105%; }
    50% { background-size: 110% 110%; }
    75% { background-size: 105% 105%; }
    100% { background-size: 100% 100%; }
}

    .pc-layout {
        transform: scale(1);
        transform-origin: top center;
        width: 370px;          /* имитируем ПК ширину */
     
    }
        .result {
        width: 100%;
        max-width: 360px;
        font-size: 24px;
        padding: 16px;
        margin-top: 18px;
        text-align: center;
    }
.info-btn {
    margin-top: 0px;
    padding: 10px 18px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 8px;
     position: absolute;
     right: -25px;
     top: 25px;
    
}
.info-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 999;
    justify-content: center;
    align-items: center;
}

.info-content {
    background: #ffffff;
    color: #000;
    padding: 25px;
    width: 90%;
    max-width: 1000px;
    border-radius: 12px;
    position: relative;
    font-family: Arial, sans-serif;
    max-height: 80vh;
    overflow-y: auto;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 14px;
    cursor: pointer;
    font-size: 20px;
}
h2 {
    position: absolute;
    top: 10px;
    right: 10px;      /* не отрицательное значение */
    max-width: 90%;    /* ограничение по ширине */
    font-size: 18px;
    color: #ffffff39;
    background: linear-gradient(90deg, #ff0101 0%, #ffffff 25%, #ff0000 50%, #ffffff 75%, #ff0000 100%);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textGlow 10s linear infinite;
}
}
