/* Basic responsive styling */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
}

h1 {
    font-size: clamp(2rem, 5vw, 5rem);
}

h2 {
    font-size: clamp(1.5rem, 4vw, 3.5rem);
}

p {
    font-size: clamp(1rem, 3vw, 2rem);
}

/* Alternative approach using media queries for more control */
@media screen and (max-width: 768px) {
    h1 {
        font-size: clamp(1.5rem, 6vw, 3rem);
    }
    
    h2 {
        font-size: clamp(1.2rem, 4.5vw, 2.5rem);
    }
    
    p {
        font-size: clamp(0.9rem, 3.5vw, 1.5rem);
    }
}

@media screen and (max-width: 480px) {
    h1 {
        font-size: clamp(1.2rem, 7vw, 2.5rem);
    }
    
    h2 {
        font-size: clamp(1rem, 4.5vw, 2rem);
    }
    
    p {
        font-size: clamp(0.8rem, 3.5vw, 1.2rem);
    }
}


/* Top Navigation */
.topnav { 
  width: 100%;
  margin: auto;
  overflow: hidden;
  background-color: #333;
  max-width: 1365px; /* Match hero section max-width */
}

.topnav a {
  float: left;
  display: block;
  color: #f2f2f2;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 17px;
}

.topnav img {
    height: 24px;
    vertical-align: middle;
    margin-right: 8px;
}

.topnav a:hover {
  background-color: #f2f2f2;
  color: #333;
}

.topnav a.active {
  background-color: #8C26A8;
  color: #f2f2f2;
  display: flex;
  align-items: center;
}

.topnav .icon {
  display: none;
}

@media screen and (max-width: 600px) {
  .topnav a:not(:first-child) {display: none;}
  .topnav a.icon {
    float: right;
    display: block;
  }
}

@media screen and (max-width: 600px) {
  .topnav.responsive {position: relative;}
  .topnav.responsive .icon {
    position: absolute;
    right: 0;
    top: 0;
  }
  .topnav.responsive a {
    float: none;
    display: block;
    text-align: left;
  }
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 35vh;
    overflow: hidden;
    width: 100%;
    margin: auto;
    max-width: 1365px;
}

.hero-image {
  background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url("Mountain_climbers.JPG");
  width: 100%;
  height: 400px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}

.hero-text {
    position: relative;
    padding-top: 5%;
    padding-bottom: 5%;
    padding-left: 5%;
    text-align: left;
    color: #FFFFFF;
}

@media screen and (max-width: 480px) {
    .hero-text {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        padding-top: 10px;
        padding-bottom: 20px;
        padding-left: 5%;
        padding-right: 5%;
        text-align: left;
        color: #FFFFFF;
        box-sizing: border-box;
    }
}

/* Store Links */
.store-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
    padding: 20px;
}

.app-store-link img,
.google-play-link img {
    width: 150px;
    height: auto;
}

/* Main Content Sections */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1%;
}

section {
    margin-top: 40px;
    margin-bottom: 40px;
}
.features {
    background-color: #e8e7e7;
    padding: 20px;
    overflow: hidden;
}

.image-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
    justify-items: center;
    align-items: center;
}

@media screen and (max-width: 768px) {
    .image-row {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        height: auto;
    }
}

.image-row img {
    max-width: 100%;
    height: auto;
    max-height: 75vh; /* Scale to 75% of viewport height */
    object-fit: contain;
    border-radius: 8px;
    transform: none;
}

/* Specific styling for connections image */
.connections-image {
    max-width: 100%;
    height: auto;
    max-height: 75vh;
    object-fit: contain;
}

/* Responsive adjustments for connections image */
@media screen and (max-width: 768px) {
    .connections-image {
        max-height: 300px;
    }
}

@media screen and (max-width: 480px) {
    .connections-image {
        max-height: 200px;
    }
}

.Murmur-store-text {
    text-align: center;
    font-size: clamp(1rem, 3vw, 1.5rem);
    padding-left: 20px;
    margin-top: 20px;
}
.about {
    padding-left: 5%;
    padding-right: 5%
}
.contact {
    padding-left: 5%;
    padding-right: 5%;
}
/* Responsive adjustments for image row */
@media screen and (max-width: 768px) {
    .image-row {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .image-row img {
        max-height: 200px;
    }
}

@media screen and (max-width: 480px) {
    .image-row img {
        max-height: 200px;
    }
}

/* Footer */
footer {
    background-color: #e8e7e7;
    padding: 40px 20px 20px;
    color: #333;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
    text-align: center;
}

.sitemap {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 20px;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

.sitemap-column {
    flex: 1 1 150px;
    min-width: 150px;
    margin-bottom: 20px;
    padding: 0 10px;
    box-sizing: border-box;
}

.sitemap-column h3 {
    font-size: 1.1em;
    margin-top: 0;
    margin-bottom: 15px;
    color: #000;
}

.sitemap-column ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.sitemap-column li {
    margin-bottom: 8px;
}

.sitemap-column a {
    text-decoration: none;
    color: #666;
    transition: color 0.3s ease;
}

.sitemap-column a:hover {
    color: #017637;
}

.footer-copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #f2f2f2;
    font-size: 0.9em;
    color: #666;
    width: 100%;
    box-sizing: border-box;
}

/* Responsive adjustments */
@media screen and (max-width: 600px) {
    .store-links {
        flex-direction: column;
        gap: 10px;
    }
    
    .sitemap {
        flex-direction: column;
    }
    
    .sitemap-column {
        min-width: 100%;
    }
}
