/* dark and light mode colors */
:root {
  --base-color: #f5f5f4;
  --base-variant: #cccccc;
  --text-color: #0d1b2a;
  --secondary-text: #1b263b;
  --primary-color: #778da9;
  --accent-color: #415a77;
  --link-text: #f5f5f4;
  font-family: sans-serif;
  interpolate-size: allow-keywords;
}

html {
  /*font-size: 10px;*/
  font-size: 62.5%;
}

.darkmode {
  --base-color: #0d1b2a;
  --base-variant: #1b263b;
  --text-color: #f5f5f4;
  --secondary-text: #cccccc;
  --primary-color: #778da9;
  --accent-color: #415a77;
  --link-text: #f5f5f4;
}

/* dark and light mode switch */
#theme-switch {
  height: 4rem;
  width: 4rem;
  padding: 0;
  border-radius: 50%;
  background-color: var(--base-variant);
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0.4rem;
  right: 2rem;
  z-index: 100;
  border: none;
  color: var(--link-text);
  text-align: center;
  text-decoration: none;
  font-size: 1.6rem;
  cursor: pointer;
  transition: 0.3s ease-in-out;
}

#theme-switch:hover,
#theme-switch:focus {
  filter: brightness(0.8);
  transform: scale(1.1);
  box-shadow: rgba(0, 0, 0, 0.35) 0 5px 15px;
}

.darkmode #theme-switch:hover,
.darkmode #theme-switch:focus {
  filter: brightness(1.2);
  transform: scale(1.1);
  box-shadow: rgba(0, 0, 0, 0) 0 5px 15px;
}

#theme-switch svg {
  fill: var(--primary-color);
}

#theme-switch svg:last-child {
  display: none;
}

.darkmode #theme-switch svg:first-child {
  display: none;
}

.darkmode #theme-switch svg:last-child {
  display: block;
}

/* resets */
* {
  margin: 0;
  padding: 0;
}

/* setting anchor style when not using a button */
a {
  text-decoration: none;
  color: var(--text-color);
}

/* base styling for body and buttons */
body {
  min-height: 100vh;
  background-color: var(--base-color);
  color: var(--text-color);
  font-size: 1.6rem;
}

#main {
  min-height: calc(100vh - 6rem);
}

.container {
  max-width: 140rem;
  margin: 0 auto;
}

/* Navbar */
.logo {
  max-height: 4rem;
  border-radius: 50%;
  margin: 0.5rem;
  background-color: #415a77;
}

nav {
  background-color: var(--base-variant);
}
nav ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  display: flex;
}

nav li {
  float: left;
}

nav li a {
  display: block;
  color: var(--text-color);
  text-align: center;
  padding: 1.6rem 1.8rem;
  text-decoration: none;
}

/* Change the link color on hover */
nav li a:hover,
nav li a:focus {
  background-color: var(--primary-color);
  color: var(--base-color);
}

/* Search Bar */
.searchLi {
  margin-left: auto;
  margin-right: 1rem;
}

.searchInput {
  height: 3rem;
  width: 15rem;
  border-radius: 0.5rem;
  border: 1px solid black;
  padding: 0.5rem;
}

.searchInput:focus {
  outline: none;
}

/* footer */
footer {
  position: static;
  bottom: 0;
  width: 100%;
  background-color: var(--base-variant);
}

footer .container {
  font-style: italic;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 6rem;
}

#copyright svg:first-child {
  display: none;
}

.darkmode #copyright svg:last-child {
  display: none;
}

.darkmode #copyright svg:first-child {
  display: inline-block;
}

/* title styling */
.title {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  font-style: italic;
  font-size: 4rem;
  margin: 2rem auto;
}

/* styling for nav bar in store list */
.storeListNav {
  background-color: var(--base-variant);
  border-radius: 0 0 0.5rem 0.5rem;
}

.storeListNav ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  display: flex;
}

/* nothing div on store list page */
#nothing {
  display: none;
  margin: auto;
  font-size: 4rem;
  font-style: italic;
  text-align: center;
  align-items: center;
  width: 50%;
  min-height: 40rem;
}

#nothing p {
  margin: auto;
}

