/*
Theme Name: slowrobot
Description: Responsive version of original SlowRobot theme
Author: Max Novikov
*/

/* common */

body {
    font-family: "Oswald", sans-serif;
    text-align: center;
    color: #272727;
    margin: 0 auto;
    width: auto;
    min-width: 320px;
}

a,
a:link,
a:visited,
a:hover,
a:active {
    text-decoration: none;
    color: #272727;
}

input {
    font-family: "Oswald", sans-serif;
    font-size: 15px;
}

.clear {
    clear: both;
}

iframe {
    border: none;
}

/* header */

#top_container {
    height: 74px;
    z-index: 100;
    position: relative;
    background: #e6e6e6;
    font-size: 15px;
    text-transform: uppercase;
    padding: 0;
    margin: 0 0 20px 0;
    box-shadow: 0 3px 4px rgba(0, 0, 0, 0.2);
}

#search_container {
    display: none;
}

#logo_container {
    padding: 10px;
    float: left;
}

#logo_container img {
    width: 67px;
    height: 54px;
}

/* navigation */

.menu_container,
.time_sort_container {
    display: none;
}

#menu_trigger,
#sort_trigger {
    position: relative;
    float: right;
    background: #e6e6e6;
    color: #272727;
    padding: 26px 11px 11px 11px;
}

#sort_trigger {
    padding-right: 22px;
}

#menu_label,
#sort_label {
    font-weight: bold;
    width: 38px;
}

#menu_arrow,
#sort_arrow {
    z-index: 100;
    position: absolute;
    top: 34px;
    left: -5px;
    width: 0px;
    height: 0px;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #848484;
    font-size: 0px;
    line-height: 0px;
}

.rotate_open {
    transform: rotate(0deg);
    transition: 0.5s all ease;
}

.rotate_closed {
    border-top: 5px solid #272727 !important;
    transform: rotate(180deg);
    transition: 0.5s all ease;
}

#menu_container,
#sort_container {
    font-family: Helvetica, sans-serif;
    z-index: 1;
    text-align: left;
    position: absolute;
    top: 72px;
    right: 5px;
    padding: 8px 0;
    width: 190px;
    border: 1px solid #e5e5e5;
    background: #fff;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 3px 4px rgba(0, 0, 0, 0.2);
}

.open_menu {
    opacity: 1;
    transform: translateY(0);
    transition: 0.5s all ease;
}

.close_menu {
    opacity: 0;
    transform: translateY(-350px);
    transition: 0.5s all ease;
}

.menu_item {
    padding: 10px 0 10px 20px;
}

#menu_item_selected,
#sort_item_selected {
    font-weight: bold;
    background: #ffff00;
}

/* layout */

#page_container {
    width: 100%;
    min-width: 320px;
    max-width: 480px;
    margin: 0 auto;
}

.right, #lefternary {
    display: none;
}

/* content */

.sub_container {
    min-height: 450px;
}

.sub_container:nth-child(1) {
    margin: 0;
}

.sub_base_container {
    margin: 0 0 60px 0;
    padding: 0 0 10px 0;
    background: #e6e6e6;
    overflow: hidden;
    border-radius: 0 0 5px 5px;
}

.sub_container .sub_base_container {
    margin-top: -6px;
}

.image img {
    max-width: 100%;
    height: auto;
}

div.sub_title {
    font-size: 15px;
    text-align: left;
    padding: 5px 10px;
    margin: 0 0 10px 0;
    background: #272727;
    color: #fff;
    word-wrap: break-word;
    text-transform: uppercase;
}

a.sub_title, a.sub_info {
    color: #fff;
}

