:root {
    /* CSS HEX */
    --white: #fff;
    --lapis-lazuli: #226494ff;
    --platinum: #dee5e5ff;
    --shamrock-green: #169873ff;
    --eerie-black: #222222ff;
    --orange-web: #ffa400ff;
    --grey: #f0f0f4;

    /* CSS HSL */
    --lapis-lazuli: hsla(205, 63%, 36%, 1);
    --platinum: hsla(180, 12%, 88%, 1);
    --shamrock-green: hsla(163, 75%, 34%, 1);
    --eerie-black: hsla(0, 0%, 13%, 1);
    --orange-web: hsla(39, 100%, 50%, 1);
}

html {
    font-family: -apple-system, BlinkMacSystemFont, avenir next, avenir,
        segoe ui, helvetica neue, Cantarell, Ubuntu, roboto, noto, arial,
        sans-serif;
    background-color: var(--grey);
    color: var(--eerie-black);
    font-size: 137.5%;
    -webkit-font-smoothing: antialiased;
}

.show-mobile {
    visibility: hidden;
}

.show-desktop {
    visibility: visible;
}

img {
    object-fit: cover;
}

body {
    position: relative;
}

body.navIsOpen {
    /* overflow-y: hidden; */
}

.burger-button.hide {
    display: none;
}

.main-content {
    padding-top: 360px;
}

#header {
    background-color: var(--white);
    /* position: -webkit-sticky; */
    top: 0px;
    left: 0;
    right: 0;
    position: fixed;
    z-index: 1;
    width: 100vw;
    transition: transform .7s ease-out;
}



.hideTopBanner #header {
    position: fixed;
    /* transform: translateY(-290px) */
}


#header-inner {
    padding: 10px;
    position: relative;
    z-index: 2;
    background-color: white;
    height: 78px;
    transition: height .4s ease-out
}

#header-inner .logo img {
    height: auto;

}

.stickyHeader #header-inner {
    height: 60px;
}

.stickyHeader .logo {
    transition: height .4s ease-out;
    height: 40px
}

/* top-navigation */
#top-navigation {
    /* position: absolute; */
    background-color: var(--white);
    display: flex;
    padding: 0px 0 0;
    /* top: 388px; */
    /* transform: translateY(-360px); */
    z-index: 1;
    transition: transform .4s ease-out, visibility .4s ease-out;
    /* visibility: hidden; */
    width: 100%;
    /* display: flex; */
    justify-content: center;
    display: none;
}

.navIsOpen #top-navigation {
    display: flex;
    transform: translateY(0);
}

.navIsOpen.stickyHeader #top-navigation {
    /* transform: translateY(-20px); */
}

/* #top-navigation.show {
    display: block;
}

#top-navigation.hide {
    display: none;
} */

/* .logo.hide {
    display: none;
} */

#top-navigation .title {
    padding: 16px;
    line-height: 16px;
    font-weight: bold;
}

#top-navigation a {
    color: var(--lapis-lazuli);
    text-decoration: none;
    font-weight: bold;
    margin: 0 0px;
    padding: 8px 16px;
    line-height: 16px;
    font-size: 16px;
    display: inline-block;
}

#top-navigation a:hover,
#top-navigation a.active {
    background-color: var(--platinum);
    color: var(--eerie-black);
}


@media only screen and (max-width: 1024px) {
    #header-inner {
        height: 60px;
        display: flex;
        justify-content: space-between;
        gap: 13px;
    }

    #top-navigation {
        top: 76px;
        /* position: fixed;
        visibility: hidden;
        transition: all .5s ease-out;
        top: -100px;
        z-index: 0; */

    }


    /* .navIsOpen #top-navigation {
        visibility: visible;
        top: 360px;
    } */

    /* .hideTopBanner.navIsOpen #top-navigation {
        top: 78px
    } */

    /* .burgerMenu-icon {
        position: absolute;
        top: 50%;
        left: 10px;
        transform: translateY(-50%);
    }

    .navIsOpen .burgerMenu-icon {
        height: 1.8rem;
    } */

}

#home-view,
#category-view {
    padding: 0 40px 0 0;
}





