*,
*:before,
*:after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    min-width: 470px;
}

body,
table,
.org-domain a,
input,
#filter-bar-form,
#filter-bar-forms {
    transition: color 0.4s ease,
        background-color 0.4s ease,
        color-scheme 0.4s ease,
        height 0.4s ease,
        padding 0.4s ease,
        opacity 0.4s ease;
}

body {
    text-align: center;
    font-family: 'Basis Grotesque', sans-serif;
    letter-spacing: .3px;
    overflow-y: scroll;
}

a,
a:link,
a:visited,
a:active,
a:hover,
a:visited,
.domainname,
.domainname:visited,
.domainname:hover,
.domainname:active {
    text-decoration: none;
}

a {
    transition: color 0.4s ease;
}

header {
    width: auto;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 1em;
    border: none;
    padding-top: 0;
}

header a {
    max-width: 40em;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#image1,
#image2 {
    transition: opacity 0.5s ease;
    position: absolute;
    top: 0;
    left: 0;
}

body.abion #image1 {
    opacity: 1;
}

body.abion #image2 {
    opacity: 0;
}

body:not(.abion) #image1 {
    opacity: 0;
}

body:not(.abion) #image2 {
    opacity: 1;
}

.domainstats-wrapper,
section,
.filter-bar,
.export {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: .5em 1.5em;
    border: none;
    width: 100%;
    flex-direction: column;
}

#shownonMessages {
    cursor: pointer;
}

section#nonMessages {
    padding: 0;
    height: 0;
    opacity: 0;
    overflow: hidden;
    transition: opacity 0.4s ease,
        height 0.4s ease;
}

section#nonMessages.visible {
    overflow: unset;
}

.domainstats,
.section-content,
.filter-bar-in {
    display: flex;
    align-items: center;
    padding: 0;
    border: none;
    border-radius: 10px;
    position: relative;
    width: 100%;
    height: 100%;
}



.filter-bar {
    border-radius: 0.5em;
    margin: 1em;
    padding: 1em;
}

.filter-bar-in {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

#filter-bar-forms {
    height: 0;
    opacity: 0;
    overflow: hidden;
    transition: height 0.4s ease, opacity 0.4s ease;
}

.filter-bar-in form {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
}

.filter-bar-in form input[type="text"] {
    padding: 0.5em;
    border-radius: 0.5em;
}

.filter-bar-in form input[type="date"] {
    padding: 0.5em;
    border-radius: 0.5em;
}

.domainstats,
.section-content {
    flex-direction: row;
}

table {
    border-radius: 5px 5px 0 0;
}

.domain-recordstatus.showless {
    height: 1.5em;
}

.domain-recordstatus {
    display: flex;
    width: 100%;
    height: 3em;
    border-radius: 10px;
    justify-content: center;
    align-items: center;
    cursor: help;
}

.hoverinfo {
    position: absolute;
    border-radius: 5px;
    padding: 5px;
    font-size: 18px;
    z-index: 100;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    bottom: 70%;
    left: 50%;
    transform: translateX(-50%);
}

table tr td:hover>.hoverinfo {
    opacity: 1;
}


.org-domain-entries,
.org-domains {
    display: flex;
    height: 0;
    opacity: 0;
    overflow: hidden;
    transition:
        height 0.4s ease,
        opacity 0.4s ease;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
}

.visible {
    height: auto !important;
    opacity: 1 !important;
}

.org-domain-entries .section-content {
    overflow-y: hidden;
    overflow-x: auto;
}

.org-domain {
    min-height: 4.5em;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-top: 1px solid #000;
}

.org-domain>div {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 5%;
}

.org-domain>div:first-child {
    width: 40%;
}

.org-domain>div:last-child {
    width: 65%;
}

.domainstats-records-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    float: left;
    width: 30%;
    height: 100%;
    padding: 1em;
}

.domainstats-records-wrapper>h1 {
    width: 33%;
    margin: .25em;
}

.domainstats-records-wrapper table tr td {
    width: 33%
}

.domainstats-records-wrapper table,
.org-wrapper table {
    border: 0;
    min-width: 100%;
    height: 50%;
    text-align: left;
}

