.nomination-container {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.nomination-title {
    background-color: #e53935; /* Красный цвет фона для заголовка */
    color: white; /* Белый цвет текста */
    padding: 15px;
    margin: -20px -20px 20px -20px;
    border-radius: 8px 8px 0 0;
    text-align: center;
    font-weight: bold;
    font-size: 18px;
}

.nomination-options {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.nomination-option {
    padding: 15px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: center; /* Центрирование текста */
}

.nomination-option:hover {
    background-color: #f0f0f0;
}

.nomination-option input[type="radio"] {
    margin-right: 10px;
}

.nomination-option label {
    margin: 0;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
    text-align: center; /* Центрирование текста */
}

.vote-button {
    width: 100%;
    padding: 15px 0; /* Сделать размер кнопки больше */
    background-color: #4A4A4A; /* Темный цвет кнопки */
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 10px; /* Небольшой отступ сверху */
}

.vote-button:hover {
    background-color: #333;
}

.highlighted-timer {
    background: linear-gradient(135deg, #ff0000 0%, #ff0000 100%);
    color: white;
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 32px;
    box-shadow: 0 8px 24px rgba(229, 57, 53, 0.2);
    line-height: 1.5;
}

.messages {
    margin: 20px auto; /* Центрируем блок сообщений */
    max-width: 800px; /* Ограничиваем ширину */
    padding: 10px;
}

.alert {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    font-size: 18px; /* Увеличиваем размер шрифта */
    color: #ffffff;
    background-color: #dc3545; /* Цвет для ошибок */
    border: 1px solid #b21f2d;
    text-align: center; /* Выравниваем текст по центру */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Добавляем тень */
}

.alert-success {
    background-color: #28a745; /* Цвет для успеха */
    border-color: #218838;
}

.alert-info {
    background-color: #17a2b8; /* Цвет для информационных сообщений */
    border-color: #117a8b;
}

.alert-warning {
    background-color: #ffc107; /* Цвет для предупреждений */
    border-color: #d39e00;
}

.nomination-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    margin-bottom: 32px;
    padding: 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eaeaea;
}

.nomination-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.nomination-card h4 {
    color: #2c3e50;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #ff0000;
    text-align: center;
}

.option-card {
    background: white;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #2c3e50;
}

.option-card:hover {
    transform: translateY(-2px);
}

.option-card.selected {
    background: #ff0000;
    border: 1px solid #ff0000;
}

.option-card .name {
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.option-card.selected .name {
    color: white;
    font-weight: 700;
}

.option-card .vote-count,
.option-card .vote-percentage {
    font-size: 14px;
    color: #666;
}

.option-card.selected .vote-count,
.option-card.selected .vote-percentage {
    color: rgba(255, 255, 255, 0.9);
}

.candidate-image {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: contain;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.candidate-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    background-color: #fff  ;
    padding: 10px
}

.option-card:hover .candidate-image img {
    transform: scale(1.05);
}

.option-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.vote-stats {
    display: flex;
    gap: 12px;
    align-items: center;
}

.user-voted-option {
    background-color: #e8f5e9;
    border: 2px solid #4caf50;
    position: relative;
    transition: all 0.3s ease;
}

.user-voted-option:before {
    content: "✓ Ваш выбор";
    position: absolute;
    top: -12px;
    right: 10px;
    background-color: #4caf50;
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 13px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.user-voted-option .option-info {
    color: #1b5e20;
}

.user-voted-option .name {
    font-weight: bold;
}

.user-voted-option .vote-stats {
    color: #2e7d32;
}

.nomination-card:last-child {
    padding-bottom: 100px; /* Добавляем дополнительное пространство внизу последнего элемента */
}

.blog-img {
    position: relative;
    margin-bottom: 32px;
    border-radius: 16px;
    overflow: hidden;
}

.blog-img img {
    width: 100%;
    height: auto;
    display: block;
}

.blog-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.blog-img a {
    display: block;
    position: relative;
    color: white;
    text-decoration: none;
    z-index: 2;
}

.blog-img a::after {
    content: attr(title);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    width: 100%;
    padding: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.already-voted {
    text-align: center;
    color: #ffffff;
    font-weight: 500;
    margin-top: 16px;
    padding: 12px;
    background: #ff0000;
    border-radius: 8px;
}

.already-voted1 {
    text-align: center;
    color: #2c3e50;
    font-weight: 500;
    margin-top: 16px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
}

.already-voted1 a {
    color: #e53935;
    text-decoration: none;
    font-weight: 600;
}

.already-voted1 a:hover {
    text-decoration: underline;
}

.vote-btn {
    background: #ff0000;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    margin-top: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.vote-btn:hover {
    background: #d32f2f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(229, 57, 53, 0.2);
}

.vote-btn:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .nomination-card h4 {
        font-size: 20px;
        margin-bottom: 16px;
        padding-bottom: 12px;
    }

    .option-card {
        padding: 12px;
    }

    .candidate-image {
        width: 60px;
        height: 60px;
    }

    .option-card .name {
        font-size: 16px;
    }

    .vote-stats {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .nomination-card h4 {
        font-size: 18px;
        margin-bottom: 12px;
        padding-bottom: 10px;
    }
}
