/* Fix Typography */
body {
    font-family: 'Open Sans', sans-serif !important;
    background-color: #f8f9fa;
    color: #2d3339;
}

/* Apply to all heading levels */
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: 'Open Sans Condensed', sans-serif;
    font-weight: 500;
}

.hero-bg {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7)), url("https://marathonofsport.com/img/feature-1000.jpg") no-repeat center center;
    background-size: cover;
    width: 100%;
}

/* Mobile Tweak (Portrait Phones) */
@media (max-width: 767.98px) {
    .hero-bg {
        /* Ensure there is enough padding so the fixed navbar doesn't cover the Title */
        padding-top: 110px !important; 
        min-height: auto !important; /* Allow content to dictate height on small screens */
        padding-bottom: 50px;
    }
    
    .display-4 {
        font-size: 2.2rem; /* Slightly smaller text for mobile */
    }
   
}

.profile-img {
    width: 100%;
    max-width: 320px; /* Limits size on desktop */
    aspect-ratio: 1 / 1; /* Forces a perfect square */
    object-fit: cover; /* Prevents stretching the actual photo */
    border-radius: 50%; /* Makes the square a circle */
    display: block;
    margin: 0 auto;
}

/* Mobile Tweak */
@media (max-width: 767.98px) {
    .profile-img {
        max-width: 220px; /* Slightly smaller circle for mobile screens */
    }
}

/* Fix Progress Bar (Bootstrap 5) */
.progress {
    background-color: #e9ecef;
    border-radius: 50px;
    overflow: hidden;
}

/* Restore the Button Checkbox looks */
.button-checkbox button {
    border: 2px solid #dee2e6;
    font-weight: 600;
    margin-bottom: 5px;
    transition: all 0.2s;
}

.button-checkbox button:hover {
    border-color: #dc3545;
    background: #fff5f5;
}

.state-icon {
    margin-right: 10px;
}


/* Ensure the brand and buttons stay on one line, but allow the menu to wrap below */
.navbar > .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* On mobile, the collapse should take up the full width below the logo/buttons */
@media (max-width: 991.98px) {
    .navbar-collapse {
        flex-basis: 100%;
        flex-grow: 1;
    }
    
    /* Logo scaling to prevent squishing the buttons */
    .nav-logo {
        height: 30px; 
        max-width: 100%;
    }
}

@media (min-width: 992px) {
    .nav-logo {
        height: 40px;
    }
}

/* Remove border-top on desktop menu items */
@media (min-width: 992px) {
    .navbar-nav .nav-item {
        border-top: none !important;
    }
}


/* Leaderboard Styling */
.table thead th {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #6c757d;
}

.table tbody td {
    vertical-align: middle;
    padding: 1rem 0.75rem;
}

/* Teammate List */
#div-teammates .card-body li:hover {
    background-color: #f8f9fa;
}

/* Progress bar transition */
.progress-bar {
    transition: width 1.5s cubic-bezier(0.1, 0, 0, 1) !important;
}

.jumbotron { background-image: url( "https://marathonofsport.com/img/feature-1000.jpg" ); background-size: cover; background-position: top center; min-height: 75vh }
.jumbotron .container { color: #fff; }

.h1-hero { color: #fff; }
h2       { font-family: "Open Sans Condensed", arial }

.progress { height: 40px; }
.progress-bar { line-height: 40px; font-weight: bold;}


#scrollbox            { height:300px;overflow:hidden; }
#scrollbox ul         { padding: 0px 10px; }
#scrollbox ul li      { list-style: none; padding: 4px 10px; }
#scrollbox ul li span { float: right; }
li.odd                { background-color: #e9e9e9 ; }

.panel-body ul { padding: 0px 10px; }
.panel-body li { list-style: none; padding: 4px 10px; }

/*----------------------------------- 
		About Stats
------------------------------------*/
#stats{
	background:#2d3339;
	padding:3em 0;
	color:#8c989e;
	text-align:center;
}

#div-sponsor-help {
	background:#2d3339;
	padding:3em 0;
	color:#eee;
}

#dashboard #stats{
	margin-left:260px;
}

