:root {
    --white: #EBEBEB;
    --lgray: #838686; --lgray2: #83868680;
    --dgray: #474848; --dgray2: #47484880;
    --black: #0A0A0A; --black2: #0A0A0A90;
/*---*/
    --CD: #DFB719;
    --CDshadow: rgba(223,183,25,0.5);
    --V: #F63F3C;
    --Vshadow: rgba(204,0,0,0.5);
/*---*/
    --background: url(https://i.postimg.cc/j2msjyhy/background-1.png); background-attachment: contain; background-repeat: no-repeat;
    --filler: url(https://win98icons.alexmeub.com/icons/png/multimedia-4.png);
    --cursor: url(https://ani.cursors-4u.net/others/oth-9/oth903.cur), auto !important;
    --cursor2: url(https://ani.cursors-4u.net/others/oth-9/oth893.cur), auto !important;
}

a:hover {cursor: var(--cursor2);}
*{margin: 5px; padding: 0;}
.yearly .content-wrapper, .yearly .content-wrapper * {margin: 0;}

#container { /*invisible container*/
    width: 100%; 
    height: 100%; 
    display: flex;
}

.main-wrapper {
    display: flex;
    flex-direction: column;
    width: 65%;
}

.hbox, main, .yearly, .samples { /*formatting*/
    border-radius: 5px;
        font-family: 'Oxygen Mono';
        font-size: 8pt; 
        color: var(--white);
    a{text-decoration: none; color: var(--V);}
    
    
    h2{
        font-family: 'Electrolize'; 
        font-size: 18pt; 
        color: var(--white);
    }

    h3{
        font-family: 'Red Hat Mono';
        font-size: 10pt; 
        color: var(--white);}    
}

/*---*/
.hbox{ /*left*/
    background-color:var(--black);
    border: 3px solid var(--lgray);
    text-align: center;
    color: var(--white);
    width: 15%; 
    height: fit-content;
}

main{ /*middle*/
    background-color: var(--black2);
    border: 5px solid var(--black);
    height: 65vh;
    overflow-y: scroll;

    h1 {
        text-align: center;
        margin: 0;
        padding: 10px;
        position: sticky;
        top: 0;
        z-index: 1;
        
        img {
            display: block;
            margin: 0 auto;
        }
    }

    article{
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        color: var(--white);
        background-color: var(--black);
        border: 1px solid var(--dgray);
        border-radius: 5px;
        width: 210px;
        line-height: 1.25;
            
        h3{text-align: center;}
        p{
            margin: 10px; padding: 2px;
            text-align: center;
            border: 1px solid var(--lgray);
            border-radius: 3px;
            display: block;
        }
        
        img { /*album cover*/
            border: 1px solid var(--lgray);
            border-radius: 3px;
            width: 180px;
            margin: 10px auto;
            display: block;
        }
        
        dl { /*grid*/
            /*border: 1px dashed blue;*/
            display: grid;
            grid-template-columns: max-content 1fr;
            align-items: center;
            justify-content: end;
            column-gap: 10px;
            line-height: 1.5;
            padding: 0 10px;
    
            dd {
                /*border: 1px dashed hotpink;*/
                margin-left: 5px; padding: 1px;
                color: var(--lgray);
                margin-block: -0.125em 0;
            }
            dt {
                /*border: 1px dashed orange;*/
                color: var(--dgray);
                text-align: right;
            }
        }
    }

    .albums {
        display: inline-flex;
        flex-wrap: wrap;
        justify-content: space-evenly;
        gap: 3px;
    }
}

.samples {
    background-color: var(--black2);
    border: 5px solid var(--black);
    padding: 10px;
    border-radius: 5px;
    position: relative;
    height: 25vh;
    overflow-y: auto;
    margin-top: 10px;
    
    > img:first-of-type { /*sticky header*/
        display: block;
        margin: 0 auto;
        position: sticky;
        top: 0;
        z-index: 1;
    }

    
}

.yearly{ /*right*/
    background-color: var(--black);
    width: 20%;
    height: 900px;
    overflow-y: scroll;
    overflow-x: hidden;
    border: 3px solid var(--lgray);
    margin-left: 0;
    position: relative;

    > p:first-of-type {
        margin-bottom: 15px;
        padding: 10px;
    }

    h1 {
        text-align: center;
        margin: 0;
        padding: 10px;
        position: sticky;
        top: 0;
        z-index: 1;
        
        img {
            display: block;
            margin: 0 auto;
        }
    }

    h2 {
        text-align: right;
        padding-right: 10px;
        margin-top: 15px;
    }

    article{
        display: flex;
        flex-direction: column;
        color: var(--white);
        background-color: var(--black);
        border-bottom: 3px solid var(--dgray);
        padding: 5px;
        width: 100%;
        box-sizing: border-box;
        line-height: 1.25;
        position: relative;
        margin-bottom: 5px;
            
        h3{text-align: center; }

        p{
            margin: 5px 10px;
            padding: 2px;
            text-align: center;
            border: 1px solid var(--lgray);
            border-radius: 3px;
            display: block;
        }

        .content-wrapper { /*invisible wrapper for img+grid+p*/
            /* border: 1px dashed magenta; */
            display: flex;
            flex-direction: row;
            justify-content: flex-start;
            align-items: center;
            width: 100%;
            box-sizing: border-box;
            position: relative;
            gap: 0;

            h2 {
                position: absolute;
                top: 0;
                right: 0;
                margin: 0;
                padding: 5px 10px;
                font-size: 16pt;
                margin-bottom: 15px;
            }

            span {
                position: absolute;
                bottom: 0;
                left: calc(40% + 10px); /* Align with dl which starts after the image (40% width + margin) */
                margin-bottom: 5px;
            }

            img { /*album cover*/
                border: 1px solid var(--lgray);
                border-radius: 3px;
                width: 40%;
                height: 40%;
                aspect-ratio: 1/1;
                object-fit: cover;
                margin: 0 0 0 1px;
                flex-shrink: 0;
            }

            dl { /*grid*/
                /* border: 1px dashed blue; */
                display: grid;
                grid-template-columns: 0.6fr 2.4fr;
                align-items: center;
                align-content: space-evenly;
                flex: 1;
                margin: 30px 0 25px 0;  /* top right bottom left */
                min-width: 0;
        
                dd {
                    /* border: 1px dashed yellowgreen; */
                    margin-left: 5px;
                    padding: 3px 8px;
                    color: var(--lgray);
                }
                dt {
                    /* border: 1px dashed orange; */
                    color: var(--dgray);
                    text-align: right;
                }
            }
        }
    }
}

.nav{ /*links*/
    display: flex;
        flex-direction: column;
        text-align: center;
        justify-content: space-evenly;
    margin: 10px auto; padding: 3px;
    width: 75%; height: 30%;
    list-style-type: none;
    gap: 1px;
    border: 1px solid var(--white);
    line-height: 1.5;
        border-radius: 5px;
    ul.nav{text-align: center;}

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

    img {
        max-width: 95%;
        height: auto;
        display: block;
        margin: 0 auto;
    }

    li {
        border: none;
        outline: none;
        cursor: pointer;
        position: relative;
        z-index: 0;
        
        :before {
            content: '';
            background: linear-gradient(135deg, hsla(0, 0%, 92%, 1) 0%, hsla(1, 91%, 60%, 1) 20%, hsla(48, 80%, 49%, 1) 50%, hsla(1, 91%, 60%, 1) 80%, hsla(0, 0%, 92%, 1) 100%);

            /*background: linear-gradient(45deg, #ff0000, #ff7300, #fffb00, #48ff00, #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000);*/
            position: absolute;
            top: -2px;
            left:-2px;
            background-size: 400%;
            z-index: -1;
            filter: blur(2px);
            width: calc(100% + 4px); height: calc(100% + 4px);
            animation: glowing 7s linear infinite;
            opacity: 0;
            transition: opacity .5s ease-in-out;
            border-radius: 5px;
        }

        :active {color: #000}
        :active:after {background: transparent;}
        :hover:before {opacity: 0.5;}
        :after {
            z-index: -1;
            content: '';
            position: absolute;
            width: 100%; height: 100%;
            background: var(--dgray);
            left: 0; top: 0;
            border-radius: 5px;
        }
    }
}

.backbox {
    width: fit-content;
    margin: 5px auto; padding: 5px;
}

.lastfm {
    height: fit-content;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    overflow-y: auto;

    img{
        margin: 0 auto;
        width:255px; 
        border: 1px solid var(--dgray); 
            border-radius: 5px;
    }
}

.center {
    display: block;
    margin: 0 auto;
}

body{
    background:var(--background);
    cursor: var(--cursor);
}

#CDbox{border: 1px solid var(--CD);} /*if owned on CD*/
article#CDbox:hover { /*if owned on CD*/
    transition: box-shadow 0.5s;
    transition: border 0.5s;
    box-shadow: 0px 0px 20px 3px var(--CDshadow);
        -moz-box-shadow: 0px 0px 20px 3px var(--CDshadow);
        -webkit-box-shadow:0px 0px 20px 3px var(--CDshadow);
    img{border:1px solid var(--CD);}
}

#Vbox{ border: 1px solid var(--V);} /*if owned on vinyl*/
article#Vbox:hover { /*if owned on vinyl*/
    transition: box-shadow 0.5s;
    transition: border 0.5s;
    box-shadow: 0px 0px 20px 3px var(--Vshadow);
        -moz-box-shadow: 0px 0px 20px 3px var(--Vshadow);
        -webkit-box-shadow: 0px 0px 20px 3px var(--Vshadow);
    img{border:1px solid var(--V);}
}

span{a{text-decoration: none;}}

/*EXTRAS*/
.hvr-grow {
    display: inline-block;
    vertical-align: middle;
    transform: perspective(1px) translateZ(0);
        -webkit-transform: perspective(1px) translateZ(0);
    box-shadow: 0 0 1px rgba(0, 0, 0, 0);
    transition-duration: 0.3s;
        -webkit-transition-duration: 0.3s;
    transition-property: transform;
        -webkit-transition-property: transform;
}

.hvr-grow:hover, .hvr-grow:focus, .hvr-grow:active {
    -webkit-transform: scale(1.2);
    transform: scale(1.2);
}

@keyframes glowing {
    0% { background-position: 0 0; }
    50% { background-position: 400% 0; }
    100% { background-position: 0 0; }
}

.crosshatch { /*albums I have but have not given a good enough listen to */
    background-color: var(--black);
    background-image: repeating-linear-gradient(45deg, rgba(0, 0, 0, 0),rgba(0, 0, 0, 0) 5px, rgba(0, 0, 0, 0.3) 5px, rgba(0, 0, 0, 0.3) 6px), repeating-linear-gradient(-45deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0) 5px, rgba(0, 0, 0, 0.3) 5px, rgba(0, 0, 0, 0.3) 6px);
    background-size: 8px 8px, 8px 8px;
    filter: blur(5px);
}

main #CDbox, main #Vbox {
    span {
        position: static;
        display: block;
        text-align: center;
        padding: 10px 0;
    }
}

main article#dbox img:hover, .yearly article#dbox img:hover {
    border: 1px solid var(--black);
    transition: all 0.3s ease-in-out;
}

main article#CDbox:hover, main article#Vbox:hover {
    transition: all 0.3s ease-in-out;
}

.yearly article#CDbox {
    border-color: var(--CD);
}

.yearly article#Vbox {
    border-color: var(--V);
}