/* .home-section {
} */
.home-section-title {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    color: var(--lapis-lazuli);
}

.home-section-article {
    width: 25%;
    /* border: 1px solid var(--lapis-lazuli); */
}

.home-section-articles {
    display: flex;
    gap: 12px;
}

/* .stream-grid,
.category-stream {
     display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-column-gap: 20px;
    grid-row-gap: 20px;
} */

.main-content {
    display: flex;
    max-width: 1200px;
    width: 100%;
    margin: 40px auto;
}

.main-content-left {
    max-width: 900px;
    width: 100%;
}

.main-content-right {
    max-width: 300px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

.flex {
    display: flex;
}

.icon-small {
    fill: var(--lapis-lazuli);
    width: 14px;
    height: 14px;
    line-height: 14px;
    display: inline-block;
}

.icon-normal {
    fill: var(--lapis-lazuli);
    width: 32px;
    height: 32px;
    line-height: 32px;
    display: inline-block;
}

a {
    color: var(--lapis-lazuli);
    text-decoration: none;
}

a:hover {
    color: var(--platinum);
}

button.button {
    background-color: var(--lapis-lazuli);
    border: none;
    color: var(--white);
    padding: 15px 32px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    font-family: -apple-system, BlinkMacSystemFont, avenir next, avenir,
        segoe ui, helvetica neue, Cantarell, Ubuntu, roboto, noto, arial,
        sans-serif;
}

button.button:hover {
    background-color: var(--orange-web);
    color: var(--eerie-black);
}

button.button:active {
    transform: scale(0.98);
    box-shadow: 3px 2px 22px 1px rgba(0, 0, 0, 0.24);
}

button.button:disabled,
button.button[disabled] {
    background-color: var(--platinum);
    color: var(--eerie-black);
}

table {
    border: 1px solid #ccc;
    border-collapse: collapse;
    margin: 0;
    padding: 0;
    font-size: 20px;
    width: 100%;
    table-layout: fixed;
}

table caption {
    font-size: 1.5em;
    margin: 0.5em 0 0.75em;
}

table tr {
    background-color: #f8f8f8;
    border: 1px solid #ddd;
    padding: 0.35em;
}

table th,
table td {
    padding: 0.625em;
    text-align: center;
}

table th {
    font-size: 0.85em;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}



/* Burger Menu */

.burgerMenu {
    position: absolute;
    width: 32px;
    height: 32px;
    line-height: 32px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    left: 10px;
}

.burgerMenu::after {
    content: '';
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: black;
    position: absolute;
    transform: translateY(1.4rem);
    z-index: 0;
}

.burgerMenu-icon {
    width: 32px;
    height: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.5s ease-out;
    z-index: 2;
    cursor: pointer;
    padding-top: 7px;
    left: 10px;
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
}


.burgerMenu-icon::before,
.burgerMenu-icon::after,
.burgerMenu-icon div {
    content: '';
    background-color: var(--lapis-lazuli);
    ;
    height: 5px;
    transition: transform 0.5s ease-out;
    border-radius: 1rem;
}

.navIsOpen .burgerMenu-icon {
    z-index: 3;
    transition: transform 0.5s ease-out;
    width: 1.9rem;
    height: 1.9rem;
}

.navIsOpen .burgerMenu-icon::before,
.navIsOpen .burgerMenu-icon::after,
.navIsOpen .burgerMenu-icon div {
    transition: background-color 0.5s ease-out;
    background-color: var(--lapis-lazuli);

}

.navIsOpen .burgerMenu-icon:hover::before,
.navIsOpen .burgerMenu-icon:hover::after,
.navIsOpen .burgerMenu-icon:hover div {
    background-color: var(--lapis-lazuli);
}

.navIsOpen .burgerMenu-icon::before {
    transform: translateY(0.87rem) rotate(135deg);
}

.navIsOpen .burgerMenu-icon::after {
    transform: translateY(-0.8rem) rotate(-135deg);
}

.navIsOpen .burgerMenu-icon div {
    transform: scale(0);
}

@media only screen and (max-width: 1024px) {
    .top-banner {
        display: none;
    }

    .main-content {
        padding-top: 50px;
    }
}

@media only screen and (max-width: 595px) {
    .burgerMenu-icon {
        z-index: 3;
        transition: transform 0.5s ease-out;
        width: 1.4rem;
        height: 1.2rem;
        transform: translateY(-50%);
        top: unset;
        /* right: 10px; */
        left: unset;
        position: relative;
        width: 50px;
        margin-top: 35px;
    }

    .navIsOpen .burgerMenu-icon {
        height: 1.9rem;
        margin-top: 44px;
    }

    .navIsOpen.stickyHeader #top-navigation {
        transform: translateY(0px);
    }

}


