/* GENERAL */

:root{
    --dc-yellow: #fbc617;
    --dark-yellow: #ffa227;
    --yellow: rgb(214, 195, 25);
    --light-yellow: #fff1df;
    --online-color: #00a645;
    --online-color-light: #e4ffef;
    --offline-color: #d63333;
    --offline-color-light: #ffdada;
}

@font-face {
    font-family: 'OpenSans Semibold';
    src: url('fonts/OpenSans-Semibold.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'OpenSans Regular';
    src: url('fonts/OpenSans-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

html{
    scroll-behavior: smooth;
    background-color: rgb(236, 239, 241);
    font-family: "OpenSans Regular", Helvetica, Arial, sans-serif;
}

body{
    margin: 0;
}

.scroll-up-button{
    position: fixed;
    background-color: #353535;
    padding: 0px;
    cursor: pointer;
    right: 15px;
    bottom: 15px;
    height: 0px;
    width: 0px;
    transition: 0.2s cubic-bezier(0.075, 0.82, 0.165, 1);
    z-index: 2;
}

.scroll-up-button-visible{
    height: 32pt;
    width: 32pt;
    padding: 3px;
    transition: 0.2s cubic-bezier(0.075, 0.82, 0.165, 1);
}

h1, h2{
    letter-spacing: 0.56px;
    line-height: 34px;
}

h1{
    font-size: 24pt;
}

h1, h2{
    margin-top: 0;
}

h2{
    font-size: 20pt;
}

h1, h2, h3, h4{
    font-family: "OpenSans Medium", Helvetica, Arial, sans-serif;
}

a{
    color: #000000;
}

button{
    background-color: white;
    border: solid 2pt var(--dc-yellow);
    padding: 4pt 8pt;
    font-family: "OpenSans Semibold", sans;
    font-size: 14pt;
    box-shadow: 0px 2px 8px rgb(204, 204, 204);
}
button:hover{
    background-color: var(--dc-yellow);
    border-color: var(--dc-yellow);
}

select, button{
    cursor: pointer;
}

select{
    height: 25pt;
    max-height: 30pt;
    min-width: 130pt;
    background-color: white;
    border: solid 2pt #a6a6a6;
    transition-property: border-width;
    font-size: 12pt;
    background-size: 100% 250%;
    background-image: linear-gradient(to bottom, white 49%, var(--dc-yellow) 50%);
    background-position-y: 0pt;
    transition: background-position-y 0.1s;
}

select:hover{
    background-position-y: -30pt;
    border-color: var(--dc-yellow);
}

.centered-button-container{
    display: flex;
    justify-content: center;
    margin: 14pt 0pt;
}

.invisible{
    display: none !important;
}

/* STATES of sites and servers */

.state-header{
    padding-top: 15px;
    padding-bottom: 10px;
    width: 100vw;
    background-color: white;
    box-shadow: 0 5px 10px rgb(204, 204, 204);
}

.state-header-logo-container{
    max-width: 1328px;
    margin: 0 auto;
    padding: 0 24px;
}

.state-content{
    padding: 0 24px;
    margin: 30pt auto 0 auto;
    max-width: 1328px;
}

.flex-container{
    display: flex;
}

.section{
    margin-bottom: 40pt;
    background-color: white;
    padding: 18px;
    box-shadow: 0 5px 10px rgb(204, 204, 204);
}

.intro{
    margin-bottom: 50px;
}

.site-state-entry{
    min-height: 42px;
    margin-bottom: 15px;
    padding: 4px 8px 4px 10px;
}

.site-state-entry.online{
    background-color: var(--online-color-light);
}

.site-state-entry.slow{
    background-color: var(--light-yellow);
}

.site-state-entry.offline{
    background-color: var(--offline-color-light);
}

.site-state-entry > *{
    max-width: max-content;
}

.site-state-entry .online-text, .site-state-entry .offline-text{
    font-size: 10pt;
}

.dns-state-entry{
    margin-bottom: 40px;
}

.dns-state-entry .part-of-state{
    display: flex;
    padding-top: 2pt;
    padding-bottom: 2pt;
    /*height: 42px;*/
}

.part-of-state{
    margin-bottom: 15px;
    position: relative;
}

.part-of-state.online{
    background-color: var(--online-color-light);
}

.part-of-state.slow{
    background-color: var(--light-yellow);
}

.part-of-state.offline{
    background-color: var(--offline-color-light);
}

.dns-state-entry{
    margin-bottom: 10px;
}

.dns-state-entry .icon-container{
    width: 36px;
    margin-right: 10px;
    padding: 0;
    justify-content: unset;
}

.dns-state-entry > .online > .online-text, .dns-state-entry > .slow > .slow-text, .dns-state-entry > .offline > .offline-text{
    position: absolute;
    right: 0;
    min-height: 100%;
    display: flex;
    align-items: center;
    margin-right: 10pt;
    margin-top: 0 !important;
}

.flex-container{
    display: flex;
}

.icon-with-description{
    display: flex;
    flex-direction: row;
    align-items: baseline;
    margin-top: 2pt;
    margin-left: 8pt;
}

.uptime-bar .icon-with-description{
    height: 100%;
    align-items: flex-start;
}

.uptime-bar .icon-container{
    height: 100%;
}

.icon-container{
    display: flex;
    padding: 0 5px;
    justify-content: center;
    align-content: center;
    align-items: center;
    width: 50px;
}

.uptime-bar .icon-with-description{
    position: absolute;
    z-index: 1;
    display: flex;
}

.icon-description{
    font-size: 10pt;
    color: #353535;
}

.icon-description-container{
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: center;
}

.icon-description-container .bar-site{
    margin-left: 0;
    margin-bottom: 3pt;
    align-items: unset;
    min-height: unset;
    position: unset;
}

.icon{
    height: 30px;
    width: auto;
    margin-right: 2pt;
}

.small-column{
    min-width: 50px !important;
}

.offline-text, .slow-text, .online-text{
    display: none;
}

.offline > .offline-text, .slow > .slow-text, .online > .online-text{
    display: flex;
    margin-top: 3pt;
}

/* LOG section */

.filter-container{
    border: 2px var(--dc-yellow) solid;
    padding: 20px;
    margin-bottom: 20px;
}

.filter{
    display: flex;
}

.message{
    margin-top: 15pt;
}

.log-filter > *{
    margin-right: 30px;
}

.log-container{
    margin-bottom: 5px;
}

.log-header{
    margin-bottom: 15px;
    cursor: pointer;
}

.log-header-text{
    display: flex;
    align-items: center;
    margin-left: 5px;
}

.arrow-icon{
    display: flex;
}

.custom-radio-button{
	display: flex;
    margin-bottom: 10px;
    cursor: pointer;
}

.custom-radio-button.deactivated, .custom-radio-button.deactivated *{
    color: #3b3b3b;
    cursor:default;
}

.custom-radio-button.deactivated .custom-radio-circle{
    border: rgb(70, 70, 70) 4px solid;
    background-color: rgb(77, 77, 77);
}

.custom-radio-button.deactivated .custom-radio-circle-activated .custom-radio-circle-fill{
    background-color: #aaaaaa;
}

.custom-radio-circle{
	border: black 4px solid;
	border-radius: 3px;
	width: 12px;
    height: 12px;
    min-width: 12px;
	min-height: 12px;
    border-radius: 50%;
    margin-right: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.custom-radio-circle-fill{
	background-color: rgba(0, 0, 0, 0);
	width: 100%;
	height: 100%;
	border-radius: 50%;
}

.custom-radio-circle-activated .custom-radio-circle-fill{
	background-color: var(--dc-yellow);
    animation-name: grow;
    animation-iteration-count: 1;
    animation-duration: 0.2s;
}

@keyframes grow{
    0%{height: 0px; width: 0px;}
    100%{height: 12px; width: 12px;}
}

#log-content-container{
    overflow-y: auto;
}

.log-content:not(.invisible){
    display: flex;
    flex-direction: column-reverse;
}

.log-entry{
    margin-bottom: 10px;
    display: none;
    padding-bottom: 2px;
}

.log-entry.slow{
    background-color: var(--light-yellow);
}
.log-entry.offline{
    background-color: var(--offline-color-light);
}
.log-entry.online{
    background-color: var(--online-color-light);
}

#log-content-container.period-day .period-day, #log-content-container.period-week .period-week,
#log-content-container.period-week .period-day, #log-content-container.period-month .period-month,
#log-content-container.period-month .period-week, #log-content-container.period-month .period-day{
    display: flex;
}

.icon-container{
    display: flex;
    padding: 0 5px;
    justify-content: center;
    align-content: center;
    align-items: center;
    width: 50px;
    border-top-left-radius: 3px;
    border-bottom-left-radius: 3px;
}

.icon-description{
    font-size: 10pt;
    color: #353535;
}

.log-entry-icon{
    margin-right: 0;
}

.log-entry-text{
    padding: 5px 10px;
}

.log-entry-description{
    margin-bottom: 4px;
}

.log-entry-time-stamp{
    background-color: #fff;
    width: max-content;
    padding: 4px 4px 0 4px;
    border-radius: 2px;
    font-size: 12pt;
}

/* UPTIME section */

.uptime-bar{
    position: relative;
    min-height: 40pt;
    margin-bottom: 10pt;
    display: flex;
}

.bar-site, .bar-percentage{
    position: absolute;
    min-height: 100%;
}

.uptime-bar .icon-container .bar-site{
    position: inherit !important;
}

.bar-left, .bar-right{
    display: flex;
    align-items: center;
}

.bar-left{
    background-color: var(--online-color-light);
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;

}

.bar-right{
    background-color: var(--offline-color-light);
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}

.bar-site, .bar-percentage{
    display: flex;
    align-items: center;
}

.bar-site{
    margin-left: 10pt;
}

.bar-percentage{
    right: 0;
    margin-right: 10pt;
}

.bar-description .icon{
    height: 20px;
    width: auto;
    margin-left: 10px;
}

#uptime-section.overall .uptime-year, #uptime-section.overall .uptime-month, #uptime-section.overall .uptime-week, #uptime-section.overall .uptime-day,
#uptime-section.year .uptime-overall, #uptime-section.year .uptime-month, #uptime-section.year .uptime-week, #uptime-section.year .uptime-day,
#uptime-section.month .uptime-overall, #uptime-section.month .uptime-year, #uptime-section.month .uptime-week, #uptime-section.month .uptime-day,
#uptime-section.week .uptime-overall, #uptime-section.week .uptime-year, #uptime-section.week .uptime-month, #uptime-section.week .uptime-day,
#uptime-section.day .uptime-overall, #uptime-section.day .uptime-year, #uptime-section.day .uptime-month, #uptime-section.day .uptime-week{
    display: none;
}

#uptime-section h3{
    margin-top: 35pt;
}

