
/* Rivertravel — пользовательские изменения Absolution 3.3.7 */

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&display=swap');

/* Шапка форума */
.headerbar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 480px;
    box-sizing: border-box;
    color: #fff;
    background: url("./images/logo_bd.png") center top / cover no-repeat;
    border-top: 1px solid #0a498e;
    border-bottom: 1px solid #082b51;
}

.headerbar_bg {
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(8, 43, 81, 1), rgba(255, 255, 255, 0));
}

.headerbar .logo {
    float: left;
    display: block;
    width: auto;
    height: auto;
    padding: 0;
    margin: 30px 0 0 120px;
    color: #fff;
    font-size: 45px;
    line-height: 1;
    text-shadow: 2px 2px 3px #000;
    position: relative;
    z-index: 2;
}

.headerbar .logo:hover,
.headerbar .logo:focus,
.headerbar .logo:active {
    color: #fff;
    text-decoration: none;
}

.headerbar .logo .fa-ship {
    position: absolute;
    left: -100px;
    bottom: -5px;
    font-size: 80px;
}

.rivertravel-title {
    display: block;
}

.rivertravel-subtitle {
    display: block;
    margin-top: 5px;
    font-size: 26px;
    font-weight: normal;
}

.victory_day {
    display: none;
    position: absolute;
    left: -87px;
    top: -32px;
    width: 50px;
    height: 50px;
    background: url("./images/kolpak.gif") center / contain no-repeat;
    z-index: 3;
}

/* Основной контейнер форума */
#wrap {
    width: 80%;
    min-width: 625px;
    margin: 0 auto;
    padding: 0;
    position: relative;
    top: 340px;
    z-index: 2;
}

/* Адаптация размеров */
@media (max-width: 1220px) {
    #wrap {
        width: 96%;
    }
}

@media (max-width: 700px) {
    .headerbar .logo {
        margin-left: 70px;
        font-size: 25px;
    }

    .headerbar .logo .fa-ship {
        left: -55px;
        font-size: 45px;
    }

    .rivertravel-subtitle {
        font-size: 16px;
    }

    #wrap {
        min-width: 0;
        width: 96%;
    }
}


/* Rivertravel — адаптация шапки для мобильных устройств */
@media (max-width: 700px) {
    .headerbar {
        height: 260px;
        background-position: center top;
    }

    #wrap {
        top: 200px;
        width: 100%;
        min-width: 0;
        padding: 0 5px;
        box-sizing: border-box;
        border: none;
    }

    .headerbar .site-description {
        float: none;
        width: 100%;
        text-align: center;
    }

    .headerbar .logo {
        float: none;
        display: block;
        width: auto;
        margin: 30px 10px 0;
        font-size: 32px;
        line-height: 0.9;
        text-align: center;
    }

    .headerbar .logo .fa-ship,
    .victory_day {
        display: none !important;
    }

    .rivertravel-subtitle {
        margin-top: 8px;
        font-size: 16px;
        line-height: 1.2;
    }

    .headerbar .search-header {
        display: none;
    }
}

@media (max-width: 350px) {
    .headerbar .logo {
        font-size: 25px;
    }

    .rivertravel-subtitle {
        font-size: 12px;
    }

    .headerbar {
        background-position: -70px top;
    }
}

/* Rivertravel — рекламный блок */
.advert_b {
    margin: 0 0 15px;
    padding: 1px 0;
    background-color: #ebf4fc;
    border-radius: 7px;
    box-shadow: 0 0 4px rgba(128, 184, 239, 0.8);
    overflow: hidden;
}

.advert_topic {
    position: relative;
    padding: 9px 8px;
    color: #fff;
    background: linear-gradient(to bottom, #0b407a, #072747);
    border-bottom: 4px solid #ee8b0a;
    font-size: 12px;
}

.advert_b .triangle {
    position: relative;
    width: 0;
    height: 0;
    margin-left: 24px;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-bottom: 7px solid #ee8b0a;
    transform: translateY(-11px);
}

.advert_body {
    display: block;
    margin: 8px 10px 12px;
    aspect-ratio: 1340 / 174;
    background: #fff url("./images/bg_adv.jpg") center / contain no-repeat;
    cursor: pointer;
}

@media (max-width: 700px) {
    .advert_b {
        margin-bottom: 18px;
    }

    .advert_body {
        margin: 8px 10px 12px;
        min-height: 45px;
        aspect-ratio: 1340 / 174;
    }
}
/* Rivertravel — форум без ограничения максимальной ширины */
#wrap {
    max-width: none;
}

