body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
}

header {
  background-color: #f37021;
  color: white;
  padding-top: 0;
  padding-bottom: 10px ;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.contact-info-top {
  display: flex;
  flex-wrap: wrap; /* Allows items to wrap onto multiple lines if necessary */
  justify-content: center; /* Centers the items horizontally */
  align-items: center; /* Aligns items vertically in the center */
  background-color: white;
  color: #696867;
  padding: 10px;
  width: 100%;
  text-align: center;
}

.contact-info-top p {
  display: flex;
  align-items: center;
  margin: 5px 15px;
}

.contact-info-top p img{
  margin-right: 5px;
  width: 20px; /* Adjust the size as needed */
  height: 20px; /* Adjust the size as needed */
}

.contact-info-top a {
  color: #696867;
  text-decoration: none;
}

.contact-info-top a:hover {
  color: #161af1;
}

header h1 img {
  max-width: 100%;
  height: auto;
}

nav {
  margin-top: 10px;
}

/* Add dropdown menu */
nav ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap; /* Allow wrapping for mobile view */
}

nav ul li {
  position: relative;
  margin: 10px 20px; /* Add some margin for spacing */
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-size: x-large;
}

nav ul li a:hover {
  color: #161af1;
}

nav ul li  .dropdown-toggle::after {
  content: ' \2304'; /* Unicode escape sequence for downward arrowhead */
  font-size: 1em;
  margin-left: 5px;
  display: inline-block;
  transition: transform 0.3s ease;   /* Smooth transition for movement */
}

nav ul li:hover .dropdown-toggle::after {
  transform: translateY(3px);  /* Move the arrow down on hover */
}

nav .dropdown-content {
  display: none;
  position: absolute;
  background-color: white;
  min-width: 250px;
  box-shadow: 0px 8px 16px 0px rbga(0,0,0,0.2);
  z-index: 1;
  border-radius: 8px;   /* Round corners */
}

nav .dropdown-content a {
  color: #696867;
  padding: 8px 16px;
  text-decoration: none;
  display: block;
  transition: background-color 0.3s ease, color 0.3s ease;  /* Smooth transition for hover effect */
}

nav .dropdown-content a:hover {
  color: #161af1;  /* Text color change an hover */
  text-decoration: none;

}

nav li:hover .dropdown-content {
  display: block;
}

main {
  background-color: #f7f3e3;   
  padding: 0px;
}

h2 {
  text-align: center;
  margin-top: 0px;
  margin-bottom: 100px;
  padding-top: 50px;
  font-size: 2em;  /* Adjust the value to make the font size larger as desired */
  color: #c74c00;
}

section {
  margin-bottom: 0px;
}

.Main-page-photo {
  display: flex;
  justify-content: center;
}

.Main-page-photo img {
  max-width: 100%;
  height: auto;
}

.social-media {
  padding-top: 50px;
  padding-left: 150px;
  padding-right: 150px;
  padding-bottom: 150px;
}

.Newlistings {
  background-color: #ffffff; 
  padding-top: 50px;
  padding-left: 150px;
  padding-right: 150px;
  padding-bottom: 150px;
}

.UnderContract {
  padding-top: 50px;
  padding-left: 150px;
  padding-right: 150px;
  padding-bottom: 150px; 
}

.Sold {
  background-color: #ffffff;
  padding-top: 50px;
  padding-left: 150px;
  padding-right: 150px;
  padding-bottom: 150px; 
}

.scroll-container {
  position: relative;
  display: flex;
  align-items: center;
  margin-top: 50px;  /* Add margin-top to create space between <h2> and <div> */
}

.scroll-container .scroll-arrow {
  cursor: pointer;
  font-size: 2em;
  user-select: none;
  padding: 0 10px;
}

.scroll-content {
  display: flex;
  overflow-x: auto; /* Allow scrolling */
  gap: 30px; /* Space between items */
  padding-bottom: 10px; /* Space below items */
  flex-grow: 1;
}

.scroll-content img, .scroll-content iframe {
  width: 300px;
  height: auto; /* Maintain aspect ratio */
  border: 1px solid #ccc;
  flex-shrink: 0; /* Prevent items from shrinking */
  cursor: pointer; /* Add pointer cursor to indicate clickability */
}

.footer-info {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  padding-left: 100px;
  padding-right: 100px;
  background-color: #0089d0;
}

