﻿/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
for details on configuring this project to bundle and minify static web assets. */
:root {
    --scheme: light dark;
    color-scheme: var(--scheme);
}

@media (prefers-color-scheme: light) {
    :root:has(#dark:checked) {
        --scheme: dark;
    }
}

@media (prefers-color-scheme: dark) {
    :root:has(#dark:checked) {
        --scheme: light;
    }
}

html {
    background-image: linear-gradient(270deg,
            light-dark(rgb(230, 233, 233), rgb(37, 40, 42)) 0%,
            light-dark(rgb(216, 221, 221), rgb(45, 48, 50)) 100%);
    -webkit-font-smoothing: antialiased;
}

body {
    margin: 0 auto;
    padding: 1em 2em 0.8em;
    max-width: 800px;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5em;
    color: light-dark(rgb(84, 84, 84), rgb(179, 172, 162));
    background-color: light-dark(rgb(255, 255, 255), rgb(24, 26, 27));
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.06);
}

h1,
h2,
h3,
h4,
h5,
h6,
.headerFont {
    color: light-dark(#222, #d3cfc9);
    font-weight: 600;
    line-height: 1.3em;
}

.headerFont {
    line-height: 0;
    font-size: xxx-large;
}

.traditionFont {
    line-height: 0;
    font-size: medium;
    padding-left: 10px;
}

h2 {
    margin-top: 1.3em;
}

a {
    text-decoration: none;
    color: light-dark(#222, #d3cfc9);
    outline: none;
}

footer {
    display: flex;
}

.footer-right {
    margin-left: auto;
}

.footer-left {
    justify-self: left
}

span.night {
    color: light-dark(#777, #d3cfc9)
}

span.day {
    color: light-dark(#222, #797979);
}

#theme-toggle {
    cursor: pointer;
}

b,
strong {
    font-weight: 600;
}

.service-img {
    -webkit-animation: colorize 2s cubic-bezier(0, 0, .78, .36) 1;
    animation: colorize 2s cubic-bezier(0, 0, .78, .36) 1;
    background: transparent;
    border-color: light-dark(rgba(0, 0, 0, 0.12), rgba(140, 130, 115, 0.12));
    border-width: 10px;
    border-style: solid;
    border-radius: 4px;
    display: block;
    margin: 1.3em auto;
    max-width: 95%;
}

.service-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(264px, 1fr));
}

table {
    border-spacing: 1em 0;
}

.align-header-text {
    display: flex;
    align-items: baseline;
}

.center-text {
    text-align: center;
    height: 185px;
}

.online {
    color: green;
}

.offline {
    color: red;
}

@media only screen and (max-width: 850px),
(min-device-width: 850px) and (max-device-width: 1024px) {

    table,
    thead,
    tbody,
    th,
    td,
    tr {
        display: block;
    }

    td {
        border: none;
        position: relative;
    }

    .align-header-text {
        flex-direction: column;
        align-items: center;
    }

    .center-dorsch-when-small {
        display: grid;
        place-items: center;
    }

    .traditionFont {
        padding-left: 0;
    }
}

@-webkit-keyframes colorize {
    0% {
        -webkit-filter: grayscale(100%);
    }

    100% {
        -webkit-filter: grayscale(0%);
    }
}

@keyframes colorize {
    0% {
        filter: grayscale(100%);
    }

    100% {
        filter: grayscale(0%);
    }
}