/* index.html */

/* ====== БАЗА ====== */
body {
    margin: 0;
    min-height: 100vh;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: linear-gradient(120deg, #f5f7fa, #e4ecf7);
    color: #222;
    text-align: center;
}

/* ====== ТЕКСТ ====== */
h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

p {
    font-size: 3rem;
    max-width: 400px;
    opacity: 0.85;
}

/* ====== КНОПКА ====== */
#StartButton {
    margin-top: 30px;
    padding: 16px 40px;

    font-size: 1.1rem;
    font-weight: 600;
    color: white;

    border: none;
    border-radius: 14px;
    cursor: pointer;

    background: linear-gradient(
        270deg,
        #6a5cff,
        #3fa9f5,
        #6a5cff
    );
    background-size: 400% 400%;

    box-shadow: 0 10px 30px rgba(106, 92, 255, 0.35);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;

    animation: gradientFlow 6s ease infinite;
}

/* ====== НАВЕДЕНИЕ ====== */
#StartButton:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 18px 45px rgba(106, 92, 255, 0.45);
}

/* ====== НАЖАТИЕ ====== */
#StartButton:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 8px 20px rgba(106, 92, 255, 0.3);
}

/* ====== АНИМАЦИЯ ПЕРЕЛИВАНИЯ ====== */
@keyframes gradientFlow {
    0%   { background-position:   0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position:   0% 50%; }
}
/* ====== КНОПКИ ПРОБЛЕМ ====== */
#SendUserResult, #NextButton{
    margin-top: 20px;
    padding: 12px 32px;

    font-size: 1rem;
    font-weight: 600;
    color: white;

    border: none;
    border-radius: 12px;
    cursor: pointer;

    background: linear-gradient(270deg, #6a5cff, #3fa9f5, #6a5cff);
    background-size: 400% 400%;
    box-shadow: 0 8px 20px rgba(106, 92, 255, 0.35);

    transition: transform 0.25s ease, box-shadow 0.25s ease;
    animation: gradientFlow 6s ease infinite;
}

#SendUserResult, #NextButton:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 14px 35px rgba(106, 92, 255, 0.45);
}

#SendUserResult, #NextButton:active {
    transform: translateY(0) scale(0.97);
    box-shadow: 0 6px 15px rgba(106, 92, 255, 0.3);
}

/* ====== ПОЛЕ ВВОДА ====== */
#UserResult {
    margin-top: 20px;
    padding: 10px 16px;
    font-size: 1rem;

    border: 2px solid #3b82f6;
    border-radius: 8px;

    width: 200px;
    text-align: center;

    outline: none;
    transition: border 0.25s ease, box-shadow 0.25s ease;
}

#UserResult:focus {
    border-color: #6a5cff;
    box-shadow: 0 0 8px rgba(106, 92, 255, 0.5);
}


/* Список вопросов */
ol {
    list-style: none; /* убираем стандартные маркеры */
    padding: 0;
    max-width: 600px;
    margin: 0 auto;
}

li {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    padding: 16px 20px;
    margin-bottom: 15px;
    text-align: left;
}

li p {
    margin: 6px 0;
    font-size: 2.5rem;
}

/* Верно/Неверно */
li p:last-child {
    font-weight: bold;
    font-size: 1.05rem;
}

/* Да/Нет цвета */
li p:last-child span {
    display: inline-block;
    font-weight: bold;
}

li p:last-child .correct {
    color: #16a34a; /* зелёный */
}

li p:last-child .wrong {
    color: #dc2626; /* красный */
}

/* problems.html */

.timer-container {
  width: 220px;
  position: relative;
  text-align: center;
  font-family: Arial, sans-serif;
}

.progress-ring {
  transform: rotate(-90deg);
}

.progress-ring__circle-bg {
  fill: none;
  stroke: #e5e7eb;
}

.progress-ring__circle {
  fill: none;
  stroke: #3b82f6;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.3s linear;
}

.time-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 42px;
  font-weight: bold;
}