@media (prefers-contrast: more) {
    html{
    background-color: rgb(251, 251, 252);
    }
    .site-state-entry .online-text, .site-state-entry .offline-text{
        font-size: 12pt;
    }
    .site-state-entry.online, .part-of-state.online, .log-entry.online{
        background-color: white;
        border: 2pt solid var(--online-color);
    }

    .site-state-entry.slow, .part-of-state.slow, .log-entry.slow{
        background-color: white;
        border: 2pt solid var(--yellow);
    }

    .site-state-entry.offline, .part-of-state.offline, .log-entry.offline{
        background-color: white;
        border: 2pt solid var(--offline-color);
    }
    .bar-left, .bar-right{
        height: 5pt;
        position: absolute;
        bottom: 0pt;
    }
    .bar-left{
        background-color: var(--online-color);
    }
    .bar-right{
        background-color: var(--offline-color);
        right: 0pt;
    }
    .uptime-bar .icon-description{
        margin-bottom: 12pt;
    }
    .icon-description{
      font-size: 11pt;
      color: black;
    }
    .bar-percentage{
      margin-right: 0pt;
    }
}

@media (prefers-reduced-motion) {
    html {
        scroll-behavior: unset;
    }

    .scroll-up-button{
        transition: none;
    }

    .scroll-up-button-visible{
        transition: none;
    }
    select{
        transition: none;
    }
    .custom-radio-circle-activated .custom-radio-circle-fill{
        animation-name: none;
    }
}

