/* defining colors & other stuff*/
:root {
    --text-color: white;
    --link-color: rgba(128, 128, 128, 1);
    --link-color-article: #888;
    --link-glow: 0 0 10px white;
    --bg-tint: rgba(0, 0, 0, 0.4);

    --head-font: "Old English Five"; /* similar to "Manuskript Gothisch", except it has a better dash */
    --text-font: "Times New Roman";

    /* letter spacing */
    --lsp: 5px;
}

@font-face {
    font-family: "Old English Five";
    src: url("/fonts/OldEnglishFive.ttf") format("truetype");
}

@font-face {
    font-family: "Times New Roman";
    src: url("/fonts/Times New Roman.ttf") format("truetype");
}

html {
    color: var(--text-color);
    background: url(/img/A-Rainy-mountain-view-in-the-Scottish-Highlands-by-David-Gibbeson.jpg);
    background-color: black;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;
    font-family: var(--text-font);

    /* fixing it for those nasty phones */
    padding: 4%;
}

img {
    max-width: 100%;
}

/* headers */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--head-font);
    text-align: center;
    letter-spacing: var(--lsp);
    margin: 0;
    font-weight: 100;
}

h1 {
    font-size: 24px;
}
h2 {
    font-size: 20px;
}

body {
    max-width: 1200px;
    margin: auto;
    background-color: rgba(0, 0, 0, 0.72);
    box-sizing: border-box;
    padding: 1rem 5.5rem;

    /* fixing it for those nasty phones */
    padding: 1rem 5%;
}

/* navbar */
nav {
    display: flex;
    justify-content: center;
    letter-spacing: var(--lsp);
    background-color: var(--bg-tint);
    padding: 0.5rem;
    text-align: center;
    margin: 1rem 0;

    & ul {
        list-style-type: none;
        margin: 0;
        padding: 0;

        & li {
            display: inline;
            padding: 0 1rem;
            & a {
                /*font: 30px "Wilhelm Klingspor Gotisch";*/
                font-family: var(--head-font);
                font-size: 20px;
            }
        }
    }
}

a {
    color: var(--link-color);
    text-decoration: none;
}

a:not(#wip):hover {
    color: var(--text-color);
    text-shadow: var(--link-glow);
}

main {
    text-align: center;
    background-color: var(--bg-tint);
    padding: 1rem;
}

article {
    background-color: var(--bg-tint);
    margin: 1rem 3rem;
    padding: 1rem 1.5rem;
    & a {
        color: var(--link-color-article);
        font-weight: bold;
    }
    & a:hover {
        text-shadow: var(--link-glow);
        text-decoration: underline;
    }
    margin: 2% 5%;
}

footer {
    text-align: center;

    & small {
        /*font-size: 1rem;
        letter-spacing: var(--lsp);*/
        color: var(--link-color);
    }
}

.logo {
    padding: 0.5rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.footer-icons {
    display: flex;
    justify-content: center;
    letter-spacing: var(--lsp);
    padding: 1rem;

    & ul {
        list-style-type: none;
        margin: 0;
        padding: 0;

        & li {
            display: inline;
            & a {
                padding: 0.2rem;
                font-size: 1.5rem;
            }
        }
    }
}

.empty {
    padding: 3rem;
}

.is-active {
    color: var(--text-color);
    text-shadow: var(--link-glow);
}

.redirect {
    border: solid 1px var(--link-color);
    box-shadow: var(--link-glow);
    outline: none;
}

#wip {
    text-decoration: line-through;
    pointer-events: none;
}

/* gass*/

.project {
    display: flex;
    align-items: center;
    margin: 0.75rem;
    & small {
        color: var(--link-color);
        font-style: italic;
    }
}

.project-avatar {
    margin-right: 1rem;

    & img {
        min-height: 200px;
        max-width: 200px;
        height: auto;
        object-fit: contain;
    }
}

.bandcamp-embed {
    width: 100% !important;
    max-width: 350px !important;
    height: 550px !important;
    border: 0 !important;
}

@media screen and (max-width: 720px) {
    .project {
        flex-direction: column;
    }
    .project-text {
        padding: 0.5rem 0;
    }
}

.album-grid {
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.album {
    position: relative;
    text-align: center;
    overflow: hidden;
}

.album img {
    width: 100%;
    height: auto;
    display: block;
    transition:
        transform 0.2s ease,
        filter 0.2s ease;
}

.album:hover img {
    filter: brightness(0.25);
}

.album-links {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0.5rem;
    gap: 0.75rem;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.album:hover .album-links {
    opacity: 1;
    pointer-events: auto;
}

.album-meta {
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.6);
    text-align: center;
}

.album-icons {
    display: flex;
    gap: 0.5rem;
}

.album-icons a {
    font-size: 1.75rem;
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.6);
}

.share-button {
    position: absolute;
    top: 1.8rem;
    right: 0.8rem;
}
