/* ========================== */
/* VARIABLES                  */
/* ========================== */


/* ========================== */
/* TYPOGRAPHY                 */
/* ========================== */

@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap');

body {
    font-size: clamp(16px, 2vw, 20px);
    background-color: var(--bg-color);
    transition: background-color 0.3s ease;
    
}

/* Main links */
.main-links_link {
    text-decoration: none;
    font-family: Arial, sans-serif;
    font-size: 4em;
    line-height: 1.5em;
    padding-left: 0.5em;
    color: var(--text-color);
    transition: color 0.2s ease;
}

a {
    text-decoration: none;
}

.main-links_link:hover,
.main-links_link:active {
    color: var(--hover-color);
}





/* ========================== */
/* LAYOUT                     */
/* ========================== */
.top-half, .bottom-half {
    width: 100%;
}

.bottom-half {
    box-shadow: 0px -6px 0.6em rgba(0, 0, 0, 0.4);
}

.main-page {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.news-n-shit {
    padding: 2em 0 3em;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    gap: 1em;
    flex-direction: column-reverse;
}

/* Video bar */
.video-bar {
   
    border-bottom: 0.5em dashed #000000;
}



.video-bar_list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
    width: 100%;
    margin: 0 auto;
    background-color: black;
    background-image: 
        linear-gradient(90deg, rgba(0, 255, 255, 0.2) 1px, transparent 1px),
        linear-gradient(0deg, rgba(0, 255, 255, 0.2) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridScroll 5s linear infinite;
}

.video-bar_list > li {
    margin: 0 auto;
    padding: 1em 0;
}

.preview_thumbnail {
    width: 320px;
    height: 180px;
    background-color: brown;
    overflow: hidden;
    
}

.thumbnail_item {
    transition: transform 0.3s ease-in-out;
}

.thumbnail_item:nth-child(odd):hover {
    transform: scale(1.1) rotate(3deg);
}

/* Even thumbnails rotate slightly counterclockwise */
.thumbnail_item:nth-child(even):hover {
    transform: scale(1.1) rotate(-3deg);
}

/* red static */
.left-side, .right-side {
    flex: 1;
    min-width: 300px;
    padding: 10px;

}

.left-side {
    background-color: rgba(0, 0, 0, 0.521);
    border-image: url('/img/dia.webp') 27 27 27 27 fill / 27px 27px 27px 27px;
    padding: 27px 27px 27px 27px;
    box-shadow: inset 0px 0px 50px 1px rgba(181, 4, 4, 0.77);
}

.funfunzone {
   
    width: 300px;
    height: 300px;
    display: block; 
    overflow: hidden;

}

.funfunzone > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes rotate {
    from { transform: rotateY(0deg); }
    to { transform: rotateY(360deg); }
}

.rotating-image {
    animation: rotate 5s linear infinite;
    transform-style: preserve-3d;
}

.glow-border {
    border: 4px solid #000000;
    box-shadow: 0px 0px 10px 4px rgba(0, 0, 0, 0.75);
}

.funfunzone > img {
    filter: drop-shadow(0px 0px 10px rgba(255, 9, 9, 0.93));
    
}

.right-side {
    transform: rotate(5deg);
    
}

.news {
    background-color: rgba(0, 0, 0, 0.521);
    padding: 1em;
    background-image: linear-gradient(rgba(249, 249, 249, 0.416) 2px, transparent 2px);
    background-size: 25px 25px;
    
}

.news-head {
    filter: url(#distort);
}





/* ========================== */
/* BACKGROUND & ANIMATIONS    */
/* ========================== */
.bottom-half {
    display: flex;
    flex-wrap: wrap;
    background: 
    
        url('/img/backgrounds/static.webp') repeat;
    color: white;
    background-color: rgb(158, 0, 0);
    background-blend-mode: multiply;
    animation: noiseAnimation 0.1s linear infinite;
    height: auto;
}


@keyframes gridScroll {
    from { background-position: 0 0; }
    to { background-position: 50px 50px; }
}

@keyframes noiseAnimation {
    0% { background-position: 0 0; }
    100% { background-position: 100% 100%; }
}

/* ========================== */
/* MEDIA QUERIES              */
/* ========================== */
@media (min-width: 48em) {
    .news-n-shit {
        flex-direction: row;
    }
    
    .top-half {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        height: 100vh;
    }
    
    .bottom-half {
        flex: 0;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }

    .left-side {
        
        max-width: fit-content;
    }
    
    .right-side {
        flex: 1;
    }


    .mobile-tack {
        display: none;
    }
    
    .tack {
        position: fixed;
        bottom: 0;
        right: 0;
        z-index: -1;
        display: flex;
        align-items: flex-end; /* Keeps image aligned to bottom */
        justify-content: flex-end; /* Moves it to the right */
        min-width: 50%;
        max-width: 30vw;
        max-height: 50vh;
    }
    .tack img {
        width: 100%;
        max-height: 100vh; /* Ensures it never exceeds viewport height */
        object-fit: contain; /* Prevents cropping */
    }

    
    
    .main-links_link {
        font-size: 90px;
        line-height: 1.7em;
        padding-left: 1em;
    }
}

/* Larger screens */
@media (min-width: 64em) {
    body {
        font-size: 20px;
    }
}