@media screen and (max-width: 600px) {
    table {
        width: 100%;

        border: 0;
    }

    table caption {
        font-size: 1.3em;
    }

    table thead {
        border: none;
        clip: rect(0 0 0 0);
        height: 1px;
        margin: -1px;
        overflow: hidden;
        padding: 0;
        position: absolute;
        width: 1px;
    }

    table tr {
        border-bottom: 3px solid #ddd;
        display: block;
        margin-bottom: 0.625em;
    }

    table td {
        border-bottom: 1px solid #ddd;
        display: block;
        font-size: 0.8em;
        text-align: right;
    }

    table td::before {
        /*
      * aria-label has no advantage, it won't be read inside a table
      content: attr(aria-label);
      */
        content: attr(data-label);
        float: left;
        font-weight: bold;
        text-transform: uppercase;
    }

    table td:last-child {
        border-bottom: 0;
    }
}

.sticky-top {
    position: sticky;
    position: -webkit-sticky;
    top: 0;
    display: flex;
}

.desktop-ad {
    display: none;
}

.ad-mobile {
    background: var(--grey);
    text-align: center;
    display: none;
    position: sticky;
    top: 62px;
    padding: 10px 0;
}

.top-banner {
    position: relative;
    background: var(--grey);
    text-align: center;
    padding: 20px 0;
    transition: height .64s ease-out;
    height: 250px;
    z-index: 2;
}




/* For extremely small screen devices (595px and below) */
@media only screen and (max-width: 595px) {
    .top-banner {
        display: none;
    }

    .show-mobile {
        visibility: visible;
    }

    .ad-mobile {
        display: block;
        position: relative;
        min-height: 700px;
        height: 100%;
        top: 10px;

    }

    .ad-mobile div:first-child {
        position: sticky;
        top: 87px
    }

    .show-desktop {
        visibility: hidden;
    }

    .hide-mobile {
        display: none;
    }

    #header {
        transform: translateY(0);
        top: 0;
        position: fixed;
    }

    #header-inner {
        display: flex;
        justify-content: space-between;
        align-items: center;
        /* padding: 10px 10px 0 0; */
        margin: 0;
        height: 60px;

    }

    #header .logo {
        max-width: 300px;
        width: 100%;
    }

    #header .logo img {
        width: 100%;
    }

    /* top-navigation */
    #top-navigation {
        position: fixed;
        padding: 20px 0 30px;
        left: 0;
        right: 0;
        top: 0;
        display: flex;
        justify-content: center;
        transition: transform .4s ease-out;
        z-index: 1;
    }

    .navIsOpen #top-navigation {
        transform: translateY(0);
        top: 50px
    }

    #top-navigation ul {
        flex-direction: column;
    }

    #home-view,
    #category-view {
        padding: 0;
    }

    #category-view h4 {
        text-align: center;
    }

    .home-section {
        padding: 10px;
    }

    .home-section-title {
        display: block;
    }

    .home-section-article {
        width: 100%;
        margin: 0 0 10px;
        /* border: 1px solid var(--lapis-lazuli); */
    }

    .home-section-articles {
        display: block;
        gap: 12px;
    }

    .stream-grid,
    .category-stream {
        display: block;
        grid-template-columns: repeat(2, 1fr);
        grid-column-gap: 20px;
        grid-row-gap: 20px;
    }

    .stream-grid .article-card-2,
    .category-stream .article-card-2 {
        padding: 0 10px 10px;
        display: block;
    }

    .article-card-image img {
        width: 100%;
    }

    .main-content {
        display: block;
        padding: 0;
        margin: 70px 0 0;
    }

    .sidebar-articles {
        padding: 20px;
    }

    .categories-featured {
        display: block !important;
        width: 100% !important;
    }

    .categories-featured .categories-first {
        width: 100% !important;
    }

    .categories-featured .categories-rest {
        display: block !important;
        width: 100% !important;
    }
}