/* The container <div> - needed to position the dropdown content */
.dropbtn {
  display: block;
  color: var(--text-color);
  text-align: center;
  padding: 1.6rem 1.8rem;
  text-decoration: none;
  background-color: var(--base-variant);
  border: none;
  border-radius: 0 0 0 0.5rem;
  font-size: 1.6rem;
  cursor: pointer;
}

.dropbtn:hover {
  background-color: var(--primary-color);
  color: var(--base-color);
  border-radius: 0 0 0 0.5rem;

}

.dropdown {
  display: inline-block;
}

/* Dropdown Content (Hidden by Default) */
.dropdown-content {
  display: none;
  position: absolute;
  min-width: 160px;
  box-shadow: 0 0.8rem 1.6rem 0 rgba(0,0,0,0.2);
  z-index: 100;
  border-radius: 0.5rem 0.5rem 0.5rem 0.5rem;
  transition: all 0.5s ease-in-out;
  overflow: hidden;
  max-height: 0;
  max-width: 140rem;
}

.dropdown-content-header {
  display: flex;
  background-color: var(--accent-color);
  color: var(--link-text);
  padding: 1.2rem 1.6rem;
  text-decoration: none;
  justify-content: space-between;
  align-items: center;
}

.toggle {
  align-items: center;
  display: flex;
}

.dropdown-content p {
  display: inline-block;
  margin: 1rem;
}

.switch {
  position: relative;
  display: inline-block;
  width: 6rem;
  height: 3.4rem;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: '';
  height: 2.6rem;
  width: 2.6rem;
  left: 0.4rem;
  bottom: 0.4rem;
  background-color: var(--text-color);
  -webkit-transition: .4s;
  transition: .4s;
}

.switch input:checked + .slider {
  background-color: var(--primary-color);
}

.switch input:focus + .slider {
  box-shadow: 0 0 1px var(--primary-color);
}

.switch input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

/* Change color of dropdown links on hover */
.dropdown-content p:hover {

}

/* Show the dropdown menu on hover */
/* replaced with toggle() function in JS
.dropdown:hover .dropdown-content {
  display: block;
}
*/

/* Change the background color of the dropdown button when the dropdown content is shown */
.dropdown:hover .dropbtn {
  background-color: var(--primary-color);
  color: var(--base-color);
  border-radius: 0 0 0 0.5rem;
}

.dropbtn span {
  margin-right: 1rem;
  transition: all 0.5s ease-in-out;
}

.dropbtn:before{
  content: attr(data-content, "\002B");
  margin-right: 0.5rem;
}

.dropdown-content a {
  background-color: var(--accent-color);
}

.dropdown-content a:hover {
  background-color: inherit;
}

.dropdown-content button {
  font-size: 1.6rem;
}

.tagList {
  max-width: 140rem;
  background-color: var(--accent-color);
  padding: 1rem;
}

.tagList form {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

#tagCheckbox {
  opacity: 0;
  position: absolute;
  cursor: pointer;
}

form .tagItem:hover {
  scale: 1.1;
}

.tagItem:has(> #tagCheckbox:checked) {
  background-color: var(--primary-color);
}


/* card styling for Store cards in store list */
.card {
  padding: 0;
  width: 100%;
  display: block;
  transition: all 0.3s ease-in-out;
  background-color: #f5f5f4;
}

.cardImage {
  max-width: 100%;
  object-fit: cover;
  margin-bottom: 4rem;
  break-inside: avoid;
  padding: 0;
  border: 0.1rem solid var(--text-color);
  border-radius: 0.4rem;
  cursor: pointer;
  transition: 0.3s ease-in-out;
  display: block;
  background-color: #f5f5f4;
}

.cardImage:hover,
.cardImage:focus {
  filter: brightness(1.1);
  transform: scale(1.1);
  box-shadow: rgba(0, 0, 0, 0.35) 0 5px 15px;
}

/* CSS Masonry */
.cardColumns {
  columns: 40rem;
  margin: 4rem;
  column-gap: 4rem;
  column-fill: balance;
}

/* Index */
.featured {
  text-align: center;
  padding: 2rem;
  font-size: 4rem;
}

/* Index Carousel */
.featuredCarousel {
  position: relative;
}

.carouselImage {
  height: 50rem;
  object-fit: cover;
  margin: 2rem;
  border-radius: 1rem;
}

