/* Load Fonts */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@400;700&family=Noto+Sans+JP:wght@400;700&display=swap');

@font-face {
  font-family: 'CustomFont';
  src: url('/fonts/customfont.woff2') format('woff2');
  font-display: swap;
}

/* Header */
header {
  padding: 30px 0;
  background-image: url(/images/header-background.jpg); 
	background-size:cover;
  background-position: center;
  height: 45vh; /*Sets the height to 50% of the viewport height*/
  max-height: 500px; /* Sets a maximum height to avoid too large headers on big screens */
}

@media (max-width: 768px) {
  header {
    height: 40vh; /* Smaller height for tablets */
  }
}

@media (max-width: 576px) {
  header {
    height: auto; /* Smaller height for mobile devices */
  }
}

/* Header Logo */
.mjw-logo {
  height: 120px;
  display: flex;
  justify-content: center;
}

.navbar {
  display: flex;
  justify-content: center;
  align-items: center;
}

.navbar a {
  color: black
}

footer .nav a {
  color: black;
}

footer {
  background-color: #f0f0f0;
}

/* General Typography */
body {
  font-family: 'Noto Sans JP', sans-serif;
  color: #333333;
  background-color: #f8f8f8;
}

h1, h2, h3, .card-title {
  font-family: 'Noto Serif JP', serif;
  color: #333333;
}

p, .card-text, .btn {
  font-family: 'Noto Sans JP', sans-serif;
  color: #666666;
}

p {
  word-break: break-word;
}

img {
  max-width: 100%;
  height: auto;
}

/* Disable text selection */
.nocopy {
  user-select: none; /* Disable text selection */
  -webkit-user-select: none; /* For Safari */
  -moz-user-select: none; /* For Firefox */
  -ms-user-select: none; /* For IE10+ */
}

/* Disable image dragging */
.nocopy img {
  pointer-events: none; /* Disable interactions on images */
  -webkit-user-drag: none; /* Disable drag for images in Safari */
}



.welcome-hero {
  border: none;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.hero-section h1 {
  font-size: 2rem;
  padding-bottom: 20px;
  font-family: 'Noto Serif JP', serif;
}

.hero-section p {
  padding-bottom: 20px;
  font-family: 'Noto Sans JP', sans-serif;
  text-shadow: 2px 2px 8px rgba(255, 255, 255, 1); /* Add highlight shadow */
}

.hero-section .btn-primary {
  background-color: #8b2334;
  border: none;
  padding: 0.75rem 1.5rem;
}

.hero-section .btn-primary:hover {
  background-color: #7a1f2e;
}

/* Home Page */
.home-page {
  max-width: 1200px;
}

.products img {
  border-radius: 10px;
}

.services img {
  border-radius: 10px;
}

/* About Page */
.about-content {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  padding: 20px;
  max-width: 600px;
}

.about-content h1 {
  padding-bottom: 30px;
}

.about-content p {
  padding-bottom: 20px;
}


/* Brands Page */
.brands-page {
  max-width: 800px;
  margin: 0 auto;
}

.brands-page img {
  border: #9f9f9f solid 1px;
  border-radius: 15px;
  margin: 10px;

}

/* Grocery Page */
.grocery-page h1 {
  margin-bottom: 2rem;
  text-align: center;
}

.grocery-page .category-header {
  padding-bottom: 0.5rem;
  padding-top: 0.5rem;
  margin-bottom: 2rem;
  background-color:lightsteelblue;
  border-radius: 5px;
}



@media (max-width: 576px) {
  .grocery-page .card {
    padding: 0.5rem;
  }
  .grocery-page .card-title {
    font-size: 1rem;
  }
  .grocery-page .card-text {
    font-size: 0.875rem;
  }
  .product-card a {
    font-size: 0.70rem;
  }
  .home-page, .brands-page, .recipe-page,.privacy {
    width: 100%;
  }
}


/*recipe-page*/
.recipe-page {
  max-width: 700px;
}

.recipe-page img  {
  max-height: 400px;
  margin-bottom: 20px;
}

/*recipes-page*/
.recipes-page h1 {
  margin-bottom: 2rem;
  text-align: center;

}

.recipes-page h2 {
  padding-bottom: 0.5rem;
  padding-top: 0.5rem;
  margin-bottom: 2rem;
  background-color:lightsteelblue;
  border-radius: 5px;
}

@media (max-width: 576px) {
  .recipes-page .card {
    padding: 0.5rem;
  }
  .recipes-page .card-title {
    font-size: 1rem;
  }
  .recipes-page .card-text {
    font-size: 0.875rem;
  }
}

/* Recipe Card Styling */
.card {
  border: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.card-title {
  color: #333333;
}

.card-text {
  color: #666666;
}

.card-body {
  text-align: center;
}

/* Button Styling */
.btn-primary {
  background-color: #8b2334;
  border: solid 1px #8b2334;
  color: white;
  transition: background-color 0.2s;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);

}

.btn-primary:hover {
  background-color: white;
  color: #8b2334;
  border-color: #8b2334;
}

.btn-outline-secondary {
  transition: background-color 0.2s;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-outline-secondary:hover {
  background-color:#d2d2d2;
  color: #000;
  border-color: #8b2334;
}

/* Privacy Policy Styling */
.privacy {
  max-width: 700px;
  margin: 0 auto;
  padding: 20px;
}

.privacy h1 {
  text-align: center;
  margin-bottom: 20px;
}

.privacy h4 {
  margin-top: 30px;
}

/* Contact Form Styling */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
}

.contact-form h1 {
  margin-bottom: 30px;
}

/* Cookie Consent Styling */
.cookie-banner {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  background-color: rgba(0,0,0,0.75);
  padding: 1rem;
  width: 300px;
  border-radius: 5px;
  text-align: center;
  z-index: 1000;
}
.cookie-banner p {
  color: #fff;
}

.cookie-banner a {
  color: #30aff8;
}

.cookie-banner button {
  margin-left: 1rem;
  color: white;
}

#cookie-banner button.close-btn {
  position: absolute;
  top: 5px;
  right: 5px;
  background: none;
  border: none;
  font-size: 20px;
  font-weight: bold;
  color: #b6b6b6;
  cursor: pointer;
}

#cookie-banner button.close-btn:hover {
  color: #8b2334;
}

/* Services Page Styling */
.services .card-body {
  padding: 2rem;
}

.services .card h3 {
  font-size: 1.5rem;
  font-weight: bold;
}

.services .card-text {
  font-size: 1rem;
  margin-bottom: 1rem;
}

.services .btn-primary {
  padding: 0.75rem 2rem;
  font-size: 1.25rem;
}

.custom-icon-color {
  color: #8b2334;
}

/* Testimonials Section */

#testimonials .card {
  border-radius: 8px;
}

#testimonials .card-body {
  padding: 1.5rem; /* Matches other cards' padding */
}

#testimonials .text-warning {
  font-size: 1.2em; /* Slightly larger stars */
}

#testimonials small {
  font-size: 0.85em;
}

#testimonials {
  padding-left: 30px;
  padding-right: 30px;
}
