/*
    Created on : 14.09.2024, 00:46:00
    Author     : Alekhnovich Oleg (https://webplatinum.net)
*/

@font-face {
    font-family: FiraSans;
    src: url('fonts/FiraSans-Regular.ttf');
    font-display: swap;
}

body {
    font-family: FiraSans, sans-serif;
}
#headerBg {
    background-image: url("../images/all/header-bg.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}
.logo {
    height: 64px;
}
@media (min-width: 1200px) {
    .logo {
        height: 80px;
    }
}

/* MAIN NAVBAR
-------------------------------------------------- */
.navbar-nav-bg {
    background-color: #f8f9fa;
    padding: 10px;
}
@media (min-width: 992px) {
    .navbar-nav-bg {
        background: none;
        padding: 0;
    }
}
.navbar-nav .nav-link {
    color: #23836a;
    padding: .7rem .7rem .6rem .7rem;
    margin-right: 1px;
    margin-left: 1px;
    margin-top: 2px;
    text-transform: uppercase;
}
.navbar-nav .nav-link:hover {
    color: #fff;
    background-color: #1dbb90;
}
.navbar-nav .nav-link.active, .navbar-nav .nav-link.show {
    color: #fff;
    background-color: #1dbb90;
}

/* CAROUSEL FOR BOOK PAGE
-------------------------------------------------- */
.book-carousel-indicator {
    opacity: .5;
    transition: all 0.3s ease;
}
.book-carousel-indicator:hover {
    opacity: 1;
    transition: all 0.3s ease;
}
.book-carousel-indicator.active {
    opacity: 1;
    transition: all 0.3s ease;
}

/* MAIN CONTENT
-------------------------------------------------- */
a {
    color: #23836a;
    text-decoration: none;
}
a:hover {
    color: #1dbb90;
}
.bg-light {
    background-color: #F4F7F9 !important;
}
.bg-profile {
    padding-top: 70%;
}
.author-name {
    margin-top: -5rem;
    width: 85%;
}
.error404 {
    font-size: 5rem;
}
@media (min-width: 390px) {
    .error404 {
        font-size: 7rem;
    }
    .bg-profile {
        padding-top: 60%;
    }
    .author-name {
        margin-top: -6rem;
        width: 85%;
    }
}
@media (min-width: 576px) {
    .error404 {
        font-size: 10rem;
    }
    .bg-profile {
        padding-top: 50%;
    }
    .author-name {
        margin-top: -6rem;
        width: 80%;
    }
}
@media (min-width: 768px) {
    .error404 {
        font-size: 14rem;
    }
    .bg-profile {
        padding-top: 45%;
    }
    .author-name {
        margin-top: -7rem;
        width: 75%;
    }
}
@media (min-width: 1200px) {
    .error404 {
        font-size: 14rem;
    }
    .author-name {
        margin-top: -8rem;
        width: 75%;
    }
}
.text-success {
    color: #1dbb90 !important;
}
.bg-success {
    background-color: #1dbb90;
}
.text-blue {
    color: #1eaace !important;
}
.bg-blue {
    background-color: #1eaace !important;
}
.link-success {
    color: #1dbb90 !important;
}
.link-dark {
    color: #111111 !important;
}
.link-dark:hover {
    color: #1dbb90 !important;
}
.active>.page-link, .page-link.active {
    background-color: #23836a;
    border-color: #23836a;
}
.nav-pills .nav-link.active, .nav-pills .show>.nav-link {
    color: #000;
    background-color: transparent;
    border-top: 1px solid #333;
}
.nav-pills .nav-link {
    /*background-color: #fff;*/
    background-color: #F4F7F9;
    border-top: 1px solid transparent;
}
.nav-pills .nav-link:hover {
    border-top: 1px solid #333;
}
#book-content .nav-link {
    color: #000;
}
#biography::first-letter {
    line-height: 1;
    font-size: 400%;
    color: #000;
    float: left;
    margin-right: 1rem;
}

.btn-success {
    --bs-btn-color: #fff;
    --bs-btn-bg: #1dbb90;
    --bs-btn-border-color: #1dbb90;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #23836a;
    --bs-btn-hover-border-color: #23836a;
    --bs-btn-focus-shadow-rgb: 60, 153, 110;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #23836a;
    --bs-btn-active-border-color: #23836a;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #1dbb90;
    --bs-btn-disabled-border-color: #1dbb90;
}
.dropdown-menu {
    background-color: #222222;
}
.dropdown-item {
    color: lightgray;
}
.dropdown-item:hover {
    color: white;
    background: none;
}
.dropdown-item.active, .dropdown-item:active {
    color: white;
    background: none;
}
.square {
    aspect-ratio: 1 / 1;
    transition: transform 0.3s ease;
}
.square img {
    transition: transform 0.3s ease;
}
.images-grid-banner-title {
    bottom: -2rem;
    -webkit-transition: all 0.3s ease;;
    -moz-transition: all 0.3s ease;;
    -o-transition: all 0.3s ease;;
    transition: all 0.3s ease;
}
.images-grid-banner-link {
    opacity: 0;
    -webkit-transition: all 0.3s ease;;
    -moz-transition: all 0.3s ease;;
    -o-transition: all 0.3s ease;;
    transition: all 0.3s ease;
}
.square:hover .images-grid-banner-title {
    bottom: 0px;
    -webkit-transition: all 0.3s ease;;
    -moz-transition: all 0.3s ease;;
    -o-transition: all 0.3s ease;;
    transition: all 0.3s ease;
}
.square:hover .images-grid-banner-link {
    opacity: 1;
    -webkit-transition: all 0.3s ease;;
    -moz-transition: all 0.3s ease;;
    -o-transition: all 0.3s ease;;
    transition: all 0.3s ease;
}
.square:hover img {
    transform: scale(1.05);
}
.img-square {
    width: 90%;
    margin: auto;
    overflow: hidden; /* clearfix */
}
.img-square:before {
    content: "";
    padding-top: 100%;
    float: left;
}
.img-square-book {
    width: 75%;
    margin: auto;
    overflow: hidden; /* clearfix */
}
.img-square-book:before {
    content: "";
    padding-top: 125%;
    float: left;
}
.price-plan-img {
    aspect-ratio: 2 / 1;
}