.contact-info {
  text-align: center;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-info p {
  color: #ffffff;
}

.contact-info img {
  margin: 10px;
}

.contact-text p {
  text-align: left;
  color: #f5f4f3;
  display: flex;
}

.contact-text p img {
  margin-right: 5px;
  width: 20px; /* Adjust the size as needed */
  height: 20px; /* Adjust the size as needed */
  
}

.contact-text a {
  color: #ffffff;
  text-decoration: none;
}

.contact-text a:hover {
  color: #ccc;
}

.contact-info p {
  margin: 5px 0;
}

.social-media-info {
  margin: 0 10px;
}

.social-media-info img {
  width: 50px;
  height: auto;
  vertical-align: middle;
}

.logIn p a {
  text-align: center;
  padding: 20px;
  color: #ccc;
}

.logIn a:hover {
  color: #f37021;
}

/* Hide scroll bar for WebKit browsers */
.scroll-content::-webkit-scrollbar {
  display: none;
}

/* For IE, Edge and Firefox */
.scroll-content {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

.scroll-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 2em;
  z-index: 10;
  background: rgba(255, 255, 255, 0.7); /* Add a background to the arrows */
  padding: 10px; /* Add some padding around the arrows */
  border-radius: 50%; /* Make the arrows circular */
}

.scroll-arrow.left {
  left: -50px;
}

.scroll-arrow.right {
  right: -50px;
}

/* Media Queries for Tablet and iPad in landscape Mode*/
@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: landscape) {
  /* Styles for tablets and iPads */
  header h1 img {
    width: 100%;
    height: auto;
  }

  .contact-info-top {
    display: none;
  }

  nav ul {
    flex-wrap: nowrap;
  }

  nav ul li {
    margin: 10px 20; /* Increase vertical spacing for navigation items */
  }

  nav ul li a {
    font-size: large;
    margin: 5px 0;
  }

  .social-media, .Newlistings, .UnderContract, .Sold {
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 50px;
  }

  .scroll-container .scroll-arrow {
    font-size: 1.5em;
    padding: 5px;
  }

  .scroll-content img, .scroll-content iframe {
    width: 100%;
    max-width: 300px;
  }
}

/* Media Queries for Tablet and iPad in Portrait Mode*/
@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: portrait)  {
  /* Styles for tablets and iPads */
  header h1 img {
    width: 100%;
    height: auto;
  }

  .contact-info-top {
    display: none;
  }

  nav ul {
    flex-wrap: nowrap;
  }

  nav ul li {
    margin: 10px 20; /* Increase vertical spacing for navigation items */
  }

  nav ul li a {
    font-size: large;
    margin: 5px 0;
  }

  .social-media, .Newlistings, .UnderContract, .Sold {
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 50px;
  }

  .scroll-container .scroll-arrow {
    font-size: 1.5em;
    padding: 5px;
  }

  .scroll-content img, .scroll-content iframe {
    width: 100%;
    max-width: 300px;
  }
}

/* Styles for other tablets or devices with widths between 600px and 900px */
@media only screen and (min-width: 600px) and (max-width: 900px) {
  /* Styles for other tablets */
  header h1 img {
    width: 100%;
    height: auto;
  }

  .contact-info-top {
    display: none;
  }

  nav ul {
    flex-wrap: nowrap;
  }

  nav ul li {
    margin: 10px 20; /* Increase vertical spacing for navigation items */
  }

  nav ul li a {
    font-size: large;
    margin: 5px 0;
  }

  .social-media, .Newlistings, .UnderContract, .Sold {
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 50px;
  }

  .scroll-container .scroll-arrow {
    font-size: 1.5em;
    padding: 5px;
  }

  .scroll-content img, .scroll-content iframe {
    width: 100%;
    max-width: 300px;
  }
}

/* Media Queries for Mobile Devices */
@media only screen and (max-width: 480px) {
  header h1 img {
    width: 100%;
    height: auto;
  }

  .contact-info-top {
    display: none;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
  }

  nav ul li a {
    font-size: large;
    margin: 5px 0;
  }

  .social-media, .Newlistings, .UnderContract, .Sold {
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 50px;
  }

  .scroll-container .scroll-arrow {
    font-size: 1.5em;
    padding: 5px;
  }

  .scroll-content img, .scroll-content iframe {
    width: 100%;
    max-width: 300px;
  }

}

/* Desktop devices */
@media (min-width: 1025px) {
  /* Add desktop-specific styles if needed */
}