﻿/* define variables */
:root {
    --body-background-color: black;
    --body-foreground: #d8d8d8;
    --container-padding: 2rem;
    --font-family: "Noto Serif", serif;
    --font-family-title: "Noto Serif", serif;
    --font-family-subtitle: "Noto Serif", serif;
    --font-size-content: 3.7rem;
    --font-size-liturgy: 8.5rem;
    --font-size-title: 5rem;
    --font-size-subtitle: 3.7rem;
    --line-height: 1.6;
    --line-height-content: 1.7;
    --content-box-padding: 2rem 0;
    
    --animate-delay: .5s;
}

html {
    font-size: 16px;
}

@media (min-width: 1620px) and (min-height: 2880px) {
    html {
        font-size: 32px;
    }
}

body {
    background-color: var(--body-background-color);
    color: var(--body-foreground);    
    font-family: var(--font-family);
    font-size: var(--font-size-content);
    line-height: var(--line-height);
}

#app {
    bottom: 0;
    left: 0;
    padding: var(--container-padding);
    position: fixed;
    right: 0;
    text-align: center;
    top: 0;
}

/* error */
#blazor-error-ui {
    background: rgba(255,255,255,.1);
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    font-size: 1vh;
    left: 0;
    padding: 1vh 1vw;
    position: fixed;
    width: 100%;
    z-index: 1000;
}
    
#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

/* spinner */
.spinner-border {
    border: 0.2em solid currentcolor;
    border-right-color: transparent;
    display: inline-block;
    width: 3rem;
    height: 3rem;
    vertical-align: -0.125em;
    border-radius: 50%;
    animation: 0.75s linear infinite spinner-border;
}

@keyframes spinner-border {
    to {
        transform: rotate(360deg);
    }
}

/* utils */
.h-40 {
    height: 40%;
}

.h-60 {
    height: 60%;
}

/* index */
.logo {
    height: 45%;
    max-width: 45%;
}

/* welcome/goodbye */
.title-subtitle {
    padding: var(--content-box-padding);
}

    .title-subtitle h2 {
        font-family: var(--font-family-title);
        font-size: var(--font-size-title);
        margin: 1.5rem 0;
    }

    .title-subtitle h5 {
        font-family: var(--font-family-subtitle);
        font-size: var(--font-size-subtitle);
        margin: 1.5rem 0;
        white-space: pre-wrap;
    }

/* liturgy */
.liturgy {
    font-size: var(--font-size-liturgy);
    line-height: 1.2;
    text-align: left;
}

    .liturgy .liturgy-item {
        margin-left: 0;
        margin-right: 0;
    }

        .liturgy .liturgy-item div {
            padding-left: 0;
            padding-right: 0;
        }

            .liturgy .liturgy-item div:last-child:not(:first-child) {
                padding-left: 2rem;
                word-spacing: 2rem;
            }

/* info */
.liturgy-info {
    font-size: var(--font-size-content);
    line-height: var(--line-height-content);
}

    .liturgy-info .liturgy-info--content {
        text-align: left;
    }

    .liturgy-info .liturgy-info--text,
    .liturgy-info .liturgy-info--song {
        margin-top: 3rem;
    }

    .liturgy-info .liturgy-info--theme {
        font-weight: bolder;
        margin-top: 3rem;
    }

    .liturgy-info .liturgy-info--description {
        white-space: pre-wrap;
    }

/* theme */
.liturgy-theme {
    font-size: var(--font-size-content);
    line-height: var(--line-height-content);
}

    .liturgy-theme .liturgy-theme--content {
        text-align: left;
    }

    .liturgy-theme .liturgy-theme--text,
    .liturgy-theme .liturgy-theme--song {
        margin-top: 3rem;
    }

    .liturgy-theme .liturgy-theme--theme {
        font-weight: bolder;
        margin-top: 3rem;
    }

    .liturgy-theme .liturgy-theme--description {
        white-space: pre-wrap;
    }

/* custom content */
.custom-content {
}

    .custom-content h3 {
        font-family: var(--font-family-title);
        font-size: var(--font-size-title);
        margin: .75rem 0 .25rem 0;
    }

    .custom-content p {
        font-size: var(--font-size-content);
        line-height: var(--line-height-content);
        white-space: pre-wrap;
    }

    .custom-content .media-fullscreen {
        height: calc(100vh - 4rem);
        width: calc(100vh - 4rem);
    }

    .custom-content img.media-fullscreen {
        object-fit: contain;
    }
