@import url('https://fonts.googleapis.com/css2?family=Syne:wght@100;400;700&&display=swap');

:root {
    --default-font: 'Syne';
    --primary-color: #f7931e;
    --secondary-color: #009245;
    --tertiary-color: #4d3967;

}

*, ::before, ::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: var(--default-font), sans-serif;
}

html {
    font-size: clamp(16px, 1.3vw, 20px);
}

h1, h2, h3, h4, h5, h6 { margin: 0.5lh 0 0.35lh; }

h1 { font-size: 150%; }
h2 { font-size: 125%; }
h3 { font-size: 110%; }
h4 { font-size: 100%; }
h5 { font-size: 90%; }
h6 { font-size: 85%; }

p { margin: 1lh 0; }

a {
    color: var(--tertiary-color);
    text-decoration: none;
}

iframe {
    margin: 1lh 0;
}

div.segment {
    margin-bottom: 1lh;
}

.grid-container {
    min-height: 100svh;
    display: grid;
    grid-template-rows: 60px auto 3.5lh;
    gap: 0;
}

.grid-item {
    width: 100%;
    height: 100%;
    align-items: center;
    margin: auto;
}

footer.grid-item {
    align-items: flex-start;
}

#video {
    height: 100%;
    position: relative;
}

header {
    background-color: #000;
    border-bottom: solid 1px #fff;
}

video {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#main-container {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 0;
    background-image: url('../images/dots.gif');
    background-repeat: repeat;
    background-color: #00000080;
}

.page-content {
    background-color: #ffffffaa;
    color: #000;
    height: 100%;
    width: 85%;
    max-width: 100ch;
    margin: auto;
    padding: 1rem 3rem;
    border-left: solid 1px #fff;
    border-right: solid 1px #fff;
}

.page-content > section > iframe {
    padding: 25px;
    background-color: #fff;
}

#open_player {
    background: transparent;
    border: none;
    border-top: 1px solid #000;
    border-bottom: 1px solid #000;
    color: #000000;
    font-size: 70%;
    cursor: pointer;
    padding: .1em .5em;
    transition: 150ms ease-in-out;
}

#open_player:hover {
    background-color: #ffffff80;
}

#darbus-pic {
    float: left;
    height: 8lh;
    margin-right: 1.5em;
    border: var(--secondary-color) 5px outset;
}

.schedule > li {
    list-style-type: none;
}

.grid {
    font-size: 80%;
}

.archive a {
    margin-right: 2ch;
}

dl { font-size: 90%; }
dt { font-weight: 700; }
dd { margin-left: 3ch; margin-bottom: 0.5lh; }

#jesus {
    position: relative;
    width: 100%; height: 350px;
    background-image: url('../images/jesus.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position-y: 22%;
}

#sabbath-div {
    background-image: url('../images/SLTemple.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position-y: 15%;
}

blockquote {
    background-color: #ffffff22;
    color: #000;
    padding: 0.5rem 1.5rem;
}

blockquote footer {
    display: block;
    background-color: transparent;
    color: var(--tertiary-color);
    font-style: italic;
    padding: 0;
    text-align: right;
    border-color: var(--tertiary-color);
}

select#archive + button {
    background-color: var(--primary-color);
    color: #fff;
    padding: 0 2rem;
    border: solid 1px #fff;
    margin-left: 1ch;
    cursor: pointer;
}

select#archive { display: inline; width: 25ch; }

article {
    background-color: #fff;
    border: var(--primary-color) 3px solid;
    padding: 25px;
}

article date {
    font-size: 80%;
    font-weight: bold;
}

article h3 {
    margin-top: 0;
}

.DarbusShow h3 {
    margin: 1lh 0 0;
}

.DarbusShow ol li {
    margin-left: 3ch;
}

.request {
    color: var(--secondary-color);
}

.mashup {
    font-size: 75%;
}

.mashup::before { content: '['; }
.mashup::after { content: ']'; }

/* Navigation Menu Styles */
#logo { height: 60px; }

.nav-grid {
    display: grid;
    height: 59px;
    grid-template-columns: 160px auto;
    justify-items: right;
    align-items: center;
}

#menu-btn {
    font-size: 1.25rem;
    margin: 0.25rem 1.5rem;
    color: #fff;
    background-color: #000;
    border: none;
    display: none;
}

#nav-menu {
    display: inline-block;
    margin: 0.5rem 1rem;
    padding: 0;
}

nav li {
    display: inline;
    margin: 0;
    padding: 0.25rem 1rem;
    list-style-type: none;
    font-size: .75rem;
    border-radius: 1rem;
    transition: ease-in-out 250ms;
}

nav a {
    color: #fff;
    text-decoration: none;
}

#nav-menu li:not(.current):hover {
    background-color: var(--secondary-color);
    transition: ease-in-out 250ms;
}

li.current {
    background-color: var(--primary-color);
    color: #fff;
    font-weight: 700;
}

/* Schedule Grid Styles */
.grid {
    display: flex;
    flex-direction: row;
}

.grid > div {
    flex: 1 1 0px;
    padding: 5px;
}

.grid li {
    border-top: solid 1px var(--tertiary-color);
    border-bottom: solid 1px var(--tertiary-color);
}

.grid img {
    width: 100%; aspect-ratio: 1;
}

/* Contact Page Styles */
form {
    border: solid 1px #fff;
    padding: 10px 1rem;
}

fieldset {
    border: none;
}

input, select, option, textarea {
    display: block;
    width: 70%;
    background-color: #fff;
    margin: 0.5lh auto;
    color: var(--primary-color);
    border: solid 1px #333;
    font-size: 105%;
    outline-color: var(--primary-color);
    outline-width: 2px;
    padding: 0 5px;
}

input[type="submit"] {
    background-color: var(--primary-color);
    color: #fff;
    cursor: pointer;
}

/* Footer Styles */
footer {
    display: flex;
    font-size: .8rem;
    background: var(--secondary-color);
    padding: .5rem 1rem;
    border-top: solid 1px #fff;
    color: #fff;
}

footer * {
    vertical-align: middle;
}

footer a {
    color: #fff;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

footer div {
    flex-grow: 1;
}

footer div:nth-last-of-type(1) {
    text-align: right;
}

footer div:nth-last-of-type(2) {
    text-align: left;
}

#fbicon {
    height: 1lh;
}

@media (max-width: 842px) {
    html {
        font-size: 18px;
    }

    footer {
        font-size: 0.8rem;
    }

    /* Navigation Menu Styles */
    #menu-btn {
        display: inline;
    }

    #menu-btn:focus + #nav-menu,
    #menu-btn:active + #nav-menu,
    #nav-menu:hover {
        display: block;
    }

    #nav-menu {
        display: none;
        position: absolute;
        background-color: #000000;
        border-width: 0 0 1px 1px;
        border-style: solid;
        border-color: #fff;
        top: 59px;
        right: 0;
        margin: 0;
        padding: 0;
        z-index: 3;
    }

    #nav-menu li {
        display: block;
        text-align: center;
        padding: .25rem 1rem;
        margin: .25rem;
        font-size: 1.1rem;
        border-radius: 0;
    }

    .page-content { width: 100%; }

    .grid { flex-direction: column; }
}