/* === 1. ФОРМА КОММЕНТАРИЕВ === */
.comment-form {
    max-width: 600px;
    margin: 20px auto;
    font-family: Arial, sans-serif;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.required {
    color: #e00;
    font-weight: normal;
}

input[type="text"],
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

.btn {
    background-color: #007bff;
    padding: 12px 24px;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.btn:hover {
    background-color: #0056b3;
}

/* Адаптивность: мобильные устройства */
@media (max-width: 600px) {
    .comment-form {
        margin: 10px;
        padding: 15px;
    }
}


/* === 2. КОММЕНТАРИИ (отображение) === */
.comment {
    border: 1px solid #ddd;
    padding: 10px;
    margin: 10px 0;
    border-radius: 4px;
}

.comment strong {
    color: #333;
}

.comment span {
    display: block;
    margin: 5px 0;
    line-height: 1.5;
}

.date {
    color: #D94126;
    font-size: 0.9em;
}

/* === 3. ПОП-АП (всплывающее окно) === */
#bg_popup {
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    position: fixed;
    z-index: 99999;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

#popup {
    background: #bde0ff;
    width: auto;
    margin: 25% auto;
    padding: 5px 20px 13px 2 gef0px;
    border: #1BA600 solid 2px;
    position: relative;
    box-shadow: 0 0 20px #000;
    border-radius: 15px;
}

.close {
    display: block;
    position: absolute;
    top: -12px;
    right: 5px;
    width: 25px;
    height: 25px;
    line-height: 28px;
    color: #bde0ff;
    background: #1BA600;
    cursor: pointer;
    border-radius: 15px;
    box-shadow: 1px 1px 3px #000;
}

.close:hover {
    background-color: #f30;
}

/* === 4. CANVAS (графики/изображения) === */
canvas {
    width: 100% !important;
    height: auto !important;
    max-height: 400px;
    margin: 15px 0;
    border: 1px solid #fcfcfc;
    border-radius: 8px;
}

/* Адаптивность: очень маленькие экраны */
@media (max-width: 480px) {
    canvas {
        max-height: 300px;
    }
}