#stats h3{
	color:#fff;
	font-size:2.5em;
	text-transform:uppercase;
	font-weight:900;
	margin-bottom:18px;
}

#stats h4{
	font-size:1.7em;
	color:#fff;
	letter-spacing:1px;
	font-weight:900;
	margin-bottom:1em;
}

.header-caption{
	font-size:1.5em;
	font-weight:100;
	line-height:1.45;
}

#stats .header-caption{
	max-width:70%;
	margin-left:auto;
	margin-right:auto;
}

#stats ul{
	list-style:none;
	margin:2em 0 0 0;
	padding:0;
	display:table;
}

#stats li{
	width: 33%;
	padding:0 15px;
	display:inline-block
}

#stats li p{
	font-size:1.1em;
	font-weight:100;
}

.stat-icon{
	height:100px;
}

.stat-icon img{
	vertical-align:middle;
}

.li-navbar-donate { 
	background-color: #be0f34;
	color: #fff;
}


.btn-danger {
	background-image: linear-gradient(to bottom, #be0f34 0, #c12e2a 100%);
}


h5.soathlete-name {
	font-family: 'Open Sans Condensed', 'Open Sans', arial, helvetica, sans-serif;
	font-size: 22px;
	text-transform: uppercase;
	font-weight: bold;
}


#div-bio img {
	display: block;
    max-width: 100%;
    height: auto;
	/* margin-bottom: 20px; */
}


/* Make the button look like a real toggle */
.button-checkbox button {
	transition: all 0.2s ease-in-out;
	border-width: 2px;
	font-weight: 600;
	text-align: left;
	display: flex;
	align-items: center;
	justify-content: flex-start;
}

/* Hover effect to show it is clickable */
.button-checkbox button:hover {
	cursor: pointer;
	box-shadow: 0 4px 8px rgba(0,0,0,0.15);
	transform: translateY(-1px);
	background-color: #f8f9fa;
}

/* Custom icon spacing */
.state-icon {
	margin-right: 12px;
	font-size: 1.2rem;
}

/* Style for the "Off" state to make it look like a selectable slot */
.btn-outline-secondary {
	border-color: #dee2e6 !important;
	color: #6c757d !important;
	background-color: #ffffff;
}

/* Style for the "On" state */
.btn-success.active {
	background-color: #198754 !important;
	border-color: #146c43 !important;
	box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

/* Apple Pay Button */
@supports (-webkit-appearance: -apple-pay-button) {
    .apple-pay-button {
        display: block;
        -webkit-appearance: -apple-pay-button;
        -apple-pay-button-type: donate;
        -apple-pay-button-style: black;
        width: 100%;
        min-height: 50px;
        border-radius: 8px;
    }
}


/* Fallback if the browser doesn\'t support the native class but JS detected session */
.apple-pay-button-fallback {
	background-image: url("https://applepay.cdn-apple.com/badge/en-US/black/donate.svg");
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	background-color: black;
	border-radius: 5px;
	padding: 15px;
}






.navbar-toggler {
    width: 20px;
    height: 20px;
    position: relative;
    transition: .5s ease-in-out;
}

.navbar-toggler,
.navbar-toggler:focus,
.navbar-toggler:active,
.navbar-toggler-icon:focus {
    outline: none;
    box-shadow: none;
    border: 0;
    position: relative;
}

.navbar-toggler span {
    margin: 0;
    padding: 0;
}

.toggler-icon {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: #ccc;
    border-radius: 1px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.middle-bar {
    margin-top: 0px;
}


/* State when the navbar is collapsed */

.navbar-toggler.collapsed .top-bar {
    position: absolute;
    top: 0px;
    transform: rotate(0deg);
}

.navbar-toggler.collapsed .middle-bar {
    opacity: 1;
    position: absolute;
    top: 10px;
    filter: alpha(opacity=100);
}

.navbar-toggler.collapsed .bottom-bar {
    position: absolute;
    top: 20px;
    transform: rotate(0deg);
}

/* when navigation is clicked */

.navbar-toggler .top-bar {
    top: inherit;
    transform: rotate(135deg);
}

.navbar-toggler .middle-bar {
    opacity: 0;
    top: inherit;
    filter: alpha(opacity=0);
}

.navbar-toggler .bottom-bar {
    top: inherit;
    transform: rotate(-135deg);
}

#mainNav {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  background-color: #333333;
  transition: background-color 0.2s ease;
}
#mainNav .navbar-brand {
  font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-weight: 700;
  color: #212529;
}
#mainNav .navbar-brand img {
  max-width:250px;
}

