/* Define the color pallet for the style sheet */
:root {
  /* default color palette */
  --links-color: #faa916; /* dandelion yellow */
  --header-background: #263d36; /* dark green */
  --header-text: white;
  --strong-color: #333; /* dark gray/blue */
  --body-text: #566b78; /* lighter gray/blue */
  --background-color: white;
  --background2: white;
}

body {
    font-family: "Helvetica", "Arial", sans-serif;
    font-size: 1rem;
    margin: 0 auto;
    max-width: 40em;
    line-height: 1.5;
    padding: 1em 1em;
    color: var(--body-text);
    background-color: var(--background-color);
}

h2 { /* titles of posts and articles */
  text-align: center;
}

h2,
h3,
h4,
strong {
    color: var(--strong-color);
}

a {
    color: var(--links-color);
}

.myposts ul { /* Used for listing posts and projects */
  list-style-type: none;
}

/* Set the default image size for all content */
.post-content img {
    max-width: 50%;  /* Limit the image width to the container’s width */
    height: auto;     /* Adjust height automatically to maintain aspect ratio */
    display: block;    /* Remove any inline spacing issues */
    margin: 0 auto;
}

/* Start of the primary website header */
header {
    background-color: var(--header-background);
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
    line-height: 1.2;
    padding: 1em 1em;
    text-align: center;
}

header h1 {
    color: var(--header-text);
    font-size: 2.5em;
    font-weight: 300;
}

header a {
    border: 1px solid #381c4f;
    border-radius: 290486px;
    color: white;
    font-size: 0,6em;
    letter-spacing: 0.2em;
    padding: 1em 2em;
    text-transform: uppercase;
    text-decoration: none;
    transition: none 200ms ease-out;
    transition-property: color, background;
  }

header a:hover {
    background: var(--links-color);
    color: var(--background-color);
}

/* .profile-pic makes the pic in the header circular*/
.profile-pic {
  width: 50px; /* set the size of the container */
  height: 50px;
  border-radius: 50%; /* Make the image round */
  overflow: hidden;
  object-fit: cover;
  object-position: 0% 50%;
  vertical-align: middle; /* lower the image so it centers with text */
}
/*End of primary website header */

/* Start of Navigation Links */
nav ul {
  font-size: 1.1rem;
  display: flex;
  justify-content: center;
  max-width: 80ch;
  list-style: none;
  padding: 0;
  margin: 0 auto;
}

nav li {
  flex: 1;
  display: flex;
}

nav li a {
  display: block;
  width: 100%;
  text-align: center;
  padding: 1em 0;
}
/* End of Navigation Links */

/* formats for forms. Currently only used for the finance calculator */
.form-section {
  margin-bottom: 5px;
  padding: 15px;
  background-color: var(--background2);
  border-radius: 5px;
}
.form-section h3 {
  margin-top: 0;
  color: var(--header-text);
}
label {
  display: block;
  margin-top: 10px;
  margin-bottom: 5px;
  font-weight: bold;
}
input[type="number"], input[type="range"] {
  padding: 8px;
  border: 1px solid var(--body-text);
  border-radius: 4px;
  font-size: 14px;
}
input[type="number"] {
  width: 200px;
}
input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  background: var(--links-color);
}
.slider-display {
  display: flex;
  gap: 20px;
  margin-top: 10px;
  font-weight: bold;
}
.slider-display div {
  flex: 1;
}
#results {
  margin-top: 30px;
}
/*End of forms styling */

/* footer formats */
footer {
    text-align: center;
    border-top: 2px solid var(--body-text);
    /* padding-top: 20px; /* Space between line and content inside footer */
    /* or */
    margin-top: 30px; /* Space between the content above and the footer */
}

footer a {
  color: var(--body-text);
}
/* End of footer formats */
