::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
    -webkit-border-radius: 10px;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    -webkit-border-radius: 10px;
    border-radius: 10px;
    background: rgba(240, 240, 240, 1);
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.5);
}

::-webkit-scrollbar-thumb:window-inactive {
    background: rgba(255, 0, 0, 0.4);
}

div#news_container {
    background-color: #0F0A1F;
    cursor: pointer;
    height: 1.4rem;
}

div#logo h1 {
    display: none;
}

#lamp_clicker {
    background-color: transparent;
    background-image: url('../img/lamp_d.svg');
    width: 35px;
    height: 35px;
    background-size: contain;
    border: none;
    position: absolute;
    display: inline-block;
    top: 45px;
    left: 49px;
    cursor: pointer;
    display: none;
}

#lamp_clicker.changed {
    background-image: url('../img/lamp.svg');
    /*border: 1px solid red;
    border-radius: 50%;*/
    width: 35px;
    height: 35px;
}

span#news {
    content: url('../img/search.svg');
    width: 44px;
    position: absolute;
    display: inline-block;
    top: 45px;
    left: 150px;
    cursor: pointer;
}

span#search {
    content: url('../img/news.svg');
    width: 44px;
    position: absolute;
    display: inline-block;
    top: 45px;
    left: 100px;
    cursor: pointer;
}


/* Make it a marquee */

.marquee {
    color: white;
    font-size: 0.8rem;
    padding-top: 0.4rem;
    display: inline-block;
    line-height: 0.7rem;
    font-weight: 700;
    margin: 0 auto;
    white-space: nowrap;
    overflow: hidden;
    padding-left: 100%;
    font-family: serif;
    animation: marquee 85s linear infinite;
    /*animation-iteration-count: infinite;*/
}

.marquee:hover {
    animation-play-state: paused
}


/* Make it move */

@keyframes marquee {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(-100%, 0);
    }
}

body {
    margin: 0 auto;
    overflow-x: hidden;
    /*background-color: #0F0A1F;
color: #EEE5E6;*/
}

main {
    margin-top: 9.65rem;
    /*background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' viewBox='0 0 4 4'%3E%3Cpath fill='%23898989' fill-opacity='0.16' d='M1 3h1v1H1V3zm2-2h1v1H3V1z'%3E%3C/path%3E%3C/svg%3E");*/
    background-color: #ffffff;
    color: black;
}

header {
    width: 100%;
    position: fixed;
    top: 0px;
    align-content: center;
    background-color: white;
    /*padding-bottom: 0.8rem;*/
    z-index: 10;
}

div#logo {
    background-image: url('../img/logo_n3.png');
    background-repeat: no-repeat;
    background-position: center;
    height: 4.7rem;
}

div#logoD {
    background-image: url('../img/now_logo.png');
    background-repeat: no-repeat;
    background-position: center top;
    height: 66px;
}

.resize {
    resize: both;
    overflow: auto;
    cursor: nwse-resize;
}


/*article.nyt:last-child {
    border-right: 1px solid black;
    border-bottom: 1px solid black;
}*/

.next {
    color: white;
    font-size: 0.8rem;
    background: black;
    border: none;
    /* border-top-left-radius: 8px; */
    cursor: pointer;
    position: absolute;
    left: 94.8%;
    top: 9.6rem;
    display: none;
}

#nextGur button {
    display: none;
}

.next_button,
#ddlViewBy,
#ny_search,
button#ny_click {
    box-shadow: 0 2px 2px 0 rgba(0, 158, 0, 0.3), 0 0 0 1px rgba(0, 0, 0, 0.2);
    transition: box-shadow 200ms cubic-bezier(0.4, 0.0, 0.2, 1);
    border: none;
    height: 15px;
    border-radius: 2px;
    cursor:pointer;
}

.next_button {
    width: 35px;
    height: 17px;
}

#ddlViewBy {
    height: 17px;
}

button#ny_click {
    height: 17px;
    background: none;
}

div#logoS {
    display: none;
    background-image: url('../img/gardian_logo.png');
    background-repeat: no-repeat;
    background-position: center;
    height: 100px;
}

nav ul {
    list-style: none;
    margin-top: 5px;
    padding: 5px 65px 10px 0px;
    margin: 0;
    display: flex;
    justify-content: space-between;
    /* border-top: 2px solid black; */
    max-width: 650px;
    /* margin: 0; */
    /* text-decoration: none; */
    margin: 0 auto;
}

nav ul a {
    text-decoration: none;
}

