* {
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

html,
body {
    min-height: 100%;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: 100% auto;
    background-position: 50% 80px;
    z-index: 100;
    position: relative;
}

.container_style {
    width: 100%;
    max-width: 1280px;
    padding: 0 18px;
    margin: 0 auto;
}

/*.navbar{*/
/*    background-color: white;*/
/*    height: 70px;*/
/*}*/

.navbar {
    background-color: white;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 6px 18px rgba(17, 20, 24, 0.08);
}

.theme-dark .navbar {
    background-color: #111418;
    color: #dcdde3;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 6px 18px rgba(17, 20, 24, 0.08);
}

.navbar_inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.logo_wrap {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.brand_row {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex: 1 1 auto;
    min-width: 0;
}

.lang_switch {
    margin-left: 10px;
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

#langSwitcher {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.lang_switch__track {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #e8ecf2;
    border: 1px solid #c7d2e3;
    border-radius: 999px;
    padding: 6px 12px;
    min-width: 120px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.08);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.lang_switch__label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #2b2f36;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.lang_switch__planet {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 30% 30%, #ffe59d, #ffc857);
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    transition: transform 0.25s ease;
}

#langSwitcher:checked + .lang_switch__track {
    background: #dceefb;
    border-color: #7fb3ff;
}

#langSwitcher:checked + .lang_switch__track .lang_switch__planet {
    transform: translateX(10px);
}

#langSwitcher:checked + .lang_switch__track .lang_switch__label--left {
    opacity: 0.4;
}

#langSwitcher:checked + .lang_switch__track .lang_switch__label--right {
    opacity: 1;
}

.lang_switch__track .lang_switch__label--left {
    opacity: 1;
}

.lang_switch__track .lang_switch__label--right {
    opacity: 0.4;
}

.lang_switch__planet {
    transform: translateX(-10px);
}

#langSwitcher:checked + .lang_switch__track .lang_switch__planet {
    transform: translateX(10px);
}

.theme-dark .lang_switch__track {
    background: #0f1724;
    border-color: #0f1724;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.45), 0 4px 12px rgba(0,0,0,0.35);
}

.theme-dark #langSwitcher:checked + .lang_switch__track {
    background: rgb(42 108 133 / 0.3);
    border-color: #0f1724;
}

.theme-dark .lang_switch__label {
    color: #e6e9ef;
}

.theme-dark .lang_switch__planet {
    box-shadow: 0 2px 6px rgba(0,0,0,0.45);
}

/* чтобы элементы не сжимались */
.logo_wrap,
canvas,
.phone_block,
.info_block {
    white-space: nowrap;
}

.content{
    background-color: white;
    padding: 16px;
    border-radius: 10px;
}

/*.background{*/
/*    min-width: 100%;*/
/*    min-height: 100%;*/
/*    background-image: url('/static/img/ads/bg-1920x1080.jpg');*/
/*    background-repeat: no-repeat ;*/
/*    background-size: cover;*/
/*    background-position: center top;*/
/*    background-color: inherit;*/
/*}*/

/*@media screen and (min-width: 1500px) {*/
/*    .background {*/
/*        background-image: url('/static/img/ads/bg_1920x1080.jpg');*/
/*    }*/
/*}*/

@media screen and (max-width: 1499px) {
    .background {
        background-image: none;
    }
}

@media screen and (min-width: 769px) {
    .div_count_top {
        text-align: right;
    }

    .top {
        margin-top: 1.5rem !important;
    }

}

@media screen and (max-width: 769px) {
    .top {
        margin-top: 0px !important;
    }

    body {
        padding-right: 0px !important;
    }
}

.marg_left {
    margin-left: 20px;
}

.custom_scrol {

    /* width */

    ::-webkit-scrollbar {
        width: 10px;
    }

    /* Track */

    ::-webkit-scrollbar-track {
        box-shadow: inset 0 0 5px grey;
        border-radius: 10px;
    }

    /* Handle */

    ::-webkit-scrollbar-thumb {
        background: #75cef7;;
        border-radius: 10px;
    }

    /* Handle on hover */

    ::-webkit-scrollbar-thumb:hover {
        background: #c6d8e0;
    }

}


