/**
Main CSS file for feets.tv

Created by Feets.
Created 2025-09-06.
**/

/* Import */

@import url('https://fonts.googleapis.com/css2?family=Titillium+Web:ital,wght@0,400;0,600;0,700;0,900;1,400;1,600;1,700&display=swap');

/* Variables */

:root {
    --font: "Titillium Web", "Trebuchet MS", "Tahoma", sans-serif;
    --mono-font: Menlo, Monaco, Consolas, monospace;
    /* Default (light) theme */
    --bg: #fefefe;
    --bg-outside: #FFF9B2;
    
    --text: #000;
    --border: #666;
    --accent: hsl(225, 50%, 50%);
    --disabled: #aaa;
    
    --width: 800px;
    
    /* square size */
    --check-size: 40px;  
    --y-top: #f5a300;        /* orangey-yellow */
    --y-mid: #ffd400;        /* yellow */
    
    --y-alt: rgba(255, 245, 235, 0.25);       /* light grey */
    --y-alt-b: rgba(127, 127, 127, 0.2);
}

@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: dark;
        --bg: #111;
        --bg-outside: #001922;
        
        --text: #fafafa;
        --border: #aaa;
        --accent: hsl(55, 100%, 50%);
        --disabled: #aaa;
        
        /* square size */
        --check-size: 40px;  
        --y-top: hsl(225, 80%, 45%);        /* dark blue */
        --y-mid: hsl(215, 80%, 25%);        /* vivid blue */
    }
}

.checker-bg {
    background:
    repeating-conic-gradient(#0000 0 25%, rgba(0,0,0,.06) 0 50%) 0/var(--check-size) var(--check-size),
    linear-gradient(to bottom,
    rgba(255,255,255,1) 50vh,   /* opaque from halfway down the viewport */
    rgba(255,255,255,1) 100vh   /* fully opaque at bottom of viewport */
    );
    background-repeat: no-repeat, repeat;
    background-size: 100% 100vh, var(--check-size) var(--check-size);
}

/* Global */

body {
    background-image:
    linear-gradient(to bottom, rgba(255,255,255,0) 0, var(--bg) 50vh),
    conic-gradient(var(--y-alt) 25%, var(--y-alt-b) 0 50%, var(--y-alt) 0 75%, var(--y-alt-b) 0),
    linear-gradient(to bottom, var(--y-top) 0, var(--y-mid) 100px, var(--bg-outside) 250px, var(--bg) 100vh);
    background-size: 100% 100vh, var(--check-size) var(--check-size), 100% 100%;
    background-blend-mode: normal, soft-light, normal;
    background-repeat: no-repeat, repeat, no-repeat;
    background-attachment: fixed, fixed, fixed;
    
    flex-direction: row;
    color: var(--text);
    font-family: var(--font);
    display: flex;
    margin: 0;
    position: relative;
    z-index: 1;
}

/* Images */

figure {
    display: flex;
    flex-direction: column;
    align-items: center;
}

figcaption {
    font-style: italic;
}

/* Fonts */

a, code {
    color: var(--accent)
}

a {
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

a:visited {
    color: var(--accent);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font);
}

h1, h2 {
    font-weight: 700;
    font-size: 3em;
    margin: 2rem 0;
}

h1 {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
}

h2 {
    margin-top: 2em;
    font-size: 2em;
}

h1 + h2 {
    margin-top: 0;
}

h1:has(+ h2) {
    margin-bottom: 0;
}

h2 + h3 {
    margin-top: 0;
}

h2:has(+ h3) {
    margin-bottom: 0;
}

h3 + h4 {
    margin-top: 0;
}

h3:has(+ h4) {
    margin-bottom: 0;
}

/* Header */

header {
    font-size: 1.2em;
    line-height: 2em;
    z-index: 2
}

header h1 {
    font-size: 4em;
    font-weight: 900;
    margin: 2rem auto 2rem 0;
    border: none;
}

header ul {
    list-style: none;
    padding-left: 0;
    text-align: var(--accent);
}

header .emoji {
    font-size: 1.2em;
    margin-right: 1rem;
    height: 2em;
    width: 2em;
    line-height: 2em;
    text-align: center;
}

@media only screen and (prefers-color-scheme: dark) {
    header .emoji {
        background-color: rgba(255,255,255,0.2);
        border-radius: 2em;
    }
}

#top {
    display: flex;
    justify-content: center;
}

#top a {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#top-swap {
    display: flex;
    flex-direction: column;
}

nav ul li, #top-swap div ul li {
    margin-bottom: 1em;
}

nav ul li a, #top-swap div ul li {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.link-title {
    display: flex;
    flex-direction: column;
    width: 180px;
}

.link-title span {
    line-height: 1.25em;
}

.link-title span:first-of-type {
    font-weight: bold;
}

/* Main */

#main {
    display: flex;
    column-gap: 5em;
    flex-direction: row;
    justify-content: center;
    margin: 3em auto;
    z-index: 100;
    height: fit-content;
}

main {
    background-color: var(--bg);
    border-radius: 16px;
    box-shadow: 0 0 20px var(--border);
    font-size: 1.2em;
    line-height: 2rem;
    padding: 2.5em;
    min-width: var(--width);
    max-width: var(--width);
    height: fit-content;
    margin-bottom: 2em;
}

main h1 {
    line-height: 1.25em;
}

main img {
    max-width: calc(var(--width) - 2.5em);
}

main iframe {
    width: calc(var(--width) - 2.5em);
    min-height: 400px;
    text-align: center;
}

#details {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 4em;
}

#details h1 {
    margin-bottom: 0;
    padding-bottom: 0;
}

#datetime {
    display: flex;
    flex-direction: column;
    align-self: end;
}