/* Small screen devices (600px and above) */
@media only screen and (min-width: 600px) {}

/* Medium screen devices (768px and above) */
@media only screen and (min-width: 768px) {
    #header-inner {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: row-reverse;
    }
}

/* Big screen devices (889px and above) */
@media only screen and (min-width: 889px) {


    .article-details {
        padding-left: 30px;
    }

    #top-navigation ul {
        width: 100%;
        background-color: var(--white);
    }

    .inner-navigation {
        display: flex;
        max-width: 1200px;
        width: 100%;
        margin: 0 auto;
    }

    .sidebar-ads-view {
        /* height: 25%; */
        position: relative;
        padding-bottom: 20px;
        z-index: 0;
    }

    .sidebar-ads-view:first-child {
        height: 40%;
    }

    .sidebar-ads-view:nth-child(2) {
        height: 40%;
    }

    .sidebar-ads-view:nth-child(3) {
        height: 20%;
    }



    .sidebar-ads-group {
        position: -webkit-sticky;
        position: sticky;
        top: 100px;
        height: 620px;
    }

    .desktop-ad {
        display: block;
        padding-bottom: 20px;
    }

    #header-inner {
        max-width: 1200px;
        width: 100%;
        margin: auto;
        display: flex;
        justify-content: center;
        padding-top: 10px;
        padding-bottom: 10px;
        position: relative;
    }

    #header .burger-button {
        position: absolute;
        left: 0px;
        top: 5px;
    }
}

.slide-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100vw;
    z-index: 3;
    background: rgba(0, 0, 0, .6);
    height: 350px;
    /* display: grid; */
    place-content: center;
    animation: slide-top .6s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
    animation-delay: 2s;
    overflow: hidden;
    transition: transform 1.6s cubic-bezier(0.250, 0.460, 0.450, 0.940);
    display: none;
}

/* .hideSlide.slide-banner {
    display: none;
} */

.close-slide {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.90);
    padding: 0;
    border-radius: 4px;
    width: 30px;
    height: 30px;
    background: #fff;
    color: #4a968e;
    border: 1px solid #fff;
    cursor: pointer;
    transition: background-color .4s ease-out;
}

.close-slide:hover {
    background-color: #000;
}

.close-slide::after,
.close-slide::before {
    content: '';
    width: 3px;
    height: 26px;
    border-radius: 5px;
    background-color: #000;
    position: absolute;
    margin-left: 15px;
    margin-top: 15px;
    transition: background-color .4s ease-out;
}

.close-slide:hover::after,
.close-slide:hover::before {
    background-color: #fff;
}

.close-slide::after {
    transform: rotate(45deg) translate(-10px, -8px)
}

.close-slide::before {
    transform: rotate(-45deg) translate(8px, -10px)
}


.hideSlide.slide-banner {
    transform: translateY(350px) !important;
}



@media only screen and (max-width: 768px) {
    #top-navigation {
        transform: translateY(-200%);
        /* position: absolute; */
        /* top: 0; */
    }

    .burgerMenu-icon {
        left: unset;
        /* right: 30px; */
    }

    .main-content {
        padding-top: 50px;
    }

    #top-navigation {
        background-color: var(--white);
        padding: 20px 10px;
        width: 100%;
        /* top: 52px; */
    }

    .slide-banner {
        display: grid;
    }

}





@-webkit-keyframes slide-top {
    0% {
        -webkit-transform: translateY(350px);
        transform: translateY(350px);
    }

    100% {
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
}

@keyframes slide-top {
    0% {
        -webkit-transform: translateY(350px);
        transform: translateY(350px);
    }

    100% {
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
}