.theme-dark .content {
    background-color: #111418;
    color: #dcdde3;
}

/*.theme-dark .navbar {*/
/*    background-color: #111418;*/
/*    color: #dcdde3;*/
/*}*/

.theme-dark {
    background-color: #111418;
    color: #dcdde3;
}

.theme-dark .card {
    background-color: #212121;
}

.theme-dark A {
    color: #dcdde3;
}

.theme-dark .btn-outline-dark {
    --bs-btn-border-color: #cfcfcf;
    --bs-btn-hover-color: #242424;
    --bs-btn-hover-bg: #ccd0d5;
    --bs-btn-hover-border-color: #212529;
}


.modal-modal-content_ad {
    background-color: #ff000000 !important;
}

.img_ad {
    border-radius: 7px;
}


.div_preview {
    padding: 0 !important;
}

.row_preview {
    padding: 5px 5px 5px 5px;
}

/* .img_class:hover:after { */
.img_class:hover .title_weather {
    display: inline;
    position: absolute;
    background-color: #777777;
    width: auto;
    padding: 5px;
    text-align: center;
    background-color: #f7f7f7;
    border: 1px solid #f7f7f7;
    border-radius: 10px;
}

.logo_link {
    position: absolute;
    z-index: 999999;
    width: 380px;
    height: 50px;
}

.title_weather {
    position: static;
    display: none;
    background-color: #777777;
    width: auto;
    padding: 10px;
    z-index: 999999;
    color: black;
    text-align: center;
    background-color: #f7f7f7;
    border: 1px solid #f7f7f7;
    border-radius: 10px;
    margin-left: -70px;
    margin-top: 5px;
}

.selected_preview {
    background: #b3e5fc;
    border-radius: 10px;
    color: black;
}

.select:hover {
    background: #b3e5fc;
    border-radius: 10px;
    color: black;
}


.vjs-picture-in-picture-control {
    display: none !important;
}


.link_phone {
    text-decoration: none;
    color: black;
}


.div_weather {
    text-align: right;
}

.preview_panel,
.preview-panel {
    overflow-y: auto;
    max-height: 700px;
}

.video {

    border-radius: 15px;
    overflow: hidden;
    padding: 0;
}


.camera_name {
    padding-top: 12px;
}

.weather_icon {
    background-color: #b9b5b5ba;
    border-radius: 15px;
    padding: 0px;
    width: 50px;
}

.camera_preview {
    width: 150px;
    /*width: 125px;   */

}

.video-js .vjs-tech {
    width: 100.1% !important;
    height: auto !important;
}

.video-js {
    background-color: #777777 !important;
}

.video_div {
    padding-right: calc(var(--bs-gutter-x) * .5);
    padding-left: calc(var(--bs-gutter-x) * .5);
}

.video_div video,
.video_div .video-js {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
}

/* ********************** */


/* The switch - the box around the slider */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 20px;
}

/* Hide default HTML checkbox */
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* The slider */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: 0.4s;
    transition: 0.4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 40px;
    width: 40px;
    left: 0px;
    bottom: 4px;
    top: 0;
    bottom: 0;
    margin: auto 0;
    -webkit-transition: 0.4s;
    transition: 0.4s;
    box-shadow: 0 0px 15px #2020203d;
    background: white url('/static/img/night.png');
    background-repeat: no-repeat;
    background-position: center;
}

input:checked + .slider {
    background-color: #2196f3;
}

input:focus + .slider {
    box-shadow: 0 0 1px #2196f3;
}

input:checked + .slider:before {
    -webkit-transform: translateX(24px);
    -ms-transform: translateX(24px);
    transform: translateX(24px);
    background: white url('/static/img/sunny.png');
    background-repeat: no-repeat;
    background-position: center;
}

/* Rounded sliders */
.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Bottom floating ad */
.bottom-ad {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    box-sizing: border-box;
    height: 91px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 0 calc(8px + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.75));
    opacity: 0;
    pointer-events: none;
    transform: translateY(120%);
    transition: opacity 0.35s ease, transform 0.35s ease;
    z-index: 1200;
}

