:root {
    --primary-button-color: rgb(236, 32, 68);
    /*--primary-button-color: rgb(148 72 21);*/
    --secondary-color: #2ecc71;
    --accent-color: #e74c3c;
    --text-color: rgb(118, 118, 118);
    --background-color: rgb(248 242 184);
    --background-fore-color: rgb(224 204 11);
    --backgrouond-error-color: #f1d0c5;

}

ul, li {
    list-style-type: none; /* Убираем маркеры списка */
    margin: 0;             /* Убираем внешние отступы */
    padding: 0;            /* Убираем внутренние отступы */
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.25);
    display: none;
    z-index: 999;
}

.dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 500px;
    background: white;
    /*padding: 20px;*/
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: none;
    border-radius: 8px;
}
.dialog-content {
    text-align: center;
    position: relative;
}

.close-btn {
    display: none;
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    cursor: pointer;
    color: #007bff;
    transition: color 0.3s;
}
.close-btn:hover {
    color: #0056b3;
}

.dialog-buttons {
    margin-top: 20px;
    margin-bottom: 20px;
}
.dialog-content h2 {
    margin-top: 0;
    /* font-size: 24px; */
    margin-bottom: 15px;
    padding: 20px;
    background-color: #f4f4f4;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}
.dialog-content p {
    line-height: 1.5;
    margin-bottom: 20px;
    padding: 0 20px;
}

@media (max-width: 768px) {
    .dialog {
        width: 90%;
    }
}

@media (max-width: 480px) {
    .dialog {
        width: 95%;
    }
}


/*  BUTTONS     */

button {
    position: relative;
}

/* Стиль для лоадера */
.button-loader {
    /*color: rgba(0, 0, 0, 0.5) !important; !* Затенение текста кнопки *!*/
    filter: brightness(0.75);
}

.button-loader::after {
    color: #fff;
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin-top: -10px;
    margin-left: -10px;
    border: 2px solid #ccc;
    border-top-color: #000;
    border-radius: 50%;
    animation: button-loader-spin 1s linear infinite;
}

/* Анимация для лоадера */
@keyframes button-loader-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/*  CONFIRMATION DIALOG  */

.overlay-confirmation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    z-index: 999;
}

.dialog-confirmation {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 500px;
    background: white;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: none;
    border-radius: 8px;
}

.code-inputs {
    display: flex;
    justify-content: center;
    gap: 10px;
}
.code-input {
    width: 50px;
    height: 50px;
    font-size: 24px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f0f0f0;
    outline: none;
}
.code-input:focus {
    border-color: #007bff;
    background-color: #fff;
}

.invalid-code .code-input {
    background-color: #f9ffff;
    border-color: #ff7b44;
}

.icon-container {
    margin-bottom: 15px;
}

.confirm-btn, .close-btn-secondary {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    background-color: #007bff;
    color: white;
    transition: background-color 0.3s;
    margin: 5px;
}
.confirm-btn:hover, .close-btn-secondary:hover {
    background-color: #0056b3;
}

.close-btn-secondary {
    background-color: #6c757d;
}
.close-btn-secondary:hover {
    background-color: #5a6268;
}

@media (max-width: 768px) {
    .dialog,
    .dialog-confirmation {
        width: 90%;
    }
}

@media (max-width: 480px) {
    .dialog,
    .dialog-confirmation {
        width: 95%;
    }
}


/*  VALIDATION    */

input.control {
    background-color: #f9f9f9;
    transition: border-color 0.3s;
}
input.control:focus {
    background-color: #ffffff;
}
input.control.invalid {
    background-color: var(--backgrouond-error-color);
}


/*  LOGIN DIALOG  */


#loginFirstScreen {
    margin-top: 30px;
}

.login-dialog {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}
.login-dialog h3 {
    margin-bottom: 30px;
}
.login-dialog-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    width: 400px;
    max-width: 80%;
    position: relative;
    transition: transform 0.3s ease-in-out;
}
.login-dialog-content.login-hidden {
    display: none;
}
.login-close {
    position: absolute;
    top: 10px;
    right: 18px;
    font-size: 24px;
    cursor: pointer;
}
.login-offer {
    background: #e0f7fa;
    padding: 10px;
    text-align: center;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: bold;
}
.login-social-login {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: none;
    cursor: pointer;
    font-size: 16px;
}
.login-google {
    background: #db4437;
    color: white;
    background: #fff;
    color: #3d3d3d;
    /* border: 1px solid #ccc; */
    justify-content: center;
    display: flex;
}
.login-facebook {
    background: #3b5998;
    color: white;
}
.login-apple {
    background: #333;
    color: white;
}
.login-or {
    text-align: center;
    margin: 10px 0;
    font-size: 14px;
    color: #666;
}
.login-input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}
.login-continue, .login-login {
    width: 100%;
    padding: 10px;
    background: #ff1744;
    color: white;
    border: none;
    cursor: pointer;
    margin-bottom: 10px;
    font-size: 16px;
}
.login-guest, .login-links {
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
}
.login-hidden {
    display: none;
}
.login-password-container {
    position: relative;
}
.login-toggle-password {
    position: absolute;
    right: 0px;
    top: 18px;
    transform: translateY(-50%);
    border: none;
    background: none;
    cursor: pointer;
}
.login-toggle-password img {
    width: 21px;
}
.login-back {
    display: block;
    margin-bottom: 10px;
    font-size: 16px;
    color: #ff1744;
    text-decoration: none;
    cursor: pointer;
}

@media (max-width: 768px) {
    .login-dialog-content {
        width: 90%;
    }
}

@media (max-width: 480px) {
    .login-dialog-content {
        width: 95%;
    }
}

.login-terms {
    display: flex;
    align-items: center;
    font-size: 14px;
    margin-top: 10px;
}
.login-terms input {
    margin-right: 10px;
}
.login-terms a {
    color: #007bff;
    text-decoration: none;
}
.login-terms a:hover {
    text-decoration: underline;
}


.lang-dropdown {
    position: relative;
    display: inline-block;
}
.lang-dropdown-button {
    background-color: white;
    border: none;
    padding: 5px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
}
.lang-dropdown-button img {
    width: 16px;
    height: 16px;
    margin-right: 5px;
}
.lang-dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 160px;
    border: 1px solid #ccc;
    z-index: 1;
}
.lang-dropdown-content .lang-option {
    font-size: 14px;
    color: black;
    padding: 8px 10px;
    text-decoration: none;
    display: flex;
    align-items: center;
    cursor: pointer;
}
.lang-dropdown-content .lang-option:hover {
    background-color: #ddd;
}
.lang-dropdown-content .lang-option img {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}
.lang-dropdown-content.show {
    display: block;
}

.lang-footer-content {
    display: flex;
}
.lang-footer-content .lang-option {
    font-size: 12px;
    color: black;
    padding: 8px 10px;
    text-decoration: none;
    display: flex;
    align-items: center;
    cursor: pointer;
}
.lang-footer-content .lang-option:hover {
    background-color: #ddd;
}
.lang-footer-content .lang-option img {
    width: 16px;
    height: 16px;
    margin-right: 10px;
}


.dialog-common-body {
    padding: 20px;
}
.dialog-close-btn {
    position: absolute;
    top: 2px;
    right: 10px;
    font-size: 36px;
    cursor: pointer;
    color: #000;
    transition: color 0.3s;
}
.dialog-close-btn:hover {
    color: #0056b3;
}
