/* Header Styling */

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    position: relative;  /* Make body a positioning context */
    background-image: url("../assets/OnlineTherapist.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }

  /* Overlay for the background image */
  body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: rgba(0, 0, 0, 0.5); /* Dark overlay with opacity */
    z-index: -1; /* Ensure overlay is behind the content */
  }

  body::-webkit-scrollbar {
    width: 5px;
    /* Width of the scrollbar */
  }
  
  body::-webkit-scrollbar-track {
    background: #f1f1f1;
    /* Background color of the track */
    border-radius: 10px;
    /* Rounded corners for the track */
  }
  
  body::-webkit-scrollbar-thumb {
    background: #c2cb61;
    /* Color of the scrollbar */
    border-radius: 10px;
    /* Rounded corners for the thumb */
  }
  
  body::-webkit-scrollbar-thumb:hover {
    background: #555;
    /* Darker color when hovered */
  }

header {
    background: rgba(28, 61, 205, 0.772);
    color: #fff;
    padding: 5px;
    text-align: center;
    border-bottom: 5px solid #00307a;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-media-icons {
    display: flex;
    align-items: center;
    margin-left: 10px;
}

.social-media-icons a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-family: 'Open Sans', sans-serif;
    font-style: italic;
}

.social-media-icons a:hover h2 {
    animation: shake 0.5s forwards;
}

.nav-links {
    list-style: none;
    display: flex;
    justify-content: flex-end;
    padding: 0;
    margin: 0;
}

.nav-links li {
    margin: 0 1rem;
}

.nav-links a {
    color: white;
    font-weight: bold;
    font-family: 'Open Sans', sans-serif;
    font-style: italic;
    text-decoration: none;
    transition: transform 0.3s ease, color 0.3s ease;
}

.nav-links a:hover {
    transform: scale(1.1);
    color: darkgray;
}


.container {
    padding: 20px;
    max-width: 800px;
    width: 100%;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin: 85px;
  }
  
  .centered-section {
    text-align: center;
  }
  
  h1 {
    color: #2c3e50;
    margin-bottom: 20px;
  }
  
  .crit {
    color: #34495e;
    margin-top: 20px;
  }
  
  ul {
    text-align: left;
    margin: 10px 0 20px;
    padding-left: 20px;
  }
  
  li {
    margin-bottom: 10px;
  }
  
  strong {
    color: #2c3e50;
  }
  
  p {
    margin-bottom: 20px;
    line-height: 1.6;
  }


  /* Small Devices (phones) */
@media (max-width: 600px) {
  body {
    background-position: top;
    flex-direction: column;
    padding: 10px;
  }

  header {
    flex-direction: column;
    padding: 10px 5px;
    text-align: center;
  }

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

  .nav-links li {
    margin: 0.5rem 0;
  }

  .social-media-icons {
    justify-content: center;
    margin: 10px 0;
  }

  .container {
    margin: 100px 10px 20px;
    padding: 15px;
    width: 100%;
  }

  h1 {
    font-size: 1.5rem;
  }

  p, li {
    font-size: 0.95rem;
  }
}

/* Medium Devices (tablets) */
@media (min-width: 601px) and (max-width: 1024px) {
  body {
    padding: 20px;
  }

  header {
    padding: 8px 10px;
  }

  .container {
    margin: 100px auto;
    padding: 20px;
    max-width: 90%;
  }

  h1 {
    font-size: 2rem;
  }

  p, li {
    font-size: 1rem;
  }
}

/* Large Devices (desktops) */
@media (min-width: 1025px) {
  .container {
    margin: 100px auto;
    padding: 30px;
    max-width: 800px;
  }

  h1 {
    font-size: 2.25rem;
  }

  p, li {
    font-size: 1.1rem;
  }
}
