* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "VT323", monospace;
  background-color: #ffffff; /* Clean white background */
  color: #333;
  line-height: 1.6;
  overflow-x: hidden; /* Prevent horizontal scroll */
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.5rem 1rem; /* Further reduced padding */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header - updated with smaller text and less padding */
header {
  padding: 0.5rem 0; /* Reduced padding */
  margin-bottom: 1rem; /* Reduced from 1.5rem */
  position: relative;
}

nav ul {
  display: flex;
  list-style: none;
  justify-content: space-between;
  width: 100%;
  margin-top: 0; /* Remove top margin */
}

nav ul li {
  text-align: center;
}

nav ul li:first-child {
  margin-right: auto; /* Push to left */
}

nav ul li:last-child {
  margin-left: auto; /* Push to right */
}

nav ul li a {
  text-decoration: none;
  color: #000000;
  font-size: 17px; /* Set to exactly 17px as requested */
  letter-spacing: 1px;
  position: relative;
  text-transform: lowercase;
  transition: all 0.3s;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.05);
}

nav ul li a:hover {
  color: #0008ff;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

/* Bio section - updated with black theme */
/* Updated Bio section with profile image */
.bio-content {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.bio-image {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid #000000;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bio-image:hover {
  transform: translateY(-3px);
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.3);
}

.bio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bio-text {
  flex-grow: 1;
  font-size: 1rem;
}

.bio-text p {
  margin: 0;
}

@media (max-width: 768px) {
  .bio-content {
    flex-direction: column;
    gap: 1rem;
  }

  .bio-image {
    width: 70px;
    height: 70px;
  }
}

@media (max-height: 700px) {
  .bio-image {
    width: 60px;
    height: 60px;
  }
}

.bio::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(to right, #000000, #333333);
}

.bio::after {
  content: "";
  position: absolute;
  top: 5px;
  right: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #333333;
  box-shadow: 0 0 5px #333333;
  animation: blink 2s infinite;
}

@keyframes blink {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}

/* Main content */
main {
  flex-grow: 1;
  padding: 0.5rem 0; /* Reduced padding */
  position: relative;
  display: flex;
  flex-direction: column;
}

.folders-area {
  position: relative;
  height: 450px; /* Reduced height to ensure footer is visible */
  margin-top: 1rem;
  margin-bottom: 1rem; /* Added margin bottom to ensure space before footer */
  overflow: visible;
}

.custom-folder-icon {
  width: 50px;
  height: 50px;
  object-fit: contain;
  margin-bottom: 0;
  display: block; /* Ensure proper display */
}

.folder {
  cursor: grab;
  width: 120px;
  height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, box-shadow 0.2s;
  position: absolute;
  border: none;
  background: transparent;
  padding: 10px;
  border-radius: 5px;
  user-select: none;
  touch-action: none;
  /* Added tighter spacing between icon and text */
  gap: 5px;
}

.folder:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

.folder:active {
  cursor: grabbing;
}

.folder-icon {
  font-size: 3rem;
  pointer-events: none;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
  margin-bottom: 0; /* Ensure no bottom margin */
  line-height: 0; /* Reduce line height to tighten spacing */
}

.folder-name {
  font-size: 1.2rem;
  text-align: center;
  text-transform: lowercase;
  letter-spacing: 1px;
  pointer-events: none;
  color: #333333;
}

/* Footer */
footer {
  padding: 1rem 0; /* Reduced padding */
  margin-top: auto;
  border-top: 2px solid #000000;
  text-align: center;
  position: relative;
}

footer::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: rgba(0, 0, 0, 0.2);
}

.social-links {
  letter-spacing: 1px;
  font-family: "Press Start 2P", cursive;
  font-size: 9px;
}

.social-links a {
  color: #000000;
  text-decoration: none;
  transition: all 0.3s;
  padding: 0 5px;
}

.social-links a:hover {
  color: #ff0000;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

/* Modal styles - updated for black theme */
.folder-modal {
  font-family: "VT323", monospace;
  background-color: #f5f5f5 !important;
  border: 1px solid #000000 !important;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.2) !important;
  border-radius: 5px;
}

.folder-modal-header {
  background: linear-gradient(to right, #000000, #333333);
  padding: 8px 15px !important;
  border-bottom: 1px solid #000000 !important;
}

.folder-modal-header h2 {
  text-transform: lowercase;
  letter-spacing: 1px;
  color: white;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.close-button {
  background: rgba(255, 255, 255, 0.2) !important;
  color: white !important;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  width: 25px;
  height: 25px;
  line-height: 20px;
  text-align: center;
  border-radius: 3px;
  transition: all 0.3s;
}

.close-button:hover {
  background: rgba(255, 255, 255, 0.4) !important;
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.folder-modal-content {
  padding: 15px;
  color: #333;
}

/* Screen effect - modified for subtle tech look with black theme */
.screen-effect {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  background: linear-gradient(rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.02) 50%);
  background-size: 100% 2px;
  z-index: 9999;
}

/* Add this to your style.css file */
/* filepath: /Users/johnkeller/My Mac (Johns-MacBook-Pro.local)/Main/johnkeller/style.css */

/* These styles are already in your style.css file */
/* Preview modal styles */
.preview-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 9000;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.preview-container {
  max-width: 90%;
  max-height: 80vh;
  position: relative;
}

.preview-image {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border: 1px solid #ffffff;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease;
}

.preview-controls {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 10px;
}

.preview-button {
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 5px 10px;
  font-family: "VT323", monospace;
  cursor: pointer;
  transition: all 0.2s;
}

.preview-button:hover {
  background: rgba(0, 0, 0, 0.7);
  border-color: rgba(255, 255, 255, 0.5);
}

.preview-caption {
  margin-top: 15px;
  color: white;
  font-family: "Press Start 2P", cursive;
  font-size: 0.7rem;
  text-align: center;
}

/* Media query for better mobile responsiveness */
@media (max-width: 768px) {
  .container {
    padding: 0.5rem 1rem; /* Reduced padding */
    justify-content: space-between; /* Better distribute the space */
  }

  nav ul {
    padding: 0 5px;
  }

  nav ul li a {
    font-size: 17px; /* Keep consistent 17px font size even on mobile */
  }

  .folders-area {
    height: 300px; /* Reduced height on mobile */
    margin-bottom: 1rem; /* Ensure space before footer */
  }

  .folder {
    width: 90px;
    height: 90px;
  }

  .folder-icon {
    font-size: 2.5rem;
  }

  .folder-name {
    font-size: 1rem;
  }

  .bio {
    padding: 0.75rem; /* Further reduced on mobile */
  }

  .folders-area {
    height: 500px; /* Reduced height on mobile */
  }

  footer {
    padding: 0.5rem 0; /* Reduced padding */
  }
}

/* Fix for complete page fit with no scrolling */
html,
body {
  height: 100%;
  overflow: hidden;
}

@media (max-height: 700px) {
  .folder-icon {
    font-size: 2.5rem;
    margin-bottom: 0.25rem;
  }

  .folder-name {
    font-size: 1rem;
  }

  .folder {
    width: 100px;
    height: 100px;
  }

  .folders-area {
    height: 300px;
  }

  .bio {
    padding: 0.75rem;
    margin-bottom: 1rem;
  }
}
