body {
    background-color: #c0c8c8;
    color: #000;
    font-family: 'Georgia', serif;
    margin: 0;
}

header {
    background-color: #343a40;
    color: white;
    padding: 15px 30px;
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 15px;
}

header img {
    height: 40px;
    width: auto;
}

header h1 {
    margin: 0;
    font-size: 22px;
}

.description {
    font-size: 16px;
    text-align: justify;
    line-height: 1.6;
    margin-bottom: 25px;
    padding: 0 10px;
}
.description code {
    background-color: #f3f3f3;
    padding: 2px 4px;
    border-radius: 4px;
    font-size: 90%;
}


.container {
    padding: 40px;
    max-width: 1000px; /* или 550px */
    width: 90%;
    margin: 0 auto;
    background-color: white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    margin-top: 30px;
    border-radius: 8px;
    text-align: center;
}

input[type="file"] {
    margin-bottom: 15px;
}

button {
    padding: 8px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background-color: #0056b3;
}

.result {
    margin-top: 25px;
    background-color: #f1f1f1;
    padding: 15px;
    border-radius: 6px;
}

.error {
    color: red;
    margin-top: 20px;
}

.time {
    color: #333;
    font-style: italic;
}

.button-link {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 25px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
}

.button-link:hover {
    background-color: #0056b3;
}

header .button-link {
    font-size: 14px;
    background-color: transparent;
    color: white;
    text-decoration: none;
    border: 1px solid white;
    padding: 5px 12px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

header .button-link:hover {
    background-color: white;
    color: #343a40;
}

.site-header {
    background-color: #008b8b;
    color: white;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.back-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #333;
    padding: 4px;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.2s;
    background-color: transparent;
}

.back-icon svg {
    stroke: #ffffff;
}

.back-icon:hover {
    background-color: #e0e0e0;
}

.site-header h1 {
    margin: 0;
    font-size: 1.8rem;
    color: #ffffff;
}

a {
    color: #0000ee;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    background-color: #ffffff;
    padding: 20px;
    max-width: 900px;
    margin: 30px auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

footer {
    background-color: #3a3a3a;
    color: white;
    padding: 12px;
    text-align: center;
    font-size: 0.9rem;
    margin-top: 30px;
}

.flash-error {
    color: red;
    margin: 10px 0;
    font-weight: bold;
}