﻿*, *::before, *::after {
    box-sizing: border-box;
}

html {
    font-family: sans-serif;
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    -ms-overflow-style: scrollbar;
    -webkit-tap-highlight-color: transparent;
    background-color: #e9e4de;
    overflow-y: scroll;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    line-height: 1.5;
    color: #212529;
}

.content {
    background-color: white;
    border-radius: 0.5em;
    padding: 1em;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.5);
}

main {
    max-width: 1200px;
    width: 100%;
    margin: 1em auto;

    /* to override .content */
    border-radius: 0 !important;
    box-shadow: none !important;
}

footer {
    position: relative;
    opacity: 0.5;
    text-align: center;
    padding: 0.5em;
}

label {
    display: block;
    font-weight: 400;
    margin-bottom: 0.5em;
}

small {
    font-size: 75%;
    font-weight: 400;
}

input {
    position: relative;
    display: inline-block;
    font-size: 1rem;
    line-height: 1.5;
    color: #495057;
    padding: .375rem .75rem;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: .25rem;
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
    margin: 0.25em;
}
    input[type="submit"], input[type="text"], input[type="password"] {
        width: 10em;
    }
    input[type="submit"] {
        cursor: pointer;
    }

    input[type="submit"]:hover,input:focus {
        color: #495057;
        background-color: #fff;
        border-color: #80bdff;
        outline: 0;
        box-shadow: 0 0 0 .2rem rgba(0,123,255,.25);
    }
        input[type="submit"]:focus, input[type="submit"]:active {
            box-shadow: 0 0 0 .2rem rgba(0,123,255,.25) inset;
        }

object {
    width: 100%;
    border: 1px solid black;
    min-height: 0;
    transition: min-height 250ms ease, margin-top 250ms ease;
    flex-grow: 1;
    height: 0;
}

    object > * {
        margin: 1em;
        padding: 0;
        text-align: center;
    }

section {
    border-bottom: 1px solid #ccc;
    width: 100%;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    margin-bottom: 1em;
}

    section.open object {
        min-height: 100vh;
    }

    section:last-of-type {
        border-bottom: none;
        margin-bottom: 0;
    }

    section h1 {
        background: #eee;
        padding: 0.5em;
        margin: 0;
        cursor: pointer;
    }

.center {
    text-align: center;
}

.input-validation-error {
    animation: shake 0.5s linear;
}

.field-validation-error, .input-validation-error {
    border-color: #dc3545;
    color: #dc3545;
}

@keyframes shake {
    0% {
        left: 1em;
    }

    25% {
        left: -1em;
    }

    50% {
        left: 1em;
    }

    75% {
        left: -1em;
    }

    100% {
        left: 0;
    }
}

#logout {
    position: absolute;
    top: 0;
    right: 0;
}

.searchform label {
    display: inline-block;
    width: 5em;
    font-weight: 600;
}

.searchform input {
    min-width: 22em;
}
.searchform [type="submit"] {
    display: block;
    width: 100%;
}
input[readonly] {
    background-color: #eee;
}