* 
{
    box-sizing: border-box;
    outline: none;
}



body {
    --border: #ccc;
    --text_normal: #666;
    --text_light: #aaa;
    --text_lighter: #ccc;
    --hover: #eee;
    --background: white;
    --link: #3d93c8;
    --head: #59b732;
    --highlight: #FF931B;/*#db1e1e;*/
    --accent: #2f93cf;
    --close: #e02727;
    --save: #59b732;
    --delete: #e02727;

    padding:10px;
    min-width: 300px;
    max-width: 2000px;

    color: var(--text_normal);
    background-color: var(--background);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;

    position: relative;
}


body.dark {
    --border: #555;
    --text_normal: #eee;
    --text_light: #ccc;
    --text_lighter: #aaa;
    --hover: #595959;
    --background: rgb(31, 31, 31);
    --link: #3f9fd9;
    --head: #63bd3e;
    --highlight: #e37665;
    --accent: #2f93cf;
}


::placeholder 
{
    color: var(--text_lighter);
 }
 
 ::selection 
 {
   background: var(--highlight);
   color: var(--background);
 }


input, button, textarea, select 
{
    padding: 5px 10px 5px 10px;
    color: var(--text_normal);
    background-color: transparent;
    border: 1px solid var(--border);
    border-radius: 3px;
    transition: border linear .1s, box-shadow linear .1s;
}


input[type=submit]:hover, 
button:hover
{
    background-color: var(--hover);
}





input[type=submit], button {
    cursor: pointer;
}


input:disabled, button:disabled {
    /*background-color: var(--text_lighter);*/
    cursor:not-allowed;
    color: var(--text_lighter);
}


select {
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='grey' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 1000 1000' enable-background='new 0 0 1000 1000' xml:space='preserve'><g><path d='M887.2,209.2L499.7,589.1L112.8,209.7L10,310.5l489.7,480.3L990,310L887.2,209.2z'/></g></svg>");
    background-repeat: no-repeat, repeat;
    background-position: right .5em top 50%, 0 0;
    background-size: 10px auto, 100%;
    padding: 5px 20px 5px 10px;
}



a {
    color: var(--link);
    font-weight: bold;
    text-decoration: none;
}



a:hover {
    color: var(--highlight);
} 

.msg {
    font-weight: bold;
    color: var(--close);
    margin-bottom: 10px;
}



@font-face {
    font-family: 'Material Icons';
    font-style: normal;
    font-display: block;
    font-weight: 400;
    src: url("../fonts/material.woff2") format('woff2');
}
  
.material-icons {
    font-family: 'Material Icons';
    font-weight: normal;
    font-style: normal;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    font-feature-settings: 'liga';
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
    user-select: none;
}



@font-face {
    font-family: 'Caveat';
    font-style: normal;
    font-display: block;
    font-weight: 400;
    src: url("../fonts/Caveat.ttf") format('truetype');
}



#overlay {
    background: #e9e9e9;
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    opacity: 0.8;
    z-index: 9999;
}

#loading-img {
    background: url(../img/loading.gif) center center no-repeat;
    height: 100%;
    z-index: 20;
}

#popup {
    display:none;

    position: fixed;
    top:10rem;
    right:0;
    left:0;

    z-index: 99998;
    margin: auto;
    padding: 2rem;
    max-width: 400px;
    width: fit-content;

    background-color: var(--background);
    border-radius: 5px;
    border: 1px solid var(--border);

    font-size: 0.9rem;
    overflow-x: hidden;
    overflow-y: auto;

    white-space: pre-wrap;
    text-wrap: wrap;
    --webkit-text-wrap: wrap;
}

body.noscroll {
    overflow: hidden;
}

#title {
    font-family: 'Caveat';
    font-size: 2.5rem;
    text-align: center;
    user-select: none;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    color:inherit;
    line-height: 3.75rem;
}

a#title:hover {
    text-decoration: underline;
}

#title b {
    font-size: 1.5em;
    margin: 0 0.5rem;
    line-height: 3.75rem;
}
