a {
  color: #ffff00;
  text-decoration: none;
}
a:hover {
  background-color: #ffaa00;
  color: #000080;
}
.nav {
  margin-left: 0;
  list-style: none;
  background: #bbbbbb;
}
.nav li a:hover {
  color: #bbbbbb;
  background: #000
}
.about {
  color: #55ffff
}
body {
  background-color: #000080; /* Classic DOS blue */
  color: #ffffff;
  font-family: "Courier New", monospace;
  padding: 20px;
  line-height: 1.2;
}

/* Name container styling */
.name-container {
  margin: 20px 0;
  padding: 10px;
  background-color: #000060;
  border: 1px solid #55ffff;
  overflow-x: auto;
  position: relative;
}

/* ASCII art styling */
.ascii-art {
  white-space: pre;
  margin: 0;
  font-family: monospace;
  text-shadow: 5px 5px 5px #55ffff;
  font-size: 0.5em;
  line-height: 1;
  text-align: center;
  background: none;
  color: #fff;
}

/* Terminal styling */
.terminal {
  border: 2px solid #bbbbbb;
  padding: 0;
  margin-top: 1.5rem;
  box-shadow: 5px 5px 0 #000040;
  position: relative;
}

.terminal-header {
  background-color: #aaaaaa;
  color: #000080;
  padding: 5px 10px;
  font-weight: bold;
  border-bottom: 1px solid #ffffff;
}

.terminal-title {
  font-size: 1rem
}

/* About content styling */
.terminal-content {
  margin: 1rem 0;
  position: relative;
  padding: 1rem;
}

.terminal-card {
  background-color: #000060;
  border: 1px solid #55ffff;
  padding: 1rem;
  position: relative;
}

.terminal-card::before {
  position: absolute;
  top: -10px;
  left: 10px;
  background-color: #000080;
  padding: 0 10px;
  font-size: 12px;
  color: #ffff00;
}

.about-card.terminal-card::before {
  content: "PROFILE DATA";
}

.projects-card.terminal-card::before {
  content: "PROJECT DATA"
}

/* About list styling */
.terminal-list {
  list-style-type: none;
  padding-left: 5px;
  margin: 10px 0;
}

.terminal-item {
  list-style: none;
  margin-bottom: 10px;
}

/* Status bar styling */
.status-bar {
  color: #ffffff;
  font-size: 0.75rem;
  span {
    display: inline-block;
    min-width: 4rem;
    text-align: center;
  }
  .complete {
    color: #fff;
    background: grey;
    padding: 0.25rem;
  }
  .active {
    color: #fff;
    background: green;
    padding: 0.25rem;
  }
}

/* Responsive display controls */
.desktop-only {
  display: block;
}

.mobile-only {
  display: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .desktop-only {
    display: none;
  }

  .mobile-only {
    display: block;
  }

  .about-item {
    flex-direction: column;
  }

  .item-icon {
    margin-bottom: 5px;
  }
}

.section-header {
  margin-bottom: 15px;
  color: #ffffff;
}

.projects {
  margin-top: 30px;
  color: #55ffff;
}

.project {
  margin-bottom: 20px;
  padding: 10px;
  border-left: 2px solid #55ffff;
}

.project-title-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}
.project-title {
  color: #ffffff;
  font-weight: bold;
  font-size: 1.5rem;
  margin-left: -6px;
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .project-title-container {
    flex-direction: column;
    align-items: start;
    .project-title {
      margin-bottom: 0.5rem;
      white-space: nowrap;
      overflow: hidden;
    }
  }
}

.section-header h2 {
  color: #55ffff;
  font-size: 24px;
  text-transform: uppercase;
  border-bottom: 1px solid #55ffff;
  padding-bottom: 5px;
  margin-bottom: 15px;
}

.project-desc {
  color: #aaaaaa;
  margin-bottom: 5px;
  p, mark {
    color: #fff;
  }
}

.project-links {
  color: #55ffff;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
  background-color: #000080; /* DOS blue */
  border: 2px solid #55ffff;
  margin: 10% auto;
  width: 75%;
  max-width: 75%;
  box-shadow: 0 0 1rem #55ffff;
  animation: modalFadeIn 0.3s;
  display: flex;
  flex-direction: column;
  height: 75%
}

@keyframes modalFadeIn {
  from {opacity: 0; transform: translateY(-20px);}
  to {opacity: 1; transform: translateY(0);}
}

.modal-header {
  padding: 0.75rem 1rem;
  background-color: #55ffff;
  color: #000080;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-family: "Courier New", monospace;
  font-weight: bold;
  font-size: 1.5rem;
  margin-bottom: 0;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  height: 100%;
  display: flex;
  align-items: center;
}

