body {
    font-family: 'open sans';
    background-color: #fafafa;
}

h1 {
    font-family: 'Work Sans';
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 5px;
    font-size: 38px;
    color: coral;
}

h4 {
    margin: 0;
    text-align: center;
}

p {
    text-align: center;
}

main {
    display: flex;
    justify-content: center;
    align-items: center;
}

aside {
    max-width: 800px;
    margin: auto;
    text-align: justify;
}

aside > p {
    text-align: inherit;
}

main > div {
    max-width: 800px;
    margin: 2em;
    width: 100%;
    min-height: 100px;
    border: 1px solid #efefef;
    padding: 20px;
    display: flex;
}

main > div > div:first-child {
    flex-grow: 1;
}

main > div > div:last-child {
    margin-left: 25px;
} 

main > div > div#imgdisplay {
    display: none;
}

main > div > div#imgdisplay > span {
    display: none;
}

main > div > div#imgdisplay.active > span:first-child {
    display: block;
}

main > div > div#imgdisplay.inactive > span:last-child {
    display: block;
}


main > div > div:last-child img {
    width: 100%;
    height: 140px;
    object-fit: contain;
}

button {
    padding: 5px 10px;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    background-color: #f2f2f2;
    border: 1px solid #ccc;
    transition: all 0.4s ease;
    cursor: pointer;
}

button:hover, button.sel {
    background-color: coral;
    color: #fff;
    border-color: rgb(175, 30, 91);
}

#idle {
    visibility: hidden;
}

#prog {
    width: 100%;
    height: 4px;
    background-color: #efefef;
    margin-top: 10px;
    position: relative;
    padding: 2px;
}

#prog::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background-color: salmon;
    width: var(--prog);
    transition: all 0.1s ease;
}

#prog::after {
    content: '';
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgb(175, 30, 91);
    position: absolute;
    top: -2px;
    left: calc(var(--prog) - 2px);
    transition: all 0.1s ease;
}

.ctrls {
    display: flex;
    gap: 25px;
    margin-bottom: 20px;

}

.ctrls > div {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.ctrls > div > span {
    font-size: 14px;
}

.ctrls > div > b {
    display: inline-block;
    font-size: 12px;
    width: auto;
    text-align: center;
    background-color: #0075FF;
    color: #fff;
    align-self: center;
    padding: 2px 6px;
    border-radius: 5px;
}        

input[type=range] {
    width: 100%;
}
