@font-face {
    font-family: DancingScript;
    src: url(../font/DancingScript-Regular.ttf);
    font-weight: 400;
}
@font-face {
    font-family: DancingScript;
    src: url(../font/DancingScript-Medium.ttf);
    font-weight: 500;
}
@font-face {
    font-family: DancingScript;
    src: url(../font/DancingScript-SemiBold.ttf);
    font-weight: 600;
}
@font-face {
    font-family: DancingScript;
    src: url(../font/DancingScript-Bold.ttf);
    font-weight: 700;
}
@font-face {
    font-family: Raleway;
    src: url(../font/Raleway-ExtraLight.ttf);
    font-weight: 300;
}
@font-face {
    font-family: Raleway;
    src: url(../font/Raleway-SemiBold.ttf);
    font-weight: 600;
}
@font-face {
    font-family: Salsa;
    src: url(../font/Salsa-Regular.ttf);
    font-weight: 400;
}

* {
    box-sizing: border-box;
    font-family: DancingScript;
}

*::-webkit-scrollbar-track
{
	background-color: rgba(0,0,0,.1);
	border-radius: 0 10px 10px 0;
}

*::-webkit-scrollbar
{
	border-radius: 0 10px 10px 0;
	width: 10px;
	background-color: rgba(0,0,0,.1);
}

*::-webkit-scrollbar-thumb
{
	background-color: rgba(0,0,0,.5);
	border: 0px solid #555555;
	border-radius: 0 10px 10px 0;
}

html,
body,
.viewport {
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
    position: relative;
}

html {
    background-color: #1f2e3d;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5vw;
}
html:before {
	opacity: .5;
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5vw;
    background-image: url(../img/portada.jpg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
	filter: blur(15px);
}

body {
    max-width: 1200px;
    max-height: 80vh;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,.2);
}

.w-100 {
    width: 100%;
}
.h-100 {
    height: 100%;
}

.vbox {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: stretch;
    overflow: hidden;
}

.hbox {
    display: flex;
    flex-direction: row;
}

.space-between {
    justify-content: space-between;
}

#book-container {
    z-index: 2;
    width: 35%;
    flex-shrink: 1;
    flex-grow: 0;
    background-color: #345;
    height: 100%;
    overflow: hidden;
    min-width: 450px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 50px;
    box-shadow: 10px 0 10px rgba(0,0,0,.2);
}

#book-cover {
    border-radius: 10px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    object-fit: cover;
    height: 100%;
    flex: 1;
    overflow: hidden;
}
#book-title {
    color: #fafbfd;
    font-family: Raleway;
    font-weight: 700;
    font-size: 45px;
    min-width: 350px;
    flex-shrink: 0;
    line-height: 35px;
    width: 100%;
    text-align: center;
    margin: 30px 0 0 0;
}
#book-author {
    color: #9bb6bd;
    font-family: Raleway;
    font-weight: 300;
    font-size: 40px;
    line-height: 46px;
    flex-shrink: 0;
    width: 100%;
    text-align: center;
    margin: 10px 0 0 0;
}

#list-container {
    z-index: 1;
    width: 65%;
    flex-shrink: 1;
    flex-grow: 0;
    background-color: #234;
    height: 100%;
    overflow: hidden;
    min-width: 450px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 50px;
}

#list-title {
    color: #fafbfd;
    font-weight: 700;
    font-size: 60px;
    min-width: 350px;
    flex-shrink: 0;
    line-height: 80px;
    margin-bottom: 20px;
}

#list {
    border-radius: 10px;
    background-color: rgba(0,0,0,.1);
    flex: 1;
    overflow: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

.list-item {
    width: 100%;
    padding: 0px;
    margin: 0px;
    font-size: 20px;
    color: #fff;
    background-color: rgba(0,0,0,.2);
    border-bottom: 1px solid rgba(0,0,0,.5);
    position: relative;
}
.list-item * {
    font-family: Salsa;
    letter-spacing: 1px;
}

.list-item container {
    display: flex;
    align-items: center;
}

.list-item container .track-photo {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 5px;
    margin: 2px;
}
.list-item container .track-name {
    flex-shrink: 0;
    font-weight: 700;
    font-size: 25px;
    margin-left: 10px;
    letter-spacing: 3px;
}
.list-item container .list-item-player {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: absolute;
    width: calc(100% - 60px);
    margin-left: 60px;
    background-color: rgba(255,255,255,.1);
    height: 60px;
    border-radius: 0;
    overflow: hidden;
}

.list-item container .list-item-player .time-display {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-size: 10px;
}
.list-item container .list-item-player .time-display * {
    margin: 5px;
}
.list-item container .list-item-player .controls {
    width: 100%;
    height: 60px;
}
.list-item container .list-item-player .button-controls {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background-color: rgb(186 200 211);
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}

@media screen and (max-height: 600px) {
    .viewport {
        border-radius: 10px;
		max-height: 90%;
		max-width: 100%;
    }
    #book-container, #list-container {
        width: 100%;
        max-width: unset;
        min-width: unset;
        padding: 10px;
    }
}

@media screen and (max-width: 1023px) {
    .viewport {
        flex-direction: column;
        border-radius: 10px;
    }
    #book-container, #list-container {
        width: 100%;
        max-width: unset;
        min-width: unset;
        padding: 0;
    }
    #book-container .vbox {
        flex-direction: row;
        height: 100%;
    }

    #book-container .vbox > div > #book-title,
    #book-container .vbox > div > #book-author{
        margin: 0;
        text-align: left;
    }
    #book-container .vbox > div {
        flex-shrink: 0;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        padding: 5%;
    }
    
    #book-cover {
        flex: 1;
        width: 100%;
    }

	    #list-title {
			padding-left: 20px;
			margin: 0;
		}

}

@media screen and (max-width: 700px) {
    body {
        max-height: 95vh;
        border-radius: 20px;
    }
    
    #book-container {
        max-height: 250px;
        max-width: unset;
        min-width: unset;
        padding: 0;
    }

    #list-container {
        padding: 0;
    }
    
    #list-title {
        margin-top: 20px;
        font-size: 40px;
        width: 100%;
        text-align: center;
        line-height: 40px;
		margin-bottom: 10px
    }

    .list-item container .track-name {
        font-size: 20px;
    }
}

@media screen and (max-width: 540px) {

    #book-container .vbox {
        flex-direction: column;
    }

    #book-container .vbox > div > #book-title{
        text-align: center;
        font-size: 36px;
    }
    #book-container .vbox > div > #book-author{
        text-align: center;
        font-size: 33px;
        line-height: 40px;
    }
    #book-container .vbox > div {
        align-items: center;
    }
    #book-cover {
        flex: 1;
        min-width: unset;
    }
}

