h1 {
    text-align: center;
}

body {
    max-width: 780px;
    margin: 0 auto;
}

a {
    text-decoration: none;
}

#current-episode-image-container {
    border-radius: 8px;
    height: 80px;
    width: 80px;
    margin-left: 4px;
    float: left;
}

#current-episode-text-container {
    flex: 1;
    overflow: hidden;
    padding: 0 0 0 16px;
}

#channel-image {
    border-radius: inherit;
    height: inherit;
    width: inherit;
}

#current-episode-channel-title {
    font-weight: 400;
    font-size: 16px;
    margin:0;
}

#current-episode-title {
    font-weight: 500;
    font-size: 1.2rem;
    margin: 0.3rem 0;
}

#current-episode-duration {
    font-size: 1.0em;
}

.buttons {
    width:36px;
    height:36px;
    padding: 6px;
    display: inline-block;
}

#pause-icon {
    display: none;
}

#skip-icon {
    width: 24px;
    height: 24px;
    position: relative;
    float: right;
    display: block;
    top: -50px;
    margin-right: 16px;
}

#play-or-pause-icon {
    margin-top: 2rem;
    height: 4em;
    display: flex;
    align-items: center;
    justify-content: center;
}



#controller-container[data-status="playing"] #pause-icon {
    display: inline-block;
}

#controller-container[data-status="playing"] #play-icon {
    display: none;
}

#controller-container[data-status="paused"] #play-icon {
    display: inline-block;
}

#sleep-button-wrapper {
    margin: 1rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

#sleep-button {
    height: 22px;
    font-size: 13px;
    /*background-color: white;*/
    /*border-radius: 30%;*/
    /*border-color: silver;*/
    border: 0px;
}

#sleeping-moon {
    width: 1em;
    height: 1em;
    position: relative;
    top: 2px;
}

#time-to-sleep {
    margin-top:1rem;
    margin-bottom:1rem;
    text-align: center;
}


.UnderlineNav {
    display: flex;
    min-height: 48px;
    box-shadow: inset 0 -1px 0 hsla(210,18%,87%,1);
    justify-content: space-between;

    padding-left: 0;
    margin-top: 0;
    margin-bottom: 0;
}

.UnderlineNav-item.selected::after {
    position: absolute;
    right: 50%;
    bottom: calc(50% - 25px);
    width: 100%;
    height: 2px;
    content: "";
    background-color: #fd8c73;
    border-radius: 6px;
    transform: translate(50%, -50%);
}

.UnderlineNav-body {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.UnderlineNav-body li {
    display: inline-flex !important;
}

.UnderlineNav-item {
    position: relative;
    display: flex;
    padding: 0 8px;
    font-size: 16px;
    line-height: 30px;
    color: #24292f;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    background-color: transparent;
    border: 0;
    border-radius: 6px;
    align-items: center;
}

.UnderlineNav-item.selected {
    font-weight: 600;
    color: #24292f;
    border-bottom-color: #fd8c73;
}

.tab-body[data-selected="true"] {
    display: block;
}

.tab-body[data-selected="false"] {
    display: none;
}

#history-container {
    padding-top: 20px;
}

#history-container .queue-item {
    color: #666;
}

.history-played-date {
    display: inline-block;
    margin: 10px 5px;
}

#queue-container {
    min-height: 500px;
}

#queue-total-info {
    margin: 1rem 0 1rem 10px;
}

.queue-item {
    height:6rem;
    display: flex;
}

.queue-item[data-status="init"] {
    color: silver;
}

.queue-item[data-status="downloading"] {
    color: gray;
}

.queue-item[data-status="loaderror"] {
    background: black;
}

.queue-channel-image-container {
    margin:5px;
}

.queue-item-description-container {
    margin:5px;
    padding:1px;
}

.queue-item-published {
    font-size: 0.8em;

}
.queue-channel-image {
    border-radius: 8px;
    width:36px;
    height:36px;
}

.queue-item-title {
    margin-top:0.3rem;
}

.debug-item-status {
    visibility: hidden;
}

body[data-debug="1"] .debug-item-status {
    visibility: visible;
}

body[data-debug="0"] .debug {
    display:none;
}

.debug-item-status {
    margin-left:1rem;
}

footer {
    border-top: 1px solid rgba(0,0,0,.1);
    padding: 1em 0;
    width: 100%;
}

#footer-links {
    display: flex;
}

#footer-links p {
    margin: 0 1em;
}

#footer-center {
    text-align: center;
}