.close-modal {
  color: #000080;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
}

.close-modal:hover {
  color: #ff0000;
}

.modal-body {
  padding: 1rem;
  color: #ffffff;
  overflow-y: auto;
  flex-grow: 1;
}

.modal-body::-webkit-scrollbar {
  width: 8px;
}

.modal-body::-webkit-scrollbar-track {
  background: #000040;
}

.modal-body::-webkit-scrollbar-thumb {
  background-color: #55ffff;
}

#modal-image {
  max-width: 100%;
  border: 1px solid #55ffff;
}

.modal-description {
  font-family: "Courier New", monospace;
  line-height: 1.4;
  padding: 0.75rem;
  background-color: #000040; /* Darker blue */
  border-left: 3px solid #55ffff;
  margin-bottom: 1rem;
}

.modal-footer {
  padding: 0.75rem 1rem;
  text-align: right;
  color: #aaaaaa;
  font-size: 0.5rem;
  border-top: 1px solid #55ffff;
}

.modal-prompt {
  margin: 0;
  font-style: italic;
}

/* Project */

/* Feature list styling */
.feature-heading {
  color: #55ffff;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  border-bottom: 1px dotted #55ffff;
  padding: 0.25rem 0;
}

.feature-list {
  list-style-type: none;
  padding-left: 0.5rem;
  margin-top: 0.5rem;
}

.feature-item {
  margin-bottom: 0.75rem;
  position: relative;
  padding-left: 1.25rem;
  line-height: 1.4;
  list-style: none;
}

.feature-item::before {
  content: ">";
  position: absolute;
  left: 0;
  color: #55ffff;
  font-weight: bold;
}

.feature-key {
  color: #ffff00;
  font-weight: bold;
}

/* Image gallery styling */
.image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.screenshot-container {
  text-align: center;
  margin-bottom: 1rem;
}

.screenshot-figure {
  margin: 0;
  border: 1px solid #55ffff;
  background-color: #000040;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.screenshot-figure:hover {
  transform: scale(1.02);
  box-shadow: 0 0 15px rgba(85, 255, 255, 0.5);
}

.screenshot-img {
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  transition: opacity 0.5s ease;
  cursor: pointer;
}

.screenshot-img:hover {
  outline: 2px solid #ffff00;
}

.screenshot-img.loaded {
  opacity: 1;
}

.screenshot-caption {
  padding: 0.75rem;
  background-color: rgba(0, 0, 64, 0.8);
  color: #ffffff;
  text-align: center;
  font-style: italic;
  border-top: 1px solid #55ffff;
}

/* Responsive adjustments for the gallery */
@media (max-width: 768px) {
  .image-gallery {
    grid-template-columns: 1fr;
  }

  .modal-content {
    width: 90%;
    max-width: 90%;
    margin: 5% auto;
    height: 85%;
  }
}

/* DOS Viewer Styles */
.dos-viewer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000080;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  animation: bootAnimation 0.3s ease-in-out;
}

@keyframes bootAnimation {
  0% {
    opacity: 0;
    transform: scale(0.95);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.dos-viewer-exit {
  animation: shutdownAnimation 0.3s ease-in-out forwards;
}

@keyframes shutdownAnimation {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(0.95);
  }
}

.dos-viewer-header {
  background-color: #55ffff;
  color: #000080;
  padding: 0.5rem;
  text-align: center;
  font-weight: bold;
  border-bottom: 1px solid #ffffff;
}

.dos-viewer-body {
  flex-grow: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #000040;
  overflow: auto;
  padding: 1rem;
}

.dos-viewer-image {
  max-width: 100%;
  max-height: 100%;
  width: auto; /* Ensure image maintains aspect ratio */
  height: auto; /* Ensure image maintains aspect ratio */
  object-fit: contain;
  border: 1px solid #55ffff;
  transition: opacity 0.2s ease;
}

.dos-viewer-footer {
  background-color: #000080;
  border-top: 1px solid #55ffff;
  padding: 0.5rem;
  display: flex;
  justify-content: space-between;
  color: #ffffff;
}

.dos-viewer-nav {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.dos-nav-item {
  cursor: pointer;
  padding: 0.25rem;
}

.dos-nav-item:hover {
  background-color: #0000aa;
}

.dos-key {
  background-color: #55ffff;
  color: #000080;
  padding: 0.1rem 0.3rem;
  border: 1px outset #aaaaaa;
  font-weight: bold;
  margin-right: 0.25rem;
}

.dos-nav-item:hover .dos-key {
  background-color: #ffffff;
}

.dos-viewer-counter {
  color: #55ffff;
}

.links {
  margin-top: 1rem;
}
.footer {
  font-size: 0.75rem;
  margin-top: 0.5rem;
}

