@import url('https://fonts.googleapis.com/css2?family=Roboto+Flex:opsz,wght@8..144,200;8..144,400&family=Roboto+Mono&display=swap');

/* Body */
html, body {
    background: black;
    color: white;
    font-family: 'Roboto Flex', sans-serif;
}

/* Common */
h1 {
    font-family: 'Roboto Mono', monospace;
    font-size: 32px;
}

a {
    color: white;
    text-decoration: none;
}

main {
    display: grid;
    padding: 1rem;
    gap: 2rem;
    max-width: 1900px;
    margin-inline: auto;
}

.transition {
    transition: all 150ms cubic-bezier(.17,.84,.44,1);
}

/* List */

.list main {
    grid-template-columns: repeat(3, 1fr);
}

.list a {
    display: flex;
    position: relative;
}

.list a:hover {
    transform: scale(103%);
}

.list a:active {
    transform: scale(101%);
}

.list a:hover::after {
    box-shadow: inset 0 0 3px 3px #a390ff, 0px 0px 3px 3px #a390ff;
    background: #a390ff10;
}

.list a::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 1rem;
    box-shadow: inset 0 0 3px 3px white, 0px 0px 3px 3px white;
}

.list a > img {
    width: 55%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 1rem 0 0 1rem;
}

.list a > div {
    margin: 1rem;
    position: relative;
    width: 45%;
    text-align: right;
    font-size: 1.5rem;
}

.list a > div > span {
    position: absolute;
    bottom: 0;
    right: 0;
    font-weight: 200;
    font-size: 1rem;
}

/* Single */

.single main {
    grid-template-columns: 1fr 1fr;
}

.single img {
    max-width: 100%;
}

iframe {
    width: 100%;
    aspect-ratio: 16/9;
}

#back {
    font-size: 1.5rem;
    opacity: 0.1;
    position: fixed;
    transform: translateX(-50%) translateY(-50%);
}

#back:focus-within {
    opacity: 1;
    margin: 1rem;
    padding: 1rem;
    background: #353535f5;
    border-radius: 0 0 25% 0;
}
