﻿/******************************/
/* General page layout styles */
/******************************/

/* Fonts */

@font-face {
    font-family: 'GeistMono-Bold';
    src: url('/fonts/geist/GeistMono-ExtraBold.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Inter';
    src: url('/fonts/Inter.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
}

/* Common classes */

.dark {
    width: 100%;
    background-color: #181818;
}

.header-line {
    width: 30px;
    height: 3px;
    background-color: black;
    margin: 10px auto 0px auto;
}

.social-bar {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.social-bar img {
    display: block;
    width: 30px;
    height: 30px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(80px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
}

.fade-in.show {
    animation: fadeIn 1.0s ease forwards;
}

html {
    scroll-behavior: smooth;
}

#header {
    width: 100%;
    min-height: 125px;
    margin: 0px auto 0px auto;

    display: flex;
    align-items: center;
}

#header-content {
    width: 950px;

    /* Add space to the sides. */
    padding: 0px 20px;

    /* Center horizontally */
    margin: 0 auto;

    /* Logo left, toolbar right. Center items vertically. */
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

#header-logo img {
    width: 100%;
    max-width: 339px;
    height: auto;
    aspect-ratio: 339 / 44;
}

#header-toolbar {
    color: white;
    display: flex;
    align-items: center;
    column-gap: 26px;
    row-gap: 10px;
}

#header-navigation {
    display: flex;
    gap: 20px;
}

#header-navigation a {
    color: white;
    text-decoration: none;
    font-family: 'Inter', Cambria, Georgia, Arial;
    font-size: 20px;
    font-weight: 250;
    line-height: 1;
    /* keeps vertical alignment tight */
}

#header-navigation a:hover {
    color: #fcc304;
}

#banner {
    width: 100%;
    margin: 0px auto 0px auto;
    background-color: #202020;
    overflow: hidden;
    position: relative;
}

#banner-background {
    position: absolute;
    top: -25px;
    left: -25px;
    right: -25px;
    bottom: -25px;

    background-image: url("/images/artwork/featured.jpg");
    background-size: cover;
    background-position: 50% 20%;
    background-repeat: no-repeat;
    filter: blur(10px) brightness(80%);
}

#banner-foreground {
    position: relative;
    width: min(100%, max(810px, 50%));
    /*min-width: 810px;
    width: 50%;*/

    /* Cap maximum height. Part of the image will be not shown. */
    max-height: 712px;

    /* Center horizontally. */
    margin: 0 auto;

    /* Make sure the image inside is always centered. */
    display: flex;
    align-items: center;
    justify-content: center;
}

#banner-foreground img {
    width: 100%;
    height: auto;
    display: block;
}

#featured-overlay {
    position: absolute;
    bottom: 60px;
    left: 60px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.text-outlined {
    color: white;
    font-size: 30px;
    font-weight: bold;

    margin: 0;
    padding: 0px 4px;
}

.text-black-bg {
    /*background: black;*/
    background: #181818;

    font-family: 'GeistMono-Bold', Tahoma, Georgia, Arial;
    font-size: 50px;
    color: white;
    letter-spacing: 6px;
    text-transform: uppercase;

    width: fit-content;
    padding: 6px 12px;
    margin: 0;
}

.pink-link {
    background: #ff3881;
    color: white;

    font-size: 20px;
    font-weight: bold;
    letter-spacing: 4px;
    text-decoration: none;

    box-shadow: 2px 2px 0px rgba(0, 0, 0, 0.5);

    width: fit-content;
    transition: background-color 0.3s ease;
    padding: 10px 30px;
}

.pink-link:link,
.pink-link:visited,
.pink-link:active {
    color: white;
}

.pink-link:hover {
    background: #ff5b98;
}

.pink-link:active {
    color: white;
}

#about {
    background-color: #fcc304;
    display: flex;
    width: 100%;
    margin: 0px auto 0px auto;
}

#about-pic {
    flex: 50%;
    margin: 0px auto 0px auto;

    display: flex;
    justify-content: center;
    overflow: hidden
}

