html {
    scroll-padding-block-start: 60px;
}

body {
    padding-bottom: 20px;
}

description {
    display: none;
}

/* Set padding to keep content from hitting the edges */
.body-content {
    margin-top: 53px;
    padding-left: 15px;
    padding-right: 15px;
}

/* Override the default bootstrap behavior where horizontal description lists 
   will truncate terms that are too long to fit in the left column 
*/
.dl-horizontal dt {
    white-space: normal;
}

/* Set width on the form input elements since they're 100% wide by default */
input,
select,
textarea {
    max-width: 280px;
}

.tenses-table-topheader {
    background: #ce6f6e;
    border-radius: 5px;
    text-align: center;
    height: 40px;
    padding: 5px;
}

.red-bkg {
    background: #ce6f6e;
}

.green-bkg {
    background: #82b58c;
}

.hover-increase {
    transition: .3s;
}

    .hover-increase:hover {
        transform: scale(1.02);
    }

.lightgrey-bkg {
    background: #ddd;
    transition: .3s;
}

    .lightgrey-bkg:hover {
        background: #e9f5fe;
    }

.tenses-table {
    padding: 1px;
    margin-top: 1px;
    margin-bottom: 1px;
    width: 100%;
}

    .tenses-table div {
        border-radius: 5px;
        text-align: center;
        height: 65px;
        display: table;
        width: 100%;
    }

        .tenses-table div p {
            display: table-cell;
            vertical-align: middle;
        }

.tenses-header {
    padding: 1px;
}

    .tenses-header div {
        border-radius: 5px;
        text-align: center;
        height: 50px;
        font-weight: bold;
        display: table;
        width: 100%
    }

        .tenses-header div p {
            display: table-cell;
            vertical-align: middle;
        }

.meanings-bkg {
    background: #d9daf2;
}

.grammarforms-bkg {
    background: #9ec5e2;
}

.tenses-content {
    border-radius: 5px;
}

    .tenses-content div h5 {
        font-weight: bold;
        text-decoration: underline;
    }

.tenses-grammarforms {
    text-align: center;
    border-radius: 5px;
    padding: 5px;
}

    .tenses-grammarforms h5 {
        font-weight: bold;
        text-decoration: underline;
    }

.positive-bkg {
    background: #e4ffb7;
}

.negative-bkg {
    background: #ffd6b8;
}

.question-bkg {
    background: #ffff7f;
}

.text-example {
    color: #8282b9;
    font-style: italic;
}

.termo-bckg {
    border-radius: 5px;
    background: linear-gradient(to bottom, #ce6f6e, #9ec5e2);
}

/*
.dropdown-submenu {
    position: relative;
}

    .dropdown-submenu > .dropdown-menu {
        top: 0;
        left: 100%;
        margin-top: -6px;
        margin-left: -1px;
        -webkit-border-radius: 0 6px 6px 6px;
        -moz-border-radius: 0 6px 6px 6px;
        border-radius: 0 6px 6px 6px;
    }

    .dropdown-submenu:hover > .dropdown-menu {
        display: block;
    }

    .dropdown-submenu > a:after {
        display: block;
        content: " ";
        float: right;
        width: 0;
        height: 0;
        border-color: transparent;
        border-style: solid;
        border-width: 5px 0 5px 5px;
        border-left-color: #cccccc;
        margin-top: 5px;
        margin-right: -10px;
    }

    .dropdown-submenu:hover > a:after {
        border-left-color: #ffffff;
    }

    .dropdown-submenu.pull-left {
        float: none;
    }

        .dropdown-submenu.pull-left > .dropdown-menu {
            left: -100%;
            margin-left: 10px;
            -webkit-border-radius: 6px 0 6px 6px;
            -moz-border-radius: 6px 0 6px 6px;
            border-radius: 6px 0 6px 6px;
        }*/

.popover {
    width: auto;
    max-width: 600px;
}

.grammarPatternHeader {
    text-align: center;
    font-size: x-large;
}

.grammarPatternContent table, .grammarPatternContent p {
    font-weight: normal;
    text-align: center;
}

.thinPadding {
    padding: 5px;
}

/*Override bootstrap.css*/
#mainNavbar {
    background: linear-gradient(to bottom, #4e7a8c, #55b065);
}

    #mainNavbar .navbar-brand {
        color: #fff;
    }

    #mainNavbar .navbar-nav > li > a {
        color: #fff;
    }

    #mainNavbar .dropdown:hover > .dropdown-menu, #mainNavbar .dropDwn-submenu:hover .dropdown-menu {
        display: block;
    }

    #mainNavbar .dropdown:hover .dropDwn-toggle:hover > i {
        transform: rotate(-90deg);
    }

    #mainNavbar .dropDwn-submenu {
        position: relative;
    }

        #mainNavbar .dropDwn-submenu > .dropdown-menu {
            top: 0;
            left: 100%;
            margin-top: -6px;
        }

    .btn-toolbar {
        margin-left: 0;
    }

/*.nav .active a {
    font-weight: bold;
    background: #d4ebfc;
    border-left: 5px solid #428bca;
}

.nav > li > a:hover,
.nav > li > a:focus {
    background: #e9f5fe;
}

.nav .nav {
    display: none;
    background: #ddd;
}

.nav .active .nav {
    display: block;
}

.nav .nav a {
    font-weight: normal;
    font-size: .85em;
}

.nav .nav span {
    margin: 0 5px 0 2px;
}


.nav .nav .active a,
.nav .nav .active:hover a,
.nav .nav .active:focus a {
    font-weight: bold;
    padding-left: 30px;
    background: #e9f5fe;
    border-left: 5px solid #428bca;
}

.nav .nav .active span,
.nav .nav .active:hover span,
.nav .nav .active:focus span {
    display: none;
}
*/
.vertical-center {
    display: table-cell;
    float: none;
    vertical-align: middle;
}

