@font-face {
    font-family: 'Sonar';
    src: url('../assets/fonts/Sonar Hubermann - SaintRegus-SemiBold.otf') format('opentype');
    font-style: normal;
    font-display: swap;
}

:root {
    --background-color: #ffe275;
    --purple: #922EED;
    --lilac: #e4d0f6;
    --red: #EA4D66;
    --text-color: #000;
    --text-color-light: #454545;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    background-color: var(--background-color);
    color: #333;
    margin: 0;
    padding: 0;
}

header {
    padding: 20px 0;
    text-align: center;
    height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

header h1 {
    font-size: 7rem;
    color: var(--red);
    text-align: center;
    margin: 0;
    padding: 0;
    -webkit-text-stroke: 2px #000;
    text-transform: uppercase;
    font-weight: 800;
    font-family: 'Sonar', sans-serif;
    text-shadow: 5px 5px #000;
}

header p {
    font-size: 1.5rem;
    color: var(--text-color-light);
}

a {
    color: #000;
}

a:hover {
    color: var(--purple);
}

main {
    padding: 20px;
    max-width: 1000px;
    margin: auto;
}

section {
    margin-bottom: 30px;
    padding: 20px;

    border-radius: 8px;

    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

section h2 {
    font-family: 'Sonar', sans-serif;
    color: var(--purple);
    font-size: 2rem;
}

section p, section ul {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color);
}

section ul {
    list-style-type: square;
    padding-left: 20px;
}

.cassette {
    position: absolute;
    width: 300px;
    height: auto;
    right: 5%;
    bottom: 10%;
    rotate: 15deg;
}

.cassette2 {
    position: absolute;
    width: 300px;
    height: auto;
    left: 5%;
    bottom: 10%;
    rotate: 345deg;
}

.visible {
    opacity: 1;
}

.button {
    background-color: var(--red);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    border: #000 solid 2px;
    margin: 1.5rem;
}

.button span {
    font-weight: bold;
    text-transform: uppercase;
}

.button:hover {
    background-color: #eaa7b3;
}

button img {
    width: 35px;
    height: auto;
    padding: 0.5rem;
}

label {
    font-size: 1rem;
    color: var(--text-color);
}

select {
    padding: 5px 16px;
    background: var(--lilac);
    border-radius: 50px;
    border: 1px solid #000;
}

/** introduction **/

#introduction {
    background-color: var(--background-color);
    box-shadow: none;
    height: 70vh;
}

#introduction img {
    width: 450px;
    height: auto;
}

.text-image {
    display: flex;
    flex-direction: row;
}

.spotify-text {
    padding-right: 1.5rem;
}

.smoll-text, .smoll-text > p {
    font-size: 0.8rem;
}

/** for slider**/
.ticks {
    font-size: 10px;
}

.track,
.track-inset,
.track-overlay {
    stroke-linecap: round;
}

.track {
    stroke: #000;
    stroke-opacity: 0.3;
    stroke-width: 10px;
}

.track-inset {
    stroke: #dcdcdc;
    stroke-width: 8px;
}

.track-overlay {
    pointer-events: stroke;
    stroke-width: 50px;
    stroke: transparent;
    cursor: crosshair;
}

.handle {
    fill: #fff;
    stroke: #000;
    stroke-opacity: 0.5;
    stroke-width: 0.078rem;
}

#play-button {
    position: absolute;
    top: 140px;
    left: 50px;
    background: #f08080;
    border-radius: 3px;
    border: none;
    color: white;
    margin: 0;
    padding: 0 12px;
    width: 60px;
    cursor: pointer;
    height: 30px;
}

#play-button:hover {
    background-color: #696969;
}

/**slideshow **/

#spotify {
    background: var(--background-color);
    box-shadow: none;
}
.player-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 550px;
}

.player {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 20px;
    width: 320px;
    height: 480px;
    text-align: center;
    display: flex;
    flex-direction: column;
}


.blur-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(25px);
    transform: scale(1.1);
    z-index: 0;
    opacity: 0.6;
}

.player > *:not(.blur-bg) {
    position: relative;
    z-index: 1;
}

.cover {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 300px;
    width: 100%;
    padding-bottom: 1rem;
    padding-top: 1rem;
    overflow: hidden;
}

#slideImage {
    width: 280px;
    height: 280px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    border-radius: 10px;
}

.info {
    margin: 15px 0 10px;
    height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.title {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 5px;
    height: 30px;
}

.artist {
    font-size: 0.8em;
    color: #393434;
    height: 40px;
    overflow: hidden;
}

.controls {
    display: flex;
    justify-content: space-around;
    margin-top: 15px;
}

.controls button {
    background: none;
    border: none;
    color: rgba(57, 52, 52, 0.72);
    font-size: 1.5em;
    cursor: pointer;
    transition: color 0.3s;
}

.progress {
    width: 100%;
    height: 6px;
    background: #444;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 15px;
}

.progress-bar {
    height: 100%;
    background: var(--red);
    transition: width 0.1s linear;
}

.tooltip {
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    position: absolute;
    pointer-events: none;
    font-size: 14px;
    z-index: 10;
}
.myArea {
    transition: opacity 0.3s;
}
.legend-item {
    transition: opacity 0.3s;
}
.tick text {
    fill: #000 !important;
}
