﻿@font-face {
    font-family: "Roboto";
    src: url(/fonts/Roboto-Regular.ttf) format("truetype");
    font-weight: normal;
    font-style: normal;
}

body {
    margin: 0;
    padding: 0;
    height: 100vh;
}

body, input, h1, h2 {
    font-family: "Roboto"
}

    input[type=text], input[type=password], select, textarea {
        border: 1px solid #c0c0c0;
        border-radius: 4px;
        font-size: 16px;
    }

input {
    padding: 4px 10px;
}

    input:focus {
        outline: 1px solid #061E92;
    }

select {
    padding: 4px 6px;
}

.button {
    border: none;
    background-color: #010760;
    color: white;
    min-width: 8em;
    padding: 7px 9px;
    cursor: pointer;
    border-radius: 5px;
    transition: all .15s ease-in;
    font-size: 16px;
}

    .button:hover, .button:focus {
        background-color: #061E92
    }

    .button:focus {
        outline: none;
    }

    .button.warning {
        background-color: #ff4d00;
    }

.page.main {
    display: grid;
    grid-template-rows: auto auto 1fr;
    height: 100%;
}

    .page.main .banner {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        justify-items: center;
        padding: 10px 30px 0 30px;
    }

        .page.main .banner > * {
            white-space: nowrap;
        }

            .page.main .banner > *:nth-child(1) {
                justify-self: left;
            }

            .page.main .banner > *:nth-child(3) {
                justify-self: right;
            }


    .page.main > .title {
        position: relative;
        box-shadow: 0 2px 2px rgba(0,0,0,0.2);
        padding: 0 40px 6px 48px;
        z-index: 1;
        pointer-events: none;
        margin-top: -24px;
    }

        .page.main > .title.backLink {
            margin-top: 8px;
        }

        .page.main > .title h1 {
            margin: 0;
            padding: 0;
            font-size: 28px;
        }

        .page.main > .title.backLink h1 {
            font-size: 24px;
        }


        .page.main > .title .action {
            position: absolute;
            right: 40px;
            bottom: 4px;
        }

    .page.main .content {
        padding: 0; /*20px 30px 0 38px*/
        background-color: #f7f7fa;
    }

.screen {
    z-index: -1;
}