#mainNav .navbar-nav .nav-item .nav-link {
  color: #6c757d;
  color: #eee;
  font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.75rem 0;
  text-transform: uppercase;
}
#mainNav .navbar-nav .nav-item .nav-link:hover, #mainNav .navbar-nav .nav-item .nav-link:active {
  color: #9f1526;
}
#mainNav .navbar-nav .nav-item .nav-link.active {
  color: #9f1526 !important;
}
@media (min-width: 992px) {
  #mainNav {
    box-shadow: none;
    background-color: transparent;
  }
  #mainNav .navbar-brand {
    color: rgba(255, 255, 255, 0.7);
  }
  #mainNav .navbar-brand:hover {
    color: #fff;
  }
  #mainNav .navbar-brand img {
    max-width:300px;
  }
  #mainNav .navbar-nav .nav-item .nav-link {
    color: rgba(255, 255, 255, 0.7);
    padding: 0 1rem;
  }
  #mainNav .navbar-nav .nav-item .nav-link:hover {
    color: #fff;
  }
  #mainNav .navbar-nav .nav-item:last-child .nav-link {
    padding-right: 0;
  }
  #mainNav.navbar-shrink {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    /* background-color: #fff; */
	background-color: #333333;

  }
  #mainNav.navbar-shrink .navbar-brand {
    color: #212529;
  }
  #mainNav.navbar-shrink .navbar-brand:hover {
    color: #9f1526;
  }
  #mainNav.navbar-shrink .navbar-nav .nav-item .nav-link {
    /*color: #212529;*/
  }
  #mainNav.navbar-shrink .navbar-nav .nav-item .nav-link:hover {
    color: #9f1526;
  }
}

header.masthead {
  height: 100vh;
  /* padding-top: 10rem;*/
  padding-bottom: calc(10rem - 4.5rem);
/*   background: linear-gradient(to bottom, rgba(92, 77, 66, 0.8) 0%, rgba(92, 77, 66, 0.8) 100%), url("../assets/img/bg-masthead.jpg"); */
  background: linear-gradient(to bottom, #9f152688 0%, #9f152688 100%), url("/img/feature-1000.jpg"); */
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  background-size: cover;
  background-position: 35% top
}
header.masthead h1, header.masthead .h1 {
  font-size: 2.25rem;
}
@media (min-width: 992px) {
  header.masthead {
    height: 100vh;
    min-height: 40rem;
    /* padding-top: 4.5rem; */
    padding-bottom: 0;
    background-attachment: fixed;
  }
  header.masthead p {
    font-size: 1.15rem;
  }
  header.masthead h1, header.masthead .h1 {
    font-size: 3rem;
  }
}
@media (min-width: 1200px) {
  header.masthead h1, header.masthead .h1 {
    font-size: 3.5rem;
  }
}
@media (max-width: 992px) {
  #mainNav.navbar-shrink {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
	background-color: #333333;

  }
}


/* Ensure the toastr background is 100% solid */
#toast-container > div {
    opacity: 1 !important;
}

/* Optional: Make the text pop a bit more */
.toast-title {
    font-weight: 800 !important;
}

.toast-message {
    font-weight: 500;
}