* =========================================
   TALICHA'S WINDOWS 98 MUSIC PLAYER
   ========================================= */


.player {
    width: fit-content;
    border: black solid 1px;
    border-width: 1px 0 0 1px;

    position: fixed;
    top: 10px;
    right: 10px;
    margin: 0;
    z-index: 1000;
}



/* Windows 98 font */

@font-face {
    font-family: "Pixelated MS Sans Serif";
    src: url("https://files.catbox.moe/1za99g.woff") format("woff");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "Pixelated MS Sans Serif";
    src: url("https://files.catbox.moe/z7csle.woff") format("woff");
    font-weight: bold;
    font-style: normal;
}

.window,
.title-bar {
    font-family: "Pixelated MS Sans Serif", Arial, sans-serif;
    -webkit-font-smoothing: none;
    font-size: 11px;
}

.window {
    box-shadow:
        inset -1px -1px #0a0a0a,
        inset 1px 1px #dfdfdf,
        inset -2px -2px #808080,
        inset 2px 2px #ffffff;

    background: #c0c0c0;
    padding: 3px;
    width: 260px;
}

.title-bar {
    padding: 3px 2px 3px 3px;
    display: flex;
    justify-content: space-between;
    align-items: center;

    background: linear-gradient(90deg, purple, orchid, pink);
}

.title-bar-text {
    font-weight: bold;
    color: white;
    letter-spacing: 0;
    margin-right: 24px;
}

.titlebaricon {
    height: 14px;
    width: 14px;
}

.title-bar-controls {
    display: flex;
}

.title-bar-controls button {
    padding: 0;
    display: block;
    min-width: 16px;
    min-height: 14px;

    border: none;
    border-radius: 0;
    box-sizing: border-box;

    background: silver;

    box-shadow:
        inset -1px -1px #0a0a0a,
        inset 1px 1px #fff,
        inset -2px -2px grey,
        inset 2px 2px #dfdfdf;
}

.title-bar-controls button:active {
    box-shadow:
        inset -1px -1px #fff,
        inset 1px 1px #0a0a0a,
        inset -2px -2px #dfdfdf,
        inset 2px 2px grey;
}

.title-bar-controls button:focus {
    outline: none;
}

.title-bar-controls button[aria-label="Minimize"] {
    background-image: url("https://raw.githubusercontent.com/jdan/98.css/main/icon/minimize.svg");
    background-position: bottom 3px left 4px;
    background-repeat: no-repeat;
}

.title-bar-controls button[aria-label="Maximize"] {
    background-image: url("https://raw.githubusercontent.com/jdan/98.css/4a2282dd9170cabf730fb5803d1153d86b2e94e3/icon/maximize.svg");
    background-position: top 2px left 3px;
    background-repeat: no-repeat;
}

.title-bar-controls button[aria-label="Close"] {
    background-image: url("https://raw.githubusercontent.com/jdan/98.css/main/icon/close.svg");
    background-position: top 3px left 4px;
    background-repeat: no-repeat;
    margin-left: 2px;
}

.window-body {
    margin: 0;
    height: 98px;
}

.flex {
    display: flex;
}

/* Album art */

#imagestyle {
    background: silver;
    border: 2px solid silver;
    width: 95px;
    height: 95px;

    box-shadow:
        inset -1px -1px #fff,
        inset 1px 1px grey,
        inset -2px -2px #dfdfdf,
        inset 2px 2px #0a0a0a;
}

.ic {
    width: 90px;
    height: 90px;
    position: relative;
    bottom: 1px;
    right: 1px;
    overflow: hidden;
    padding: 2px;
    border: 2px solid transparent;
}

/* Main player */

#musicplayer {
    border: 2px solid silver;
    border-width: 2px 0 0 0;
    width: 160px;
}

/* Song title */

.songtitlewindow {
    background-color: #fff;

    box-shadow:
        inset -1px -1px #fff,
        inset 1px 1px grey,
        inset -2px -2px #dfdfdf,
        inset 2px 2px #0a0a0a;
}

.songtitle {
    padding: 5px;
    border-bottom: 0;
    display: block;
    font-family: "Pixelated MS Sans Serif", Arial, sans-serif;
    margin: 0;
    white-space: nowrap;
    color: purple
}

.songtitlearrow {
    background-size: 100%;
    background-repeat: no-repeat;
    background-image: url("https://files.catbox.moe/f5e8np.png");

    height: 21px;
    width: 21px;

    position: relative;
    top: 2px;
    left: -2px;
}

/* Seeking bar */

.seeking {
    background-color: #c0c0c0;
    display: flex;
    justify-content: space-evenly;
    padding: 14px;
}

.current-time {
    padding-right: 5px;
}

.total-duration {
    padding-left: 5px;
}

/* Slider */

input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    background: transparent;
}

input[type="range"]:focus {
    outline: none;
}

input[type="range"]::-webkit-slider-runnable-track {
    width: 100%;
    height: 2px;
    box-sizing: border-box;

    background: black;
    border-right: 1px solid grey;
    border-bottom: 1px solid grey;

    box-shadow:
        1px 0 0 white,
        1px 1px 0 white,
        0 1px 0 white,
        -1px 0 0 darkgrey,
        -1px -1px 0 darkgrey,
        0 -1px 0 darkgrey,
        -1px 1px 0 white,
        1px -1px darkgrey;
}

input[type="range"]::-moz-range-track {
    width: 100%;
    height: 2px;
    box-sizing: border-box;

    background: black;
    border-right: 1px solid grey;
    border-bottom: 1px solid grey;

    box-shadow:
        1px 0 0 white,
        1px 1px 0 white,
        0 1px 0 white,
        -1px 0 0 darkgrey,
        -1px -1px 0 darkgrey,
        0 -1px 0 darkgrey,
        -1px 1px 0 white,
        1px -1px darkgrey;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;

    height: 21px;
    width: 11px;

    background: url("https://raw.githubusercontent.com/jdan/98.css/main/icon/indicator-horizontal.svg");

    transform: translateY(-8px);

    box-shadow: none;
    border: none;
}

input[type="range"]::-moz-range-thumb {
    height: 21px;
    width: 11px;

    border: 0;
    border-radius: 0;

    background: url("https://raw.githubusercontent.com/jdan/98.css/main/icon/indicator-horizontal.svg");

    transform: translateY(2px);
}

/* Controls */

.controls {
    font-size: 18px !important;
    text-align: center;
    width: 100%;
    position: relative;
    bottom: 10px;
}

.controls td {
    padding: 8px 5px 0 5px;
}

.controls button {
    min-width: 40px;

    border: none;
    border-radius: 0;
    background: silver;

    box-shadow:
        inset -1px -1px #0a0a0a,
        inset 1px 1px #fff,
        inset -2px -2px grey,
        inset 2px 2px #dfdfdf;
}

.controls button:active {
    box-shadow:
        inset -1px -1px #fff,
        inset 1px 1px #0a0a0a,
        inset -2px -2px #dfdfdf,
        inset 2px 2px grey;
}

.controlimg {
    height: 15px;
    width: 15px;
}

.controlimg:hover {
    cursor: help;
}

/* Mobile */

@media only screen and (max-width: 500px) {
    .window {
        width: 260px;
    }
}

.player {
    position: fixed;
    top: 150px;
    right: 10px;
    margin: 0;
    z-index: 99999;
}