body, html {
  height: 100%;
  margin: 0;
  font-family: 'Arial';
    background-color: #323232;
    overflow-x: hidden;
    font-weight: lighter;
    -webkit-transition: opacity 2s ease-in;
    -moz-transition: opacity 2s ease-in;
    -o-transition: opacity 2s ease-in;
    -ms-transition: opacity 2s ease-in;
    transition: opacity 2s ease-in;
}

.hero-image {
  background-image: linear-gradient(rgba(255, 255, 255, 0), #262726), url("IMG_Hero_Image.jpg");
  height: 400px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}

.hero-text {
  text-align: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  border-color: white;
  padding: 10px 10px;
  font-weight: 100;
}

@keyframes swipe {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }

    100% {
        opacity: 1;
    }
    
}
.hero-text h1 {
    font-size: 50px;
    animation: swipe 0.6s;
}

.hero-text p {
    animation: swipe 0.6s;
}
.opening {
    width: 80%;
    font-size: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    margin-top: 5%;
    color: white;
}

@media (max-width: 1000px) {
    .opening {
        width: 75%;
    }   
    
}

@media (max-width: 650px) {  
    .hero-text h1 {
        font-size: 40px;
    }
}

@media (max-width: 500px) {  
    .hero-text h1 {
        font-size: 30px;
    }
}

@media (max-width: 400px) {  
    .hero-text h1 {
        font-size: 20px;
    }
}


.card {
  background-color: #262726;
  color: white;
  padding: 1rem;
  height: auto;
    text-align: center;
    font-size: 18px;
}

.localbusinesses {
  max-width: 100%;
  margin: 0 auto;
  display: grid;
}

.contact {
    background-color: grey;
    padding: 5px 20px;
    border-radius: 25px;
    display: block;
    margin: 20px auto;
    width: 50%;
    padding: 5px 10px;
    border-radius: 25px;
    background-color: white;
    text-align: center;
    color: black;
    font-weight: bold;
    text-decoration: none;
}

.contact:hover {
    animation: contacthover;
    animation-duration: 0.3s;
    animation-fill-mode: forwards;
}

@keyframes contacthover {
    0% {
        background-color: white;
    }
    
    100% {
        background-color: lightgray;
        transform: translateY(-10px);
    }
}


    @media (min-width: 1000px) {
  .localbusinesses {
      grid-template-columns: repeat(3, 1fr); }
}












.container {
  background: #262726; /* Dark background for the container */
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 100%; /* Set a max width for better centering */
  margin: auto;
  padding: 20px; /* Add padding for better spacing */
}

h1 {
  padding: 20px;
  font-size: 2em; /* Increased font size for better visibility */
  margin-bottom: 20px;
  color: white; /* White text for the title */
  text-align: center;
  text-decoration: underline;
}

.collection-info {
  font-size: 1.5em;
  margin: 20px auto;
  position: relative;
  text-align: center;
  padding: 20px;
  color: white; /* White text for the collection info */
  display: flex; /* Use Flexbox for layout */
  flex-direction: column; /* Stack items vertically */
  align-items: center; /* Center items horizontally */
}

#recycling-icons {
  display: flex; /* Use Flexbox for recycling icons */
  justify-content: center; /* Center icons horizontally */
  margin-bottom: 20px; /* Space below the icons */
}

#bin-text h3 {
  margin: 0 0 10px; /* Bottom margin of 10px */
  color: white; /* White text for the title */
  text-decoration: underline; /* Underline the title */
}

#recycling-icons img {
  width: 50px; /* Adjust size as needed */
  height: auto; /* Maintain aspect ratio */
  margin: 0 10px; /* Space between icons */
}

#rubbish-icon {
  width: 100px; /* Adjust size as needed */
  height: auto; /* Maintain aspect ratio */
  margin: 20px; /* Space around the rubbish icon */
}

#bin-text {
  margin-top: 20px; /* Space for the text */
  color: white; /* White text for the bin text */
  font-size: 1.2em; /* Slightly smaller font size for the bin text */
  text-align: center; /* Center the text */
}

/* Additional styles for better spacing and readability */
.collection-info p {
  margin: 10px 0; /* Space between paragraphs */
  line-height: 1.5; /* Improve line spacing for readability */
}

@media (max-width: 768px) {
  h1 {
    font-size: 1.5em; /* Adjust heading size for smaller screens */
  }

  .collection-info {
    font-size: 1.2em; /* Adjust font size for smaller screens */
  }

  #bin-text {
    font-size: 1em; /* Adjust bin text size for smaller screens */
  }

  /* Ensure the container is centered on mobile */
  .container {
    padding: 10px; /* Reduce padding for smaller screens */
  }
}





.mpsurgery img {
  margin-bottom: 30px;
  background-color: #262726;
  padding: 20px 0px;
  max-width: 100%;
}


.footer {
    text-align: center;
    font-size: 20px;
    margin-top: 100px;
    height: auto;
    color: white;
}

.footer p {
    color: white;
}

@media only screen and (max-width: 1700px) {
    .footer {
      font-size: 18px;
    }
  }
  
  @media only screen and (max-width: 768px) {
    .footer {
      font-size: 16px;
    }
  }
  
  @media only screen and (max-width: 480px) {
    .footer {
      font-size: 14px;
    }
  }
  
  @media only screen and (max-width: 320px) {
    .footer {
      font-size: 12px;
    }
  }

