/*
folder static/ is used when DEBUG=True
folder staticfiles/ is used when DEBUG=False

to copy from static/ into staticfiles/, use
python3 manage.py collectstatic
*/

/* header */
#header-year {
    font-size: large;
    font-weight: bold;
    margin-right:10px;
    padding: 2px;
    border: 1px solid white;
    color: #417690;
    background: #ffc;
}

#header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    background: #417690;
    color: #ffc;
}

#links {
    padding: 1rem;
    margin: 0;
    font-weight: 300;
    font-size: medium;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

#links a, #links a:visited {
    color: #fff;
}

h1 {
    font-weight: 300;
    margin: 0 0 20px;
    font-size: medium;
    color: #666;
}

#user-tools {
    float: right;
    position: relative;
    display: inline-block;
}

#user-tools button {
    padding: 1rem;
    margin: 0;
    background-color: #417690;
    border: 1px solid #417690;
    user-select: none;
    display: inline-block;
}

#user-tools button i {
    font-size: 1.5em;
}

#user-tools #dropdown_menu {
    right: 0;
    border: 1px solid darkgrey;
    border-top: none;
    background-color: lightgrey;
    display: none;
    text-align: left;
    position: absolute;
    min-width: 160px;
    z-index: 1;
}

#user-tools:hover button {
    background-color: lightgrey;
    border: 1px solid darkgrey;
}

#user-tools #dropdown_menu a {
    padding: 1rem;
    display: block;
    text-decoration: none;
    color: white;
}

#user-tools #dropdown_menu a:not(:first-child) {
    border-top: 1px solid darkgrey;
}

#user-tools:hover #dropdown_menu {
    display: block;
}

#user-tools #dropdown_menu a:hover {
    background-color: darkgrey;
}

/* body */
body {
    margin: 0;
    padding: 0;
    font-size: medium;
    font-family: "Roboto","Lucida Grande","DejaVu Sans","Bitstream Vera Sans",Verdana,Arial,sans-serif;
    color: #333;
    background: #fff;
}

#container {
    position: relative;
    width: 100%;
    min-width: 980px;
    padding: 0;
}

#content {
    padding: 20px 40px;
}

input {
    font-size: medium;
}

.error {
    color: red;
}

table {
    border-collapse: collapse;
    width: 100%;
}

table td, table th {
    border: 1px solid #ddd;
    padding: 8px;
}

table tr:nth-child(even) {
    background-color: #f2f2f2;
}

table tr:hover {
    background-color: #ddd;
}

table th {
    padding-top: 12px;
    padding-bottom: 12px;
    text-align: left;
    background-color: darkgrey;
    color: white;
}

/* links that show up as buttons */

a.as-button {
    display:inline-block;
    padding:0.2em 1.45em;
    margin:0.1em;
    border:0.15em solid #CCCCCC;
    border-radius:.5em;
    box-sizing: border-box;
    text-decoration:none;
    font-family:'Segoe UI','Roboto',sans-serif;
    font-weight:400;
    color:#000000;
    background-color:#CCCCCC;
    text-align:center;
    position:relative;
    box-shadow: 5px 5px 5px gray;
}

a.as-button:hover{
    box-shadow: 6px 6px 5px rgb(88, 88, 88);
    background-color: #b1b0b0;
    border: 0.15em solid #b1b0b0;
}

a.as-button:active{
    background-color:#999999;
}

a.as-button.inside-table {
    padding:0.1em 0.5em;
    font-size: 80%
}

a.as-button.inline {
    padding:0.1em 0.5em;
    font-size: 80%
}

a.as-button.disabled {
    color:#888888;
    background-color:rgba(229, 225, 225, 0);
    border-color: rgba(172, 153, 153, 1);
    border:0.1em dotted;
    pointer-events: none;
    cursor: default;
}

a.as-button.disabled:hover{
}

a.as-button.disabled:active{
}

.emphasize {
    font-weight: bold;
}

.x-small {
    font-size:x-small;
}

.small {
    font-size:small;
}