.js_slide:before,
.js_slide:after {
  content: "";
  position: absolute;
  z-index: 1;
  top: 0;
  width: 10rem;
  height: 100%;
}

.js_slide:before {
  left: 0;
  background: linear-gradient(to right, var(--base-color), rgba(0, 0, 0, 0));
}

.js_slide:after {
  right: 0;
  background: linear-gradient(to left, var(--base-color), rgba(0, 0, 0, 0));
}

.slick-dots li button::before {
  color: var(--text-color) !important;
}

.slick-dots li.slick-active button::before {
  color: var(--text-color) !important;
}

.slick-prev::before, .slick-next::before {
  color: var(--text-color) !important;
}

/* Index Featured Section */
.featuredStoreInfo {
  padding: 2rem;
  display: flex;
  gap: 4rem;
  align-items: center;
  border-radius: 1rem;
  margin: 4rem 2rem;
  background-position: center;
}

.featuredLogo {
}

.featuredLogo img {
  min-width: 27rem;
  max-width: 30rem;
  max-height: 30rem;
  margin: auto;
}

.featuredContent{
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(7px);
  border-radius: 1rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  color: #f5f5f4;
  text-shadow: black 2px 2px 4px;
}

.featuredName {
  padding: 2rem;
  font-size: 4rem;
}

.featuredDescription{
  padding: 2rem;
}

/* FAQ area */
.faqContainer {
  padding: 2rem;
}
.faq {
  margin: 4rem auto 4rem auto;
  border-radius: 1rem;
  padding: 4rem;
  background: var(--base-variant);
}

.heading {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  font-style: italic;
  font-size: 4rem;
  margin: 0 0 4rem 0;
}

details{
  background-color: var(--base-color);
  color: var(--text-color);
  font-size: 2rem;
  overflow: hidden;
}

details::details-content {
  block-size: 0;
  transition: block-size 0.75s, content-visibility 0.75s;
  transition-behavior: allow-discrete;
}

details[open]::details-content {
  block-size: auto;
}

details:first-child {
  border-radius: 1rem 1rem 0 0;
}

details:last-child {
  border-radius: 0 0 1rem 1rem;
}

summary {
  padding: .5rem 1.3rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  cursor: pointer;
}

summary::-webkit-details-marker {
  display: none;
}

summary:after{
  content: "\002B";
}

details[open] summary:after{
  content: "\00D7";
}

.answer {
}

.answer p {
  line-height: 2rem;
  font-size: 1.6rem;
  padding:  2rem 3rem;
}

/* Store page */
.storeLocation {
  font-size: 2rem;
}

.locations {
  padding: 2rem;
  display: flex;
  gap: 4rem;
  align-items: center;
  margin: 4rem 2rem;
}

.locationDetails {
  width: 100%;
  margin: auto;
}

.locationMap {
  width: 100%;
  margin: auto;
}

.hours {
  padding: 1rem 0;
  display: grid;
  grid-template-columns: auto auto;
  grid-template-rows: 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
}

.storeItem {
  padding: 0.5rem 0;
}

.tagFlex {
  padding: 2rem;
  display: flex;
  gap: 4rem;
  align-items: center;
  margin: 4rem 2rem;
}

.tags {
  margin: auto;
  width: 100%;
  font-size: 3rem;
}

.tagLink {
  margin: 0.5rem;
}

.tagItem {
  margin: 0.5rem 0;
  padding: 0.5rem 1rem;
  font-size: 2rem;
  background-color: var(--base-variant);
  color: var(--text-color);
  border-radius: 1rem;
  border: none;
  cursor: pointer;
  transition: scale 0.5s ease;
}

.tagItem:hover,
.tagItem:focus {
  filter: brightness(1.1);
  scale: 1.2;
  transition: scale 0.5s ease;
}

.links {
  border: 1px solid var(--text-color);
  border-radius: 1rem;
  width: 100%;
  display: flex;
  justify-content: space-evenly;
}

.links span {
  padding-left: 2rem;
}

