#text, #source {
    color:white;
    transition:
        color 1s;
}

p{
    text-align:justify;
}

#source {
    text-align: right;
    font-size: small;
}
#source.displayed{
    border-top: 1px solid #ddd;
}

.panel{
    border: 1px solid black;
    margin: auto;
    padding: 32px;
    display: none;
    background-color: white;
    border-radius: 24px;
    max-width:450px;
}

input[type=button]{
    margin: auto;
    display: block;
    color: white;
    padding: 8px 32px;
    border-radius: 500px;
    background-color: rgb(102, 0, 250);
    border: none;
    font-size: 14px;
    margin-top: 24px;
}

input[type=button].deactivated{
    background-color: rgb(205, 197, 224);
    opacity:.5;
}

div.displayed{
    display: initial;
}

#text.displayed, #source.displayed {
    color: black;
}

body{
    background-image: url('/static/assets/background.png');
    background-color: transparent;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-synthesis-small-caps: none;
    font-synthesis-style: none;
    font-synthesis-weight: none;
    font-variation-settings: normal;
}

h2{
    text-align: center;
    font-size: 20px;
    margin: 0;
    margin-bottom: 24px;
    font-weight: 600;
}


html, body{
    height: -webkit-fill-available;
} 

select{
    width: 100%;    
    height: 30px;
    border-radius: 10px;
    color: rgb(113, 113, 130);
    background-color: oklch(0.985 0.002 247.839);    
}

img {
    width: 180px;
    margin: auto;
    display: block;
}

#details_results{
    display: flex;
    flex-wrap: wrap;
    max-height: 400px;
    overflow-y: scroll;
    justify-content: space-between; 
}

#details_results > div{
    position: relative;
    padding: 6px 2px;
}

.insertion {
    color: #bbb;
}

.correction {
    color:  rgb(157, 0, 255);
}

.rature {
    color:  rgb(157, 0, 255);
    text-decoration: line-through;
}

.rature > .production {
    color: initial;
}

audio{
    width:100%;
}

#wavform {
    width: 100%;
    height: 25px;
    display: flex;
    align-items: anchor-center;
}

#wavform>div {
    min-height: 1px;
    border: 1px solid white;
    background-color: rgb(157, 0, 255);
}

#progress_bar {
    height: 10px;
    margin-top: 10px;
}

#progress{
    background-color: rgb(157, 0, 255, 0.1);
    height: 100%;
    width: 0%;
}

.production{
    border-bottom: 2px #fff0 solid;
    cursor: pointer;
}

.current_word{
    border-bottom-color: rgb(157, 0, 255);
}

div#details_results::after {
    content: "";
    flex: auto;
}

#score{
    color: rgb(157, 0, 255);
}

h3 {
    margin: 15px 0 5px 0;
}