* {
    box-sizing: border-box;
}

body {
    background-color: #fdf3fa;
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
}

a {
    text-decoration: none;
    color: #fff;
}

button {
    cursor: pointer;
}

button:active {
    transform: scale(0.95);
}

button:focus,
input:focus {
    outline: none;
}

header {
    background-image: url(https://images.unsplash.com/photo-1487180144351-b8472da7d491?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1052&q=80);
    box-shadow: rgba(50, 50, 93, 0.25) 0px 6px 12px -2px,
        rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 150px 0;
    position: relative;
}

header::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}

header * {
    z-index: 1;
}

header h1 {
    margin: 0 0 30px;
    font-size: 4rem;
}

form {
    position: relative;
    width: 500px;
    max-width: 100%;
}

form input {
    border: 0;
    border-radius: 50px;
    font-size: 16px;
    padding: 15px 30px;
    width: 100%;
}

form button {
    position: absolute;
    top: 2px;
    right: 2px;
    background-color: #8d56fd;
    border: 0;
    border-radius: 50px;
    color: #fff;
    font-size: 16px;
    padding: 13px 30px;
}

.btn {
    background-color: #8d56fd;
    border: 0;
    border-radius: 3px;
    color: #fff;
    padding: 15px;
    font-size: 15px;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 6px 12px -2px,
        rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;
}

ul.songs {
    list-style-type: none;
    padding: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
}

ul.songs li {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px 0;
}

.container {
    margin: 30px 50px;
    max-width: 100%;
    align-items: center;
    justify-content: center;
}

.container h2 {
    font-weight: 300;
}

.container h4 {
    text-align: center;
}

.centered {
    display: flex;
    justify-content: center;
}

.centered button {
    transform: scale(1.3);
    margin: 15px;
}

.container-song {
    background-color: #fff;
    width: 95%;
    border-radius: 3px;
    padding: 5px 10px;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 6px 12px -2px,
        rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;
    display: flex;
    margin: 10px 0;
    font-size: 18px;
}

.container-song .song-details {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.container-song .song-audio {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.container-song img {
    width: 100px;
    border-radius: 3px;
    margin: 5px 10px 5px 0;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 6px 12px -2px,
        rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;
}

.lyrics-container {
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
}

.lyrics-container .artist {
    width: 30%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

.lyrics-container .lyrics {
    width: 60%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.loader.show {
    opacity: 1;
}

.loader {
    opacity: 0;
    margin: auto;
    position: relative;
    width: 76px;
    height: 100px;
}
.loader div {
    position: absolute;
    top: 33px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: rgb(45, 43, 43);
    animation-timing-function: cubic-bezier(0, 1, 1, 0);
}
.loader div:nth-child(1) {
    left: 8px;
    animation: loader1 0.6s infinite;
}
.loader div:nth-child(2) {
    left: 8px;
    animation: loader2 0.6s infinite;
}
.loader div:nth-child(3) {
    left: 32px;
    animation: loader2 0.6s infinite;
}
.loader div:nth-child(4) {
    left: 56px;
    animation: loader3 0.6s infinite;
}
@keyframes loader1 {
    0% {
        transform: scale(0);
    }
    100% {
        transform: scale(1);
    }
}
@keyframes loader3 {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(0);
    }
}
@keyframes loader2 {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(24px, 0);
    }
}

audio {
    width: 500px;
    height: 45px;
    margin: 5px 10px 5px 0;
    border: none;
}

@media (max-width: 730px) {
    header {
        height: 20px;
        background-size: auto;
    }

    header h1 {
        font-size: 2.5rem;
    }

    form {
        width: 300px;
    }

    form input {
        font-size: 14px;
    }

    form button {
        font-size: 14px;
        padding: 13px;
    }

    .container {
        margin: 10px;
        font-size: 14px;
    }

    .container-song {
        margin: 0;
    }

    .container-song .song-audio audio {
        display: none;
    }

    .container-song .song-details {
        width: 70%;
        margin-right: 5px;
    }

    .container-song .song-audio {
        width: 30%;
    }

    .lyrics-container {
        display: grid;
        grid-template-columns: 1fr;
        justify-items: center;
    }
    .lyrics-container .artist {
        display: none;
    }
}
