/* This is a CSS reset. Always add at top of file, will make projects more consistent  */

/* Box sizing rules */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Remove default margin */
h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
ul,
ol,
dl,
dd {
    margin: 0 0 1.5rem;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role='list'],
ol[role='list'] {
    list-style: none;
}

/* Set core root defaults */
html:focus-within {
    scroll-behavior: smooth;
}

/* Set core body defaults */

html {
    line-height: 1.5;
    font-family: 'Bebas Neue', Roboto, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body {
    min-height: 100vh;
    text-rendering: optimizeSpeed;
    line-height: 1.5;
    margin: 0;
}

/* A elements that don't have a class get default styles */
a {
    text-decoration-skip-ink: auto;
    color: #36bf7f;
}

a:hover,
a:focus {
    color: #d96666;
}

/* Make images easier to work with */
img,
picture,
svg {
    max-width: 100%;
    display: block;
}

svg {
    fill: currentColor;
}

svg:not(:root) {
    overflow: hidden;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
    font: inherit;
}

/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
    html:focus-within {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}


/* ~~~~~~~~~~~ Media-Player-CSS ~~~~~~~~~~ */

:root{
    --primary-color: #8ecae6;
    --secondary-color: #219ebc;
    --dark-color: #023047;
    --accent-color: #ffb703;
    --accent2-color: #fb8500;
}

.material-symbols-rounded {
    font-variation-settings:
    'FILL' 0,
    'wght' 400,
    'GRAD' 0,
    'opsz' 48
}

.ms-controls{
    font-size: 38px !important;
}

html{
    background-color: var(--secondary-color);
    background-image: url("../img/antoine-j-7TLZWgfid1U-unsplash.jpg");
    background-position: center;
    background-size: cover;
}

main{
    padding: 1rem;
}

header{
    background-color: var(--dark-color);
    text-align: center;
    position: fixed;
    width: 100%;
    z-index: 1;
}

header i{
    transform: translateY(.25rem);

}
.ms{
    font-size: 35px;
    padding: 0;
    margin: 0;
}
h1{
    color: var(--accent2-color);
    font-size: 2.35rem;
    font-weight: 300;
    margin-bottom: 0;
    padding-top: 1rem;
}

li{
    list-style-type: none;
}

.album_art__full {
    display: grid;
    padding: 5.25rem 1rem .5rem;
    justify-content: center;
    z-index: 5;
}

.album_art__full img{
    border: .75rem solid #e8dfd9 ;
    border-radius: 1rem;
    -webkit-border-radius: 1rem;
    -moz-border-radius: 1rem;
    box-shadow: 2rem 2rem 5rem ;
}

#btnShuffle{
    width: 3rem;
    justify-self: center;
    margin-top: .5rem;
    translate: 0 1rem;
}

.active i{
    border: 2px solid var(--accent-color);
    border-radius: 2rem;
    -webkit-border-radius: 2rem;
    -moz-border-radius: 2rem;
    background-color: var(--accent-color);
    color: #023047;

}

button{
    background-color: transparent;
    border: none;
    cursor: pointer;
    padding: .1rem;
}


.controls i{
    border: 2px solid var(--accent2-color);
}

.controls i:hover{
    border: 2px solid var(--accent-color);
}

li{
    cursor: pointer;
    z-index: -2;
}

li:hover,
li:focus{
    opacity: .80;

}

i{
    color: var(--accent2-color); 
    background-color: transparent;
    border-radius: 2rem;
}

h1 i{
    padding-left: .5rem;
    padding-right: .5rem;
}

.track__thumb{
    padding: .25rem;
    background-color: #e8dfd9 ;
    border-radius: .35rem;
    height: fit-content;
    align-self: center;
}
.track__thumb img{
    border-radius: .35rem;
}

.track__details{
    padding-left: .5rem;
    width: 15rem;
    display: grid;
    align-content: center;
}

.track__title{
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.5rem;
}

.track__artist{
    margin: 0;
}

.playlist{
    padding-left: 0;
    padding-top: 1rem;
    margin-bottom: 6rem;
    color: var(--accent2-color);
    
}

.track__item{
    display: flex;
    padding: 1rem;
    background-color: #023047;
    box-shadow: 1rem 1rem 5rem black;
    border-radius: 1rem;
    width: fit-content;
    justify-content: center;
    margin: 0 auto;
    margin-bottom: .5rem;
}

.track__time{
    align-self: flex-end;
    justify-self: end;
}

footer {
    position: fixed;
    bottom: 0;
    background-color: var(--dark-color);
    width: 100%;
    display: inline-flex;
    height: 5rem;
    align-items: center;
    justify-content: space-around;
}

.controls {
    align-items: center;
    justify-content: center;
}

.times{
    color: var(--accent2-color);
    font-size: 1.5rem;
}

.progress{
    background-color: #ffb703;
    width: 100%;
    height: .75rem;
    position: fixed;
    bottom: 5rem;
}

.played{
    background-color: var(--accent2-color);
    height: .75rem;
    position: fixed;
    bottom: 5rem;
    z-index: -1;
}

span {
    font-size: 1rem;
}

.current-track{
    outline: .25rem solid var(--accent-color);
}

/* ~~~~~~~~~~~~~~~~~~Animations + ~~~~~~~~~~~~~~~~~~~~~ */
.animate {
	animation: flip 1.25s ease;
}
@keyframes flip {
	0% {
        transform: rotateY(0);
		animation-timing-function: ease-out;
	}
	40% {
		transform: translateZ(150px) rotateY(170deg);
		animation-timing-function: ease-out;
	}
	50% {
		transform: translateZ(150px) rotateY(190deg) scale(1);
		animation-timing-function: ease-in;
	}
	80% {
		transform:  rotateY(360deg) scale(.95);
		animation-timing-function: ease-in;
	}
	100% {
		transform: scale(1);
		animation-timing-function: ease-in;
	}
}

.jump {
    animation: jump 0.5s ease-in-out infinite;
    translate: 0 .5rem;
    }

    @keyframes jump {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0);
    }
}

/* ~~~~~~~~~~~~~~~~~~Screen Changes~~~~~~~~~~~~~~~~~~~~~ */

@media only screen and (min-width: 30em) {

    .album_art__full img {
        width: 30rem;
    }
    h1 {
        font-size: 3rem;
    }
    .album_art__full {
        padding-top: 6.5rem;
    }
    .ms {
        font-size: 41px !important;
        padding: 0;
    }
    .playlist{
        padding-top: 1rem;
    }
    button{
        padding: .25rem;
    }


}

@media only screen and (min-width: 50em) {

    main{
        display: flex;
        padding: 4rem;;
    }
    h1 {
        font-size: 4.5rem;
    }

    .playlist{
        padding-left: 5rem;
        padding-top: 6rem;
    }
    .container{
        width: min(65em, 100%);
        margin: 0 auto;
    }
    .album_art__full {
        height: fit-content;
        position: sticky;
        top: 7%;
        width: 30rem;
        padding-top: 6rem;
    }
    #btnShuffle {
        width: 3rem;
        align-self: flex-start;
        margin-top: .5rem;
        
    }

    footer {
        justify-content: center;
        column-gap: 22rem;
    }
    .ms {
        font-size: 60px !important;
    }
    button{
        padding: .35rem;
    }


}






