/*     
Light blue body background: e3f2fd
New blue header: 97cee4
dark blue "Sharon": 002236
=== Old:
Darker blue footer: 0288d1
Orange accent: ffab40
*/

body {
	font-family: Arial, sans-serif;
	margin: 0;
	padding: 0;
	background-color: #e3f2fd;
	color: #333;
}
header {
	background-color: #97cee4;
	padding: 10px;
	text-align: center;
	font-family: Caveat;
	font-size: 20px;
	color: #ffab40;
	height: 15em;
}
header h1 {
	margin: 0;
	color: #ffab40;
	font-family: Chewy;
	font-size: 48px;
}

.macaronLogo {
	height: 15em;
}
.gallery {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	padding: 20px;
	margin: 20px;
	gap: 20px;
}
.macaron, .unknown {
	background-color: #fff;
	border: 1px solid #ddd;
	border-radius: 10px;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	overflow: hidden;
	width: 250px;
	text-align: center;
	cursor: pointer;
}

.unknown {
	cursor: default;
}

.macaron img, .unknown img {
	width: 100%;
	height: auto;
}
.macaron h3, .unknown h3 {
	margin: 10px 0;
	color: #002236;
	font-family: Chewy;
	font-weight: 400;
	font-size: 28px;
	padding: 0px 5px;
}
.macaron p, .unknown p {
	margin: 0 10px 10px;
	font-size: 14px;
	color: #555;
}
.modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.8);
	justify-content: center;
	align-items: center;
	z-index: 1000;
}
body.modal-open {
    overflow: hidden;
}
.modal-content {
	background-color: #fff;
	border-radius: 10px;
	padding: 20px;
	max-width: 500px;
	text-align: center;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}
.modal img {
	width: 100%;
	border-radius: 10px;
	margin-bottom: 15px;
}
.modal h3, .modal h2 {
	margin: 10px 0;
	color: #002236;
	font-family: Chewy;
	font-weight: normal;
}
.modal p, .modal li, .modal > div > div{
	color: #555;
	font-size: 14px;
}
.modal button {
	margin-top: 10px;
	padding: 10px 20px;
	background-color: #002236;
	color: #fff;
	border: none;
	border-radius: 5px;
	cursor: pointer;
}
.modal button:hover {
	background-color: #0c4e75;
}
footer {
	text-align: center;
	padding: 10px;
	background-color: #97cee4;
	color: #002236;
	margin-top: 40px;
}
#modal-macshell::before {
	content: 'Shell: ';
	font-weight: bold;
}
#modal-pricePerDozen::before {
	content: 'Price per batch (15): ';
	font-weight: bold;
}
#modal-macfilling::before {
	content: 'Filling: ';
	font-weight: bold;
}
.almondWarning {
	color: #d03717 !important;
	font-style: italic;
}

.linebreak {
	width: 25%;
	display: block;
	margin-left: auto;
	margin-right: auto;
}
.splashleft, .splashright {
	height: 40px;
	position: relative;
	top: 17px;
	padding-right: 5px;
}
.splashright {
	transform: scaleX(-1);
	padding-left: 5px;
}

.faqSection {
	width: 75%;
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}

.fanfavorite:before {
	content: '';
	display: inline-block;
	width: 144px;
	background-size: 144px;
	height: 85px;
	margin-top: -85px;
	background-image: url("../Images/Macarons/FanFavorite.png");
	position: relative;
	background-repeat: no-repeat;
	top: 75px;
	left: 53px;
}

.fanfavorite-img:before {
	content: '';
	display: inline-block;
	width: 144px;
	background-size: 144px;
	height: 85px;
	margin-top: -85px;
	background-image: url("../Images/Macarons/FanFavorite.png");
	position: relative;
	background-repeat: no-repeat;
	top: -370px;
	left: 167px;
	margin-right: -144px;
}
.fanfavorite img {
	margin-top: -20px;
}

.homeLink, a.homelink:visited. a.homeLink:link, a.homeLink:active, a.homeLink, a:visited {
	color: #002236 !important;
}

.instaIcon {
	height: 40px;
}
/* Media */
@media only screen and (max-width: 600px) {
  .macaron {
    width: 45%;
	
	h3 {
		font-size: 20px;
		padding: 5px;
	}
  }
  .splashleft, .splashright {
	  display: none;
  }
  
  .linebreak {
	  width: 60%;
  }
  .fanfavorite:before {
	  background-image: none;
  }
	.fanfavorite {
		background-color: #ffd5a0;
	}
	
	.fanfavorite-img:before {
		top: -50px;
		left: 0;
		margin-right: -144px;
	}
	
	.modalImageArrowButtonDiv {
		display: none;
	}
}

/* Carousel */
.macbutton-previous {
  transform: rotate(180deg);
  margin-left: -5px;
}

.modalImageArrowButtonDiv {
	position: absolute;
	width: 36.5em;
}

.modalImageArrowButtons {
	opacity: 0.7;
	display: flex;
	justify-content: space-between;
	margin-top: 40%;
}

.imageCarousel {
	scroll-snap-type: x mandatory;
	display: flex;
	gap: 8px;
	padding: 16px;
	list-style: none;
	overflow-x: scroll;
	scrollbar-width: none;
	-ms-overflow-style: none;
	
	img {
		flex-shrink: 0;
		width: 80%;
		scroll-snap-align: center;
	}

}

.imageCarousel:-webkit-scrollbar {
  display: none;
}

.carouselImage {
	width: 100%;
}

.macaronSearch {
  margin: 20px auto;
  max-width: 520px;
  padding: 0 16px;
}

#macaronSearch {
  width: 100%;
  padding: 10px 12px;
  font-size: 1rem;
  border-radius: 10px;
  box-sizing: border-box;
}

.macaronSearchCount {
  margin: 8px 4px 0;
  font-size: 0.95rem;
  opacity: 0.8;
}

.searchWrapper {
  position: relative;
}

#clearSearch {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
  color: #555;
  display: none;
}

#clearSearch:hover {
  color: #002236;
}

/* Scroll-to-top button (mobile only) */
#scrollToTop {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background-color: #97cee4; /* header blue */
  color: #002236; /* dark Sharon blue */
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  display: none;
  z-index: 999;
}

/* Hover / tap feedback */
#scrollToTop:active {
  transform: scale(0.95);
}

/* Mobile only */
@media only screen and (min-width: 601px) {
  #scrollToTop {
    display: none !important;
  }
}

@media only screen and (max-width: 600px) {
  .macaronSearchCount {
    text-align: center;
  }
}