@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');

/* Keyframes */
@keyframes hue {
    0% {
        filter:hue-rotate(0deg);
    }

    100% {
        filter:hue-rotate(360deg);
    }
}

/* Variables */
:root {
    --border-radius: 25px;
    --body-padding-x: 20px;
    --body-padding-y: 1px;

    --unhovered-anchor-opacity: 70%;
    --unhovered-anchor-decor: none;
}

/* General body */
* {

    scroll-behavior: smooth;
}

body {
    background-image: linear-gradient(to right, rgba(255,255,255, 0), rgba(188, 25, 147, 0.2)), url("/assets/images/blog.png");
    background-attachment: fixed;
    padding:10px;
    padding-top: 52px;
}

.content {
    max-width: 750px;
    margin: auto;

    margin-top: 12px;

    background-color: rgba(0,0,0,.65);
    backdrop-filter: blur(4px);

    border-radius: var(--border-radius);
    padding-left: var(--body-padding-x);
    padding-right: var(--body-padding-x);
    padding-top: var(--body-padding-y);
    padding-bottom: var(--body-padding-y);
}

/* Text elements */
h1, h2, h3, h4, h5, h6 {
    font-family: DM Sans, sans-serif;
    color:white;

    font-weight: normal;
    font-size: x-large;
}

h1 {
    font-size: xx-large;
    margin-bottom: 0;
}

p, a, li, input, textarea {
    font-family: DM Sans, sans-serif;
    color: white;
}

p:has(img) {
    text-align: center;
}

img {
    max-height: 500px;
}

a {
    transition: opacity 0.2s;

    opacity: var(--unhovered-anchor-opacity);
    text-decoration: var(--unhovered-anchor-decor);
}

a:hover {
    opacity: 100%;
    text-decoration: underline;
}

/* Other elements */
hr {
    border: none;
    border-top: solid rgb(33,33,33) 3px;
    border-radius: 5px;
}

table, tbody tr td, thead tr th  {
    border: dotted 1px;
    padding: 6px;
    border-collapse: collapse;
    color: white;
    font-family: DM Sans, sans-serif;
}

audio {
    width: 100%;
}

img, video {
    max-width: 100%;
}

/* Header */
#header {
    background-color: rgba(0,0,0,0.7);
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;

    z-index: 1;

    padding: 12px;
    padding-bottom: 12px;
}

nav {
    max-width: 774px;
    margin: auto;

    display: flex;
}

.site-title {
    font-size: 25px;
    margin-right: auto;
}

#links {
    margin-right:24px;
    align-content: center;
}

/* Footer */
#footer {
    margin-top: auto;
    bottom: 0;
    background-color: black;
}

/* Special elements */
.video {
    aspect-ratio: 16 / 9;
    width: 100%;
}

#homepage-list {
    list-style: none;
    padding: 0;
}

#homepage-list h3 {
    margin-top: 0;
}

/* Special classes */
.translucent, sub {
    opacity: 70%;
}

.rainbow {
    color:rgb(255, 104, 104);
    animation: hue 4s linear infinite;
}

.button {
    max-height: 25px;
}