.window {
    background-color: white;
    overflow: hidden;
}

    .window.circular {
        border-radius: 90%;
    }

    .window h1 {
        text-align: center;
        font-size: 40px;
        background-color: black;
        color: white;
        margin-top: 0;
        margin-bottom: 12px;
        padding: 14px;
        font-weight: normal;
    }

    .window .instagram {
    }

        .window .instagram.feed {
            background-color: black;
            display: grid;
            max-height: 100%;
            grid-template-rows: min-content 1fr;
            box-sizing: border-box;
        }

        .window .instagram h1 {
            border-bottom: 1px solid #393f4f;
            z-index: 1;
        }

        .window .instagram.feed .item {
            color: white;
            padding: 5% 5%;
            font-size: 24px;
            /* ReSharper disable once InvalidValue */
            overflow-wrap: anywhere;
        }

        .window .instagram .item .media {
            width: 100%;
            max-height: 100%;
            aspect-ratio: 1;
            object-fit: cover;
        }

        .window .instagram .item .description {
            overflow: hidden;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
        }

        .window .instagram.feed .item a, .window .instagram.feed .item a:visited {
            text-decoration: none;
            color: #c0c0ff;
            /* ReSharper disable once InvalidValue */
            overflow-wrap: anywhere;
        }

        .window .instagram.feed hr {
            border: none;
            border-bottom: 1px solid #393f4f;
        }


    .window .mastodon {
    }

        .window .mastodon.profile {
            object-fit: cover;
            height: 100%;
            width: 100%;
        }

        .window .mastodon.feed {
            background-color: black;
            display: grid;
            max-height: 100%;
            grid-template-rows: min-content 1fr;
            box-sizing: border-box;
        }

        .window .mastodon h1 {
            border-bottom: 1px solid #393f4f;
            z-index: 1;
        }

        .window .mastodon.feed .item {
            color: white;
            padding: 5% 5%;
            font-size: 32px;
        }

        .window .mastodon .item .timestamp {
            text-align: right;
            color: #606984;
            margin-top: -2%;
            margin-bottom: -1%;
        }

        .window .mastodon .item .media {
            width: 100%;
        }

        .window .mastodon.feed .item a, .window .mastodon.feed .item a:visited {
            text-decoration: none;
            color: #c0c0ff;
            /* ReSharper disable once InvalidValue */
            overflow-wrap: anywhere;
        }

        .window .mastodon.feed hr {
            border: none;
            border-bottom: 1px solid #393f4f;
        }

    .window .gallery {
    }

        .window .gallery img, .window .gallery video {
            position: absolute;
            left: 0;
            top: 0;
            display: none;
            background-color: black;
            width: 100%;
            height: 100%;
            object-fit: contain;
            display: inline-block;
        }



    .window .ticker {
        display: grid;
        grid-template-rows: 1fr 1fr 55% 1fr;
        height: 100%;
        text-transform: uppercase;
        font-weight: bold;
    }

        .window .ticker .margin {
            background-color: black;
        }

        .window .ticker > * {
            display: flex;
            justify-content: center;
            flex-direction: column;
        }

        .window .ticker .content {
            white-space: nowrap;
            width: fit-content;
        }

        .window .ticker .top {
            background-color: red;
            color: white;
            font-style: italic;
            font-size: 60px;
            padding: 4px 0;
        }

        .window .ticker .bottom {
            background-color: white;
            color: black;
            font-size: 170px;
        }


    .window .council.calendar {
        font-size: 22px;
    }

        .window .council.calendar .row {
            display: grid;
        }

            .window .council.calendar .row.day {
                grid-template-columns: 80px 1fr;
                grid-column-gap: 20px;
                border-bottom: 1px solid #ccc;
            }

                .window .council.calendar .row.day .day {
                    font-size: 30px;
                    text-align: center;
                    font-weight: bold;
                    margin-top: 16px;
                }

            .window .council.calendar .row.item {
                grid-template-columns: 1fr 180px;
                grid-column-gap: 20px;
                margin-top: 12px;
                margin-bottom: 24px;
            }

                .window .council.calendar .row.item .title {
                    margin-bottom: 8px;
                }

    .window .entertainment.calendar {
        font-size: 22px;
    }

        .window .entertainment.calendar h1 {
            position: relative;
            z-index: 1;
        }

        .window .entertainment.calendar .item:nth-child(even) {
            background-color: #f2f2f2;
        }

        .window .entertainment.calendar .item {
            display: grid;
            height: 420px;
            grid-template-columns: 20% 1fr 350px;
            grid-column-gap: 20px;
            grid-template-rows: 1fr 1fr;
            padding-top: 4px;
            padding-bottom: 4px;
        }

            .window .entertainment.calendar .item .photo {
                grid-column: 1/3;
                grid-row: 1/3;
                max-height: 100%;
                margin: 4px 0 4px 8px;
                overflow: hidden;
            }

                .window .entertainment.calendar .item .photo img {
                    width: 100%;
                    height: 100%;
                    object-fit: cover;
                }

            .window .entertainment.calendar .item .description {
                grid-column: 3;
                grid-row: 1;
            }

                .window .entertainment.calendar .item .description .title {
                    font-size: 30px;
                    margin-bottom: 0;
                }

                .window .entertainment.calendar .item .description .details p {
                    margin-top: 0.5em;
                    margin-bottom: 0.5em;
                }


            .window .entertainment.calendar .item .info {
                grid-column: 3;
                grid-row: 2;
            }

        .window .entertainment.calendar .info {
            display: grid;
            grid-template-rows: min-content min-content min-content;
            align-items: start;
        }

            .window .entertainment.calendar .info > div {
                display: grid;
                grid-template-columns: min-content 1fr;
                align-items: center;
                margin-bottom: 8px;
            }

            .window .entertainment.calendar .info span.icon {
                width: 32px;
                height: 32px;
                background-size: contain;
                background-position: center;
                background-repeat: no-repeat;
                margin-right: 6px;
            }

        .window .entertainment.calendar span.icon.date {
            background-image: url(/img/iconDate.svg);
        }

        .window .entertainment.calendar span.icon.location {
            background-image: url(/img/iconLocation.svg);
        }


        .window .entertainment.calendar span.icon.price {
            background-image: url(/img/iconPrice.svg);
        }



a, a:visited {
    color: black;
}

.backlink a {
    text-decoration: none;
}

    .backlink a:hover {
        text-decoration: underline;
    }


.management {
    padding-left: 10px;
}

    .management.grid {
        height: 100%;
        display: grid;
        grid-template-columns: min-content min-content;
        grid-column-gap: 10px;
    }

        .management.grid > div {
            background: white;
            border: 1px solid #e4e4e6;
            padding: 0 40px 10px 40px;
        }

    .management .links {
    }

        .management .links a {
            display: inline-block;
            width: 100%;
            line-height: 50px;
            border-radius: 9px;
            box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
            margin: 10px 0;
            box-sizing: border-box;
            text-decoration: none;
            text-align: left;
            color: black;
            font-size: 16px;
            padding: 0 20px;
            white-space: nowrap;
        }

            .management .links a:hover {
                background-color: #e0e0f0;
                transition: background-color 0.2s linear;
            }


