/* Public site styles, loaded after Bootstrap so they can override it. */
:root {
    --bs-link-color: #333;
    --bs-link-color-rgb: 51, 51, 51;
    --bs-link-hover-color: #666;
    --bs-link-hover-color-rgb: 102, 102, 102;
}
html, body {
    height: 100%;
    background: #f2f2f2;
}
a {
    color: #333;
    font-weight: bold;
    text-decoration: none;
}
a:hover {
    color: #666;
    text-decoration: underline;
}
a.btn:hover,
.dropdown-item:hover {
    text-decoration: none;
}
h1, h2, h3, h4 {
    color: #444;
}
h1, h2, h3, h4 {
    margin-top: 0;
    font-weight: bold;
    color: #555555;
    margin-bottom: 15px;
}
h1 {
    font-size: 25px;
}
h2 {
    font-size: 20px;
}
h3 {
    font-size: 18px;
}
h4 {
    font-size: 1rem;
}
p {
    line-height: 25px;
}
.card-header h1,
.card-header h2,
.card-header h3,
.card-header h4 {
    font-size: 18px;
    font-weight: 500;
    margin: 0;
    color: #fff;
}
.card-body div h1,
.card-body div h2,
.card-body div h3,
.card-body div h4 {
    font-size: 1rem;
    margin: 0;
    color: #555555;
}