.bottom-ad.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.bottom-ad__inner {
    position: relative;
    height: 91px;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: none;
    margin: 0 auto;
}

.bottom-ad__link {
    display: block;
    width: 100%;
}

.bottom-ad__img {
    height: 91px;
    width: 100%;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.bottom-ad__close {
    position: absolute;
    top: -24px;
    right: 5px;
    width: 25px;
    height: 25px;
    border: 1px solid rgba(0, 0, 0, 0.4);
    /*border-radius: 50%;*/
    background-color: rgba(200, 200, 200, 0.8);
    color: #111;
    font-weight: 800;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    z-index: 2;
}

.bottom-ad__close:hover {
    background: #f7f7f7;
    border-color: rgba(0, 0, 0, 0.6);
}

@media screen and (max-width: 991px) {
    .bottom-ad__inner {
        max-width: 450px;
    }

    .bottom-ad__img {
        max-width: 450px;
    }

    .bottom-ad {
        padding-left: 0;
        padding-right: 0;
    }
}

/* Inline banner (shown when width < 1500px) */
.navbar_ad{
    min-height: 200px;
}

.inline-ad__link{
    display: block;
    max-width: 1280px;
    width: 1280px;
    height: 200px;
    background-color: transparent;
    background-image: none;
    margin: auto;
}

#topAdd{
    height: 200px;
    width: 430px;
    border-radius: 10px;
    display: none;
    background-repeat: no-repeat;
    background-position: center;

    background-size: cover;

    /*max-width: 100%;*/
    /*object-fit: contain;*/
}

.inline-ad__link {
    display: flex;
    width: 100%;
    min-height: 100%;
    justify-content: center;
    align-items: center;
}

.inline-ad__img {
    height: 100%;
    width: 100%;
    max-width: 100%;
    object-fit: contain;
}

@media screen and (max-width: 959px) {
    #topAdd{
        display: flex;
    }
}

@media screen and (min-width: 960px) {
    #topAdd{
        display: none;
    }
}

/* Global responsive adjustments */
@media (max-width: 991px) {
    .container_style {
        padding: 0 12px;
        max-width: 100%;
    }

    .navbar_inner {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 12px;
    }

    .phone_block,
    .info_block {
        width: 100%;
        display: flex;
        align-items: center;
        gap: 8px;
        flex-wrap: wrap;
    }

    .info_block {
        justify-content: space-between;
    }

    #switch {
        margin-left: 0;
    }

    #langSwitcher {
        min-width: 82px;
    }

    .content {
        padding: 12px;
        border-radius: 8px;
    }

    #camera .col-sm-8,
    #camera .col-sm-4 {
        width: 100%;
        max-width: 100%;
    }

    .preview-panel {
        max-height: 600px;
        overflow-y: auto;
        padding-top: 12px;
    }

    .navbar_ad{
        min-height: 160px;
        margin-top: 8px;
    }
}

@media (max-width: 576px) {
    .navbar {
        padding: 8px 0;
        background-color: white;
        color: #111418;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }

    .navbar .container_style {
        padding: 0 12px;
    }

    .brand_row {
        width: 100%;
        justify-content: flex-start;
        gap: 10px;
    }

    .brand_row canvas {
        width: 180px;
        height: auto;
    }

    .content {
        padding: 0;
        border-radius: 0;
        margin-top: 10px;
        /*background: transparent;*/
    }

    .phone_block,
    .info_block {
        gap: 6px;
        white-space: normal;
    }

    .phone_block {
        width: 100%;
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 14px;
        order: 2;
    }

    .info_block {
        width: 100%;
        display: flex;
        align-items: center;
        gap: 10px;
        order: 3;
    }

    .info_counts {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 13px;
    }

    #switch {
        order: 4;
        margin-left: 0;
    }

    .lang_switch {
        order: 5;
        margin-left: 0;
    }

    .preview-panel {
        max-height: 450px;
        overflow-y: auto;
    }

    .container_style {
        padding: 0;
    }

    .navbar_ad{
        margin-top: 10px;
    }
}
