/* 

=== Responsive Webpage Lab ===

Do not delete existing CSS

*/

/* == Typography == */

body {
    font-family: 'Helvetica', 'Arial', sans-serif;
    font-size: 1rem;
    line-height: 1.29rem;
}

h2 {
    font-size: 1.87rem;
   /* line-height: 1.29rem;*/
}

h3 {
    font-size: 1.1875rem;
   /* line-height: 1.29rem;*/
}

nav {
    font-size: 1.1875rem;
    font-weight: bold;
}

footer div a {
    font-size: 1.1875rem;
    font-weight: bold;
}

#splash {
    text-align: center;
    font-size: 3.43rem;
    line-height: 4.29rem;
    color: white;
    text-shadow: 0rem 0rem 0.27rem #6e6e6e;
}


/* == Background == */

body {
    background-color: white;
}

header,
footer {
    /* background-color: #F5F5F5; */
    background-color: lightblue;
}

a {
    text-decoration: none;
}

#splash {
    background-image: url(images/young-woman-enjoying-being-massaged-by-professional-masseuse-master.jpg);
}



/* === Layout  === */
/* = Grid =*/
header {
    display: grid;
    /* grid-template-columns: repeat(3, 1fr); Adjust the number of columns as needed */
    grid-template-columns: 1fr 1fr 1fr;
    /* flex-basis:calc(100% / 3);  */
    align-items: center;
    justify-content: space-between;
    padding: 10px;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    /* background-color: #f9f9f9; */
    margin-bottom: 0.5rem;
    z-index: 100;
}

.treatments {
    display: grid;
    /* grid-template-columns: repeat(4, 1fr); */
    grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
    margin: 0 auto;
    grid-auto-rows: 1fr;
    
}


section {
    scroll-margin-top: 100px; /* Adjust the margin to match the height of your fixed header */
    /* Add your section styles */
  }

/* CSS Flexbox */
.grid-box {
    display: flex;
    flex-flow: column nowrap;
  }

/* Place elements at the bottom */
/* .m-top treatment-price{
    margin-top: auto;
    margin-left: 2rem;
  } */

.m-top_treatment_book_button{
    /* margin-top: auto; */
    margin-top: auto;
    margin-left: 0.8rem;

}

.m-top-treatment_price{
    margin-top: auto;
    margin-left: 0.8rem;

}

.p-container {
    display: contents; /* Makes the container's children behave as if they were direct children of the grid's parent */
  }
  
.p-container p {
    height: 100%; /* Forces all <p> elements to occupy the full height of their parent container */
  }

.review-articles {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
}

.column {
    display: flex;
    flex-direction: column;
  }

.column p {
    flex-grow: 1;
  }

footer {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

#splash {
    grid-column-start: 1;
    grid-column-end: 4;
}

/* == Box Model == */
body {
    margin: 0px;
    padding: 0px;
}

.treatments div figure {
    margin: 0.43rem;
    padding:  0.43rem;
}

.review-articles {
    margin: 0.43rem;
    padding:  0.43rem;
}

header,
footer{
    padding: 1rem;
}

#splash {
    height: 21.43rem;
    margin-top: 8.4rem;
    position: relative;
    z-index: 0;

}

h2 {
    top: 0.95rem;
    padding: 0rem 0rem 0rem 1rem;;
    bottom: 0rem;
    text-align: center;
}

h3 {
    margin: 0rem;
    padding: 1rem 0rem 0rem 0rem;;
}

.spa_locations {
    padding: 3rem 0rem 0rem 1rem;;
    bottom: 0rem;
    text-align: left;
}

.contact_info {
    top: 0.95rem;
    padding: 3rem 0rem 0rem 1rem;;
    bottom: 0rem;
    text-align: center;
}

.about_us {
    padding: 3rem 0rem 0rem 1rem;;
    bottom: 0rem;
    text-align: left;
}

.legal {
    padding: 1rem 0rem 0rem 1rem;;
    bottom: 0rem;
    text-align: center;
    justify-content: center;
    grid-template-columns: 1fr;
}

#book_appt {
    top: 0.95rem;
    padding: 1rem 1rem 1rem 1rem;;
    bottom: 10rem;
    margin-top: 10rem;

    /* text-align: center; */
} 

p {
    margin: 0rem;
    padding: 0rem;
}

.nav a {
    margin-top: 1.61rem;
    display: block;
}

.nav a:hover {
    color: purple;
    text-decoration: underline;
}


.button-image {
    display: inline-block;
    width: 132px;
    height: 40px;
    background-image: url('images/ButtonBookYourAppt.png');
    /* background-size: cover;  */
    transition: background-image 0.3s;
    background-clip:padding-box;
    margin-top: auto;
  }
  
  .button-image:hover {
    background-image: url('images/ButtonBookYourApptIndigoHover.png');
    width: 132px;
    height: 40px;
    background-clip:padding-box;
  }
  


footer div  a {
    display: block;
}

footer div a:hover {
    color: purple;
    text-decoration: underline;
}

/* .treatments img {
    height: 11.41rem;
    width: 11.41rem;

} */

.social-media i {
    margin-right: 1.5rem;
}

.social-media a:hover {
    color: purple;
    text-decoration: underline;
}

.nav a {
    margin-right: .5rem;
}


/* = Flexbox = */

.nav,
.social-media {
    display: flex;
    align-items: center;
}


.nav,
.social-media {
    align-items: center;
    justify-content: right;
}

#splash {
    display: flex;
}

#splash {
    align-items: center;
    justify-content: center;
    
}

#splash {
    /* Adjust background properties */
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
  }

/* = Colors =*/

a {
    color: #2490BE; 
    /* color: darkblue; */
}

h2 {
    color: #2490BE; 
    /* color: darkblue; */
}

h3 {
    color: #2490BE; 
    /* color: darkblue; */
}

.company-logo{
    color: #2490BE; 
    /* color: darkblue; */
    height: 6rem;
    width: 6rem;
    min-width: 100px;
    min-height: 100px;
}

.social-media {
    color: #2490BE; 
    /* color: darkblue; */
}

.footer-social-media {
    color: #2490BE; 
    /* color: darkblue; */
}



/* = Other = */

#mobile-menu {
    /* position: fixed; */
    top: 0rem;
    right: 0rem;
    margin-right: 1.5rem;
    padding: 0rem;
}

#nav a {
    display: block;
    text-align: left; 
    padding: 0.25rem;
}

.nav {
    display: flex;
}

.nav {
    align-items: flex-end;
    justify-content: flex-end;
    white-space: nowrap; 
}


div a:after {
  content: "";
  display: block;
  height: 0;
  width: 0.05rem;
}