table tr {
    border: 0;
}

.org-domain-entries table tr {
    border-bottom: 1px solid;
}

table tr td {
    border: 0;
    text-align: center;
    font-size: 1em;
}

.domainstats-bars-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 30%;
    padding: 1em;
    float: right;
    flex-direction: column;
}

#totalstats-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 110%;
    min-width: fit-content;
    min-width: -moz-fit-content;
    padding: 1em;
    border: none;
    gap: 4em;
}

#totalstats-left,
#totalstats-right {
    display: flex;
    align-items: center;
    height: 20em;
    border: none;
    border-radius: 10px;
    float: left;
    position: relative;
    justify-content: center;
}

#totalstats-left {
    width: 60%;
    min-width: 6%;
    padding: 0;
}

#totalstats-right {
    width: 30%;
    padding: 2.3em;
    float: right;
    text-align: center;
    justify-content: space-around;
    align-items: center;
    align-content: center;
    flex-direction: column;
}

#totalstats-left-messages,
#totalstats-left-compliant,
.totalstats-right-compliant {
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    width: auto;
    text-align: center;
}

.totalstats-right-compliant {
    flex-direction: column;
}

#totalstats-left-messages {
    flex-direction: column;
}

#totalstats-left-messages {
    width: 50%;
    text-align: center;
    float: left;
}

#totalstats-left-compliant {
    width: 50%;
    font-size: 1.7em;
    right: 0;
    gap: 1em;
}



