#form_error, #form_error2, #form_error3 {
    color: red;
    margin-top:10px;
}

/* BACKGROUND IMAGE AND ADJUSTMENTS */
/* Hide sideways overflow without making <body> a scroll container: `hidden` did, and that stopped the
   theme's position:sticky top bar from pinning (the burger menu scrolled away on phones). `clip` keeps
   the bar pinned; browsers older than Safari 16 ignore it and fall back to `hidden` as before. */
html, body {
    overflow-x: hidden;
    overflow-x: clip;
}


body {
    background: url('/assets/images/background.jpg') no-repeat center center fixed;
    background-size: cover;
    color:#ffffff;
    position: relative;
    max-width: 100vw;
}
/* Mobile-optimized background */
@media (max-width: 768px) {
    body {
        background: url('/assets/images/background_mobile_optimized.jpg'); /* or .webp */
    }
}
.page-title-box .page-title { 
	color:#ffffff; 
	font-size: 28px;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 1);
}
@media (max-width: 767.98px) {
	.page-title-box .page-title { 
	color:#ffffff; 
	font-size: 28px;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 1);
}
}
table {
    background-color: #e3e3e3 !important;
}
/* A label, note, or empty-state message placed directly on the fixed background
   photo (i.e. NOT inside a .card). Dark chip keeps it readable over any part of
   the image. Used by the card-grid pages (residents, guides, emergency). */
.bg-chip {
    display: inline-block;
    background: #322c24;
    color: #f0ece4;
    padding: 5px 13px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
}
.bg-highlight {
	background-color: #d9e2ff !important;
	font-weight: bold;
	font-size: 18px;
	color:#000000;
}

.total-row {
	font-weight: bold;
    background-color: #ccd9ff !important;
}

/*remove link styling when putting a link on a div */
a.no-link-style  {
  color: #000000;
  text-decoration: none;
  font-weight: normal;
}

/* Further reduce the spacing for the left menu items */
.side-nav .side-nav-item {
    margin-bottom: 2px; /* Further reduce the vertical spacing between items */
    padding: 2px 5px;   /* Further reduce the padding */
}

/* Optional: Adjust the spacing for the links inside the menu items */
.side-nav .side-nav-link {
    line-height: 1.1;  /* Make text even more compact */
    padding: 2px 5px;  /* Further reduce the padding inside the links */
}
.side-nav .side-nav-title {
    font-size: 14px; /* Adjust this value to your preference */
    padding: 10px 10px; /* Adjust the padding to ensure proper spacing */
}

.mklink {
    text-decoration: underline;
    cursor: pointer;
}
.card-link {
    display: inline-block;  
    width: 100%;	        /* Forces the span to start on a new line */
    line-height: 1.2;        /* Small line spacing, adjust as needed */
    color: black;            /* Black text color */
    text-decoration: underline; /* Underline the text */
    margin-top: 0.5em;       /* Optional: Add some space above the line */
    text-align: left;         /* Ensure the text within the span is left-aligned */
    padding: 0;               /* Remove any default padding that might affect alignment */
    margin: 2px 0px 2px 0px !important;     /* Remove default margin to avoid shifting */
    cursor: pointer;
}

/* form placeholder subtle */
input::placeholder,
textarea::placeholder {
  color: #ccc !important; /* light grey */
}

/* Modal container */
.card-modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 5000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0, 0, 0, 0.5); /* Black w/ opacity */
}

/* Modal content */
.card-modal-content {
    background-color: #fefefe;
    color:#000000;
    margin: 25% auto; /* 5% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 90%; /* Almost full screen */
    max-width: 800px; /* Maximum width for larger screens */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

/* Close button */
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Alert icon for inside buttons */
.alert-icon {
    display: inline-block;
    width: 14px;
    height: 14px;
    background: #dc3545; /* Bootstrap danger color */
    color: white;
    font-size: 10px;
    line-height: 14px;
    text-align: center;
    border-radius: 50%;
    margin-left: 4px;
  }
  
/* Menu */
.view-as-box {
	padding: 14px;
	margin: 5px;
	color: #000000;
	font-size: 15px;
	font-family: verdana;
	background-color: #e8e8e8;
	
}

/* Less padding for mobile */
@media (max-width: 576px) {
    .content-page {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}
/* Footer: the theme draws it with no background and faint grey text, which is invisible on the
   page photo. Style it like .bg-chip so "YYYY BYFC Ltd" can actually be read. */
.wrapper .footer {
    background: rgba(50, 44, 36, 0.85);
    color: #f0ece4;
    justify-content: center;
    font-weight: 600;
    height: 44px;
}
