/* Global font for all text in body */
body {
    font-family: 'Georgia', serif;
    background-color: #003874;
    /* background-image: url("/assets/img/RKC_Logo.jpg"); */
    background-repeat: repeat;
    background-position: center;
    overflow-wrap: break-word;
    min-width:400px;
    width: auto !important;
}

/* Navbar settings */
nav.navbar {
    background-color: #FFFFFF;
    /*background-color: #99CAEA;*/
    box-shadow: 0 2px 4px 0 rgba(0,0,0,.2);

    .navbar-nav > * {
        font-family: Arial, sans-serif;
        font-weight: bold;
        color: #B49759;
        text-shadow: rgb(0,0,0,0.7);
        text-transform: uppercase;
    }

    .navbar-logo-image {
        filter:drop-shadow(1px 1px 0 rgba(0,0,0,0.7));
        max-height: 70px;
        width: auto;
    }

    .navbar-nav {
        a {
            font-size: 18px;
            color: #003874;
        }

        .nav-item > * {
            &:hover {color: #99CAEA;}
            &:active {color: #B49759;}
        }

        .nav-link.show {
            color: #B49759;
            &:hover {color: #99CAEA;}
            &:active {color: #B49759;}
        }

        .dropdown-item {
            transition:
                background-color .2s ease,
                color .2s ease;
            background-color: transparent;
            text-transform: uppercase;
            font-weight: bold;
            font-size: 16px;
            &:hover {color: #99CAEA; background-color: #F8F9FA;}
            &:active {color: #B49759;}
            &.show {
                color: #B49759;
                &:hover {color: #99CAEA;}
                &:active {color: #B49759;}
            }
        }
    }

    #navbar_search {
        width: 23rem;
        color: #000000;
    }

    .dropdown-toggle {
        &::after {
            transition:
                margin .2s ease,
                transform .3s ease;
            display: inline-block;
            width: .7em;
            height: .7em;
            margin: -.6em 0 0 .2em;
            vertical-align: middle;
            content: "";
            border: solid;
            border-width: 0 .15em .15em 0;
            transform: rotate(45deg);
        }

        &.show::after {
            margin: .25em 0 0 .2em;
            transform: rotate(45deg) rotate3d(1,-1,0,180deg);
        }
    }

    .dropend.dropdown-toggle::after {
        transition:
            margin .2s ease,
            transform .3s ease;
        display: inline-block;
        width: .7em;
        height: .7em;
        margin: -.24em 0 0 0;
        vertical-align: middle;
        content: "";
        border: solid;
        border-width: 0 .15em .15em 0;
        transform: rotate(-45deg);
    }

    .dropend.dropdown-toggle.show::after {
        margin: -.24em 0 0 .31em;
        transform: rotate(-45deg) rotate3d(1,-1,0,180deg);
    }
}

/* Footer settings, including the form in the footer */
.footer-container {
    background-color: lightgray;
}

.footer-container .row {
    padding: 24px;
}

form.form-inline{
    display: flex;
    align-items: baseline;
}

/* Body container */
.body-container {
    display: flex;
    flex-direction: column;
    margin: 0px auto 0px auto;
    padding: 10px 0 24px 10px;
    background-color: white;
    min-height: 80vh;
    height: 100%;
    width: auto;
}

.body-container > * {
    animation: fadeIn 2s;
}

/* Body container fade in animation */
@keyframes fadeIn {
    0% { opacity: 0; }
    10% { opacity: 0; }
    100% { opacity: 1; }
}

/* Body container sizes based on screen width */
@media (min-width:768px) {
    div.body-container {
        padding: 24px 48px 48px 48px;
    }
}
@media (max-width:767px) {
    div.body-container {
        margin-left: 0px;
        margin-right: 0px;
        width: 100%;
        max-width: 100%;
        padding: 20px;
    }
}

/* Sidebar */
.sidebar {
    font-family: Arial, sans-serif;
    color: black;
    background-color: #F9F9F9;
    position: sticky;
    top: 130px;
}

.sidebar-title {
    padding-top: 10px;
    padding-bottom: 10px;
    text-align: center;
    font-weight: bold;
    font-size: 2em;
    color: #003874;
    line-height: 1em;
}

.sidebar-description {
    font-weight: bold;
}

.sidebar-calendar-body {
    padding-left: 0;
    padding-right: 0;
    padding-top: 0;
    padding-bottom: 1em;
    font-weight: bold;
    color: #003874;
}

.calendar-block {
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    background-color: #F9F9F9;
    -ms-overflow-style: none;  
    scrollbar-width: none; 
    max-height: calc(max(round(down,calc(100vh - 400px),65px), 130px) - 10px);
}

.calendar-block section {
  scroll-snap-align: start;
}

.calendar-block::-webkit-scrollbar {
    display: none;
}


.event-block-button {
    position: relative;
    width: 100%;
    height: 30px;
    padding: 5px;
    margin-top: 10px;
    margin-bottom: 10px;
    font-weight: bold;
    background-color: #E8E8E8;
    border-width: 1px;
    border-radius: 4px;
    line-height:0px;
    white-space: nowrap;
}

.event-block {
    position: relative;
    height: 55px;
    padding-top: 3px;
    padding-bottom: 2px;
    margin-bottom: 10px;
    font-weight: bold;
    background-color: #E8E8E8;
    border-radius: 4px;
    overflow: hidden;
    white-space: nowrap;
}

.calendar-block > section:last-of-type > .event-block {
    padding-bottom: 0px;
    margin-bottom: 0px;
}

.title-block {
    display: inline-block;
    position: absolute;
    left: 45px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    width: calc(100% - 45px);
}

.date-block {
    display: block;
    position: absolute;
    top: 5px;
    left: 5px;
    width: 35px;
    overflow: hidden;
    overflow-wrap: normal;
    text-align: center;
    font-size: 0.85em;
    font-weight: bold;
    border-radius: 5px;
    background: transparent;
}

.date-block > * {
    display: block;
    text-transform: uppercase;
}

.date-block-month {
    height: 20px;
    background-color: #003874;
    color: white;
    line-height: 1.7em;
}

.date-block-day {
    height: 25px;
    background-color: #FFFFFF;
    font-size: 1.3em;
    color: #003874;
    border: 2px solid #003874;
    border-radius: 0px 0px 5px 5px;
    line-height: 1.25em;
}

.time-block * {
    position: absolute;
    left: 45px;
    line-height: 1.15em;
    color: #003874;
}

/* Modal */
.modal-content * {
    font-family: Arial, sans-serif;
}

.modal-title {
    font-weight: bold;
    text-transform: none;
}

.modal-body {
    padding: 16px 0px 6px 30px;
}

.modal-element {
    padding-bottom: 10px;
    font-weight: bold;
}

.modal-text {
    display: block;
    padding-left: 30px;
    font-weight: normal;
}

#modal-btn-url, #modal-btn-map, #modal-btn-close {
    background-color: #003874;
    border-color: #000000;
    
    &:hover {background-color: #99CAEA;}
    &:active {background-color: #B49759;}
}

/* Wide Header Layout Elements */
#wideheader-div-image {
  height:325px;
  background-position:center;
  background-size:cover
}

#wideheader-div-text {
  text-align: center;
  color: #fff;
  text-shadow:2px 2px 4px black;
  position:absolute;
  top:200px;
  left:50%;
  transform:translate(-50%,0%);
}

/* TEXT ELEMENT SPECIFIC FONTS */

/* Lead paragraph */
p.lead-paragraph, div.body-container p:first-of-type {
    font-family: Arial, sans-serif;
    /*text-transform: uppercase;
    color: #B49759;*/
}

/* Short form text */
span {
    font-family: Arial, sans-serif;
    color: #B49759;
}

/* Primary Headings */
h1 {
    font-family: "Anton", "Arial Bold", sans-serif;
    font-size: 60px;
    font-weight: 400;
    color: #003874;
    padding-top: 0.3em;
    padding-bottom: 0.1em;
}

/* Subheadings */
h2, h3, h4, h5, h6 {
    font-family: 'Arial Bold', 'Arial Narrow Bold', sans-serif;
    font-weight: bold;
    font-size: 21px;
    padding: 12px 0 12px 0;
    color: #B49759;
}

/* Paragraph Text */
p {
    font-family: Arial, sans-serif;
}

/* List Items */
li {
    font-family: 'Arial Bold', 'Arial Narrow Bold', sans-serif;
}

