/* main/static/main/css/main.css */

/* Затемнение текста */
.text-shadow {
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
}

/* Заголовки */
h1, h2, h3 {
    font-family: 'Times New Roman', serif;
    font-weight: bold;
    color: #222;
}

h1 {
    font-size: 2.5rem;
    color: #fff;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
}

h2 {
    font-size: 1.75rem;
    margin-top: 30px;
}

/* Кнопки */
.btn-custom {
    border-radius: 20px;
    padding: 12px 24px;
    font-weight: bold;
    transition: background 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-custom:hover {
    transform: scale(1.02);
}

/* Цвета кнопок */
.btn-blue {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
}

.btn-blue:hover {
    background: linear-gradient(135deg, #0056b3, #003e91);
    color: #fff;
}

.btn-green {
    background: linear-gradient(135deg, #28a745, #1e7e34);
    color: white;
}

.btn-green:hover {
    background: linear-gradient(135deg, #1e7e34, #145a24);
    color: #fff;
}

.btn-warning {
    background: linear-gradient(135deg, #ffc107, #e0a800);
    color: white;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #e0a800, #c69500);
    color: white;
}

.btn-info {
    background: linear-gradient(135deg, #17a2b8, #117a8b);
    color: white;
}

.btn-info:hover {
    background: linear-gradient(135deg, #117a8b, #0d5f6f);
    color: white;
}

/* Общий контейнер */
.container {
    padding-bottom: 40px;
}

/* Затемнение фона в header */
.header-overlay {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    padding: 40px;
    color: white;
    text-align: center;
}

.header-overlay::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55); /* затемнение */
    z-index: 0;
}

.header-overlay > * {
    position: relative;
    z-index: 1;
}

/* Адаптация под мобильные устройства */
@media (max-width: 768px) {
    .header-overlay {
        padding: 20px;
    }

    .header-overlay img {
        max-width: 100px;
        margin-bottom: 1rem;
    }

    h1 {
        font-size: 1.6rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    .btn-custom {
        font-size: 0.95rem;
        padding: 10px 16px;
    }

    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .text-center p {
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    .card-body h5 {
        font-size: 1rem;
    }

    .card-body p {
        font-size: 0.9rem;
    }

    .card .btn {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    form label {
        font-size: 0.95rem;
    }

    form input,
    form textarea {
        font-size: 0.95rem;
        padding: 8px 12px;
    }

    form .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

footer p {
    margin: 0;
    font-size: 0.9rem;
}

@media (max-width: 576px) {
    footer {
        text-align: center;
        font-size: 0.85rem;
        padding: 10px 0;
    }
}

