@import url(https://fonts.googleapis.com/css?family=Open+Sans);
@import url(https://fonts.googleapis.com/css?family=Playfair+Display);
@import url('https://fonts.cdnfonts.com/css/dancing-script');

/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1002; /* Sit on top of everything, above nav */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgba(0,0,0,0.7); /* Black w/ opacity */
  padding-top: 60px; /* Location of the box */
}

/* Modal Content/Box */
.modal-content {
  background-color: #fefefe;
  margin: 5% auto; /* 5% from the top and centered */
  padding: 20px;
  border: 1px solid #888;
  width: 80%; /* Could be more responsive, e.g., 80% */
  max-width: 900px; /* Max width for larger screens */
  box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
  animation-name: animatetop;
  animation-duration: 0.4s;
  position: relative; /* Needed for close button positioning */
  border-radius: 8px;
}

/* The Close Button */
.close-button {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  position: absolute;
  top: 10px;
  right: 20px;
  cursor: pointer;
  z-index: 1003; /* Ensure it's clickable above content */
}

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

/* Modal Animation */
@keyframes animatetop {
  from {top: -300px; opacity: 0}
  to {top: 0; opacity: 1}
}
#modalBlogContent {
  padding: 2rem;
}

#modalBlogContent p {
  font-size: 18px;
}
/* Styling for content inside the modal - re-using .blogdiv styles */
#modalBlogContent .blogdiv {
    margin-top: 0; /* Remove top margin that pushes content down in modal */
    margin-left: 0;
    margin-right: 0;
    padding: 0; /* Remove padding if modal-content already has it */
    background-color: transparent; /* Remove background, let modal-content define it */
    box-shadow: none; /* Remove box shadow */
}

/* Modal Navigation Buttons */
.modal-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #eee;
}

.modal-navigation button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}


/* NAV RELATED STYLES - Duplicated in blog.css and index.css, ensure consistency or consider a shared CSS file */
.navLogo{
  margin: 0; 
  padding-right: 1.5em; 
  padding-top: 0.3em; 
  width: 27em;
}

.navDiv{
  background-color: #EFE5E9; 
  align-items: center;
  position: sticky;
  width:100%;
  top: 0;
  left: 0;
  transition:top 0.3s ease;
  display: flex;
  z-index: 1001;
}

/* Home Page HEADING - Likely specific to index.html, but kept if used elsewhere */
h1 {
  color: #AA9688;
  font-family: 'Optima';
  margin: 0; 
  font-size: 29px;
  font-weight: 150;
  margin-left: 1em;
  flex: 1; 
  vertical-align:middle;
}

/* NAV BAR STYLES - Duplicated across CSS files, consider centralizing */
nav a:hover {
  color: hotpink;
  text-decoration:underline;
}

.header-nav { /* Not directly used by blog.html but kept from your original */
  display: flex;
  align-items: center; 
  background-color: white;
  margin-left: 30px;
  margin: 0;
  overflow: 0;
  overflow-y: scroll;
  vertical-align: middle;
}

ul {
  list-style-type: none;
  font-family: 'Optima';
  font-size: 23px;
  vertical-align:middle;
}

li {
  display: inline;
  margin-left: 30px; 
  margin-right: 40px;
  font-family: 'Playfair Display';
}
li a {
  text-decoration: none;
  color: #AA9688;
}

li a:hover {
  text-decoration: underline;
  text-decoration-color: #AA9688;
}

.dropdown-content{
  display: none;
  position: absolute;
  background-color:#EFE5E9 ;
  min-width: 260px;
  box-shadow: 0px 0px 16px 0px;
  z-index: 1;
  padding-top: 1em;
  padding-bottom: 1em;
  padding-left: .5em;
  padding-right: .5em;
}
.dropdown{
  position: relative;
  display: inline-block;
}
.dropdown:hover .dropdown-content{
  display: block;
}

.dropdownItems{
  text-align: left;
}

.dropdownRecipes{
  font-size: 18px; 
  display: flex; 
  flex-direction: 
  column; align-items: start; 
  text-align: left;
  justify-content: start;
  list-style: none;
  line-height: 30px;
}


/* FOOTER RELATED STYLES - Duplicated across CSS files, centralize if possible */
footer{
    background-color: #EFE5E9;
    text-align: center;
    padding-top: 2em;
}
  
.footerbutton{
    margin-left:1em; 
    margin-right: 1em; 
    background-color: #a6998e;
    margin-top: 20px;
    padding: 12px 24px;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1em;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s, transform 0.3s;
    font-family: "Playfair Display";
}
.footerbutton:hover{
    background-color: #4d3e35;
    transform: scale(1.05);
}


/* MAIN BLOG POST CONTENT STYLES */
.blogdiv{
  margin-top: 7em; /* This will be overridden by #modalBlogContent .blogdiv for the modal */
  margin-right: 20%;
  margin-left: 20%;
  padding: 2em; 
  background-color: rgb(240, 248, 251);
}
.blogpic{
  width: 30em;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
body{ /* This rule is structurally incorrect in your original CSS, fixed here */
  margin:0;
}
.blogtext{
  font-size: 27px; /* This will be the font size for your individual blog post text */
  font-family: "Open Sans", sans-serif !important; /* Added !important to ensure this takes precedence */
  line-height: 1.6;
  color: #333;
}

.bottomImageRow {
  display: flex;
  gap: 20px; 
  flex-wrap: wrap; 
  justify-content: center;
  margin-top: 20px;
  margin-bottom: 40px; 
}
.bottomImageRow img {
  width: 35%; 
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}