nav#page {
    display: flex;
    justify-content: center;
    margin-top: 0.85rem;
}

.line {
    padding: 0.3rem 0.6rem 0.2rem 0.6rem;
    margin-right: 0rem;
    color: white;
    font-size: 0.8rem;
    background: rgba(0, 0, 0, 1);
    top: 8.4rem;
    border: none;
    border-top-left-radius: 11px;
    cursor: pointer;
    border-top: 2px solid black;
}

.line:hover {
    /*color: orange;*/
    border-top: 2px solid orange;
    transition: border 0.3s ease-out;
}

#nytBtn {
    padding: 0.3rem 0.6rem 0.2rem 0.6rem;
    margin-right: 0rem;
    color: black;
    font-size: 0.8rem;
    background: rgba(250, 250, 250, 0.7);
    top: 8.4rem;
    border: none;
    border-top-left-radius: 11px;
    cursor: pointer;
    border-top: 2px solid red;
    /*display: none;*/
}

#nytBtn:hover {
    border-top: 2px solid orange;
    transition: border 0.3s ease-out;
}

section#nyt a {
    display: inline;
    position: relative;
    font-size: 0.6rem;
    padding-right: 3rem;
    text-decoration: underline;
}

section#nyt {
    /* border-left: 1px solid; */
    /* border-top: 1px solid; */
    /* padding-left: 5px; */
    /* display: none; */
    background: #333;
}

section#gallery_nyt {
    display: flex;
    justify-content: space-around;
}


/*.next {
    display: flex;
    justify-content: flex-end;
}*/

section#gallery_nyt div {
    margin: .5vw;
}

section#gallery_nyt div img:hover {
    transform: scale(1.15);
}

section#gallery_nyt div img {
    width: 100%;
    height: auto;
    transition: transform .2s ease-in-out;
    cursor: pointer;
}

section#gallery_nyt img:hover {
    box-shadow: 0 0 1px 1px rgba(50, 50, 50, 1);
}

strong {
    font-size: 0.6rem;
    display: block;
    padding-top: 0.4rem;
    line-height: 0.8rem;
}

date {
    display: block;
    font-size: 65%;
}

article {
    transition: transform .2s ease-in-out;
    font-size: 0.875rem;
    font-family: 'Open Sans', sans-serif;
    /* display: inline-block; */
    width: 23.4%;
    min-width: 21.9%;
    /* padding: 0.5rem 0.3rem; */
    cursor: pointer;
    color: #fff;
    background: #333;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    padding: 15px;
    min-height: 235px;
}


.selected {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    transition: .1s ease-in-out;
}

article:hover {
    box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.8);
}


/*article:hover h2 span {
    background: yellow;
}*/


/*article:nth-child(4) {
    background: rgba(240, 128, 128, .3);
    box-shadow: 0px 3px 3px lightblue;
}
article:nth-child(2) {
    background: rgba(240, 128, 128, .3);
    box-shadow: 0px 3px 3px lightblue;
}
article:nth-child(7) {
    background: rgba(240, 128, 128, .3);
    box-shadow: 0px 3px 3px lightblue;
}
article:nth-child(5) {
    background: rgba(240, 128, 128, .3);
    box-shadow: 0px 3px 3px lightblue;
}*/

article p {
    font-size: 0.8125rem;
    line-height: 0.925rem;
    font-weight: 400;
    margin-bottom: 0;
}

article h2 {
    font-size: 1.4rem;
    line-height: 1.425rem;
    font-style: normal;
    font-family: Georgia, serif;
    margin-bottom: 0;
    margin-top: 0;
}

article.nyt {
    position: relative;
    z-index: 1;
}

article.nyt img{
    max-width: 100%;
    border-radius: 15px;
    position: absolute;
    z-index: -1;
}

section {
    margin: 0 auto;
    width: 90vw;
    max-width: 1400px;
    /*padding-top: 0.5rem;
padding-bottom: 2rem;*/
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

#nyt::after {
    content: 'The New York Times';
    line-height: 1rem;
    color: black;
    left: 1%;
    top: -42vh;
    position: relative;
    transform: rotate(90deg);
    display: none;
}

section#gardian {
    justify-content: space-between;
    flex-wrap: wrap;
    /*margin-top: 2rem;*/
    /*border-right: 1px solid goldenrod;
padding-right: 5px;
border-radius: 15px;*/
}