/* FOOTER
-------------------------------------------------- */
footer a {
    color: #d2d3d5 !important;
    text-decoration: none;
}
footer a:hover {
    color: #fff !important;
}
.bg-footer {
    background-image: url("../images/all/bg-footer.jpg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}
.bg-footer-dark {
    background-color: #1d1d1d !important;
}

/* BOOTSTRAP SUBMENU 3 LEVEL
-------------------------------------------------- */
.dropdown-submenu {
    position: relative;
}
.dropdown-submenu a::after {
    transform: rotate(-90deg);
    position: absolute;
    right: 6px;
    top: .8em;
}
.dropdown-submenu .dropdown-menu {
    top: 0;
    left: 100%;
    margin-left: .1rem;
    margin-right: .1rem;
}

/* BUTTON UP
-------------------------------------------------- */
#btn-back-to-top {
    position: fixed;
    bottom: 5px;
    right: 7px;
    display: none;
    z-index: 1050;
}

/* DOUBLE RANGE SLIDER
-------------------------------------------------- */
input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    pointer-events: all;
    width: 24px;
    height: 24px;
    background-color: #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 1px #C6C6C6;
    cursor: pointer;
}
input[type=range]::-moz-range-thumb {
    -moz-appearance: none;
    pointer-events: all;
    width: 24px;
    height: 24px;
    background-color: #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 1px #C6C6C6;
    cursor: pointer;
}
input[type=range]::-webkit-slider-thumb:hover {
    background: #f7f7f7;
}
input[type=range]::-webkit-slider-thumb:active {
    box-shadow: inset 0 0 3px #387bbe, 0 0 9px #387bbe;
    -webkit-box-shadow: inset 0 0 3px #387bbe, 0 0 9px #387bbe;
}
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    opacity: 1;
}
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    height: 7px;
    width: 100%;
    position: absolute;
    background-color: #C6C6C6;
    pointer-events: none;
}
#fromSlider {
    z-index: 1;
}
#toSlider {
    z-index: 0;
}

/* CSS 3 EFFECTS
-------------------------------------------------- */
.fade-img {
    -webkit-transition: all 0.3s ease;;
    -moz-transition: all 0.3s ease;;
    -o-transition: all 0.3s ease;;
    transition: all 0.3s ease;
    opacity: 1;
}
.fade-img:hover {
    -webkit-transition: all 0.3s ease;;
    -moz-transition: all 0.3s ease;;
    -o-transition: all 0.3s ease;;
    transition: all 0.3s ease;
    opacity: 0.5;
}
.scale-img img {
    transition: transform 0.5s ease;
}
.scale-img:hover img {
    transform: scale(1.1);
}
.inverted {
    filter: invert(100%);
}
.inverted-none {
    filter: invert(0%);
}
.wave-border {
    position: relative;
    width: 100%;
    height: 2px;
    overflow: hidden;
}
.wave-border::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: repeating-linear-gradient(
        90deg,
        #fff,
        #fff 10px,
        transparent 10px,
        transparent 15px
    );
}
.hover-up {
    transition: transform 0.3s ease;
}
.hover-up:hover {
    transform: translateY(-7px);
    transition: transform 0.3s ease;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
}
input[type='number'],
input[type="number"]:hover,
input[type="number"]:focus {
    appearance: none;
    -moz-appearance: textfield;
}

/* ICONS BLOCK
-------------------------------------------------- */
.icon-block {
    width: 110px;
    height: 110px;
}
.icon-insert svg {
    fill: #1dbb90 !important;
    height: 50% !important;
    width: 50% !important;
}
.icon-block-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.icon-block-link-text {
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    width: 0;
    transition: width 0s;
}
.icon-block-arrow {
    flex-shrink: 0;
}
@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}
.icon-hover-block:hover .icon-block-link-text {
    animation: typing .5s steps(20, end);
    width: auto;
}
.icon-hover-block:hover .icon-insert svg {
    fill: #ffffff !important;
    transition: all 0.5s ease;
}
.icon-hover-block:hover .icon-bg {
    fill: #1dbb90 !important;
    transition: all 0.5s ease;
}

/* CURSOR
-------------------------------------------------- */
.cursor {
    width: 9px;
    height: 9px;
    background-color: #333;
    border-radius: 50%;
    position: fixed;
    pointer-events: none; /* Чтобы точка не мешала кликам */
    transform: translate(-50%, -50%);
    transition: transform 0.05s ease; /* Плавность движения */
    z-index: 2000;
}

/* ANIMATION OF DOTS
-------------------------------------------------- */
.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    position: fixed;
    bottom: 0;
    animation: rise linear;
}
@keyframes rise {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh);
        opacity: 0;
    }
}

/* MEDIA
-------------------------------------------------- */
/*
@media (min-width: 390px) {

}
@media (min-width: 576px) {

}
@media (min-width: 768px) {

}
@media (min-width: 1200px) {

}
*/
