:root {
    --trans-time: 400ms;
}

main {
    width: 100%;
}

body {
    min-height: 100dvh;
}

.loader {
    display: grid;
    place-items: center;
    min-height: 50vh;
    width: 100%;
    margin-top: 2rem;
}

.article-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;

    height: fit-content; /* initial */

    justify-content: center;
    align-items: center;
    padding: 0.5rem;
    gap: 1rem;

    transition: var(--trans-time) ease;
    box-sizing: border-box;
}

a {
    color:salmon;
}

.category {
    display: flex;
    flex-direction: column;
    width: 100%;

    align-items: center;
    gap: 0.5rem;
}

.article-preview {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;

    justify-content: center;
    align-items: center;

    border: 0.1rem solid lightgrey;
    border-radius: 0.4rem;
    padding: 0.5rem;

    background-color: #1a1a1a;

    transition: var(--trans-time) ease;
    box-sizing: border-box;
}

.article-preview.active {
    border: 0.1rem solid #29bc25;
    background-color: #1f1f1f;
}

.article-preview a {
    position: absolute;

    height: 100%;
    width: 100%;

    background: transparent;
    border: none;
    text-decoration: none;
}

.article-preview h3 {
    font-size: 1.2rem;
}

.article-container {
    display: flex;

    width: 100%;
    max-height: 0;

    justify-content: center;

    visibility: visible;

    transition: var(--trans-time) ease;
    box-sizing: border-box;

    opacity: 0;
    margin: 0;
    visibility: hidden;
    overflow: hidden;
}

.article-container.active {
    max-height: 400vh;
    opacity: 1;
    margin-top: -0.25rem;
    margin-bottom: 1rem;
    visibility: visible;
}

.current-article {
    border: 0.1rem solid grey;
    max-width: 75%;
    padding: 5%;
    visibility: visible;
    border-radius: 0.4rem;
    text-align: left;

    height: fit-content;

    transition: var(--trans-time) ease;
    background-color: #1a1a1a;
}

.youtube-video {
    aspect-ratio: 16 / 9;
    width: 100%;
}
img {
    max-width: 75%;
    max-height: 70vh;
    border-radius: 20px;

    margin: auto;
    display: block;
}
blockquote {
    font-size: 0.8rem;
    color: #777;
    text-align: center;
}

img:fullscreen {
    object-fit: contain;
    width: 100vw;
    height: 100vh;
    background-color: black;
    margin: 0;
    padding: 0;
    display: block;
}