section#gardian p {
    font-size: 0.95rem;
    font-weight: 400;
    font-style: normal;
    font-family: Georgia, serif;
    margin-bottom: 0;
    display: block;
    line-height: 0.975;
    padding-bottom: 0rem;
    padding-top: 0rem;
}

section#gardian article {
    width: 20%;
    min-width: 19%;
    cursor: pointer;
    overflow: hidden;
    height: 176px;
    padding: 1rem;
    /* margin: 4px; */
    border-bottom: 1px dashed black;
}

section#gardian article:focus,
section#gardian article:active,
section#gardian article:hover {
    overflow-y: scroll;
    overflow-x: hidden;
    animation: example 800ms forwards;
}

@keyframes example {
    100% {
        height: 60vh;
        /*width: 45vw;*/
        /*background-color: rgba(245, 245, 245, 1);*/
    }
}

#NewslinePage {
    display: block;
    margin-top: 1rem;
    /*width: 80vw;*/
    max-width: 1400px;
}

#NewslinePage h2 {
    font-size: 1.2rem;
    line-height: 1.425rem;
    font-style: normal;
    font-family: Georgia, serif;
    margin-bottom: 0;
    margin-top: 0;
}

#newsLineAndGallery {
    display: flex;
    flex-wrap: wrap;
}

#NewslinePage h2,
#NewslinePage em {}

#gallery_line {
    margin-top: 4.4rem;
    display: flex;
    justify-content: space-around;
    width: 3rem;
}

.gallery_line_img {
    object-fit: cover;
    height: 2.8rem;
    width: 2.8rem;
    border-radius: 50%;
}

a {
    color: orange;
}

#checkNews {
    color: black;
    font-family: fantasy;
}

nav#search {
    margin: 0 auto;
    width: 333px;
}

.right {
    text-align: right;
}

.byline {
    font-size: 0.6rem;
}

.gu-image {
    max-width: 100%;
    height: auto;
}

.lighter {
    font-style: normal;
    /*background-color: #ffffff;
color: black;*/
    background-color: #0F0A1F;
    color: #EEE5E6;
}

aside {
    position: absolute;
    top: 1.4rem;
    left: 0;
    width: 150px;
    height: 100%;
    background-color: black;
    display: none;
    /*z-index: 11;*/
}


/*@media only screen and (min-width: 1690px) {
    section#gardian article {
        width: 33.5vw;
        cursor: pointer;
        overflow: hidden;
        height: 188px;
        padding: 1rem;
        border-bottom: 1px dashed black;
    }
}*/

@media only screen and (min-width: 1600px) {
    .next button {
        position: relative;
        right: 14rem;
        top: -1.6rem;
        display: none;
    }
}

@media only screen and (max-width: 975px) and (min-width: 667px) {
    section article {
        width: 45%;
        min-height: 250px;
    }
     .line {
        padding: 0px 0px;
    }
    section#gardian article:hover {
        transform: none;
    }
    section#gardian article:focus,
    section#gardian article:active,
    section#gardian article:hover {
        overflow-y: scroll;
        overflow-x: hidden;
        animation: example 800ms forwards;
    }
    @keyframes example {
        100% {
            height: 30vh;
            background-color: rgba(60, 220, 200, 0.1);
        }
    }
}

@media only screen and (max-width: 666px) {
    main {
        margin-top: 10.65rem;
    }
    section#gardian article {
        width: 100%;
    }
    section {
        margin: 0px;
    }
    #gallery_line {
        display: none;
    }
    #NewslinePage {
        width: 100%;
    }
    section article {
        width: 100%;
    }
    .next {
        left: 90%;
        top: 16rem;
    }
    .line {
        padding: 0px 0px;
    }
    div#logo {
        background-image: url('../img/logo_s.png');
        background-repeat: no-repeat;
        background-position: center;
        height: 5rem;
    }
    #lamp_clicker {
        background-color: transparent;
        background-image: url('../img/lamp_d.svg');
        background-size: contain;
        width: 28px;
        height: 28px;
        display: inline-block;
        top: 52px;
        left: 9.1px;
        cursor: pointer;
        border: none;
        display: none;
    }
    #lamp_clicker.changed {
        background-image: url('../img/lamp.svg');
        width: 28px;
        height: 28px;
    }
    section#gardian article:focus,
    section#gardian article:active,
    section#gardian article:hover {
        overflow-y: scroll;
        overflow-x: hidden;
        animation: example 800ms forwards;
    }
    @keyframes example {
        100% {
            height: 50vh;
            background-color: rgba(60, 220, 200, 0.1);
        }
    }
}
