*, ::after, ::before {
    box-sizing: border-box
}

body {
    font-family: Arial, sans-serif;
    background-color: #121212;
    color: #ffffff;
}

#header {
    max-width: 800px;
    margin: 0 auto 20px auto;
}

#header img {
    width: 100%;
    height: auto;
    display: block;
}

#audio-player {
    max-width: 800px;
    margin: 0 auto;
    background: #1e1e1e;
    padding: 20px;
}

.controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.controls button {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #ffffff;
}

.controls button:hover {
    color: #bf4528;
}

#volume {
    -webkit-appearance: none;
    width: 30%;
    background: transparent;
    margin: 0 10px;
}

#volume::-webkit-slider-runnable-track {
    width: 100%;
    height: 5px;
    background: #555;
    border-radius: 3px;
}

#volume::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 15px;
    height: 15px;
    background: #bf4528;
    border-radius: 50%;
    margin-top: -5px;
}

#volume::-moz-range-thumb {
    width: 15px;
    height: 15px;
    background: #bf4528;
    border: none;
    border-radius: 50%;
}

#volume::-ms-thumb {
    width: 15px;
    height: 15px;
    background: #bf4528;
    border: none;
    border-radius: 50%;
}

#volume:focus {
    outline: none;
}

#playlist {
    margin-top: 20px;
}

.playlist-item {
    padding: 16px;
    cursor: pointer;
    border-bottom: 1px solid #333;
    display: flex;
    align-items: center;
    background-color: #222222;
}

.playlist-item:hover {
    background-color: #2a2a2a;
}

.playlist-item.active {
    background-color: #bf4528;
}

.playlist-item.active .download-icon {
    color: #dddddd;
}

.playlist-item.active .download-icon:hover {
    color: #ffffff;
}

.track-info {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.track-name {
    font-size: 1.1em;
}

#duration, #current-time {
    font-size: 0.9em;
    color: #bbb;
}

.download-icon {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.2em;
    margin-left: 10px;
}

.download-icon:hover {
    color: #bf4528;
}

.share-icon {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.2em;
    margin-left: 10px;
}

.share-icon:hover {
    color: #bf4528;
}

#waveform {
    width: 100%;
    height: 128px;
    background-color: #1e1e1e;
    display: block;
}

#backward, #forward {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

#backward > .fas,
#forward > .fas {
    font-size: 2.3rem;
}

#backward > .number,
#forward > .number {
    position: absolute;
    font-size: 0.7rem;
    color: #dddddd;
}

#modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    display: flex;
    align-items: center;
    z-index: 1000;
}

#modal-content {
    background-color: #1e1e1e;
    padding: 20px;
    border-radius: 5px;
    max-width: 300px;
    width: 100%;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 1.5rem -0.75rem;
}
.row > * {
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    padding-right: 0.75rem;
    padding-left: 0.75rem;
    margin-top: 0;
}

.col {
    flex: 1 0 0%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.code-input {
    width: 30px;
    padding: 10px;
    font-size: 1.1em;
    background-color: #333;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.buttons {
    display: flex;
    justify-content: end;
    align-items: center;
}

/** close button with label "Close" next to the submit button **/
#close-modal {
    background-color: #555555;
    color: #ffffff;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
    text-decoration: none;
    margin-right: 1rem;
}

#submit-modal {
    background-color: #bf4528;
    color: #ffffff;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
    text-decoration: none;
}