/* Basic styles */
body,
html {
  font-family: "Montserrat", sans-serif;
  margin: 0;
  padding: 0;
  height: 100%;
  background-image: url("img/logomaman.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  background-attachment: fixed; /* this will keep the image fixed while the content scrolls */
}

header {
  display: flex;
  justify-content: space-around;
  padding: 20px 0;
  background-color: rgba(255, 255, 255, 0.893);
  backdrop-filter: blur(3px);
}

button {
  font-family: "Montserrat", sans-serif;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0);
  border-radius: 40px;
  background-color: rgba(128, 0, 128, 1);
  font-size: large;
  padding: 10px 20px;

  transition: background-color 0.3s ease, color 0.3s ease, border 0.3s ease;
}

/* Optional: Change the background color slightly on hover for a subtle effect */
button:hover {
  background-color: rgb(255, 255, 255);
  color: rgba(128, 0, 128, 1);
  border: 2px solid rgba(128, 0, 128, 1);
}
p {
  text-align: justify;
  text-justify: inter-word;
  color: rgb(20, 20, 20);
}
.content-div {
  position: relative;
  display: none; /* hide all by default except services */
  flex-direction: column; /* new line: makes children display in a column */
  justify-content: flex-start;
  align-items: center;
  border: none;

  width: 100%;
  height: 100%;
  box-sizing: border-box; /* New property here */
  /* max-height: calc(100vh - 60px); /* adjust based on header height */
  overflow-y: scroll; /* makes it scrollable if content exceeds max-height */
  background-color: rgba(255, 255, 255, 0.654);
  backdrop-filter: blur(6px);
}

.end-image {
  display: block;
  margin: 0 auto;
  width: 40%;
}
.centered-text {
  text-align: center;
}
.phone {
  font-size: larger;
}
.content-inner {
  width: 70%; /* control width of inner content */
  margin: 0 auto; /* center the inner content horizontally */
  padding: 50px; /* padding for the inner content */
  box-sizing: border-box; /* include padding in width */
  height: 100%; /* take the full height of content-div */
  overflow-y: auto; /* scroll if content exceeds height */
}

#kinesiologie {
  display: flex; /* show the services div by default */
  justify-content: center;
}
#soins {
  display: none; /* show the services div by default */
  justify-content: center;
}

h2 {
  margin-top: 20px; /* spacing for the titles */
  margin-bottom: 10px;
  color: rgb(30, 29, 29);
}
#end {
  margin-bottom: 5vb;
}
/* Flexbox layout */
.container {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-grow: 1;
  min-height: calc(100% - 60px); /* 100% minus estimated header height */
}
h4 img {
  width: 1.5em;
}
#metamorphosium {
  font-family: "Montserrat", sans-serif;
  text-align: center;
  color: rgba(128, 0, 128, 1);
  font-size: 3em;
  padding: 10px 20px;
  background-color: rgba(255, 255, 255, 0.893);
  backdrop-filter: blur(3px);
  margin: 0px;
}
/* Responsive styles for tablet and mobile devices */
@media (max-width: 768px) {
  #metamorphosium {
    font-size: 2em;
  }
  header {
    padding: 15px 10px;
  }

  button {
    font-size: medium;
    padding: 8px 15px;
  }

  h2 {
    font-size: 1.5em;
  }

  .content-inner {
    width: 90%;
    padding: 25px;
  }

  .end-image {
    width: 60%;
  }
}

/* For very small mobile screens */
@media (max-width: 480px) {
  header {
    padding: 10px 5px;
  }

  button {
    font-size: small;
    padding: 6px 10px;
  }

  h2 {
    font-size: 1.2em;
  }

  p {
    font-size: 0.9em;
  }

  .phone {
    font-size: medium;
  }

  .end-image {
    width: 70%;
  }
}
