label[for=modal-toggle]{
    position: absolute;
    margin: .6rem 1rem;
    right: 0;
    display: none;
}

#modal-toggle {
    display: none;
}
#modal-container {
    display: none;
    z-index: 1010;
}
#modal-content{
    margin-top: 0.5rem;
}
#modal-content h1{
    margin-bottom: 1rem;
}

#modal-toggle:checked + section > label {
    display: flex;
    position: absolute;
    top:0;
    
    width: 2rem;
    height: 2rem;
    background: #2196f3;
    z-index: 1100;
    justify-content: center;
    align-items: center;
}
#modal-toggle:checked + #modal-container {
    background: rgba(255,255,255,.90);
    position: absolute;
    z-index: 999;
    width: -moz-available;
    height: 100%;
    display: inline-flex;
    backdrop-filter: blur(2px);
    margin: auto;
}
#modal-toggle:not(:checked) {
    display: none;
}
#modal-container #modal-content {
    width: inherit;
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1rem;
}
.modal-form{
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.modal-form label, legend{
    margin: 0 0.25rem 
 }
.modal-form input, select{
    margin: 0.25rem 0 0 0 
}
.modal-form fieldset{
   display: flex;
   justify-content: center;
   text-align:start;
   margin-top: 1rem;
   align-items: center;
}
.modal-form span{
    font-size: 2rem
} 