@media only screen and (min-width: 800px){

    .flex-container{
        gap: 40pt;
    }
}

/* MOBILE */

@media only screen and (max-width: 800px){
    body > *{
        padding-left: 5px;
    }

    .scroll-up-button{
        right: 24pt;
    }

    .state-header{
        padding-left: 2%;
        padding-top: 15px;
        padding-bottom: 5px;
        margin-bottom: 10pt;
    }

    .state-header-logo-container{
        padding-left: 1%;
    }

    .logo{
        width: 180px;
        height: auto;
    }

    h1, .intro{
        padding-left: 1%;
    }

    .intro{
        padding-right: 1%;
    }

    h1{
        font-size: 20pt;
    }

    h2{
        font-size: 16pt;
    }

    .section{
        padding: 16px 8px;
    }

    .state-content{
        width: 100%;
        padding-left: 0pt;
        margin-top: 0;
    }

    .flex-container{
        flex-direction: column;
    }

    .state-table{
        padding-left: 5px;
    }

    .part-of-content{
        padding-left: 10px;
    }

    tr > *{
        min-width: 0;
    }

    .div-row{
        background-color: #aaaaaa;
        padding: 10px;
    }

    .flex-cell{
        flex-direction: column;
    }

    .flex-cell > *{
        margin-bottom: 15px;
    }

    a{
        word-wrap: break-word;
    }

    .log-filter{
        flex-direction: column;
    }

    .log-filter > *{
        margin-bottom: 25px;
    }

    select{
        max-height: 50px;
    }

    .only-desktop{
        display: none;
    }

    .uptime-bar > .bar-site{
        margin-left: 2pt;
    }

    .uptime-bar .icon-with-description{
        margin-left: 2pt;
    }

    .icon-with-description .icon-container {
        padding-left: 0pt;
    }
}
