* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: #000;
    color: #000;
}

.container_bg {
    width: 100%;
}

.container_bg.phone_view {
    background-image: url(../images/previews/preview_phone.png);
    background-size: cover;
    background-color: transparent;
    width: 444px;
    height: 852px;
    position: relative;
    margin: 100px auto;
    overflow: hidden;
}

.container {
    background: #fff;
    width: 100%;
    container-type: inline-size;
    container-name: previewContainer;
    overflow: auto;
}

.container.phone_view::-webkit-scrollbar {
    display: none;
}

.container.phone_view {
    width: 360px;
    height: 775px;
    overflow: scroll;
    position: absolute;
    top: 34px;
    left: 42px;
    border-radius: 44px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.ad_top {
    display: block;
}

#social_buttons {
    width: 100%;
    max-width: 300px;
    margin-bottom: 22px;
}

.nav_links {
    width: 541px;
    margin: 20px;
}

.width_resize {
    width: 80%;
    margin: 0 auto;
}

.content_footer {
    display: flex;
    align-self: center;
    justify-content: center;
    padding: 45px;
    border-top: 1px #d4d4d4 solid;
    border-bottom: 1px #d4d4d4 solid;
    margin-top: 30px;
}

.content_footer img {
    width: 100%;
    max-width: 591px;
}

.device-switcher-container {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: bold;
    color: #000;
}

.device-switcher {
    position: relative;
    display: inline-block;
}

.scroll_indicator {
    width: 80px;
    height: 80px;
    left: 0;
    right: 0;
    margin: 0 auto;
    top: 400px;
    display: none;
    position: absolute;
    z-index: 1000;
    pointer-events: none;
}

.current-device {
    background: #00d4ff;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.device-icon {
    width: 24px;
    height: 24px;
}

.device-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: row;
    gap: 8px;
    padding: 8px;
    max-width: 100vw;
    z-index: 100;
}

.device-option {
    padding: 4px;
    cursor: pointer;
}

.device-option img {
    width: 32px;
    height: 32px;
}

.device-switcher:hover .device-menu {
    display: flex;
}

iframe {
    overflow: hidden;
    border: none;
    scrollbar-width: none;
    /* Firefox */
}

iframe::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari */
}

.content_container {
    max-width: 1310px;
    width: 100%;
    margin: 0 auto;
}

.content_header {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid black;
    padding: 18px;
    font-family: sans-serif;
}

.content_header .left,
.content_header .right {
    display: flex;
    align-items: center;
    justify-content: center;
}

.content_header .left img {
    width: 25px;
}

.content_header .right {
    gap: 5px;
}

.content_header .center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    height: 20px;
}

.content_header .center img {
    width: 100%;
    height: auto;
    max-width: 161px;
}

.content_header .subscribe-btn {
    background: black;
    color: white;
    border: none;
    padding: 10px 12px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    font-size: 12px;
}

.content_header .sign-in-btn {
    background: white;
    color: black;
    border: none;
    padding: 10px 12px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    font-size: 12px;
}

.article_2_column {
    display: flex;
    flex-direction: row;
    margin-bottom: 30px;
}

#art_image_2 {
    width: 244px;
    height: auto;
    margin-right: 20px;
}

.logo {
    font-weight: bold;
}

nav {
    display: block;
}

.nav-links {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid #ddd;
}

.two_column_container {
    display: flex;
    flex-direction: row;
    padding: 20px;
}

.left_content {
    width: 100%;
    overflow: hidden;
}

.right_content {
    width: 320px;
    padding-left: 20px;
    position: relative;
}

.ad {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 0 auto;
    overflow: hidden !important;
    border: none;
    scrollbar-width: none;
}

.ad::-webkit-scrollbar {
    display: none;
}


iframe {
    overflow: hidden !important;
}

.line {
    background: #e2e2e2;
    height: 15px;
    border-radius: 4px;
    margin-bottom: 12px;
}

.line.dark {
    background: #474747;
}

.line.tall {
    height: 22px !important;
}

.line.extra_margin {
    margin-bottom: 24px !important;
}


