//CSS code for website
nav {
  max-width: 100%;
  mask-image: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, #ffffff 25%, #ffffff 75%, rgba(255, 255, 255, 0) 100%);
  margin: 0px auto;
  padding: 0px 0;}

.banner img {
  width: 100%;
  height: auto; /* Ensure the image scales proportionally */
  position: relative; /* Change to relative for better positioning */
}

.banner ul {
  text-align: center;
  margin: -4px auto;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.2) 25%, rgba(255, 255, 255, 0.2) 75%, rgba(255, 255, 255, 0) 100%);
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.1), inset 0 0 0px rgba(255, 255, 255, 0.6);}

nav ul li {
  display: inline-block;}

nav ul li a {
  padding: 20px;
  font-family: 'Playfair Display';
  font-size: 20px;
  font-weight: bold;
  text-transform:uppercase;
  color: rgba(18,96,70,1);
  text-decoration: none;
  display: block;}

h4 { font-size:40px;
  font-family: 'Playfair Display';
  color: rgba(18,96,70,1);
  margin-bottom: 10px;
  margin-top: 10px;}

//centering whole page
html, body {
    height: 100%;}
html {
    display: table;
    margin: auto;}
body {
    display: table-cell;
    vertical-align: middle;}

.body-text {
  width: 90%; /* Adjust width for better responsiveness */
  text-align: center;
  margin: 0 auto;
  margin-bottom: 10px;
  margin-top: 0px; }

.small-text {
    font-size: 10px;
    margin-bottom: 0px;
    margin-top: 0px;
}

h5, h3 {
    margin-bottom: 0px;
    margin-top: 0px;
}

.resources-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Forces 4 equal columns */
    gap: 0px;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.amazon-links {
    width: 22%; /* Ensures four columns (leaving space for gaps) */
    font-size: 14px;
    min-width: 200px; /* Prevents sections from getting too narrow */
    max-width: 250px; /* Optional: keeps things neat */
    flex-grow: 1; /* Helps balance widths when resizing */
    margin-bottom: 0px;
    margin: 0 auto;

}

.amazon-links h5 {
    margin-bottom: 0px;
    font-size: 18px;
    color: inherit;
    margin: 0 auto;
}

.amazon-links a {
    color: inherit;
    font-size: 14px;
    text-decoration: underline;
    margin-bottom: 0px;
    margin: 0 auto;
}

.amazon-links a:hover {
    text-decoration: underline;
}

@media screen and (max-width: 768px) {
  .resources-container {
      grid-template-columns: repeat(2, 1fr); /* Switch to 2 columns on medium screens */
      max-width: 100%; /* Ensure full width on smaller screens */
      overflow-x: hidden; /* Prevent horizontal scrolling */
  }
}

@media (max-width: 768px) {
    .amazon-links {
    width: 100%; /* Make sure items fit properly */
    min-width: auto; /* Allow flexibility */
    max-width: none; /* Prevent forced limits */
}
}

@media screen and (max-width: 480px) {
  .resources-container {
      grid-template-columns: repeat(1, 1fr); /* Single column on very small screens */
  }
}

@media (max-width: 480px) {
    .amazon-links {
        width: 100%; /* Single column on very small screens */
    }
}

  .social-links, .amazon-links {
    text-align: center;    /* Centers the links */
    font-size: 16px;        /* Adjust font size to match normal text */
    margin-top: 0px;       /* Adds spacing above the social links */
}

.social-links a, .amazon-links a {
    color: inherit;         /* Inherits the color from surrounding text */
    padding: 0 8px;         /* Adds spacing between the links */
}

.social-links a:hover, .amazon-links a:hover {
    color: inherit;         /* No color change on hover */
}

#envyandshaina { float: right;
    right: 250px;
    top: 900px;
    margin: 0 auto;
    position: absolute;}

#cerseiandshaina {float: left;
    left: 250px;
    top: 900px;
    margin: 0 auto;
    position: absolute;}

body {
    color: rgba(5,53,37,255); 
    font-family: 'Playfair Display';
    font-size: 18px;
    text-align: center;
    width: 100%;
    background-color: rgba(252,244,224,1);
    margin:0px;}

.site-footer
{
  background-color: rgba(252,244,224,1);
  padding:40px 50px 20px;
  font-size:10px;
  line-height:24px;
  color: rgba(18,96,70,1);}

.site-footer a
{
  color: rgba(18,96,70,1);
text-decoration:none;}

.site-footer a:hover
{
  color: rgba(18,96,70,1);
  text-decoration: none;
  font-weight: bold;}

.site-footer .social-icons
{
  text-align:center;
  margin: 0 auto;
  margin-bottom: 25px;}

.site-footer .social-icons a
{
  width:40px;
  height:40px;
  line-height:40px;
  margin-left:6px;
  margin-right:0;
  border-radius:100%;
  background-color: rgba(18,96,70,1);
  }

.copyright-text
{
  margin:0;}

@media (max-width:991px)
{
  .site-footer [class^=col-]
  {
    margin-bottom:30px}
  .banner-text h1 {
    font-size: 12vw; /* Adjust font size for smaller screens */
    top: 15%;
    left: 5%; /* Adjust positioning */
  }
  .banner-text h2 {
    font-size: 6vw; /* Adjust font size for smaller screens */
    top: 35%;
    left: 10%; /* Adjust positioning */
  }
  .body-text {
    font-size: 18px; /* Adjust font size for readability */
  }
  nav ul li a {
    padding: 15px; /* Adjust padding for smaller screens */
    font-size: 18px; /* Adjust font size */
  }
}

@media (max-width:767px)
{
  .site-footer
  {
    padding-bottom:0}
  
  .site-footer .copyright-text,.site-footer .social-icons
  {
    text-align:center}
  .banner-text h1 {
    font-size: 14vw; /* Further adjust font size for smaller screens */
    top: 10%;
    left: 5%; /* Adjust positioning */
  }
  .banner-text h2 {
    font-size: 8vw; /* Further adjust font size for smaller screens */
    top: 30%;
    left: 5%; /* Adjust positioning */
  }
  .body-text {
    font-size: 16px; /* Further adjust font size for readability */
  }
  nav ul li a {
    padding: 10px; /* Further adjust padding for smaller screens */
    font-size: 16px; /* Further adjust font size */
  }
}

.social-icons
{
  padding-left:0;
  margin-bottom:0;
  list-style:none;}

.social-icons li
{
  display:inline-block;
  margin-bottom:2px;
  margin-top:4px;
  margin-right:2px;}

.social-icons a{
  color: rgba(252,244,224,1);
  font-size:16px;
  display:inline-block;
  line-height:44px;
  width:44px;
  height:44px;
  text-align:center;
  margin-right:8px;
  border-radius:100%;
  -webkit-transition:all .2s linear;
  -o-transition:all .2s linear;
  transition:all .2s linear}

.social-icons a.facebook:hover
{
  background-color: rgba(252,244,224,1);}

.social-icons a.instagram:hover
{
  background-color: rgba(252,244,224,1);}

.social-icons a.email:hover
{
  background-color: rgba(252,244,224,1);}

@media (max-width:767px)
{
  
 .social-icons li.title
  {
    display:block;
    margin-right:0;
    font-weight:600}}