
body {
  font-family: Arial, sans-serif;
  color: azure;
  margin: 0;
  padding: 0;
  background-image: url("iStock-1208290498.jpg");
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
}

.container {
  background-color: rgba(0, 0, 0, 0.6);
  max-width: 50%;
  margin: 20px auto;
  padding: 20px;
  border-radius: 8px;
  overflow: hidden; 
}

.counter {
  text-align: right;
}

.name {
  color: #007bff;
}

.counter h2 {
  color: #007bff;
  text-align: right;
}

.counter p {
  text-align: right;
}
h1, .name, .deets {
  text-align: center;
}

.deets a {
  color: #007bff;
  text-decoration: none;
}

.deets a:hover {
  color: darkorange;
}

/* Project Section Styles */
.project {
  margin-top: 10px;
}

.project a {
  color: #007bff;
  text-decoration: none;
}

.project a:hover {
  color: darkorange;
  text-decoration: underline;
}

/* Section Styling */
.section {
  margin-top: 20px;
}

.section h2 {
  color: #007bff;
  margin-top: 20px;
}

.job {
  display: flex;
  justify-content: space-between;
}

@media (max-width: 768px) {
  .project_item {
    flex-direction: column; /* Stack elements vertically */
    text-align: center;
  }

  .project_image {
    width: 80%; /* Use full width on smaller screens */
    max-width: 400px; /* Limit maximum width */
    margin: 0 auto; /* Center the image */
  }

  .project_story, .project_story_2 {
    width: 100%; /* Full width for text */
    font-size: 1em; /* Adjust font size */
    text-align: center; /* Center-align text on smaller screens */
    word-wrap: break-word; /* Prevents long words from overflowing */
  }

  .container {
    max-width: 95%;
    padding: 10px;
  }

  h1 {
    font-size: 1.5em;
  }

  p, ul {
    font-size: 1em;
  }

  .counter {
    text-align: center;
  }

  .deets {
    font-size: 0.9em;
  }
}

/* For very small screens (mobile devices) */
@media (max-width: 480px) {
  .container {
    padding: 5px;
    width: 80%;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  h1 {
    font-size: 1.2em;
  }

  p, ul {
    font-size: 0.9em;
  }

  .deets {
    font-size: 0.8em;
    padding: 0;
    margin: 0;
  }

  .project_image {
    width: 100%;
    max-width: 400px; /* Further limit for very small screens */
    display: block;
    margin: 0 auto;
  }

  .project_story, .project_story_2 {
    padding: 10px;
    text-align: left; /* Align text left for better readability */
    margin: 0;
  }

  /* Ensure text does not overflow */
  p, .deets, .project_story, .project_story_2 {
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto; /* Add hyphenation for long words */
  }

  body, html {
    width: 100%;
    overflow-x: hidden;
  }
}
