/* this resets the margin and padding helps with some compatability */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/*header */

header {
  background-color: #f7f4e9;
  text-align: center;
  padding: 20px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 4px solid black;
  font-family: 'Montserrat', sans-serif;
  
}
/* areas within the box */
.header-Box {
  display: flex;
  align-items: center;
}

.header-Box h1 {
  font-size: 24px;
}

/* navigation buttons on header */

.nav-links {
  display: flex;
  align-items: center;
}

.nav-links a {
  margin-left: 20px;
  text-decoration: none;
  color: #000000 ;
  background-color:  rgba(255, 255, 255, 0.1); ;
}

.nav-links a:hover {
  background-color: #e0e0e0; 
  border-color: #ffffff; 
}

.nav-links a:active {
  color:#000000
}

/* main text and body  */

body {
  font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
  background-color: #f7f4e9;
  color: #000000;
  text-decoration: none;


}

/* blog image and text */

.blog-image {
  align-items: center;
  max-width: 60%;
  margin: auto;
  width: 1080px;
  height: 600px;
  display: block; /* fixes the image to the middle issue i was having makes it a block element */
}

.Blog-Text {
  text-align: center;
  max-width: 60%;
  margin: auto;

} 

/* footer styles */

footer {
  background-color: #333;
  color: #fff;
  text-align: center;
}

.FeatureImage {
  max-width: 100%;
  
}




.FeatureImage img {
  width: 100%;
  height: auto;
  display: block;
}

/* styling for the overlay of the button and the image itelf and the transparancey*/

.featured-image {
  position: relative;
  text-align: center;
  margin-bottom: 5px;
}

.featured-image img {
  max-width: 50%;
  height: auto;
}

.image-overlay {
  position: absolute;
  border-radius:  25px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(255, 255, 255, 0.4); 
  padding: 20px;
}

.overlay-text {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 10px;
}

.learn-more-btn {
  display: inline-block;
  background-color: rgba(51, 51, 51, 0.9); 
  color: #fff;
  text-decoration: none;

}
/* transpaency and hover affect */
.learn-more-btn:hover {
  background-color: rgba(51, 51, 51, 0.7); 
}


/* cards taken from code pen cleaned up a little and modified */
/* General styles */
.cards-wrapper {
  display: grid;
  justify-content: center;
  align-items: center;
  grid-template-columns: 1fr 1fr 1fr;
  grid-gap: 4rem;
  padding: 4rem;
  margin: 0 auto;
  width: max-content;
}

.card {
  font-family: 'Heebo';
  --bg-filter-opacity: 0.5;
  background-image: linear-gradient(rgba(0,0,0,var(--bg-filter-opacity)),rgba(0,0,0,var(--bg-filter-opacity))), var(--bg-img);
  height: 20em;
  width: 15em;
  font-size: 1.5em;
  color: white;
  border-radius: 1em;
  padding: 1em;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  box-shadow: 0 0 5em -1em black;
  transition: all, var(--transition-time);
  position: relative;
  overflow: hidden;
  border: 10px solid #ccc;
  text-decoration: none;
}

.card:hover {
  transform: rotate(0);
  color: var(--color);
}

.card h1 {
  margin: 0;
  font-size: 1.5em;
  line-height: 1.2em;
}

.card p {
  font-size: 0.75em;
  font-family: 'Open Sans';
  margin-top: 0.5em;
  line-height: 2em;
}

.card .tags {
  display: flex;
}

.card .tags .tag {
  font-size: 0.75em;
  background: rgba(255,255,255,0.5);
  border-radius: 0.3rem;
  padding: 0 0.5em;
  margin-right: 0.5em;
  line-height: 1.5em;
  transition: all, var(--transition-time);
}

.card:hover .tags .tag {
  background: var(--color);
  color: white;
}

.card .date {
  position: absolute;
  top: 0;
  right: 0;
  font-size: 0.75em;
  padding: 1em;
  line-height: 1em;
  opacity: .8;
}

.card:before, .card:after {
  content: '';
  transform: scale(0);
  transform-origin: top left;
  border-radius: 50%;
  position: absolute;
  left: -50%;
  top: -50%;
  z-index: -5;
  transition: all, var(--transition-time);
  transition-timing-function: ease-in-out;
}

.card:before {
  background: #ddd;
  width: 250%;
  height: 250%;
}

.card:after {
  background: white;
  width: 200%;
  height: 200%;
}

.card:hover:before, .card:hover:after {
  transform: scale(1);
}

/* Media queries */
@media screen and (max-width: 1285px) {
  .cards-wrapper {
    grid-template-columns: 1fr 1fr;
  }
}

@media screen and (max-width: 900px) {
  .cards-wrapper {
    grid-template-columns: 1fr;
  }
  .info {
    justify-content: center;
  }
}

@media screen and (max-width: 500px) {
  .cards-wrapper {
    padding: 4rem 2rem;
  }
  .card {
    max-width: calc(100vw - 4rem);
  }
}

@media screen and (max-width: 450px) {
  .info {
    display: block;
    text-align: center;
  }
  .info h1 {
    margin: 0;
  }
}

/* non taken code */

.Reccomended-Coffee-Sites {
  font-family: 'Heebo';
  text-align: center;
  margin: auto;
  
}

.Coffee-image {
  align-items: center;
  max-width: 20%;
  margin: auto;
  image-resolution: 1080x1080;

}



/* non taken code */


/* Code for Java script implemntation from code pen */

.popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.popup-container {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  width: 30em;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s ease-in-out;
}

.popup-card {
  padding: 20px;
  text-align: center;
}

.popup-card h2 {
  font-size: 24px;
  margin-bottom: 10px;
}

.popup-card p {
  font-size: 16px;
  margin-bottom: 20px;
}

#close-popup {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 18px;
}

#close-popup:hover {
  background-color: #0056b3;
}