.links a {
  padding: 2rem;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.links a::before {
  position: absolute;
  content: '';
  top: 0;
  left: -1rem;
  right: 0;
  bottom: 0;
  background-color: var(--base-variant);
  border-radius: 4rem;
  z-index: -1;
  transition: transform 0.3s ease-in-out;
  transform: scaleX(0);
}

.links a:hover::before,
.links a:focus::before {
  transform: scaleX(1);
}

.links p {
  text-align: center;
  margin: 3rem 0;
  padding: 0.5rem;
  min-width: 6rem;
}

.links svg {
  position: relative;
  top: 0.25rem;
  scale: 3;
}

.linkContainer {
  display: flex;
  align-items: center;
  margin: 0 auto;
  gap: 4rem;
  padding: 2rem;
  flex-wrap: wrap;
}

.linkContainer .links {
  display: block;
  margin: 1rem auto;
  width: 22%;
  min-width: 25rem;
}

/* The Modal (background) on store page */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1000; /* Sit on top */
  padding-top: 5rem; /* Location of the box */
  padding-bottom: 5rem;
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
}

/* Modal Content (Image) */
.modal-content {
  margin: auto;
  display: block;
  max-height: 90%;
  max-width: 90%;
}

/* Add Animation - Zoom in the Modal */
.modal-content {
  animation-name: zoom;
  animation-duration: 0.6s;
}


@keyframes zoom {
  from {transform:scale(0)}
  to {transform:scale(1)}
}

/* The Close Button */
.close {
  position: absolute;
  top: 1.5rem;
  right: 3.5rem;
  color: #f1f1f1;
  font-size: 4rem;
  font-weight: bold;
  transition: 0.3s;
}

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

/* Map page */
#map {
  height: calc(100vh - 15rem);
  max-width: 140rem;
  margin: 1.5rem auto;
  border-radius: 1rem;
  border: 1px solid black;
}

.infoWindowContent {
  background-color: white;
  color: black;
  padding: 1rem;
}

.infoLink {
  color: black;
}

.gm-style-iw-chr {
  height: 1rem;
}


/* Responsive design */
@media (max-width: 1450px) {
  .slick-prev, .slick-next {
    display: none !important;
  }
}

@media (max-width: 1400px) {
  .featuredName {
    font-size: 3.5rem;
    padding: 1rem 2rem;
  }
  .featuredDescription {
    padding: 1rem 2rem;
    font-size: 1.6rem;
  }
}

@media (max-width: 1200px) {
  .featuredContent{
    max-height: 30rem;
  }
}

@media (max-width: 1040px) {
  .links {
    display: block;
  }
}

@media (max-width: 1000px) {
  .featuredName {
    font-size: 3rem;
  }

  .tagFlex {
    display: block;
    margin: 0 auto;
  }

  .links {
    display: flex;
    text-align: center;
    justify-content: space-evenly;
  }
  .linkContainer {
    display: block;
    max-width: 60rem;
  }
  .linkContainer .links {
    width: auto;
    display: flex;
    justify-content: space-evenly;
  }

}

@media (max-width: 820px) {
  .locations {
    display: block;
  }

  .locationDetails {
    max-width: 50rem;
    margin: auto;
  }

  .locationMap {
    padding: 2rem 0;
  }

  iframe {
    display: block;
    margin: auto;
  }

}

@media (max-width: 800px) {
  .js_slide:before,
  .js_slide:after {
    width: 5rem;
  }

  .carouselImage {
    height: 30vh;
    width: auto;
    max-width: 90vw;
    object-fit: cover;
    margin: auto 2rem;
    border-radius: 1rem;
  }

  .featuredStoreInfo {
    display: block;
    height: auto;
    background-image: none !important;
  }

  .featuredLogo {
    float: none;
  }

  .featuredLogo img {
    height: auto;
    width: auto;
  }

  .featuredContent{
    background: var(--base-variant);
    backdrop-filter: none;
    margin-top: 4rem;
    max-height: none;
    color: var(--text-color);
    text-shadow: none;
  }

  .featuredName {
    padding: 2rem;
    font-size: 4rem;
  }

  .featuredDescription {
    padding: 2rem;
  }
}

@media (max-width: 530px) {
  iframe {
    width: auto;
  }

  .links {
    display: flex;
    justify-content: space-evenly;
  }

  .linkButton span {
    display: none;
  }
  .linkContainer {
  }
  .linkContainer .links {
    margin: 1rem auto;
    max-width: 33rem;
  }
}