#about-pic img {
    min-width: 100%;
    min-height: 100%;
    max-height: 624px;

    object-fit: cover;
    object-position: center;
}

#about-text {
    flex: 50%;
    /*margin: 0px auto 0px auto;*/

    /*font-size: 18px;*/
    /*font-size: 18px;*/
    padding: 60px 32px 60px 32px;
    box-sizing: border-box;
}

#about-text-section {
    width: 100%;
    max-width: 480px;
    min-width: 100px;
    display: block;
    margin: 0 auto;
    line-height: 1.55em;
}

#releases {
    width: 100%;
    /*display: flex;
    justify-content: center;*/
    background-color: white;
    padding-top: 1px;
    /*padding-bottom: 80px;*/
    text-align: center;
}

#releases-grid {
    display: grid;
    flex-wrap: wrap;
    grid-template-columns: repeat(auto-fit, minmax(376px, max-content));
    gap: 64px;
    justify-content: center;
    padding: 80px 24px;
}

/* When viewport goes too narrow, let the grid items shrink to fit. */
@media (max-width: 424px) {
    #releases-grid {
        grid-template-columns: minmax(200px, 1fr);
    }
}

.release-item {
    position: relative;
    max-width: 376px;
    max-height: 376px;
    overflow: hidden;
}

.release-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s ease;
}

.release-item .overlay-info {
    position: absolute;
    inset: 20px;

    /*width: 100%;
    height: 100%;*/

    /* Text settings */
    color: white;
    text-align: left;

    /* Do not show by default */
    opacity: 0;

    /* Animate */
    transition: 0.5s ease;

    /* Stack vertically */
    display: flex;
    flex-direction: column;
}

.hover-enabled .release-item:hover img {
    /* Reduce brightness to 50% when hovering */
    filter: brightness(50%);
}

.hover-enabled .release-item:hover .overlay-info {
    /* Show title on hover. */
    opacity: 1;
}

.overlay-info .release-artist {
    font-weight: normal;
    /* regular font */
    font-size: 20px;
}

.overlay-info .release-title {
    font-weight: bold;
    font-size: 30px;
    margin-top: 5px;
}

#links_section {
    height: 100px;
    /* TODO */
    margin: 0px auto 0px auto;
    /*box-sizing: border-box;*/

    display: flex;
    justify-content: center;
    align-items: center;
}

#footer {
    height: 56px;
    margin: 0px auto 0px auto;
    background-color: white;
    line-height: 56px;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
}

body {
    background-color: white;
    /* TODO: Remember to remove in the end!! */
    margin: 0 0 0 0;
    font-family: 'Inter', Cambria, Georgia, Arial;
    font-size: 18px;
    font-weight: 300;
    /*min-width: 980px;*/
    width: 100%;
}

a img {
    border-width: 0px;
    outline: none;
}

a:link {
    color: #0066cc;
}

h1,
h2 {
    font-family: 'GeistMono-Bold', Tahoma, Georgia, Arial;
    letter-spacing: 6px;
}

h1 {
    font-size: 42px;
    text-transform: uppercase;
    margin-bottom: 0px;
}

h2 {
    font-size: 36px;
    font-weight: bold;
    text-transform: uppercase;
    line-height: 1.25em;
}

h3 {
    /*font-family: Tahoma, Georgia, Arial;*/
    font-size: 20px;
    font-weight: bold;
}

/* For mobile. */
@media all and (max-width: 950px) {
    body {
        width: 100%;
        overflow-x: hidden;
    }

    #header-content {
        width: 100%;
        justify-content: center;
        flex-direction: column;
    }

    #header-logo {
        margin-top: 16px;
    }

    /* Let toolbar sections wrap based on the viewport width. */
    #header-toolbar {
        margin-top: 8px;
        margin-bottom: 8px;
        justify-content: center;
        flex-wrap: wrap;
        /*gap: 10px;*/
    }

    /* Switch about sections to be shown vertically. */
    #about {
        flex-direction: column;
    }

    #about-pic {
        width: 100%;
    }

    #about-text {
        width: 100%;
    }
}