* { box-sizing: border-box; }


labeled-input
{
    display: flex;
    flex-direction: column;
    margin: 5px 0; 
}

labeled-input label
{
    font-size: 13px;
}


labeled-input.invalid input, labeled-input.invalid textarea
{
    outline-color: red;
    outline-style: auto;
}

labeled-input input, labeled-input textarea
{
    padding: 10px;
    border-radius: 3px;
    border: 1px solid #666666;
    outline: 2px solid transparent;
    box-shadow: inset 1px 1px 1px 0px rgb(0,0,0,.25);
    resize: none;
}


labeled-input.multiline
{
    flex-grow: 1;
}

labeled-input textarea
{
    flex-grow: 1;
}


labeled-input input:focus, labeled-input textarea:focus {
    outline-color: blue;
    outline-style: auto;
}



modal-dialog
{
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    backdrop-filter: blur(4px);
    xbackground-color: rgba(0,0,0,.4);
}

modal-dialog dialog
{
    display: flex;
    flex-direction: column;
    
    position: relative;
    background-color: #ffffff;
    color: #000000;
    
    font-family: Helvetica;


    width: 380px;
    border-radius: 10px;
    border: none;
    padding: 20px;
    box-shadow: 2px 3px 7px 2px rgba(0,0,0,.4);
}

body.dark modal-dialog dialog
{
    color: #ffffff;
    background-color: #232323;
}

modal-dialog dialog close
{
    display: block;
    position: absolute;
    right: 10px;
    top: 8px;
    cursor: pointer;
}


modal-dialog button
{
    font-family: 'Alata', sans-serif;
    font-size: 16px;
    color: inherit;
    background-color: #eeeeee;
    border: none;
    outline: none;
    padding: 4px 16px 7px;
    border-radius: 8px;
    box-shadow: 1px 5px 3px -4px rgb(0 0 0 / 40%);
    cursor: pointer;
}

body.dark modal-dialog button
{
    background-color: #333333;
}

modal-dialog span
{
    cursor: pointer;
    text-decoration: underline;
    margin-top: 10px;
    color: #3f3fff;
}

body.dark modal-dialog span
{
    color: #cacaec;
}

user-login
{
    display: flex;
    flex-direction: column;
}

user-registration
{
    display: flex;
    flex-direction: column;
}

user-login error-message
{
    line-height: 2em;
    font-size: 12px;
    display: block;
    color: red;
}


user-registration error-message
{
    line-height: 2em;
    font-size: 12px;
    display: block;
    color: red;
}



contact-modal
{
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    backdrop-filter: blur(4px);
}

contact-drawer
{
    font-family: Helvetica;
    color: #000000;
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 100;
    width: 300px;
    padding: 20px;
    background-color: #eeeeee;
    box-shadow: -1px 0px 6px 0 rgba(0,0,0,.4);
    transition: transform .3s;
}

body.dark contact-drawer
{
    color: #ffffff;
    background-color: #232323;
}


contact-drawer button
{
    font-size: 16px;
    font-weight: bold;
    color: inherit;
    background-color: #cccccc;
    border: none;
    outline: none;
    padding: 7px 16px 7px;
    border-radius: 8px;
    box-shadow: 1px 5px 3px -4px rgba(0, 0, 0, .4);
    cursor: pointer;
}

body.dark contact-drawer button
{
    background-color: #333333;
}

contact-drawer contact,contact-drawer success {
    height: 100%;
    display: flex;
    flex-direction: column;    
}

contact-drawer close
{
    display: block;
    position: absolute;
    right: 10px;
    top: 8px;
    cursor: pointer;
}


contact-drawer.hide
{
    transform: translate(310px,0);
}