.totalstats-left-compliant-text,
.totalstats-left-compliant-number {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

#totalstats-left-messages span,
.totalstats-right-compliant span {
    font-size: 3.2em;
    font-weight: bold;
}

select {
    width: 400px;
    margin: 10px;
    padding: 5px 10px 5px 10px;
    line-height: 24px;
    font-size: 15px;
}

.org-wrapper {
    display: flex;
    flex-direction: column;
}

.org-wrapper .org-stats {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.org-wrapper .org-stats>div:first-child {
    width: 40%;
}

.org-wrapper .org-stats>div:last-child {
    width: 70%;
}

.org-stats>a {
    margin-left: 2em;
}

.domainname-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80%;
}

.domaininfo {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.domainname.showless {
    padding: 0;
}

.domainname {
    text-align: center;
    padding: 20px;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}

.org-domain h3 {
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}

header #logo-div {
    position: relative;
    overflow: hidden;
    height: 8em;
    width: 30em;
    max-width: 80%;
    transform: scale(0.8), translateZ(0);
}

header .project-name {
    text-align: center;
    transition: color 0.4s ease;
}

main {
    width: 90%;
    max-width: 1920px;
    min-width: 470px;
    margin: 0 auto 0 auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

h1 {
    font-size: 1.4em;
}

h1.domainname {
    margin: 0;
}

h2 {
    font-size: 1.1em;
    margin: 0 0 0.5em 0;
}

.summary-selector button {
    width: 100%;
    height: 4em;
    display: flex;
}

.summary-selector button {
    /* Clean from button styling */
    background-color: transparent;
}

.summary-selector button h2 {
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

h3 {
    font-size: .9em;
    margin: 0.5em 0 0.5em 0;
}

table {
    border-collapse: collapse;
    border-radius: 0.6em;
    width: 95%;
    text-align: center;
}

tbody {
    font-family: sans-serif;
}

th,
td {
    padding: .4em;
    text-align: center;
}

.org-domain-entries td,
.domainstats td,
.section-content td {
    font-size: .8em;
}

table.reason td:nth-child(6),
table.reason th:nth-child(6) {
    display: none;
}

td {
    font-size: .8em;
    padding: .7em;
}

footer {
    width: 100%;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
}

footer p {
    margin: 0;
}

footer .footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 80%;
}

footer .footer-content-left {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

footer .footer-content-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.domainstats-bars {
    border-radius: .2em;
    display: block;
    width: 100%;
    height: 15px;
    position: relative;
}

.red-bar {
    border-radius: .2em;
    height: inherit;
    position: absolute;
    left: 0;
}

.gray-bar {
    border-radius: .2em;
    height: inherit;
    position: absolute;
    left: 0;
}

.green-bar {
    border-radius: .2em;
    height: inherit;
    position: absolute;
    left: 0;
}

.domainstats-bars-text {
    width: 100%;
    text-align: center;
    position: relative;
    font-size: 0.75em;
    display: block;
}

.domainstats-bars-text-2 {
    color: antiquewhite !important;
    font-size: .9em;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}


input[type="submit"],
button,
a.button {
    border: none;
    border-radius: 10px;
    padding: 10px 20px 10px 20px;
    margin-right: 10px;
    margin-left: 10px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
}

#weekSwitcher,
#dateSelector {
    margin-right: 10px;
    margin-bottom: 10px;
}

#showInfo {
    position: relative;
    display: block;
    margin: auto;
    right: 1em;
    font-size: 2em;
    text-align: center;
}

.login {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.login-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.login-container {
    width: 300px;
    margin: 0 auto;
    padding: 20px;
    border-radius: 8px;
}

.login-container p {
    margin: 0;
    padding: 10px 0;
}

.login-container input[type="text"],
.login-container input[type="password"] {
    width: 100%;
    padding: 10px;
    border-radius: 4px;
}

.login-container input[type="submit"] {
    width: 100%;
    padding: 10px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

/* User pages */

.user-container {
    width: 80%;
    margin: 0 auto;
    padding: 20px;
    background-color: var(--main-content-color-child);
    border-radius: 10px;
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.1);
}

.user-container .user-header {
    color: var(--color);
    text-align: center;
    margin-bottom: 40px;
}

.user-inner-container {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
}

.user-category {
    padding: 20px;
    text-align: center;
    width: 15em;
}

.user-input input[type="text"],
.user-input input[type="password"] {
    width: 100%;
    padding: 10px;
    border-radius: 4px;
    margin: 4px
}

.user-input-submit {
    margin: 10px;
}

/* User pages */

.error-message {
    font-size: 12px;
}

.summary-selector {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    gap: 2em;
}

dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 2rem;
}

@media (max-width:1400px) {
    main {
        width: 80%;
        padding: 0;
    }

    #totalstats-wrapper {
        flex-direction: column;
        gap: 2em;
        width: 100%;
    }

    #totalstats-left {
        flex-direction: column;
        width: 100%;
    }

    #totalstats-right {
        width: 100%;
    }

    .org-domain-entries .section-content {
        flex-wrap: wrap;
    }

    .org-wrapper .org-stats {
        flex-direction: column;
    }

    .org-wrapper .org-stats>div {
        width: 100% !important;
        max-width: 80%;
    }

    .org-domain {
        flex-direction: column;
    }

    .org-domain>div {
        width: 100% !important;
    }

    .domainstats,
    .section-content {
        flex-direction: column;
    }

    .domainstats div,
    .section-content div {
        width: 100% !important;
    }

    .org-domain h3 {
        padding-top: .5em;
    }

    .domaininfo {
        margin-top: 1em;
    }

    #showInfo {
        right: 0 !important;
        padding-bottom: .5em;
    }
}

@media (max-width:950px) {
    .summary-selector {
        flex-direction: column;
    }
}

.changeTemplate-div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    padding-bottom: 0;
}

.changeTemplate-div div,
.changeTemplate-div button {
    margin-bottom: 10px;
}

@media (max-width: 600px) {
    .changeTemplate-div {
        flex-direction: column;
        align-items: flex-start;
    }

    .changeTemplate-div div,
    .changeTemplate-div button {
        margin-bottom: 20px;
    }

    .changeTemplate-div div:first-child {
        display: flex;
        gap: 1em;
    }

    .domainstats-bars-wrapper table,
    .org-wrapper table {
        transform: scale(0.8), translateZ(0);
        -webkit-transform: scale(0.8), translateZ(0);
        -moz-transform: scale(0.8), translateZ(0);
        -ms-transform: scale(0.8), translateZ(0);
        -o-transform: scale(0.8), translateZ(0);
    }
}