.img-placeholder {
    background: #888;
    width: 100%;
    aspect-ratio: 16 / 9;
    margin: 1rem 0;
}

.two-col {
    display: flex;
    flex-direction: row;
    gap: 1rem;
}

.two-col .left,
.two-col .right {
    flex: 1;
}

.article {
    margin-bottom: 2rem;
}

.comment-box {
    text-align: center;
    margin: 2rem 0;
}

.comment-box input {
    padding: 0.5rem;
    width: 90%;
}

footer {
    background: #fafafa;
    font-size: 0.85rem;
    text-align: center;
}

.socials i {
    margin: 0 0.5rem;
}



body {
    margin: 0;
    font-family: sans-serif;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 12px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.title {
    font-weight: bold;
    font-size: 1.5rem;
}

.hide_on_mobile {
    display: block;
}


@media (max-width: 970px) {

    .header {
        display: none;
    }

    .content_header .center {
        left: 55px;
        transform: none;
        height: auto;
    }

    .content_header .center img {
        max-width: 90px;
    }

    .content_header .subscribe-btn {
        padding: 8px 10px;
        font-size: 8px;
    }

    .content_header .sign-in-btn {
        padding: 8px 10px;
        font-size: 8px;
    }

    nav {
        display: none;
    }

    .two_column_container {
        flex-direction: column;
        padding: 10px;
    }

    .left_content {
        width: 100%;
    }

    .right_content {
        position: static;
        padding-left: 0;
        height: auto;
    }

    .two-col {
        flex-direction: column;
    }

    .two-col .left,
    .two-col .right {
        flex: none;
    }

    .article_2_column {
        flex-direction: column;
        margin-bottom: 0;
    }

    #art_image_2 {
        width: 100%;
        height: auto;
        margin: 0 auto 30px !important;
    }

    .ad_top {
        display: none;
    }

    .right_content {
        width: 100%;
    }

    #right_content_ad_1 {
        margin-bottom: 30px !important;
    }

    #right_content_ad_2 {
        margin-bottom: 30px !important;
    }

    #right_content_ad_3 {
        margin-bottom: 30px !important;
    }

    #right_content_image_1 {
        margin-bottom: 30px !important;
    }

    #social_buttons {
        max-width: 250px;
    }

    .width_resize {
        width: 100%;
        margin: 0 auto;
    }

    .content_footer {
        padding: 30px;
    }

    .scroll_indicator {
        display: block;
    }

    .hide_on_mobile {
        display: none;
    }

}

@container previewContainer (max-width: 970px) {

    .header {
        display: none;
    }

    .content_header .center {
        left: 55px;
        transform: none;
        height: auto;
    }

    .content_header .center img {
        max-width: 90px;
    }

    .content_header .subscribe-btn {
        padding: 8px 10px;
        font-size: 8px;
    }

    .content_header .sign-in-btn {
        padding: 8px 10px;
        font-size: 8px;
    }

    nav {
        display: none;
    }

    .two_column_container {
        flex-direction: column;
        padding: 10px;
    }

    .left_content {
        width: 100%;
    }

    .right_content {
        position: static;
        padding-left: 0;
        height: auto;
    }

    .two-col {
        flex-direction: column;
    }

    .two-col .left,
    .two-col .right {
        flex: none;
    }

    .article_2_column {
        flex-direction: column;
        margin-bottom: 0;
    }

    #art_image_2 {
        width: 100%;
        height: auto;
        margin: 0 auto 30px !important;
    }

    .ad_top {
        display: none;
    }

    .right_content {
        width: 100%;
    }

    #right_content_ad_1 {
        margin-bottom: 30px !important;
    }

    #right_content_ad_2 {
        margin-bottom: 30px !important;
    }

    #right_content_ad_3 {
        margin-bottom: 30px !important;
    }

    #right_content_image_1 {
        margin-bottom: 30px !important;
    }

    #social_buttons {
        max-width: 250px;
    }

    .width_resize {
        width: 100%;
        margin: 0 auto;
    }

    .content_footer {
        padding: 10px;
    }

    .scroll_indicator {
        display: block;
    }

    .hide_on_mobile {
        display: none;
    }

}