@font-face {
    font-family: 'Roboto';
    src: url("../font/Roboto-Regular.ttf");
}

:root {
    --primary-color: #000080;
    --btn-green: limegreen;
    --btn-green-hover: lightgreen;
}

body {
    margin: 0;

    background-color: #eee;
    font-family: 'Roboto';
}

* {
    box-sizing: border-box;
}

#pageHeader {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    padding: 0 40px;

    font-size: 20px;

    background-color: var(--primary-color);
    color: white;
}

#pageHeader > * {
    flex: 1;
}

#pageHeader a {
    text-decoration: none;
    display: inline-block;
    color: white;
}

#pageHeader div.logout {
    text-align: right;
}

#pageHeader .logout a:hover {
    transform: scale(1.05);
    transition: transform 0.1s;
}

#pageHeader span.title {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    column-gap: 10px;
}

#pageHeader span.title img {
    display: inherit;
    height: 40px;
}

@media (max-width: 650px) {
    .greeting {
        display: none;
    }

    .logout-text {
        display: none;
    }

    #pageHeader span.title {
        justify-content: flex-start;
    }

    #pageHeader a.title-heading {
        display: none;
    }

    #pageHeader {
        padding: 0 15px;
    }
}

footer#pageFooter {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: fixed;
    bottom: 0;
    background-color: #ddd;
    height: 60px;
    padding-right: 20px;
    width: 100%;
    color: #333;
}

label.bold {
    display: block;
    font-weight: bold;
    margin-bottom: 10px;
}

.btn {
    padding: 8px;

    border: none;
    border-radius: 2px;

    font-size: 16px;
    font-family: inherit;
    text-align: center;

    background-color: #ccc;

    cursor: pointer;
}

.btn:hover {
    transform: scale(1.05);
}

.btn-primary {
    color: white;
    background-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #0080ff;
}

.btn-green {
    color: white;
    background-color: var(--btn-green);
}

.btn-green:hover {
    background-color: var(--btn-green-hover);
}

.btn-link {
    background: white;
    border: none;
    color: var(--primary-color);
}

.btn-link:hover {
    background-color: white;
    text-decoration: underline;
}

.overlay {
    padding: 30px;

    background-color: white;

    border: 1px solid lightgrey;
    box-shadow: 4px 4px 5px 0px #aaa;
}



/* Login */
.login-wrapper {
    margin: 100px auto;
    max-width: 360px;
}

.login-wrapper .row {
    margin-bottom: 20px;
}

.login-wrapper input {
    width: 100%;

    padding: 8px;
    font-size: 16px;
    font-family: inherit;

    border: 1px solid #aaa;
    border-radius: 2px;
}

.login-wrapper button {
    width: 100%;
    margin-top: 20px;
}

.msg {
    position: relative;
    margin: 0 auto;
    margin-top: 50px;
    width: 360px;

    border-radius: 5px;

    overflow: hidden;
    text-overflow: ellipsis;
}

.msg + .login-wrapper,
.msg + .main-overlay {
    margin-top: 20px;
}

.err_msg {
    border-left: 5px solid red;
}

.success_msg {
    border-left: 5px solid lightgreen;
}

.msg-close {
    position: absolute;
    top: 0.3em;
    right: 0.5em;
    color: #777;
    font-size: 18px;
    cursor: pointer;
}

.msg-close:hover {
    transform: scale(1.1);
}

#password-weak-msg-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

#password-weak-msg {
    padding: 20px;
    margin: 1em;
    max-width: 600px;
    width: unset;
}

#password-weak-msg > a {
    display: block;
    text-align: center;
}

/* Reporter */
.main-overlay {
    display: flex;
    flex-direction: column;

    max-width: 360px;

    margin: 50px auto;
    padding: 0;
}

@media (max-width: 650px) {
    .main-overlay {
        margin-top: 20px;
        width: 100%;
        max-width: none;
        box-shadow: none;
    }
}

.main-overlay > section {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.main-overlay h1 {
    font-size: 1.2em;
    font-weight: bold;
    padding: 0.6em;
    margin: 0;
}

.main-overlay h2 {
    font-size: 18px;
    color: #555;
}

.main-overlay .section-content {
    flex: 1;
    padding: 2em 1.5em;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.main-overlay .section-footer {
    display: flex;
    font-size: 1.5em;
    justify-content: space-between;
    padding: 0.6em;
}

.main-overlay .section-footer .btn-primary {
    width: 150px;
}

.main-overlay select,
.main-overlay input {
    width: 100%;
    padding: 8px;
    font-size: 16px;

    border-radius: 2px;
    border: 1px solid #aaa;
}

/* Error page */
.error_msg {
    margin: 100px auto;
    width: 360px;
    text-align: center;
}

.button-row {
    padding: 1.5em;
}

.button-row a {
    text-decoration: none;
}

button.selectType {
    width: 80%;
    margin: 0 auto;

    height: 2.5em;
    font-size: 18px;

    background-color: white;

    cursor: pointer;

    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;

    transition: transform 0.2s;
    transform: translateX(0em);
}

button.selectType.group-1 {
    border-left: 4px solid var(--primary-color);
    border-right: 4px solid var(--primary-color);
}

button.selectType.group-2 {
    border-left: 4px solid orange;
    border-right: 4px solid orange;
}

button.selectType.group-3 {
    border-left: 4px solid red;
    border-right: 4px solid red;
}

button.selectType:hover {
    background-color: #eee;
    transform: translateX(0.2em);
}

button.selectType:not(:last-child) {
    margin-bottom: 1em;
}

main section.hidden {
    display: none;
}

.arrow {
    display: inline-block;

    width: 1.2em;

    font-weight: bold;
    font-size: 1.2em;
    cursor: pointer;

    color: #000080;

    text-align: center;
    user-select: none;
}

.arrow:hover {
    transform: scale(1.3);
}

#datePickerSection.hidden {
    display: none;
}

.datePicker {
    display: flex;
    align-items: center;

    margin: 0 auto;

    font-size: 1.3em;

    border: 1px solid #aaa;
}

#datePickerText {
    text-align: center;
    flex: 1;
}

.section-content section,
input#startDate {
    margin-bottom: 30px;
}

#formatSection .radioboxes {
    display: flex;
    justify-content: space-around;
}

#formatSection input[type="radio"] {
    margin: 0;
}

#formatSection input[type="radio"],
#formatSection .radioboxes label {
    cursor: pointer;
    white-space: nowrap;
}

#formatSection div.row {
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
    column-gap: 0.5em;
}