/* Rivertravel — праздничное оформление */
#rivertravel-holiday-effects {
    position: absolute;
    inset: 0 0 auto;
    height: 480px;
    overflow: hidden;
    pointer-events: none;
    z-index: 3;
}

#rivertravel-holiday-effects > div {
    display: none;
    position: absolute;
    width: 200px;
    height: 200px;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
}

#rivertravel-holiday-effects .konfeti {
    background-image: url("./images/konfeti.gif");
}

#rivertravel-holiday-effects .firework {
    background-image: url("./images/firework.gif");
}

#rivertravel-holiday-effects .firework_bl {
    background-image: url("./images/firework_bl.gif");
}

/* Показываем праздничный колпак только в праздничные дни */
body.rivertravel-holiday .victory_day {
    display: block;
}

/* Пользовательская настройка уменьшения анимаций */
@media (prefers-reduced-motion: reduce) {
    #rivertravel-holiday-effects {
        display: none;
    }
}

@media (max-width: 700px) {
    #rivertravel-holiday-effects {
        height: 260px;
    }

    #rivertravel-holiday-effects > div {
        width: 120px;
        height: 120px;
    }

    body.rivertravel-holiday .victory_day {
        display: none;
    }
}


/* Rivertravel — новогоднее оформление */

/* Слой снега */
.rt-newyear-snow {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 3;
}

.rt-newyear-flake {
    position: absolute;
    top: -12px;
    display: block;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 6px 1px rgba(255, 255, 255, 0.6);
    animation: rt-snowfall linear infinite;
    will-change: transform;
}

@keyframes rt-snowfall {
    from {
        transform: translate3d(0, -15px, 0);
    }
    to {
        transform: translate3d(var(--drift), 510px, 0);
    }
}

/* Гирлянда */
.rt-newyear-lights {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 26px;
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    padding: 0 12px;
    border-top: 2px solid rgba(22, 50, 49, 0.65);
    pointer-events: none;
    z-index: 5;
}

.rt-newyear-bulb {
    position: relative;
    display: block;
    width: 9px;
    height: 13px;
    margin-top: 2px;
    border-radius: 45% 45% 55% 55%;
    background: #ffda72;
    box-shadow: 0 0 8px 3px rgba(255, 215, 105, 0.75);
    transform-origin: top center;
    animation: rt-twinkle 2.8s ease-in-out infinite alternate;
}

.rt-newyear-bulb::before {
    content: "";
    position: absolute;
    top: -4px;
    left: 2px;
    width: 5px;
    height: 5px;
    border-radius: 2px;
    background: #314c45;
}

.rt-newyear-bulb:nth-child(4n + 2) {
    background: #9be4ff;
    box-shadow: 0 0 8px 3px rgba(117, 211, 255, 0.65);
}

.rt-newyear-bulb:nth-child(4n + 3) {
    background: #ff9e95;
    box-shadow: 0 0 8px 3px rgba(255, 116, 110, 0.65);
}

.rt-newyear-bulb:nth-child(4n + 4) {
    background: #aff5c2;
    box-shadow: 0 0 8px 3px rgba(138, 238, 166, 0.65);
}

@keyframes rt-twinkle {
    from { opacity: 0.55; filter: brightness(0.8); }
    to { opacity: 1; filter: brightness(1.25); }
}

/* Поздравление */
.rt-newyear-greeting {
    position: absolute;
    top: 185px;
    z-index: 6;
    padding: 8px 18px;
    border: 1px solid rgba(255, 224, 144, 0.6);
    border-radius: 20px;
    background: rgba(5, 36, 68, 0.55);
    color: #fff2c7;
    font-size: 21px;
    font-weight: 600;
    text-shadow: 0 1px 3px #001a35;
    box-shadow: 0 0 20px rgba(255, 218, 135, 0.15);
    pointer-events: none;
    white-space: nowrap;
}

@media (min-width: 1221px) {
    .rt-newyear-greeting {
        right: calc(10% + 12px);
    }
}

@media (min-width: 701px) and (max-width: 1220px) {
    .rt-newyear-greeting {
        right: calc(2% + 12px);
    }
}

