html {
  scroll-behavior: smooth;
}

/* Add local fonts from folder ./static/fonts/ */
@font-face {
  font-family: "Roboto";
  src: url("static/fonts/Roboto-Regular.ttf") format("truetype");
  font-weight: lighter;
  font-style: normal;
}

@font-face {
  font-family: "Playfair Display";
  src: url("static/fonts/PlayfairDisplay-Regular.ttf") format("truetype");
  font-weight: lighter;
  font-style: normal;
}

body {
  margin: 0;
  font-family: "Roboto", sans-serif;
  background-color: #f5f5f5;
  color: #333;
}

#bakeries {
  margin-top: 15px;
  width: 100%;
  text-align: center;
}

.bakery {
  border: none;
  border-radius: 8px;
  background-color: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  padding: 24px;
  font-family: "Roboto", sans-serif;
  transition: all 0.3s ease;
  width: 380px;
  height: 400px;
  cursor: pointer;
  display: inline-block;
  margin: 20px;
  text-align: left;
  vertical-align: top;
  overflow: hidden;
}

.img_container {
  width: 100%;
  height: 180px;
  overflow: hidden;
  border-radius: 6px;
  display: flex;
  margin-bottom: 16px;
  padding: 0;
}

.info_container {
  padding: 0;
  border-left: none;
  min-height: 80px;
  overflow: visible;
  display: flex;
  flex-direction: column;
}

.contact-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #f5f5f5;
  color: #333;
  border: none;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.contact-button:hover {
  background-color: #e0e0e0;
  transform: translateY(-2px);
  box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}

.contact-button i {
  margin-right: 6px;
  font-size: 1rem;
}

.address-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  display: block;
}

.bakery img {
  border-radius: 6px;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bakery h2 {
  margin: 0 0 16px 0;
  color: #222;
  font-family: "Playfair Display", serif;
  border-top: none;
  font-size: 1.4rem;
  line-height: 1.2;
}

.bakery p {
  margin: 0 0 8px 0;
  color: #555;
  font-size: 0.95rem;
  line-height: 1.4;
}

.bakery p b {
  margin-left: 0;
  color: #333;
  font-weight: 500;
}

.bakery:hover {
  transform: scale(1.025);
}

#hero {
  background: url("static/background.jpg") no-repeat center center fixed;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
  background-attachment: fixed;
  height: 100vh; /* This makes the hero take the full height of the viewport */
  display: flex;
  justify-content: left;
  align-items: center;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

#hero-card {
  box-shadow: 0 0 5px 0;
  background: inherit;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.2);
  /* padding: 0.5em; */
  height: 100px;
  display: flex;
}

#hero h1 {
  position: relative;
  font-size: 1.875em;
  font-family: "Playfair Display", serif;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 0.5em;
}

#fixed-header {
  opacity: 0;
  position: fixed;
  justify-content: center;
  align-items: center;
  top: 0;
  width: calc(100% - 1em);
  background: url("static/background.jpg") no-repeat center center fixed;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
  background-attachment: fixed;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  text-align: left;
  z-index: 1000;
  transition: all 0.2s ease-in-out;
  font-family: "Playfair Display", serif;
  box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.5);
  height: 100px;
}

#fixed-card {
  /* padding: 0.5em; */
  box-shadow: 0 0 5px 0;
  background: inherit;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.2);
  width: 100vw;
  height: 100px;
  display: flex;
}

#fixed-header h1 {
  font-size: 1.875em;
  padding: 0 0.5em;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo {
  width: 100px;
  height: 100px;
}

#info {
  margin: 65px 20px 0 20px;
}

#search-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 15px 20px 20px 20px;
  position: relative;
}

#search {
  display: block;
  width: 100%;
  max-width: 600px;
  margin: 20px auto;
  padding: 10px;
  font-size: 1.2em;
  flex-grow: 1;
}

#filter-icon {
  position: relative;
  z-index: 2;
  width: 30px;
  height: 30px;
  display: none;
}

.dropdown-container {
  position: relative;
  display: inline-block;
}

.dropdown {
  display: none;
  position: absolute;
  background-color: white;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
  padding: 10px;
  top: 100%;
  right: 0;
  flex-direction: column;
  width: 200px;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  padding: 12px 16px;
  z-index: 1;
  border-radius: 4px;
}

.dropdown button {
  background-color: transparent;
  border: none;
  color: black;
  padding: 12px 12px;
  text-decoration: none;
  display: block;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.dropdown button:hover {
  background-color: #f1f1f1;
}

#filter-icon.active + #filter-options {
  display: block;
}

footer {
  background: url("static/background.jpg") no-repeat center center fixed;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
  background-attachment: fixed;
  color: white;
  text-align: center;
  font-size: 1em;
  font-family: "Playfair Display", serif;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

#footer-card {
  box-shadow: 0 0 5px 0;
  background: inherit;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.2);
  width: 100%;
  height: 70px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Add breadcrumb styling to the top */
.breadcrumb-nav {
  max-width: 800px;
  margin: 15px auto;
  padding: 0 20px;
  font-size: 0.9rem;
  color: #555;
}

.breadcrumb-nav a {
  color: #4CAF50;
  text-decoration: none;
}

.breadcrumb-nav a:hover {
  text-decoration: underline;
}
