/*
 * Styles the old site carried inside individual pages, gathered in one place.
 * main.css is the old stylesheet, unchanged.
 */

/* Pages that shrink the banner title on narrow screens. */
@media only screen and (max-width: 1000px) {
  .pagehead.pagehead-compact h1 {
    font-size: 2.5em;
  }
}

/* The old header relied on Bootstrap's script to show sub-menus; this places them the same way. */
.navbar .nav-item {
  position: relative;
}
@media (min-width: 768px) {
  .navbar .nav-item > .dropdown-menu.show {
    position: absolute;
    top: 100%;
    left: 0;
  }
}

/* Admin screens shown in a pop-up frame. */
.bare-admin {
  padding: 12px;
  background: #fff;
}
.bare-admin table tr {
  vertical-align: top;
}
.bare-admin table td,
.bare-admin table th {
  padding: 5px 10px;
}

/* The home page sat on a navy page background. */
.home-page {
  background-color: rgba(0, 55, 104, 1);
}

/* Events & Activities and Board Meetings: the event cards and the small "+" admin button. */
.itti {
  position: absolute;
}
.ittia {
  background-color: rgba(63, 155, 252, 0.13);
  border: solid 1px rgba(63, 155, 252, 0.13);
  position: relative;
  top: -12px;
}
.events-list .card {
  margin: 0 0.5em;
  box-shadow: 2px 6px 8px 0 rgb(22 22 26 / 18%);
  border: none;
  margin-bottom: 20px;
}
.events-list .card-header:first-child {
  border-radius: calc(0.25rem - 1px) calc(0.25rem - 1px) 0 0;
}
.events-list .card-header {
  padding: 0.5rem 1rem;
  margin-bottom: 0;
  background-color: rgba(0, 0, 0, 0.03);
  border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

.bm-remind-link {
  font-size: 0.9em;
}

/* Grant application form (from grantApplication/index.php). */
.grantForm {
  margin-bottom: 42px;
}
.grantField textarea {
  width: 100%;
  padding-top: 15px;
  padding-left: 15px;
}
.grantField.med {
  width: 50%;
  padding-top: 10px;
  padding-right: 20px;
  float: left;
}
.grantField.sm {
  width: 25%;
  padding-top: 10px;
  padding-right: 20px;
  float: left;
}
.grantField.last {
  padding-right: 0;
}
.grantField input {
  width: 100%;
  padding-top: 10px;
  padding-left: 10px;
}
.grantField label {
  position: relative;
  top: 14px;
  left: 20px;
  padding-left: 10px;
  padding-right: 10px;
  background-color: white;
  font-weight: bold;
  font-size: 1.1em;
}
.grantForm fieldset,
.grant-admin fieldset {
  padding: 20px;
  border-radius: 5px;
}
.grantForm legend,
.grant-admin legend {
  font-weight: bold;
}
.submitDiv {
  display: flex;
  justify-content: center;
}
.submitBtn {
  min-height: 47px;
  background-color: rgba(241, 98, 35, 1);
  font-size: 22px;
  padding: 0 22px;
  font-weight: bold;
  color: white;
}
.grantForm input.visited:invalid,
.grantForm textarea.visited:invalid {
  border: 2px solid red;
}
.grantForm input.visited:valid,
.grantForm textarea.visited:valid {
  border: 3px solid green;
}
h3.errorMsg {
  color: red;
  border: solid 2px red;
  padding: 12px;
  font-weight: bold;
  width: 95%;
  margin: 40px auto 20px auto;
}
/* The read-only application view in the grant admin. */
.grant-admin .grantField label {
  position: static;
  display: block;
  padding-left: 0;
}
.grant-admin .inputFromUser {
  display: block;
  min-height: 1.5em;
}
.grant-admin fieldset {
  overflow: hidden;
  margin-bottom: 16px;
}

/* ── Rules copied from individual old pages ─────────────────────────── */
/* From lodging/index.php */
	a.emmett{
		color:white;
		display:block;
		height:100%;
	}
	a.emmett:hover{
		color:#47a7d7;
		
	}

/* From guide/index.php */
	.sidebyside{
		display: flex; flex-direction: row;
	}
@media only screen and (max-width: 600px) { 
	.sidebyside{
		flex-direction: column;
	}
}

/* From bayBucks/index.php (first style block) */
.note {
	text-decoration: underline;
	margin-left: 20px;
}

/* From attractions/index.php and bayBucks/index.php */
a.expandlink{
	display:block;
	height:100%;	 
}
a.expandlink, a.expandlink:hover{
	color:white;	
	text-decoration:none; 
}
	a.expandlink:hover{
	color:#47a7d7;	 
}

/* From bayBucks/index.php (third style block). The old page wrote section, h4, ul, ul li and strong as bare element rules; here they are limited to the Bay Bucks business cards so they cannot affect other pages. */
.business-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 20px;
  margin-bottom:20px;
}

.business-info {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  max-width: 400px;
  padding: 0;
  background-color: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4);
  flex: 1;
  min-width: 300px;
  border: solid 1px #043476;
}

.pagecontentwrap h3.business-name {
	text-align: center;
	
	background-color: #043476;
	width: 100%;
	padding: 8px;
	margin: 0;
	color: #91c9d2;
	border-radius: 8px 8px 0 0;
}

.business-info section {
  padding:0 20px;
}
.business-address p {
    margin: 0;
    padding: 0;
    font-size: 1.3em;
    text-align: center;
}
.business-address p.business-phone {
    font-size: 1em;
}

.business-info h4 {
  font-size: 1.5em;
  color: #333;
  border-bottom: 2px solid #043476;
  padding-bottom: 5px;
  margin-bottom: 10px;
}

.business-info ul {
  list-style: none;
  padding-left: 0;
}

.business-info ul li {
  font-size: 1.1em;
  margin: 0;
}

.business-info strong {
  font-weight: bold;
}

.contact a {
  color: #007bff;
  text-decoration: none;
}

.contact a:hover {
  text-decoration: underline;
}

.early-bird p,
.features ul li,
.schedule ul li {
  font-size: .9em;
}

.schedule ul li,
.features ul li {
  margin: 0;
}

/* From /services/ (services/index.php) */
.categlink a:visited:hover, .categlink a:hover{
	color:rgba(0, 55, 104, 1) !important;
}

/* The old stylesheet shows every block inside the page content, including the closed "Manage Events"
   pop-up; the old page hid it with a script. Keep it hidden until it is opened. */
#adminModal:not(.show) {
  display: none !important;
}
