body {
  margin: 55px auto;
  width: 61.8%;
  max-width: 95%;
  color: #222;
  background: #fff;
  font: 100% system-ui;
}
a {
  color: #0033cc;
}
  a.no-color-change {
    color: inherit;
  }

@media (prefers-color-scheme: dark) {
  body {
    color: #eee;
    background: #121212;
  }

  body a {
    color: #999; /*809fff*/
  }
  body h2 {
    border-bottom: 1px solid white;
    font-size: 1.3em;
    font-family:'Helvetica', 'Arial', 'Sans-Serif';
  }
  body p {
    font-size: 1.26em;
    line-height: 1.4em;
    color: #ffffff;
  }
  body footer {
    border-top: 1px solid white; /*#d5d5d5;*/
    font-size: 1em;
  }
  .invert_effect {
    filter: invert(100%);
  }
}


/*
body {
    margin: 60px auto;
    width: 77%;
    background-color: white;
    color: black;
}
.dark-mode {
  background-color: black;
  color: white;
}*/

@media (max-width: 860px) { /* For devices with a screen width of 768px or less */
    body {
        margin: 0 auto; /* Remove auto margin for full-width layout */
        width: 95vw !important; /* Make the body take up the full width of the screen */
/*        padding: 0 10px;  Optional: Add some padding for better readability */
    }
    
    .container {
      width: 95%;
      max-width: none;
      margin: 0 auto;
    }
    body p {
      font-size: 1.1em;
      line-height: 1.3em;
    }
    .profile-container {
        flex-direction: column; /* Stack elements vertically */
        align-items: center; /* Center the items */
        gap: 0 !important;
    }

    .profile-header {
        margin-bottom: 0px; /* Add spacing below the profile-header */
    }

    .profile-info {
        text-align: left; /* Optional: Center-align text for better readability */
        margin-top: 20px !important; /* Remove any top margin */
    }
    .profile-info p {
      margin-top: 0; /* Remove any top margin */
    }
    ul.posts li {
      list-style: none;
    }
    .bigFont li{
      font-size: 1.0em !important;       /* 1.5 */
    }


    
    li span[style*="float:right;"] {
      float: none !important;
      display: block;
      margin-top: 0px;
      text-align: left;
      margin-bottom: 0px;
      top: 0 !important;
    }

}



li span[style*="float:right;"] {
  float: right; /* Keeps the span aligned to the right */
  position: relative; /* Enables adjustment of position */
  top: -2.8em; /* Moves the span upwards by approximately two lines */
}

nav ul, footer ul {
    font-size: 0.8em;   /* 1.5 */
    font-family:'Helvetica', 'Arial', 'Sans-Serif';
    padding: 0px;
    list-style: none;
    font-weight: bold;
}
nav ul li, footer ul li {
    display: inline;
    margin-right: 20px;
}
a {
    text-decoration: none;
    color: #999;
    white-space: normal;
    text-decoration-line: none;
}
a:hover {
    text-decoration: underline;
}
  a.no-color-change {
    color: inherit;
  }
h1 {
    font-size: 2.5em;       /* 3 */
    font-family:'Helvetica', 'Arial', 'Sans-Serif';
}
h2 {
    border-bottom: 1px solid black;
    font-size: 1.3em;         /* 2 */
    font-family:'Helvetica', 'Arial', 'Sans-Serif';
}
p {
    font-size: 1.26em;   /* 1.5 */
    line-height: 1.4em;
    color: #333;
}
footer {
    border-top: 1px solid black; /*#d5d5d5;*/
    font-size: 1em;
    padding: 0px 0; /* Adds padding inside the footer */
    margin-top: 20px; 
    margin-bottom: 50px; /* Ensures there's space between the footer and the bottom of the page */
    text-align: center; /* Centers the footer content */
}


ul.posts { 
    margin: 20px auto 40px; 
    font-size: 1.5em;
}

ul.posts li {
    list-style: none;
}
.bigFont li{
font-size: 1.1em;       /* 1.5 */
line-height: 1.4em;
}

ul {
  list-style-type: none;
  padding: 0;
}

img.circular {
    border-radius: 50%; /* Make the image circular */
    object-fit: cover; /* Ensure the image fills the circle properly */
}



.profile-container {
    display: flex;
    flex-wrap: wrap;
    gap: 55px;
    align-items: center;
    margin-bottom: 30px; /* Reduce space below the profile section */
    margin-top: 20px;
}

.profile-info {
    flex: 1;
    margin-top: 30px; /* Add space above profile-info to drop it down */

}

.profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-shrink: 0;
    margin: 20px auto;
    margin-bottom: 0px; /* Reduce space below the profile section */
}

.profile-header img {
    display: block;
    margin: 0 auto; /* Center the image */
}

.profile-header h1 {
    margin-top: 10px; /* Add spacing between the image and text */
    font-size: 1.5em; /* Adjust font size */
    margin-bottom: 5px; /* Reduce space below the profile section */
}

.profile-header ul {
    display: flex; /* Aligns items horizontally */
    list-style-type: none; /* Removes the default list bullets */
    padding: 0; /* Removes any default padding */
    margin: 0; /* Removes any default margin */
    gap: 10px; /* Adds space between the icons */
}

.profile-header li {
    display: inline-block; /* Ensures the <li> items are aligned in a row */
}

/*
.profile-header img {
    height: 1.5em; /* Adjust icon size as needed *
    vertical-align: middle; /* Aligns the icons vertically in the center *
}*/