/* Глобальное */

body {
    margin: 0;
    font-family: Helvetica;
    color: #333333;
}

body:has(#preloader) {
    overflow: hidden;
}

/* Стили главной страницы и формы авторизации */

.image-block__container {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.image-block__background {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Авторизация */

.image-block__login-form {
    background-color: #FFFFFF;
    width: 400px;

    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    padding: 10px;

    @media (max-width: 600px) {
        width: 300px;
    }
}

.image-block__login-form-title {
    color: #1A1A1A;
    font-size: 1.3em;
    margin-bottom: 30px;
}

.image-block__login-form-submit {
    width: 100%;
    border: 0;
    margin-top: 10px;
    color: #FFFFFF;
    background-color: #909099;
}

.presentation-login {
    font-size: 16px;
    color: #FFFFFF;
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translate(-50%, -50%);

}

/* Главная страница */

.image-block__username {
    color: #FFFFFF;
    position: absolute;
    top: 20px;
    right: 20px;
    text-align: center;
}

.image-block__username-logout {
    color: #FFFFFF;
}

.image-block__title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #FFFFFF;
    font-size: 36px;
    text-align: center;
    font-weight: 700;
    text-decoration: none;
}

#nomination-list-block {
    min-height: 100vh;
    position: relative;
    z-index: 1;
    background-color: #FFFFFF;
    padding-top: 75px;

    display: flex;
    flex-direction: column;
    align-items: center;
}

.nomination-list-block__title {
    color: #1A1A1A;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 60px;
}

.nomination-list-block__message {
    margin-bottom: 15px;
    color: #00b35f;
}

.nomination-list-block__list {
    width: 1400px;
    font-size: 30px;

    @media (max-width: 1500px) {
        width: 1000px;
        font-size: 28px;
    }

    @media (max-width: 1100px) {
        width: 700px;
        font-size: 24px;
    }

    @media (max-width: 800px) {
        width: 500px;
        font-size: 20px;
    }

    @media (max-width: 600px) {
        width: 300px;
        font-size: 16px;
    }
}

.nomination-list-block__presentation {    
    font-size: 16px;
    color: #F65145;
    margin-top: 60px;
    padding-bottom: 30px;
}

/* Номинации на главной странице */

.nomination-card {
    display: block;
    text-align: center;
    text-decoration: none;
    color: #1A1A1A;
    transition: .2s ease-in-out;
    padding: 25px;
    border-bottom: 1px solid #E6E6E6;
}

.nomination-card:hover {
    box-shadow: 0 4px 20px 0 rgba(0, 0, 0, .1);
    z-index: 2;
    color: #F65145;
}

/* Голосование */

.vote__container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.vote__container h2 {
    text-align: center;
    margin-top: 20px;
}

.vote__instruction {
    margin-bottom: 20px;
    color: #F65145;
    font-weight: 700;
    text-align: center;
}

.vote__message {
    color: #00b35f;
    margin-bottom: 20px;
    text-align: center;
}

.vote__already-message {
    color: #00b35f;
    font-size: 20px;
    text-align: center;
}

.vote__wrong-message {
    color: #F65145;
    font-size: 20px;
    text-align: center;
}

.vote__return {
    color: #1A1A1A;
    text-align: center;
}

.vote__return:hover {
    color: #F65145;
}

.vote__submit {
    width: 100%;
    border: 0;
    margin: 30px 0px;
    padding: 10px;
    font-size: 20px;
    color: #FFFFFF;
    background-color: #909099;
}

/* Отступы */

.form-margin {
    padding: 15px;
}

.grid-margin {
    padding: 0 15px;
}

/* Кнопки */

.button__button {
    border: 0;
    margin: 15px;
    padding: 10px;
    color: #FFFFFF;
    background-color: #909099;
}

.button__submit {
    border: 0;
    padding: 10px;
    color: #FFFFFF;
    background-color: #909099;
}

.button__a {
    display: inline-block;
    text-decoration: none;
    margin: 15px;
    padding: 10px;
    background-color: #909099;
    color: #FFFFFF;
}

.delete-button {
    cursor: pointer;
}

/* Админка. Предупреждение в респондентах */

.user-mes {
    color: #F65145;
    margin: 0 15px;
}

/* Админка. Ход голосования*/

.two-grid__container {
    display: flex;
    justify-content: space-evenly;
}

.two-grid__col {
    display: flex;
    flex-direction: column;
    width: 45%;
}

.two-grid__col-title__already {
    text-align: center;
    font-size: 24px;
    color: #00b35f;
    margin-bottom: 5px;
}

.two-grid__col-title__ahead {
    text-align: center;
    font-size: 24px;
    color: #F65145;
    margin-bottom: 5px;
}

.vote-statistics__title {
    text-align: center;
    margin-top: 15px;
}

/* Размер изображений на вкладке кандидатов */

.candidate-img-backend {
    width: 100px;
}

/* Сообщение-инструкция в создании кандидатов */

.candidate-mes {
    padding-left: 15px;
    padding-top: 15px;
}

/* Блок обрезки */

.crop-block__container {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    height: 500px;
    margin-top: 15px;
    margin-bottom: 15px;
}
.crop-block__preview {
    width: 45%;
    height: 100%;
}
#preview {
    max-width: 100%;
    max-height: 100%;
}
#preview-crop {
    width: 45%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
#preview-crop canvas {
    max-width: 100%;
    max-height: 100%;
}

/* Стили сообщения в GridView */

.grid-empty-text {
    text-align: center;
    font-size: 26px;
}

/* Страница ошибок */

.error-page {
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.error-page__container {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* История. Список */

.history-item__container {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 10px;
    margin: 10px 0;
    color: #1A1A1A;
    text-decoration: none;
    font-size: 20px;
    transition: .2s ease-in-out;
    border-bottom: 1px solid #E6E6E6;
}

.history-item__container:hover {
    box-shadow: 0 4px 20px 0 rgba(0, 0, 0, .1);
    z-index: 2;
}

.history-item__date {
    border: #909099 solid 1px;
    padding: 5px;
}

.history-item__status {
    margin: 0 10px;
}

/* История, отдельная запись */

.history-page__title {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    margin: 10px 0;
    color: #1A1A1A;
    font-size: 30px;
}

.history-page__title-date {
    border: #909099 solid 1px;
    padding: 5px;
    margin-right: 10px;
}

.history-page__vote-table {
    width: 100%;
    margin: 15px;
}

.history-page__vote-table__th {
    text-align: center;
}

.history-page__vote-table__td {
    vertical-align: middle;
}

.history-page__vote-table__td,
.history-page__vote-table__th {
    border: #909099 solid 1px;
    font-size: 20px;
}

/* Прелоадер для картинок */

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #F3F3F3;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.loader {
    border: 8px solid #F3F3F3;
    border-top: 8px solid #F65145;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.preloader-text {
    color: #F65145;
    margin-top: 15px;
    font-size: 20px;
    font-style: italic;
}

/* Чекбоксы в таблицах админ-панелт */

.grid-checkbox {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}