.sub_info_container {
    padding: 10px;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

a.vote_btn {
    display: block;
    width: 44px;
    height: 28px;
    border-radius: 5px;
    text-indent: -1000px;
    overflow: hidden;
    float: left;
    margin: 0 10px 0 0;
}

a.vote_btn.up {
    border-radius: 5px 0 0 5px;
    margin: 0;
    background: #272727 url("img/sr_icon_sprite.png") 0 -139px no-repeat;
    background-size: 44px 330px;
}

a.vote_btn.down {
    border-radius: 0;
    border: #bdbdbd solid;
    border-width: 0 1px;
    margin: 0;
    background: #272727 url("img/sr_icon_sprite.png") 0 -176px no-repeat;
    background-size: 44px 330px;
}

.vote_container {
    grid-column: 1;
    grid-row: 1;
    place-self: start start;
}

.sharing_container {
    grid-column: 2;
    grid-row: 1;
    place-self: start end;
}

.sharing_container div {
    display: inline-block;
}

.score_label {
    grid-column: 1;
    grid-row: 2;
    place-self: end start;
    margin-top: 15px;
}

.comment_container {
    grid-column: 2;
    grid-row: 2;
    place-self: end end;
}

.score_label {
    color: #575757;
    font-size: 12px;
    float: left;
    text-transform: uppercase;
    line-height: 30px;
}

span.score {
    font-weight: bold;
    color: #000;
}

a.comments_button {
    display: block;
    font-weight: bold;
    font-size: 15px;
    line-height: 28px;
    min-width: 34px;
    height: 28px;
    padding: 0 5px;
    color: #fff;
    background: #272727;
    border-radius: 11px;
}

.comment_teat {
    z-index: 100;
    position: absolute;
    right: 19px;
    width: 0px;
    height: 0px;
    border-left: 1px solid transparent;
    border-right: 7px solid transparent;
    border-top: 7px solid #272727;
    font-size: 0px;
    line-height: 0px;
}

div.source {
    text-transform: uppercase;
    font-size: 12px;
    color: #FFF;
    background: #848484 url("img/sr_icon_sprite.png") right -302px no-repeat;
    background-size: 44px 330px;
    padding: 2px 32px 2px 5px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    border-radius: 5px 0 0 5px;
    margin-top: 20px;
    margin-right: -10px;
    grid-column: 1 / span 2;
    place-self: end end;
}

.source span {
    padding: 0 5px 0 0;
    color: #BABABA;
}

.rand_hub_perma_container {
    display: none;
}

#no_search_results {
    font-size: 18px;
    text-align: center;
    text-transform: uppercase;
    padding: 100px 20px;
    background: #fafafa;
    color: #272727;
    border: 1px solid #bdbdbd;
    border-radius: 10px;
}

iframe.youtube-player, .video iframe {
    width: 320px !important;
    height: 180px !important;
}

/* ads */

.banner_ad_container div,
.ad_container div,
.ad_container_mobile_small div,
.ad_container_btf div {
    margin: 0 auto;
}

.banner_ad_container,
.ad_container {
    display: none;
}

.ad_container_mobile_small {
    margin: 20px 0;
    min-height: 50px;
    text-align: center;
}

.ad_container_btf {
    min-height: 250px;
    padding: 20px 0;
    text-align: center;
}

.ad-widget-wrapper .attribution:not(:empty) {
    font-size: 10px;
    text-align: center;
}

.ad-widget-wrapper.primary-ad-wrapper .attribution:not(:empty) {
    margin-bottom: 0px;
}

.secondary-ad-widget {
    margin: 0 auto;
}
/* footer */
div#skip {
    margin: 0 auto 20px;
    width: 90%;
}

a.prev_button,
a.next_button,
a.random_button {
    border-radius: 5px;
    border: 1px solid #d7df01;
    display: block;
    text-align: center;
    text-transform: uppercase;
    background: #ffff00;
    width: 40%;
    max-width: 143px;
    padding: 10px 0;
}

a.prev_button {
    float: left;
}

a.next_button {
    float: right;
}

a.random_button {
    width: 90%;
    max-width: 728px;
    margin: 0 auto 20px;
}

.master_footer {
    background: #303030;
    margin: 0 0 20px 0;
    padding: 5px 0;
}

#seriousbusiness {
    display: none;
}

/* footer backlinks, TODO: pull from _common */
#menu-footer-backlinks {
	display: inline-block;
    padding: 0;
}
#menu-footer-backlinks li {
    display: inline-block;
}

#menu-footer-backlinks li a {
    display: inline-block;
}

#menu-footer-backlinks li a:hover, #menu-footer-backlinks li a:focus {
    background-color: rgba(0, 0, 0, 0);
}

#menu-footer-backlinks li a picture.backlink-icon { 
    display: inline-block;
    background-color: #212a39;
    padding: 6px;
    border-radius: 100%;
}

#menu-footer-backlinks li a picture.backlink-icon img {
    display: inline-block;
    position: relative;
    transition: filter .1s;
    width: 20px;
    height: 20px;
    top: 1px;
}

#menu-footer-backlinks li a picture.backlink-icon img:not(.buzznet-icon) {
    display: inline-block;
    filter: saturate(0%) brightness(1000%);
}

#menu-footer-backlinks li a picture.backlink-icon img:not(.buzznet-icon):hover {
    filter: saturate(100%) brightness(100%);
}

#menu-footer-backlinks li a picture.backlink-icon img.buzznet-icon {
    display: inline-block;
    filter: invert(100%);
}

