/*
Theme Name: Crypto Theme Child Theme
Theme URI:
Description: Wordpress Child Theme based on new-theme
Author: Alex Rastvortsau
Requires at least: 5.7.4
Tested up to: 6.4.2
Requires PHP: 8.0
Version: 0.2
Template: new-theme
Text Domain: crypto-news-theme
*/


@media all and (min-width: 1024px) {
    footer .wp-block-column {
        max-width: 25% !important;
        width: 100% !important;
    }
    footer .wp-block-columns .wp-block-column:last-child {
        max-width: 25% !important;
    }
    #footer-widget .wp-block-columns {

    }
}

@media all and (max-width: 768px) {
    footer .wp-block-column p {
        font-size: 14px !important;
        line-height: 21px !important;
        margin-bottom: 8px;
    }
    footer .wp-block-column p:first-of-type {
        margin-bottom: 16px !important;
        font-size: 16px !important;
        line-height: 17.5px !important;
    }
    #footer-widget .wp-block-columns .wp-block-column:first-child {
        grid-column: span 2 / span 2;
        width: 100%;
    }
}
@media all and (min-width: 450px) and (max-width: 640px) {
    #footer-widget .wp-block-columns {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 1.5rem;
    }
}

#footer-widget .wp-block-columns .wp-block-column:last-child {
    margin-bottom: 0 !important;
}

footer .wp-block-column p:first-of-type {
    margin-bottom: 20px;
    font-size: 24px;
    line-height: 26px;
    color: black !important;
}
footer .wp-block-column p {
    margin-bottom: 16px;
    font-size: 20px;
    line-height: 22px;
}

footer .wp-block-column .wp-block-social-link-label {
    display: none;
}

footer .wp-block-social-links {
    display: flex;
    gap: 8px;
}

#categories_cards_list .post-item .widget {
    height: 100%;
}
#categories_cards_list .post-item .widget-card {
    width: 100%;
}
.post-item .exchange-card {
    height: 100%;
}
.subscription-message.show {
    height: 40px;
}

.widget-h-auto > div {
    width: 100%;
}

.widget-h-auto .widget a {
    height: auto !important;
}

@media all and (max-width: 490px) {
    .crypto-price-values {
        flex-direction: column !important;
    }
}

/* crypto-list-table */
table.crypto-list-table {
    font-size: 15px;
    position: relative;
}
table.crypto-list-table th:first-child,
table.crypto-list-table td:first-child {
    text-align: center;
    border-top: none;
}
table.crypto-list-table th:nth-child(2),
table.crypto-list-table td:nth-child(2) {
    text-align: left;
}
table.crypto-list-table th:first-child,
table.crypto-list-table th:nth-child(2),
table.crypto-list-table td:first-child,
table.crypto-list-table td:nth-child(2) {
    position: sticky;
    z-index: 1;
}
table.crypto-list-table th:nth-child(2),
table.crypto-list-table td:nth-child(2) {
    left: 47px;
}
table.crypto-list-table th:first-child,
table.crypto-list-table td:first-child {
    left: 0;
}
table.crypto-list-table th,
table.crypto-list-table td {
    text-align: right;
    background: #fff;
    border-top: 1px solid rgb(245 245 245);
}
table.crypto-list-table th:first-child {
    border-top-left-radius: 1rem;
    padding: 0.5rem;
}
table.crypto-list-table th:last-child {
    border-top-right-radius: 1rem;
}
table.crypto-list-table tr:last-child td:first-child {
    border-bottom-left-radius: 1rem;
}
table.crypto-list-table tr:last-child td:last-child {
    border-bottom-right-radius: 1rem;
}
.crypto-list-table .positive {
    color: rgb(0 168 62);
}
.crypto-list-table .positive .icon {
    filter: invert(34%) sepia(95%) saturate(2012%) hue-rotate(125deg) brightness(97%) contrast(105%);
}
.crypto-list-table .negative {
    color: rgb(255 58 51);
}
.crypto-pages .positive-img,
.crypto-list-table .positive-img {
    filter: invert(52%) sepia(55%) saturate(903%) hue-rotate(139deg) brightness(98%) contrast(100%);
}
.crypto-pages .negative-img,
.crypto-list-table .negative-img {
    filter: invert(16%) sepia(87%) saturate(10378%) hue-rotate(332deg) brightness(77%) contrast(109%);
}
.crypto-list-table .negative .icon {
    filter: invert(30%) sepia(74%) saturate(2784%) hue-rotate(344deg) brightness(115%) contrast(102%);
}
.crypto-list-table th:not(:last-child),
.crypto-list-table tr td {
    padding: 0;
}
.crypto-list-table tr td > a,
.crypto-list-table tr td > div,
.crypto-list-table tr td > span {
    padding: 0.5rem 0.25rem;
    height: 100%;
    width: 100%;
    display: flex;
}
.crypto-list-table tr td img {
    margin-bottom: 0 !important;
}
table.crypto-list-table th {
    font-weight: bold;
    position: relative;
}
table.crypto-list-table th.no-sort {
    padding-top: 0.35em;
}
table.crypto-list-table th button {
    padding: 0.5rem 0.25rem;
    margin: 1px;
    width: 100%;
}
table.crypto-list-table th button span {
    position: relative;
    width: 20px;
    line-height: 1;
    top: -2px;
}
table.crypto-list-table th[aria-sort="descending"] span::after {
    content: "▼";
    color: currentcolor;
    font-size: 60%;
    top: 0;
}
table.crypto-list-table th[aria-sort="ascending"] span::after {
    content: "▲";
    color: currentcolor;
    font-size: 60%;
    top: 0;
}
table.show-unsorted-icon th:not([aria-sort]) button span::after {
    content: "♢";
    color: currentcolor;
    font-size: 60%;
    position: relative;
    top: -3px;
    left: -4px;
}
table.crypto-list-table td.num {
    text-align: right;
}
table.crypto-list-table tbody tr:nth-child(odd) {
    background-color: #ddd;
}
table.crypto-list-table th:not([aria-sort]) button:focus span::after,
table.crypto-list-table th:not([aria-sort]) button:hover span::after {
    content: "▼";
    color: currentcolor;
    font-size: 60%;
    top: 0;
}
table.crypto-list-table.fixed-header thead {
    overflow: hidden;
    position: fixed;
    top: 0px;
    z-index: 10;
}

.crypto-pagination > * {
    background: transparent;
    padding: 14px 20px;
    line-height: 1;
    text-decoration: none !important;
    border-radius: 15px;
    font-weight: 500;
}
.crypto-pagination > a:hover {
    background: rgba(0, 0, 0, 0.1);
}
.crypto-pagination .current {
    background: black;
    color: white;
}
.crypto-pagination .next,
.crypto-pagination .prev {
    background: white;
    padding: 14px 14px;
    border: 1px solid rgb(209, 213, 219);
}

ul.p-rich_text_list,
.p-rich_text_section ul {
    list-style: disc;
    padding-left: 40px;
    margin: 18px 0;
}

.font-bold {
    font-weight: 600 !important;
}

.font-medium {
    font-weight: 600 !important;
}

body {
    font-weight: 300 !important;
}

body h1 {
    font-weight: 800 !important;
}

body h2, body h3, body h4, body h5, body h6 {
    font-weight: 600 !important;
}

.table_of_content a {
    font-weight: 600 !important;
}

ul#main-menu li a:not(.widget a, .mega-menu-button), ul#footer-menu li a:not(.widget a, .mega-menu-button) {
    font-weight: 600 !important;
}