#main {
    min-height: 100%;
    margin: 0 auto -50px;
    padding: 0 0 50px;
    width: 100%;
}
.search {
    background-color: #4b5563;
    /* thin accent line in the logo colors, like on the cards */
    background-image: linear-gradient(90deg, #0082d3, #e20996);
    background-size: 100% 3px;
    background-repeat: no-repeat;
    padding: 15px 0 12px;
}
.search .form-control {
    border-color: transparent;
}
.search .form-control:focus {
    border-color: #fff;
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.35);
}
.search .btn-search {
    background-color: #fff;
    border-color: #fff;
    color: #4b5563;
    font-weight: 600;
    white-space: nowrap;
}
.search .btn-search:hover,
.search .btn-search:focus {
    background-color: #eef1f4;
    border-color: #eef1f4;
    color: #333;
}
.navbar {
    border-radius: 0px;
    margin-bottom: 0px;
    width: 100%;
    z-index: 99;
    border: none;
    background-color: #fff;
}
.navbar .navbar-nav .nav-link {
    color: #555;
}
.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.show {
    color: #222;
}
.navbar .nav-icon {
    margin-right: 5px;
    vertical-align: -2px;
}
.navbar .navbar-nav .nav-link.active {
    color: #222;
    font-weight: 600;
}
@media (min-width: 1200px) {
    .navbar .navbar-nav .nav-link {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}
.navbar .dropdown-menu {
    border-radius: 0;
}
.navbar .dropdown-item {
    font-weight: normal;
}
.navbar a.navbar-brand {
    font-size: 25px;
    color: #555;
    font-weight: bold;
}
.navbar .navbar-brand:hover {
    color: #858585;
}
.btn-letter {
    margin-right: 5px;
    margin-bottom: 5px;
    width: 32px;
    font-weight: bold;
    text-decoration: none;
}
.btn-wide {
    width: 40px;
}
.card {
    --bs-card-border-color: #cfd4da;
    border-radius: 10px;
    margin-bottom: 20px;
    background-color: #fff;
    overflow: hidden;
    /* thin accent line in the logo colors */
    border-top: 0;
    background-image: linear-gradient(90deg, #0082d3, #e20996);
    background-size: 100% 3px;
    background-repeat: no-repeat;
    padding-top: 3px;
}
.card .card-header {
    background-color: #4b5563;
    border-bottom-color: #4b5563;
    border-radius: 0;
    color: #fff;
    padding-top: 12px;
    padding-bottom: 10px;
}
.card .card-header a {
    color: #fff;
}
.card .card-footer {
    background-color: #fafbfc;
    border-top-color: #e3e6ea;
    border-radius: 0;
}
/* male */
.male {
    color: #0082d3;
}
a.male:hover {
    color: #00a0f9;
}
.btn-male {
    --bs-btn-color: #fff;
    --bs-btn-bg: #0082d3;
    --bs-btn-border-color: #006a9b;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #0082d3;
    --bs-btn-hover-border-color: #006a9b;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #0082d3;
    --bs-btn-active-border-color: #006a9b;
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #0082d3;
    --bs-btn-disabled-border-color: #006a9b;
    background-image: -webkit-linear-gradient(top, #1399f2 0%, #0082d3 100%);
    background-image:      -o-linear-gradient(top, #1399f2 0%, #0082d3 100%);
    background-image: -webkit-gradient(linear, left top, left bottom, from(#1399f2), to(#0082d3));
    background-image:         linear-gradient(to bottom, #1399f2 0%, #0082d3 100%);
    background-repeat: repeat-x;
    border-color: #006a9b;
    color: #fff;
}
.btn-male:hover,
.btn-male:focus {
    background-color: #0082d3;
    background-position: 0 -15px;
    color: #fff;
}
.btn-male:active,
.btn-male.active {
    background-color: #0082d3;
    border-color: #006a9b;
}
.btn-male.disabled,
.btn-male:disabled,
.btn-male[disabled] {
    background-color: #0082d3;
    background-image: none;
}
/* female */
.female {
    color: #e20996;
}
a.female:hover {
    color: #ff09ab;
}
.btn-female {
    --bs-btn-color: #fff;
    --bs-btn-bg: #e20996;
    --bs-btn-border-color: #c4007c;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #e20996;
    --bs-btn-hover-border-color: #c4007c;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #e20996;
    --bs-btn-active-border-color: #c4007c;
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #e20996;
    --bs-btn-disabled-border-color: #c4007c;
    background-image: -webkit-linear-gradient(top, #ff3dbe 0%, #e20996 100%);
    background-image:      -o-linear-gradient(top, #ff3dbe 0%, #e20996 100%);
    background-image: -webkit-gradient(linear, left top, left bottom, from(#ff3dbe), to(#e20996));
    background-image:         linear-gradient(to bottom, #ff3dbe 0%, #e20996 100%);
    background-repeat: repeat-x;
    border-color: #c4007c;
    color: #fff;
}
.btn-female:hover,
.btn-female:focus {
    background-color: #e20996;
    background-position: 0 -15px;
    color: #fff;
}
.btn-female:active,
.btn-female.active {
    background-color: #e20996;
    border-color: #c4007c;
}
.btn-female.disabled,
.btn-female:disabled,
.btn-female[disabled] {
    background-color: #e20996;
    background-image: none;
}
.btn-normal {
    --bs-btn-color: #fff;
    --bs-btn-bg: #509b50;
    --bs-btn-border-color: #2c8e2e;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #509b50;
    --bs-btn-hover-border-color: #2c8e2e;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #509b50;
    --bs-btn-active-border-color: #2c8e2e;
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #509b50;
    --bs-btn-disabled-border-color: #2c8e2e;
    background-image: -webkit-linear-gradient(top, #50af52 0%, #509b50 100%);
    background-image:      -o-linear-gradient(top, #50af52 0%, #509b50 100%);
    background-image: -webkit-gradient(linear, left top, left bottom, from(#50af52), to(#509b50));
    background-image:         linear-gradient(to bottom, #50af52 0%, #509b50 100%);
    background-repeat: repeat-x;
    border-color: #2c8e2e;
    color: #fff;
}
.btn-normal:hover,
.btn-normal:focus {
    background-color: #509b50;
    background-position: 0 -15px;
    color: #fff;
}
.btn-normal:active,
.btn-normal.active {
    background-color: #509b50;
    border-color: #2c8e2e;
}
.btn-normal.disabled,
.btn-normal:disabled,
.btn-normal[disabled] {
    background-color: #509b50;
    background-image: none;
}
.column {
    border: 1px solid #ccc;
    padding: 10px;
}
.form-control {
    border-radius: 0;
}
.form-control:focus {
    border-color: #828282;
    outline: 0;
    -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(186, 186, 186, 0.60);
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(186, 186, 186, .6);
}

.breadcrumb {
    background: none;
    border-radius: 0;
    padding: 12px 0;
    margin-bottom: 0px;
}
.breadcrumb .breadcrumb-item.active a {
    color: #999;
}
.breadcrumb .breadcrumb-item.active a:hover {
    color: #ccc;
}
.navbar a,
.breadcrumb a {
    text-decoration: none;
}
#search-suggestions {
    top: 100%;
    left: calc(var(--bs-gutter-x) * .5);
    right: calc(var(--bs-gutter-x) * .5);
    max-height: 320px;
    overflow-y: auto;
    border-radius: 0;
    z-index: 1051;
}
#search-suggestions .dropdown-item.active,
#search-suggestions .dropdown-item:active {
    background-color: #509b50;
    color: #fff;
}
#footer {
    background-color: #4b5563;
    padding-top: 15px;
}
#footer .tags {
    padding: 15px 0 10px 0;
}
#footer h3 {
    font-size: 18px;
    color: #d1d5db;
}
#footer a {
    color: #fff;
}
.container .credit {
    display: none;
}
.container .about {
    margin: 15px 0;
    display: block;
    float: right;
    color: #ccc;
}
.container .about a {
    margin-left: 10px;
    color: #fff;
}
.margin-block div.row {
    margin-bottom: 15px;
}
.margin-block a.row,
.comments a {
    text-decoration: underline;
}
.voting-block {
    line-height: 34px;
}
table.table thead th {
    background-color: #bbb;
    color: #fff;
}
.copyright {
    color: #888;
    font-style: italic;
    font-size: 0.875em;
    padding: 3px;
}
.copyright a {
    text-underline: none;
    color: #888;
}

@media screen and (min-width: 700px) {
    .container .credit {
        color: #ccc;
        margin: 15px 0;
        display: block;
        width: 420px;
        float: left;
    }
}
.top {
    background: #fff;
    padding-top: 10px;
    padding-bottom: 10px;
}
.pager {
    margin-top: 0;
}
.pager .btn {
    background-color: #fff;
    border-color: #ddd;
    color: #333;
    font-weight: normal;
}
.pager .btn:hover {
    background-color: #eee;
}
.pagination {
    --bs-pagination-color: #333;
    --bs-pagination-hover-color: #333;
    --bs-pagination-active-bg: #4b5563;
    --bs-pagination-active-border-color: #4b5563;
    --bs-pagination-active-color: #fff;
    --bs-pagination-border-radius: 0;
}
.pagination .page-link {
    font-weight: normal;
}
.form-range::-webkit-slider-thumb {
    background-color: #509b50;
}
.form-range::-moz-range-thumb {
    background-color: #509b50;
}
div.news table {
    border: 1px solid #ccc;
    margin-bottom: 10px;
}
div.news table thead tr {
    background-color: #f2f2f2;
}
div.news table thead tr th,
div.news table tbody tr td  {
    padding: 5px 10px;
}
.news .card-body span.date {
    display: inline-block;
    font-weight: normal;
    font-size: 18px;
}
.news .card-body h3 {
    display: inline-block;
    font-weight: normal;
}
.news .card-body hr {
    margin-top: 5px;
}
.img-thumbnail {
    width: 100%;
}

/* Inline SVG icons (ux_icon), aligned like the Bootstrap Icons font */
svg.bi {
    vertical-align: -0.125em;
}
svg[hidden] {
    display: none;
}

/* Name tables in the listings (default/items.html.twig) */
table.name-table thead th {
    background-color: #f7f7f7;
    color: #777;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid #ddd;
    padding-top: 8px;
    padding-bottom: 8px;
}
table.name-table td,
table.name-table th {
    padding-left: 12px;
    padding-right: 12px;
}
table.name-table td:first-child,
table.name-table th:first-child {
    padding-left: 15px;
}
table.name-table td:last-child,
table.name-table th:last-child {
    padding-right: 15px;
}
table.name-table td {
    padding-top: 10px;
    padding-bottom: 10px;
}
table.name-table tbody tr:last-child td {
    border-bottom: 0;
}
table.name-table .name-table-name {
    white-space: nowrap;
}
table.name-table .name-table-name a {
    text-decoration: none;
}
table.name-table .name-table-name img {
    margin-right: 6px;
    vertical-align: -3px;
}
table.name-table .name-table-teaser {
    color: #666;
    white-space: normal;
}
table.name-table div.name-table-teaser {
    font-size: 0.875em;
    margin-top: 2px;
    padding-left: 24px;
}
.name-table-language {
    background-color: #eef1f4;
    color: #555;
    font-weight: 500;
    margin: 1px 0;
}

/* Comment lists (comment/_list.html.twig) */
.comment-list .comment {
    display: flex;
    gap: 10px;
    padding: 10px 15px;
}
.comment-list .comment + .comment {
    border-top: 1px solid #eee;
}
.comment-avatar {
    flex: 0 0 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #eef1f4;
    color: #777;
    font-weight: bold;
    line-height: 32px;
    text-align: center;
}
.comment-body {
    min-width: 0;
}
.comment-meta {
    font-size: 0.875em;
    color: #555;
    line-height: 1.4;
}
.comment-meta time {
    color: #999;
    margin-left: 4px;
}
.comment-meta a {
    font-weight: bold;
    text-decoration: none;
}
.comment-text {
    margin: 2px 0 0;
    line-height: 1.5;
    overflow-wrap: anywhere;
}
.comment-more {
    font-size: 0.875em;
    white-space: nowrap;
}

/* Sidebar news list (news/recentNewsText.html.twig) */
.news-list li + li {
    border-top: 1px solid #eee;
}
.news-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    color: inherit;
    text-decoration: none;
}
.news-list-item:hover {
    background-color: #f7f7f7;
}
.news-list-thumb {
    flex: 0 0 64px;
    height: 44px;
    border-radius: 4px;
    overflow: hidden;
    background-color: #eef1f4;
}
.news-list-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.news-list-title {
    display: block;
    font-weight: bold;
    line-height: 1.3;
}
.news-list-item:hover .news-list-title {
    text-decoration: underline;
}
.news-list-date {
    display: block;
    font-weight: normal;
    font-size: 0.875em;
    color: #999;
}
table.name-table .name-table-rank {
    width: 1%;
    font-weight: bold;
}

/* Name details page: name with its key facts (name/details.html.twig) */
.name-hero {
    padding: 20px;
}
.name-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 2.25rem;
    line-height: 1.15;
    margin: 0 0 8px;
}
.name-title img {
    flex: 0 0 auto;
}
.name-title.female a {
    color: #e20996;
}
.name-title.male a {
    color: #0082d3;
}
.name-title a:hover {
    text-decoration: underline;
}
.name-facts {
    display: flex;
    flex-wrap: wrap;
    color: #777;
    margin-bottom: 6px;
    line-height: 1.5;
}
.name-facts span + span::before {
    content: "·";
    margin: 0 8px;
    color: #bbb;
}
.name-meaning {
    font-size: 1.125rem;
    margin: 0;
    line-height: 1.5;
}
.name-stats,
.name-section-header {
    border-top: 1px solid var(--bs-card-border-color);
}
.name-section-header {
    font-size: 18px;
    font-weight: 500;
}
@media (max-width: 575.98px) {
    .name-title {
        font-size: 1.75rem;
    }
}

/* Logo (assets/images/logo.svg) */
.navbar-brand img {
    display: block;
    height: 36px;
    width: auto;
}
@media (max-width: 575.98px) {
    .navbar-brand img {
        height: 30px;
    }
}

/* Origin and language overviews (originOverview / languageOverview) */
.category-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    column-gap: 30px;
    padding: 6px 15px;
}
.category-list li {
    border-bottom: 1px solid #eee;
}
.category-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 6px;
    text-decoration: none;
    color: #333;
}
.category-list a:hover {
    background-color: #f7f7f7;
}
.category-list a:hover .category-list-name {
    text-decoration: underline;
}
.category-list-name {
    font-weight: 500;
}
.category-list-name img {
    margin-right: 8px;
    vertical-align: 0;
}
.category-list-count {
    flex: 0 0 auto;
    font-size: 0.875em;
    color: #888;
    background-color: #eef1f4;
    border-radius: 10px;
    padding: 1px 9px;
}
