/*!
Theme Name: SDBX Studio
Theme URI: http://underscores.me/
Author: Craig Tran
Author URI: https://www.sdbxstudio.com
Description: Description
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: sdbx-wp-theme
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

SDBX Studio is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/

body {
    font-family: 'brandon-grotesque', sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 20px;
}
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'brandon-grotesque', sans-serif;
}
article.post ul {
    list-style: disc !important;
}
article.post ol {
    list-style: number !important;
}
article.post h2 {
}

p {
    margin-bottom: 1rem;
}
.wp-block-button__link {
    border-radius: 0;
}
:root :where(.wp-element-button, .wp-block-button__link) {
    color: #fff !important;
    text-decoration: none !important;
    background-color: #025077;
    padding: 0.25rem 1rem !important;
    font-size: 1rem;
}
:root :where(.wp-element-button, .wp-block-button__link):hover {
    background-color: #082f49;
}
abbr:where([title]) {
    text-decoration: none;
}

.menu-link[data-has-children] {
    cursor: text;
}
footer li.current-menu-item a span {
    color: rgb(255 255 255 / 50%);
}
#menu-footer-1 li a:hover {
    text-decoration: underline;
}
#menu-footer-3 li a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

#menu-footer-3 li a::after {
    content: '';
    width: 0.75rem;
    height: 0.75rem;
    border-right: 2px solid #27aabc;
    border-bottom: 2px solid #27aabc;
    transform: rotate(-45deg);
    display: inline-block;
    position: relative;
    left: 0;
    transition-property: all;
    transition-duration: 0.3s;
}
#menu-footer-3 li:hover a::after {
    left: 0.5rem;
}
.event-content a {
    color: #0071a5;
    text-decoration: underline;
}

.entry-content .blue-button a {
    background-color: #025077;
    padding: 0.5rem 1rem;
    display: inline-block;
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    transition-duration: 0.3s;
    text-decoration: none;
    font-size: 1.125rem;
}
.entry-content .blue-button a:hover {
    background-color: #082f49;
}

.rslides {
    position: relative;
    list-style: none;
    overflow: hidden;
    width: 100%;
    padding: 0;
    margin: 0;
}

.rslides li {
    -webkit-backface-visibility: hidden;
    position: absolute;
    display: none;
    width: 100%;
    left: 0;
    top: 0;
}

.rslides li:first-child {
    position: relative;
    display: block;
    float: left;
}

.rslides img {
    display: block;
    height: auto;
    float: left;
    width: 100%;
    border: 0;
}
.rslides_tabs {
    z-index: 10;
    position: absolute;
    bottom: 5px;
    left: 0;
    right: 0;
    width: auto;
    text-align: center;
}
.rslides_tabs li {
    width: auto;
    display: inline-block;
    margin: 0 5px;
    border-radius: 50%;
    width: 12px;
    height: 12px;
    border: 2px solid #fff;
    background: transparent;
    cursor: pointer;
    color: transparent;
}
.rslides_tabs li.rslides_here {
    background: #fff;
}

/* Page Slideshow */
.page-slideshow {
    position: relative;
}
.rslides_nav {
    position: absolute;
    top: 40%;
    z-index: 9;
}
.rslides_nav img {
    width: 16px;
}
.rslides_nav.prev {
    left: -40px;
}
.rslides_nav.next {
    right: -40px;
}

/* Close Button */
.close-icon {
    margin: auto;
    text-align: center;
    width: 1.5rem;
    height: 1.5rem;
    display: block;
    position: relative;
    cursor: pointer;
}
.close-icon::before,
.close-icon::after {
    content: '';
    background: #000;
    position: absolute;
    height: 100%;
    width: 1px;
}
.close-icon.close-white::before,
.close-icon.close-white::after {
    background: #fff;
}
.close-icon::before {
    transform: rotate(45deg);
}
.close-icon::after {
    transform: rotate(-45deg);
}

/* Header Nav */

header .sub-menu ul.menu li.menu-item a,
footer .menu li a {
    display: inline-block;
    border-bottom: 2px solid transparent;
    transition: 0.3s;
    line-height: 1.2;
}
header .sub-menu ul.menu li.menu-item a {
    display: inline-block;
    margin-top: 0.5rem;
}
header .sub-menu ul.menu li.menu-item:hover a,
header .sub-menu ul.menu li.current-menu-item a,
footer .menu li:hover a {
    display: inline-block;
    border-bottom: 2px solid #b57916;
}

/* Hamburger Icon */
#hamburger-1.is-active .line:nth-child(2) {
    opacity: 0;
}

#hamburger-1.is-active .line:nth-child(1) {
    -webkit-transform: translateY(0.75rem) rotate(45deg);
    -ms-transform: translateY(0.75rem) rotate(45deg);
    -o-transform: translateY(0.75rem) rotate(45deg);
    transform: translateY(0.75rem) rotate(45deg);
}

#hamburger-1.is-active .line:nth-child(3) {
    -webkit-transform: translateY(-1rem) rotate(-45deg);
    -ms-transform: translateY(-1rem) rotate(-45deg);
    -o-transform: translateY(-1rem) rotate(-45deg);
    transform: translateY(-1rem) rotate(-45deg);
}
#site-search-input::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
    height: 1.25rem;
    width: 1.25rem;
    cursor: pointer;
    background-color: #569bc2; /* or var(--your-primary-color) */
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'><path d='M18 6L6 18M6 6l12 12'/></svg>")
        no-repeat center / contain;
    mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'><path d='M18 6L6 18M6 6l12 12'/></svg>")
        no-repeat center / contain;
}
.event-top-text a {
    text-decoration: underline;
}
.event-top-text strong {
    font-weight: bold;
}
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .fade-in-up {
        transition: none;
        transform: none;
        opacity: 1;
    }
}

@media only screen and (max-width: 767px) {
    .sub-nav-header {
        background: url('./images/caret-left.png') no-repeat center left;
        padding-left: 30px;
    }

    #site-sub-navigation .menu {
        margin-left: 30px;
    }
    header .search-icon img {
        width: 2.25rem;
    }
    header .search-icon,
    header .search-icon:hover {
        border-bottom: 0;
        padding: 0 0 0 2rem;
    }
    .rslides_tabs {
        z-index: 10;
        position: absolute;
        bottom: 30px;
        left: 0;
        right: 0;
        width: auto;
        text-align: center;
    }
}

@media only screen and (min-width: 1024px) {
    #menu-main ul.submenu li a {
        text-align: left !important;
    }
    #menu-main li.donate-link a:hover {
        background-color: #082f49;
    }
}