#menu-footer-backlinks li a picture.backlink-icon img.buzznet-icon:hover {
    /* This nightmare (#fbdcf0) was generated by: https://codepen.io/sosuke/pen/Pjoqqp */
    filter: invert(83%) sepia(11%) saturate(305%) hue-rotate(268deg) brightness(98%) contrast(116%);
}

/* @media screen and (min-width: 768px) {*/
@media screen and (min-width: 1090px) {

    /* common */
    body {
        text-align: left;
        background-color: #fafafa;
    }

    .ad-widget-wrapper {
        text-align: center;
    }

    /* header */
    #top_container {
        border: solid #272727;
        border-width: 5px 0 0 0;
        width: 100%;
        top: 0;
        position: absolute;
        margin: 0;
        height: 122px;
        box-shadow: 0 3px 7px rgb(0 0 0 / 60%);
    }

    #header_container {
        max-width: 1088px;
        width: 100%;
        margin: 0 auto;
    }

    #logo_container {
        padding: 7px 20px 8px;
    }

    #logo_container img {
        width: 134px;
        height: 107px;
    }

    #logo_container img:hover {
        animation-name: jitter;
        animation-duration: 0.1s;
        transform-origin: 50% 50%;
        animation-iteration-count: 7;
        animation-timing-function: linear;
    }

    /* search */
    #search_container {
        margin: 38px 20px 0 0;
        float: right;
        position: relative;
        display: block;
    }

    input.search {
        outline: none;
        border: 1px solid #bdbdbd;
        font-size: 18px;
        padding: 10px 20px;
        letter-spacing: 1px;
        width: 240px;
        margin: 0;
        background: #fff;
        color: #272727;
        border-radius: 10px;
        padding: 10px 40px 10px 20px;
    }

    button.disabled, button[disabled] {
        cursor: not-allowed !important;
        opacity: 0.5;
    }

    form.search .search_btn {
        background: url("img/search_icon.png") no-repeat scroll 0 0 transparent;
        border: 0 none;
        cursor: pointer;
        display: block;
        position: absolute;
        right: 14px;
        top: 14px;
        height: 19px;
        width: 19px;
    }

    /* navigation */
    .menu_container {
        display: block;
        position: relative;
        float: left;
        margin: 48px 0 0 30px;
    }

    a.menu_option {
        font-size: 19px;
        color: #272727;
        text-transform: uppercase;
        transition: all 0.5s ease;
    }

    a.menu_option:hover {
        color: #848484;
    }

    .lightning_bolt {
        background: url("img/lightning.png") no-repeat right;
        width: 20px;
        height: 34px;
        position: absolute;
        top: -100px;
        right: -40px;
        transition: all 0.1s ease;
    }

    .menu_container:hover .lightning_bolt {
        top: -32px;
        right: -18px;
        animation-name: jitter;
        animation-duration: 0.1s;
        transform-origin: 50% 50%;
        animation-iteration-count: 7;
        animation-timing-function: linear;
    }

    #menu_trigger,
    #sort_trigger {
        display: none;
    }

    .menu_item {
        padding: 4px 0 4px 16px;
    }

    .menu_item:hover {
        background: #ffff00;
    }

    .time_sort_container {
        display: block;
        text-align: center;
        border: 1px solid #d7df01;
        border-radius: 10px;
    }

    #sortby {
        float: left;
        width: 106px;
        padding: 10px 0;
    }

    a.time {
        float: left;
        cursor: pointer;
        width: 155px;
        padding: 10px 0;
        background: #ffff00;
        transition: all ease 0.5s;
    }

    #sortby,
    a.time {
        font-size: 18px;
        letter-spacing: 1px;
    }

    a.time:hover,
    #selected_time {
        background: #fff;
        color: #272727 !important;
    }

    a.time:nth-last-of-type(1) {
        border-radius: 0 10px 10px 0;
    }

    /* layout */
    #page_container {
        background: #fff;
        border: solid #bdbdbd;
        border-width: 0 1px 1px 1px;
        max-width: 1088px;
        width: 100%;
        padding: 160px 0 0 0;
        border-radius: 0 0 10px 10px;
    }

    .left {
        margin: 0;
        width: calc(100% - 300px);
        max-width: 728px;
        float: left;
    }

    .right {
        display: block;
        float: right;
        margin: 0;
        padding: 0;
        width: 300px;
        min-height: 1500px;
        position: relative;
    }

    /* content */
    .sub_container {
        position: relative;
        margin: 20px 0 100px 0;
    }

    .media_container {
        position: relative;
        display: table-cell;
        height: 300px;
        width: 728px;
        vertical-align: middle;
        text-align: center;
    }

    div.image {
        text-align: center;
        margin: 0 auto;
        overflow: hidden;
        max-width: 728px;
    }

    .sub_base_container {
        margin: 0;
        padding: 0;
        background: inherit;
        overflow: visible;
        border-radius: 0;
    }

    .sub_container .sub_base_container {
        margin-top: -5px;
    }

    div.sub_title {
        margin: 0;
        font-size: 16px;
        letter-spacing: 1px;
        padding: 10px 0 10px 10px;
    }

    .sub_info_container {
        position: relative;
        background: linear-gradient(0deg, #e6e6e6 50%, 30%, #bababa 50%);
        padding: 10px 10px 15px;
        height: 64px;
        display: block;
        border-radius: 0 0 10px 10px;
    }

    .vote_container {
        height: 24px;
        width: 107px;
        margin: 0 10px 0 0;
        float: left;
    }

    a.vote_btn.up,
    a.vote_btn.down {
        position: relative;
        display: block;
        width: 34px;
        height: 24px;
        float: left;
        background: #272727;
        margin: 0;
    }

    a.vote_btn.up {
        border-radius: 5px 0 0 5px;
    }

    a.vote_btn.down {
        margin: 0 1px;
        border-width: 0;
    }

    img.vote_plus,
    img.vote_minus {
        position: absolute;
        top: 8px;
        left: 13px;
    }

    .score_label {
        color: #575757;
        float: left;
        font-size: 12px;
        text-transform: uppercase;
        margin: 0 20px 0 0;
        line-height: 25px;
    }

    .comment_container {
        position: relative;
        display: inline-block;
        float: none;
    }

    a.comments_button {
        display: block;
        text-align: center;
        font-size: 12px;
        line-height: 24px;
        min-width: 24px;
        height: 24px;
        padding: 0 5px;
        color: #fff;
        background: #272727;
        border-radius: 11px;
        font-weight: normal;
    }

    .comment_teat {
        z-index: 100;
        position: absolute;
        bottom: -4px;
        right: 9px;
        width: 0px;
        height: 0px;
        border-left: 1px solid transparent;
        border-right: 5px solid transparent;
        border-top: 5px solid #272727;
        font-size: 0px;
        line-height: 0px;
    }

    span.score {
        margin: 0 0 0 5px;
        color: #000;
        font-weight: normal;
    }

    .sharing_container {
        float: none;
        padding-top: 10px;
        margin-top: 10px;
        height: 20px;
    }

    .sharing_container {
        border-radius: 0;
    }

    .tw_button_h,
    .fb_like_h {
        height: 20px;
        float: left;
    }

    .tw_button_h {
        min-width: 107px;
    }

    .fb_like_h {
        min-width: 132px;
    }

    .fb_share_button:hover {
        cursor: pointer;
    }

    div.source {
        background: #848484 url("img/source_arrow.png") right center no-repeat;
        background-size: 23px 13px;
        padding: 4px 32px 4px 7px;
        max-width: 300px;
        float: right;
        margin-top: 0;
    }

    #disqus_thread {
        /* min-height: 554px; */
        border: solid #e6e6e6;
        border-width: 0 1px;
        padding: 20px;
        margin-bottom: 0;
    }

    span.mini_title {
        float: left;
        max-width: 200px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    span.mini_score {
        float: right;
        max-width: 60px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .rand_hub_perma_container {
        display: block;
        background: #e6e6e6;
        padding: 20px 0 0 20px;
        border-radius: 0 0 10px 10px;
    }

    .rand_hub_perma_title {
        text-transform: uppercase;
        text-overflow: ellipsis;
        overflow: hidden;
        white-space: nowrap;
        font-size: 9px;
        padding: 1px 4px;
        background: #272727;
        color: #fff;
        margin-top: -5px;
    }

    .rand_hub_perma_image {
        margin: 0 auto;
        width: 333px;
        padding: 0 20px 20px 0;
    }

    iframe.youtube-player {
        width: 468px !important;
        height: 281px !important;
    }

    .video iframe {
        width: 468px !important;
        height: 263px !important;
    }

    /* sidebar */
    .hub_container,
    .rand_hub_container,
    .trending_hub_container,
    .comments_hub_container {
        background: #fafafa;
        display: block;
        width: 280px;
        padding: 10px;
        border-radius: 0 0 10px 10px;
    }

    .rand_hub_container,
    .trending_hub_container {
        padding: 10px 10px 0 10px;
    }

    .comments_hub_container {
        font-family: Helvetica, Arial, sans-serif;
        font-size: 13px;
    }

    .hub_header {
        position: relative;
        color: #fff;
        background: #2d2d2d;
        font-size: 18px;
        text-transform: uppercase;
        padding: 10px;
    }

    .rand_hub_title,
    .trending_hub_title {
        text-transform: uppercase;
        text-overflow: ellipsis;
        overflow: hidden;
        white-space: nowrap;
        font-size: 9px;
        padding: 1px 4px;
        background: #272727;
        color: #fff;
        margin-top: -5px;
    }

    .rand_hub_image,
    .trending_hub_image {
        padding: 0 0 10px 0;
        width: 280px;
    }

    .cross_promote {
        padding-bottom: 15px;
    }

    /* ads */
    .ad_container_mobile_small,
    .ad_container_btf {
        display: none;
    }

    .ad_container {
        display: block;
        margin: 20px 0;
        min-height: 250px;
        padding: 0;
        text-align: center;
    }

    .banner_ad_container {
        display: block;
        min-height: 60px;
        margin: 40px 0 20px 0;
        text-align: center;
    }

    /* footer */
    div#skip {
        position: relative;
        height: 46px;
        margin: 0 0 20px 0;
        width: auto;
    }

    a.prev_button,
    a.next_button,
    a.random_button {
        border-radius: 10px;
        font-size: 18px;
        max-width: 229px;
    }

    a.random_button {
        width: 100%;
        margin: 0 0 20px;
        max-width: 728px;
    }

    a.prev_button {
        float: left;
    }

    a.next_button {
        float: right;
    }

    .master_footer {
        display: none;
    }

    #seriousbusiness {
        display: block;
        font-size: 9px;
        font-family: Helvetica, Arial, sans-serif;
        padding: 0 0 20px 0;
        margin: 10px 0 100px 0;
        text-align: center;
        text-transform: uppercase;
    }

    /* animation */
    @keyframes jitter {
        0% {
            transform: translate(2px, 1px) rotate(0deg);
        }

        10% {
            transform: translate(-3px, -2px) rotate(-1deg);
        }

        20% {
            transform: translate(-4px, 0px) rotate(2deg);
        }

        30% {
            transform: translate(0px, 2px) rotate(0deg);
        }

        40% {
            transform: translate(2px, -1px) rotate(1deg);
        }

        50% {
            transform: translate(-1px, 2px) rotate(-1deg);
        }

        60% {
            transform: translate(-3px, 1px) rotate(0deg);
        }

        70% {
            transform: translate(2px, 1px) rotate(-2deg);
        }

        80% {
            transform: translate(-1px, -1px) rotate(1deg);
        }

        90% {
            transform: translate(4px, 2px) rotate(0deg);
        }

        100% {
            transform: translate(1px, -2px) rotate(-1deg);
        }
    }
}