.form {
}

    .form .row {
        display: grid;
        grid-template-columns: 100px min-content min-content;
    }


    .form h3 {
        margin-top: 32px;
        margin-bottom: 8px;
    }

    .form label {
        display: inline-block;
    }

    .form .row {
        margin-bottom: 6px;
    }

        .form .row > div {
            white-space: nowrap;
        }

    .form .button.bottom {
        margin-top: 8px;
        float: right;
    }

.icon {
    min-width: 24px;
    min-height: 24px;
    background-repeat: no-repeat;
    background-size: contain;
}

    .icon.top {
        margin-top: 16px;
        float: right;
        margin-right: -16px;
    }

    .icon.delete {
        background-image: url(/icons/delete.svg)
    }

    .icon.add {
        background-image: url(/icons/add.svg)
    }

button.icon {
    border: none;
    background-color: transparent;
    transition: opacity 0.2s;
    opacity: 0.6;
}

    button.icon:hover {
        opacity: 1.0;
        cursor: pointer;
    }


.ctlUpload {
}

    .ctlUpload input[type="file"] {
        display: none;
    }

    .ctlUpload label.button {
        cursor: pointer;
        user-select: none;
        text-align: center;
    }

.ctlToolbar {
}

    .ctlToolbar h2 {
        display: inline-block;
        margin-right: 80px;
    }

    .ctlToolbar button {
    }

.ctlGridView {
    cursor: pointer;
}

    .ctlGridView th {
        text-align: left;
    }

    .ctlGridView th, .ctlGridView td {
        border: none;
        white-space: nowrap;
        padding: 4px 8px 4px 8px;
        vertical-align: top;
    }

    .ctlGridView tbody tr {
        background: none;
    }

    .ctlGridView a {
        transition-duration: .3s;
    }

        .ctlGridView a:hover {
            transition-duration: .1s;
        }


    .ctlGridView tbody tr:hover {
        background-color: rgba(88, 165, 190, 0.25);
    }

    .ctlGridView tfoot a:hover {
        opacity: 0.7;
    }

    .ctlGridView tr.new {
        animation: newGridRow 1s;
    }

.scrollingContainer {
    position: relative;
}

    .scrollingContainer .scrollStop {
    }


.container.tfa {
    min-height: 100%;
    display: grid;
    align-items: center;
    justify-items: center;
}

    .container.tfa h1 {
        margin-top: 40px;
    }

    .container.tfa > div {
        max-width: 600px;
        text-align: center;
    }

    .container.tfa .introduction {
        margin: 20px 0;
    }

    .container.tfa .instruction {
        margin: 20px 0;
    }

    .container.tfa .tfa.code {
        font-size: 120%;
    }

    .container.tfa .code {
        font-size: 120%;
        font-weight: bold;
        margin-bottom: 20px;
        text-align: center;
    }

    .container.tfa .validationError {
        margin-top: -10px;
        margin-bottom: 20px;
        background: red;
        color: white;
        padding: 4px 10px;
    }

        .container.tfa .validationError:empty {
            display: none;
        }

    .container.tfa .footer {
        padding: 30px 0;
    }

    .container.tfa.setup {
        grid-template-rows: min-content min-content 1fr;
    }

    .container.tfa.verify {
        grid-template-rows: 1fr min-content;
    }



/* ---------- empty on purpose ---------- */

.confirm, .items {
}

/* ---------- asp-client-validation ---------- */
.field-validation-error {
    font-size: 0
}

    .field-validation-error:before {
        margin-left: 8px;
        font-size: 16px;
        content: "*";
        position: relative;
        top: -6px;
    }

.input-validation-error {
    border-color: red !important;
    outline-color: red !important;
}

.validation-summary-errors {
    color: red;
    font-style: italic;
}

.validation-summary-valid span {
    display: none;
}

.hidden {
    display: none;
}

/* ---------- gmodal ---------- */
.gmodal-dialog .button {
    text-decoration: none;
}

    .gmodal-dialog .button.ok {
    }

    .gmodal-dialog .button.cancel {
    }



/* ---------- Animations ---------- */
@keyframes fadeOut {
    0% {
        opacity: 0;
    }

    5% {
        opacity: 1;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.animationFadeOut {
    animation-name: fadeOut;
    animation-duration: 1s;
    animation-fill-mode: forwards;
}