/* Мобильная версия */
@media (max-width: 700px) {
    .rt-newyear-lights {
        height: 25px;
    }

    .rt-newyear-bulb {
        width: 6px;
        height: 9px;
    }

    .rt-newyear-greeting {
        top: 145px;
        right: 10px;
        padding: 5px 11px;
        font-size: 14px;
    }

.rt-newyear-bulb::before {
    left: 50%;
    transform: translateX(-50%);
}

    .rt-newyear-snow {
        bottom: 0;
    }

    @keyframes rt-snowfall {
        from { transform: translate3d(0, -15px, 0); }
        to { transform: translate3d(var(--drift), 285px, 0); }
    }
}

/* Отключение анимации по настройке устройства */
@media (prefers-reduced-motion: reduce) {
    .rt-newyear-flake {
        animation: none;
        display: none;
    }

    .rt-newyear-bulb {
        animation: none;
    }
}
/* Rivertravel — уведомление в футере */
.rivertravel-copyright {
    color: #082c51;
    text-align: center;
    padding: 12px 15px;
    line-height: 1.5;
}

.rivertravel-copyright a {
    color: #ee8b0a;
}

.rivertravel-copyright a:hover {
    text-decoration: underline;
}
/* Rivertravel — форма предложения нового места на карте */
.rivertravel-map-form {
    width: 100%;
    max-width: 480px;
    margin: 15px auto 0;
    text-align: center;
}

.rivertravel-map-form input[type="text"] {
    display: block;
    width: 100%;
    max-width: 300px;
    box-sizing: border-box;
    margin: 5px auto 10px;
    padding: 6px 8px;
    border: 1px solid #b5c4d3;
    border-radius: 3px;
}

.rivertravel-map-form textarea {
    display: block;
    width: 100%;
    max-width: 300px;
    min-height: 75px;
    box-sizing: border-box;
    margin: 5px auto 10px;
    padding: 6px 8px;
    border: 1px solid #b5c4d3;
    border-radius: 3px;
    resize: vertical;
}

.rivertravel-map-form .button1 {
    display: inline-block;
    margin-top: 5px;
    padding: 7px 18px;
    background: #0b407a;
    border: 1px solid #072747;
    border-radius: 3px;
    color: #fff;
    cursor: pointer;
}

.rivertravel-map-form .button1:hover {
    background: #145b97;
}

@media (max-width: 700px) {
    .rivertravel-map-form {
        max-width: 100%;
    }
}
/* Rivertravel — оригинальные стили раскрывающихся блоков карты */
.rivertravel-map-description summary {
    line-height: 2em;
    cursor: pointer;
}

.rivertravel-map-description details {
    background-color: #105289;
    padding: 10px;
    color: #fff;
    margin: 4px;
}
/* Rivertravel — антиспам-поле карты */
.rt-map-honeypot {
    display: none !important;
}
/* Rivertravel — полностью скрываем блоки благодарностей и рейтинга под сообщением */
.postbody div[id^="list_thanks"],
.postbody div[id^="div_post_reput"] {
    display: none !important;
}
/* Rivertravel — скрываем рейтинг в списках тем */
.row-item .list-inner > span:has(> span[style*="reput_star_back.gif"]) {
    display: none !important;
}
ul.topiclist li {
    color: #4C5D77;
}
/* Rivertravel — восстановление шрифта старой версии форума */
html,
body,
input,
button,
select,
textarea {
    font-family: "Open Sans", "Droid Sans", Verdana, Arial, Helvetica, sans-serif;
}

html, body {
    color: #536482;
    background-color: #082B51;
}

/* Rivertravel — кнопки у нижнего края карточки сообщения */
@media (min-width: 701px) {
    .post.has-profile > .inner {
        display: flex;
        flex-direction: row;
        align-items: stretch;
    }

    .post.has-profile .postbody {
        float: none;
        clear: none;
        flex: 1 1 auto;
        width: auto;
        min-width: 0;
        position: relative;
        box-sizing: border-box;
        margin-right: 15px;
    }

    .post.has-profile .postprofile {
        float: none;
        flex: 0 0 200px;
        width: 200px;
        box-sizing: border-box;
        order: 2;
    }
    
    .post.has-profile .back2top {
        order: 3;
    }

    .post.has-profile .postbody .post-buttons {
        top: auto !important;
        bottom: 0 !important;
        right: 0;
    }
}