body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #ecf3ff;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.main-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 60%;
    height: auto;
    max-width: 1200px;
}

.container {
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border-radius: 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    width: 50%;
    height: 100%;
}

.image-container {
    width: 50%;
    max-width: 450px;
    height: auto;
}

.image-container-img {
    justify-content: left;
    width: 100%;
    height: auto;
}

.flash-messages-block {
    align-self: center;
    text-align: left;
    margin: 5px;
}

.nav-buttons-div {
    display: flex;
    justify-content: space-between;
    align-self: flex-start;
    width: 100%;
}

.nav_buttons {
    height: auto;
    width: 48%;
    margin: 8px 0;
    border: none;
    background: none;
}

.nav_buttons:disabled {
    border-bottom: 3px solid #1777FF;
    color: #757575;
}

.nav_buttons:enabled {
    color: #BDBDBD;
}

.nav_buttons:active {
    border: none;
    background: none;
}

.logo {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
}

input {
    width: 100%;
    padding: 10px;
    margin: 8px 0;
    border-radius: 10px;
    border: 1px solid #ccc;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

input:focus, button:focus {
    border-color: #0056b3;
}

input {
    background-color: #f8f8f8;
}

.main-button {
    width: 100%;
    padding: 10px;
    margin-top: 8px;
    margin-bottom: 8px;
    border-radius: 10px;
    border: 1px solid #ccc;
    transition: border-color 0.3s;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    color: white;
    background-color: #1777ff;
}

.main-button:disabled,
.main-button[disabled] {
    border: 1px solid #999999;
    background-color: #cccccc;
    color: #666666;
    width: 100%;
}

.form-block {
    color: #0056b3;
    text-decoration: none;
    font-size: 14px;
    height: 100%;
}

.footer-link {
    margin-top: auto;
    color: #0056b3;
    text-decoration: none;
    font-size: 14px;
}

.footer-link:hover {
    text-decoration: underline;
}

.certificate-header {
    font-weight: bold;
    text-align: center;
}

.my-text {
    font-size: 28px;
    color: #ff4a5c;
    font-weight: bold;
}

.certificate-text {
    font-size: 28px;
    color: #1777ff;
    font-weight: bold;
}

.cert-created-error {
    color: #FF4A5C;
    font-size: 11px;
}

.cert-created-success {
    color: #3AA981;
    font-size: 11px;
    background: 0;
}

.cert-valid, .cert-not-valid {
    width: auto;
    height: 100px;
    color: #3AA981;
    font-size: 11px;
    background: 0;
}

.cert-not-valid {
    color: #FF4A5C;
}

.custom-file {
    align-items: center;
}

.check-cert-file-input {
    margin: 8px;
    display: grid;
    place-items: center;
    height: 100%;
}

.get-cert-input {
    height: 100%;
    justify-content: space-between;
}

.cert-form {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Медиа-запросы для мобильных устройств */
@media (max-width: 767px) {
    .main-content {
        width: 90%;
        flex-direction: column;
        gap: 20px;
    }

    .container {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .image-container {
        width: 100%;
    }

    .nav_buttons {
        width: 100%;
    }
}

/* Дополнительные медиа-запросы для планшетов и других устройств */
@media (min-width: 768px) and (max-width: 1024px) {
    .main-content {
        width: 95%;
    }
}
