body {
    background-color: #fff;

    margin: 0;
    font-family: barlow;
    /* background-image: url('img/Background.png');  */
    background-color: black;
    background-repeat: repeat; /* Allows the texture to repeat not using anymore after swtiching back to solid color */
    background-size: auto; /*screen sized image*/
    background-position: center;
    background-attachment: fixed; /*Fixes the background while scrolling */
    color: white;

    
}
#MainImage{
  width: 100%; /* Stretches the image across the full width of the page */
  height: auto; 
}

h1 {
  font-family: playfair;
}

  
#Header {
  position: sticky;
  top: 0; /* Sticks to the top of the screen */
  z-index: 1000; /* Keeps it above other elements */
}

#Header ul {
  list-style-type: none;
  background-color: black;
  display: flex;
  align-items: center; /* Aligns items vertically */
  margin: 0;
  padding: 10px 0;
  height: 50px; /* Increased height for better visual balance */
}

#Header li a{
  text-decoration: none;
  color: #F6F0ED;
  padding: 16px 30px;
  font-size: 20px;
  /* transition: color 0.4s, font-size 1s; */

}

#Header li a:hover{
  background-color: #7EA8BE;
  color:#F6F0ED; 
  
}

#Header li a:active{
  background-color: #C2948A;
  color:black; 
}

#Header .logo {
  margin-right: auto;
  padding-left: 20px; 
  font-size: 35px;
}

footer {
  padding: 15px 50px;
  background-color: #7EA8BE;
  color: black;
  display: flex;
  justify-content: space-evenly;
}

footer > div {
  width: 150px;
  height: 500px
}



.carousel {
  width: 100%; /* Make the carousel take the full width of the viewport */
  overflow: hidden; /* Hide any overflow */
}

.carousel-inner {
  width: 100%; /* Ensure the inner container also takes up the full width */
}

.carousel .item img {
  width: 100%; /* Make the image take the full width of the item */
  height: auto; /* Maintain aspect ratio */
  object-fit: cover; /* Cover the entire container without distortion */
}






/* CARDS */
.cards-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* Card styling */
.card {
  background-color: #333;
  padding: 20px;
  margin: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  max-width: 800px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Flex order for left and right alignment */
.left-align {
  flex-direction: row;
}

.right-align {
  flex-direction: row-reverse;
}
/* Cards container to hold all card-wrapper items */
.cards-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* Card wrapper to contain each card and its image */
.card-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1600px;
  margin: 20px 0;
}

/* Card styling */
.card {
  background-color: #333;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  max-width: 800px;
  width: 100%;
}

/* Card image styling */
.card-image {
  width: 600px;
  height: auto;
  margin: 0 20px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Left-align style: card on the left, image on the right */
.left-align {
  flex-direction: row;
}

/* Right-align style: card on the right, image on the left */
.right-align {
  flex-direction: row-reverse;
}

/* Links in cards */
.card a {
  color: #7EA8BE;
  text-decoration: none;
  font-weight: bold;
}

.card a:hover {
  text-decoration: underline;
}

/* Headings */
.card h2, .card h3, .card h4 {
  color: #F6F0ED;
  margin-top: 0;
}

/* Paragraphs for cards */
.card p {
  margin: 10px 0;
  font-size: 20px;

}

/* Specific rule for card with lots of text */
/* .card.classics-series {
  background-color: #444;
  padding: 25px;
  border: 2px solid #7EA8BE;
  color: #F6F0ED;
  max-width: 1000px;
} */

@media(max-width: 500px){
  
  footer{
    flex-direction:column;
  }
  #Header li a{
    text-decoration: none;
    color: #F6F0ED;
    padding: 16px 10px;
    font-size: 10px;
    /* transition: color 0.4s, font-size 1s; */
  
  }

  #Header, h1 {
    font-size: 15px;
  }

  #Header {
    max-width: 500px;
  }

  .cards-container {
    display: grid;
    grid-column: auto;
    grid-row: auto;
  }

  .card-wrapper {
    display: grid;
  }

  .card {
    max-width: 100vw;
    display: inline;
  }

  .card-image {
    max-width: 100vw;
  }
}