mark {
    background: #fefe9c;
}

.tm-left-side-panel-header {
    border-right: 2px solid #428bca;
    padding-right: 10px
}

.tm-right-side-panel-header {
    border-left: 2px solid #428bca;
    padding-left: 10px
}

/*New life styles*/
#btn-back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
}

.marck-script-regular {
    font-family: "Marck Script", cursive;
    font-weight: 400;
    font-style: normal;
}

.center-img-index-page-left {
    margin-top: 10px;
}

.center-img-index-page-right {
    margin-top: 10px;
}

#supportButton:hover {
    background-color: orange;
}

.collapse-btn:hover{
    cursor: pointer;
}

/* .collapse-icon {
    font-family: "Glyphicons Halflings";
} */

/*arrow left*/
/* .collapse-btn.collapsed .collapse-icon:after {
    content: "\e257";
} */

/*arrow down*/
/* .collapse-btn .collapse-icon::after {
    content: "\e259";
} */

.ul-hyphen {
    list-style-type: none;
}

    ul-hyphen li::before {
        content: "- ";
    }

ul.no-bullets {
    list-style-type: none; /* Remove bullets */
    padding: 0; /* Remove padding */
    margin: 0; /* Remove margins */
}

.fiveo-modal-dialog {
    width: fit-content;
}

#approaches a.collapsed:after {
    content: "...";
}

#approaches a:not(.collapsed):after {
    content: "\e260";
}

#approaches span.collapse.in{
    display: inline;
}

#fiveo-panel-banner{
    background-image: url(../img/banner.png);
    background-position: center;
    background-size: cover;
}

.fiveo-banner-container{
    position: relative;
    text-align: center;
    color: white;
}

.fiveo-banner-bottom-left{
    position: absolute;
    bottom: -10px;
    left: 30px;
    text-align: left;
}

.fiveo-glossary-table th, .fiveo-glossary-table td {
    width: 50%;
}

.fiveo-align-items-center {
    display: flex;
    align-items: center; /* Align items vertically */
}

.fiveo-font-weight-bold {
    font-weight: bold;
}

.fiveo-font-weight-italic {
    font-style: italic;
}

.fiveo-right-bracket {
    border-right-color: black;
    border-right-style: solid;
    border-radius: 10px;
}

.fiveo-left-bracket {
    border-left-color: black;
    border-left-style: solid;
    border-radius: 10px;
}

.fiveo-article-text p,
.fiveo-article-text ul li,
.fiveo-article-text ol li{
    font-size: 1.2em;
}

    .fiveo-article-text ul li p,
    .fiveo-article-text ol li p {
        font-size: inherit;
    }

/* Зеленая горизонтальная линия для разделителей */
.hr-green {
    border-top: 2px solid #55b065;
}

/* Blazor Error UI */
#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

#blazor-error-ui .reload {
    color: #007bff;
    text-decoration: underline;
}

#blazor-error-ui .reload:hover {
    text-decoration: none;
}

/* Стили для одной вертикальной стрелки вдоль всех панелей */
.panels-container {
    display: flex;
    position: relative;
}

.vertical-arrow-container {
    width: 12px;
    margin-right: 15px;
    position: relative;
    flex-shrink: 0;
}

.vertical-arrow {
    width: 8px;
    position: absolute;
    top: 0;
    bottom: 0;
    background: linear-gradient(to bottom, #e74c3c, #3498db);
    border-radius: 4px;
}

.vertical-arrow::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 12px solid #3498db;
}

.panels-content {
    flex: 1;
}

.panels-content .panel {
    margin-bottom: 15px;
}

.panels-content .panel:last-child {
    margin-bottom: 0;
}

/* Tooltip-enabled header cells: keep default cursor */
.scheme.blazor-scheme .grid-row.header .cell[data-tippy-content] {
    cursor: default;
}

/* Fiveo pastel tooltip theme (greens & blues) */
.tippy-box[data-theme~='fiveo-pastel'] {
    background-color: #F0FAFF; /* pastel blue */
    color: #2E4057; /* dark desaturated for readability */
    border: 1px solid #CDEEDB; /* pastel green border */
    border-left: 3px solid #A7E3C3; /* green accent */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}
.tippy-box[data-theme~='fiveo-pastel'] .tippy-content {
    padding: 8px 10px;
    line-height: 1.35;
}
.tippy-box[data-theme~='fiveo-pastel'] .tippy-arrow {
    color: #F0FAFF; /* match background */
}
/* Optional animation smoothing from tippy.css */
.tippy-box[data-animation='shift-away-subtle'][data-state='hidden'] {
    opacity: 0;
    transform: translateY(-2px);
}

/* Center social icons in the top navbar (right side) */
#mainNavbar .navbar-nav.navbar-right > li > a.social-icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 12px;  /* tweak as needed */
    padding-bottom: 12px; /* tweak as needed */
}
#mainNavbar .navbar-nav.navbar-right > li > a.social-icon-link i {
    line-height: 1;
    display: block; /* avoid baseline shifts */
}
