/* Layout */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

header {
    border-bottom: 1px solid #c7c7c7;
    background: #fff;
    width: 100%;
    transition: all 0.5s ease-out 0s;
    top: -100px;
    z-index: 1000;
}

header.shrink {
    opacity: 0.9;
    position: fixed;
    top: 0;
    left: 0;
}

.title a {
    font-weight: 600;
    font-size: 1.8em;
    color: #c7c7c7;
    text-decoration: none;
}

.btnBackToTop {
    background: none;
    border: none;
    position: fixed;
    bottom: 0;
    right: 0;
    width: 70px;
    height: 70px;
    z-index: 100;
    cursor: pointer;
}

.btnBackToTop i {
    font-size: 60px;
    color: #c7c7c7;
}

.btnBackToTop i:hover {
    color: #e0e0e0;
}

.footerUp {
    padding-top: 20px;
    padding-bottom: 26px;
    background: rgb(53, 98, 56);
}

.footerDown {
    background: #525252;
}

.footerDown p {
    margin: 16px 0;
}

.wrapper {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

.content {
    flex: 1 0 auto;
    margin-bottom: 40px;
}

footer {
    flex: none;
    color: white;
}

footer a {
    color: #cecaca;
}

footer a:hover, footer a:focus {
    color: #fff;
}

footer h4 {
    margin-top: 32px;
}

.latestPosts li:not(:last-child) {
    border-bottom: 1px dotted #fff;
    padding-bottom: 5px;
    margin-bottom: 5px;
}

/* Home */
.mainText {
    margin: 0 auto;
    max-width: 650px;
}

.features {
    margin-top: 40px;
}

.features .media {
    margin-top: 20px;
}

.marginTop20 {
    margin-top: 20px;
}

.marginTop40 {
    margin-top: 40px;
}

.staff .media {
    margin-top: 5px;
}

/* Contact */
.map {
    height: 300px;
}

/* Carousel */
.carousel-img {
    max-width: 100%;
    object-fit: contain;
    margin: 0 auto;
}

/* Nav menu */
.navbar-nav .nav-item + .nav-item {
    border-left: 1px solid #ccc;
}

.navbar-nav .nav-link {
    padding: 6px 22px !important;
    color: #333 !important;
    white-space: nowrap;
}

.navbar-nav .nav-link:hover {
    background-color: rgba(53, 98, 56, 0.1);
    color: #111 !important;
}

.navbar-nav .nav-link.active {
    background-color: rgb(53, 98, 56);
    color: #fff !important;
    font-weight: 600;
}

@media (max-width: 767.98px) {
    .navbar-nav {
        border: none;
        margin-top: 8px;
    }
    .navbar-nav .nav-item + .nav-item {
        border-left: none;
        border-top: 1px solid rgb(53, 98, 56);
    }
}

/* Blog */
.blogImage {
    width: 100%;
}

.blogNavBar {
    margin-top: 20px;
}

/* Buttons */
a {
    color: rgb(53, 98, 56);
}

a:hover {
    color: rgb(125, 100, 30);
}

.btn-primary {
    background: rgb(53, 98, 56);
    border-color: rgb(53, 98, 56);
}

.btn-primary:hover, .btn-primary:focus {
    background: rgb(125, 100, 30);
    border-color: rgb(125, 100, 30);
}

.btn-donate {
    background-color: #C44700;
    border-color: #C44700;
    color: white;
}

.btn-donate:hover, .btn-donate:focus {
    background-color: #993700;
    border-color: #993700;
    color: white;
}

.info {
    font-size: 80%;
    font-style: italic;
}

/* Staff */
.staff-card {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.staff-card img {
    width: 110px;
    margin-right: 1rem;
    flex-shrink: 0;
}

/* Accessibility */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 2000;
    padding: 10px 16px;
    background: #000;
    color: #fff;
    text-decoration: underline;
    font-weight: 600;
}

.skip-link:focus,
.skip-link:focus-visible {
    left: 8px;
    top: 8px;
    outline: 3px solid #fff;
    outline-offset: 2px;
    color: #fff;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

main:focus,
main:focus-visible {
    outline: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid #1f3f22;
    outline-offset: 2px;
    box-shadow: 0 0 0 1px #fff;
}

.btn:focus-visible {
    outline: 3px solid #1f3f22;
    outline-offset: 2px;
}

.content a {
    text-decoration: underline;
}

.content a.btn,
.content a.nav-link,
.content a.navbar-brand,
.content a.carousel-control-prev,
.content a.carousel-control-next {
    text-decoration: none;
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link[aria-current="page"] {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.required-mark {
    color: #b30000;
    margin-left: 2px;
}

@media (prefers-reduced-motion: reduce) {
    header {
        transition: none !important;
    }
    .carousel-item {
        transition: none !important;
    }
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
