/* 2) Exact weight matching usage */
@font-face {
    font-family: 'XanhMono';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    /* 3) URLs first, leading slash */
    src: url('/assets/fonts/XanhMono-Regular.woff2') format('woff2'),
        url('/assets/fonts/XanhMono-Regular.woff')  format('woff'),
        url('/assets/fonts/XanhMono-Regular.ttf')   format('truetype');
}
@font-face {
    font-family: 'XanhMono';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('/assets/fonts/XanhMono-Italic.woff2') format('woff2'),
        url('/assets/fonts/XanhMono-Italic.woff')  format('woff'),
        url('/assets/fonts/XanhMono-Italic.ttf')   format('truetype');
}


body {
    margin: 0;
    padding: 0;
    background-color: white;
    display: flex;
    flex-direction: column;
    font-family: 'XanhMono';
    align-items: center;
    justify-content: flex-start;
}

.top-padding {
    height: 100px;
}

@media screen and (max-width: 992px) {
    .top-padding {
        height: 50px;
    }
}

.section{
    margin: 0 auto;
    width: 60%;
    /* border-width: 1px;
    border-style: solid;
    border-color: red; */
    justify-content: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.page-title{
    font-family: 'XanhMono';
    font-size: 75px;
    line-height: 72px;
    letter-spacing: -2px;
    font-weight: 400;
    color: black;
    margin: 0;
}

@media screen and (max-width: 992px) {
    .page-title {
        font-size: 50px;
        line-height: 48px;
        letter-spacing: -1px;
    }
}

.cover{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: auto;
    background-color: #f0f0f0;
    padding: 0;
    margin: 0;
    width: 100%;
    object-fit: cover;
}

.cover:hover{
    filter: invert(100%);
    cursor: pointer;
}

.store-link{
    font-family: sans-serif;
    font-weight: 300;
    font-size: 24px;
    color: black;
    text-decoration: underline;
}

.store-link:hover{
    background-color: black;
    color: yellow;
    cursor: pointer;
}

@media screen and (max-width: 992px) {
    .store-link {
        font-size: 18px;
    }
}

.store-links-div{
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.tracks-title{
    font-family: 'XanhMono';
    font-style: italic;
    font-size: 32px;
    line-height: 40px;
    letter-spacing: -1px;
    font-weight: 400;
    color: #333;
    margin: 0;
}

.track-image{
    flex: 1;
    height: auto;
    object-fit: cover;
    margin-bottom: 10px;
    max-width: 100%;
    display: block;
    flex-wrap: nowrap;
    padding: 0;
    margin: 0;
}

.track-image:hover{
    filter: invert(100%);
}

.track-image-wrapper{
    flex: 1 1 0%; /* This is the key:
                        flex-grow: 1 (allows item to grow to fill space)
                        flex-shrink: 1 (allows item to shrink if needed)
                        flex-basis: 0% (sets initial size to 0, allowing flex-grow to distribute space evenly)
                    */
    display: flex; /* Use flex on wrapper to center image if needed */
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Ensures image corners are rounded within wrapper */
    padding: 0; 
}

.track-covers-row{
    display: flex;
    gap: 20px;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 100%;
    /* flex-wrap: wrap; */
    margin-bottom: 20px;
}

.footer-div{
    justify-content: flex-start;
    align-items: center;
    width: 100%;
}

.footer-text{
    font-family: sans-serif;
    margin: 0;
    padding: 0;
}

/* On screens that are 992px or less, set the background color to blue */
@media screen and (max-width: 992px) {

    .section{
        width: 90%;
        /* border-color: blue; */
    }

    .track-covers-row{
        flex-direction: column;
        align-items: center;
    }

}