/* custom fonts -------------- */
@font-face{
    font-family:"Garamond";
    src:url(fonts/Garamond.ttf) format('truetype');
    font-style: normal;
}

/* universal */
body{
    background-color: #fdf7ec;

    margin: 0;

    width: 100%;
    height: 100vh;
    min-width: 607px;
}

.container{
    display: flex;
    align-items: center;
    flex-direction: column;
    
    width: 100%;
    max-width: 900px;

    margin: 0 auto;
    padding-bottom: 20px;

    background-color: white;
}

::-webkit-scrollbar{
    width:10px;
    height:10px;
}

::-webkit-scrollbar-track{
    background-color:#bbb;
}

::-webkit-scrollbar-thumb{
    height:25px;
    background-color:#6d6b69;
    border-radius:5px;
}

/* header */
.header{
    width: 100%;
    text-align: center;
}

.header h2{
    font-size: 30px;
}

/* h1 general overlay css */
.player h1, .tracklist h1{
    position: absolute;

    font: bold 18px Garamond;

    background-color: #d4e9ff;

    padding: 0 15px;
    padding-bottom: 5px;
    border: 3px dotted #1e2327;

    text-align: center;

    z-index: 1;
}

/* everything rating related */
.ratingWrapper{
    display: flex;

    width: 100%;
    gap: 25px;
    justify-content: center;
}

.songInfo{
    display: flex;
    flex-direction: row;

    width: 55%;
    height: 300px;
    margin-left: 30px;
    margin-top: 25px;
    justify-content: center;
}

.rating{
    z-index: 1;

    background-color: rgb(226, 208, 255);

    width: 50px;
    height: 26px;
    padding: 3px 10px;
    margin-bottom: 16px;
    rotate: 1deg;

    font-size: 20px;
    font-family: "Futura";
    text-align: center;
}

#ten{
    font-size: 12px;
    font-style: italic;
    font-family: 'Garamond';
    
    margin: 0;
    margin-left: 2px;
    margin-bottom: 25px;
}

.cover{
    width: 225px;
    aspect-ratio: 1;

    text-align: center;

    background-color: blue;
}

.description{
    display: flex;
    flex-direction: column;

    margin-left: 10px;
}

.description h1{
    margin: 0;
    margin-top: 6px;
}

.description h2{
    margin: 0;

    font-weight: normal;
    font-style: italic;
    font-size: 18px;
}

/* tracklist */
.tracklist{
    display: flex;
    flex-direction: column;
    align-items: center;

    padding: 0 10px;
    width: 60%;

    margin-top: -10px;
}

.tracklist h1{
    position: relative;

    font-size: 20px;

    padding: 2px 25px;
    margin-block-start: 0;
    margin-block-end: 0;

    margin-top: 13px;
    margin-bottom: -10px;

    user-select: none;

    filter: drop-shadow(0px 0px 2px #000);
}

.tracklist table{
    display: block;

    border: 3px solid #bbb;
    border-radius: 10px;
    border-spacing: 0px;

    padding: 5px 0px;
    padding-top: 10px;
    width: 80%;
    max-height: 221px;
    overflow-x: hidden;
    overflow-y: scroll;

    background-color:#faf5f1;
}

.tracklist td{
    user-select: none;
    padding: 3.5px 25px;

    color: #333;
}

.tracklist td:first-child{
    width: 75%;
}

.tracklist tr{
    transition: 0.25s ease;
    scale: 100%;

    background-color: #faf5f1;
}

.tracklist tr:hover{
    transition: 0.1s ease;

    /* workaround, the background color attribute only works on the odd tr entries so all table attributes have the same hover effect */
    background-color: #e6e3e0;
    filter: brightness(103%) sepia(20%);

    font-weight: bold;
    scale: 105%;

    cursor: pointer;
}

.tracklist tr:nth-child(even){
    background-color: #e6e3e0;
}

.selected{
    /* i know using !important is bad but i don't know a workaround */
    background-color: #cec !important;
    text-decoration-line: underline;

    color: #000 !important;
}

/* music player */
.player{
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, -50%);

    text-align: center;
    border: 3px solid #252529;
    background-color: #d5d0f1;

    height: 50px;
    width: 60%;
    min-width: 300px;
    max-width: 540px;
}

.player h1{
    margin-top: -22px;
    margin-left: -25px;

    rotate: -1deg;
}