/*@media screen and (min-width: 790px) {
    .left {
        margin: 0 0 0 5px;
        width: calc(100% - 315px);
    }
    .right {
        margin: 0 5px 0 0;
    }
}*/

@media screen and (min-width: 1090px) {
    .left {
        margin: 0 0 0 20px;
        width: 728px;
    }

    .right {
        margin: 0 20px 0;
    }

    .rand_hub_perma_image {
        padding: 0 20px 20px 0;
        float: left;
    }

    .rand_hub_perma_image:nth-child(even) {
        padding: 0 0 20px 0;
    }

    iframe.youtube-player {
        width: 728px !important;
        height: 438px !important;
    }

    .video iframe {
        width: 728px !important;
        height: 410px !important;
    }
}
@media (min-width: 1440px) {
  #lefternary {
    margin-left: -165px;
    position: absolute;
    display: block;
    width: 160px;
  }

  #lefternary #lefternary-P1-wrapper {
    width: 160px;
  }
}

.interstitial_container {
    display: none;
}

.interstitial_container.infinite {
    display: block;
    background: #f5f5f5;
    margin-left: auto;
    margin-right: auto;
}

/* Fix for extreme height and bad position */
.interstitial_container.infinite .primary-ad-widget.iscroll {
    margin: 0 auto;
}

#primary-over-header-1-wrapper.infinite, #primary-over-header-2-wrapper.infinite, #primary-over-header-3-wrapper.infinite, #primary-over-header-4-wrapper.infinite {
    min-height: 417px;
}

@media screen and (min-width: 768px) {
    #primary-over-header-1-wrapper.infinite, #primary-over-header-2-wrapper.infinite, #primary-over-header-3-wrapper.infinite, #primary-over-header-4-wrapper.infinite {
        min-height: 147px;
    }
}