/* Email copy code */

.copy-indicator {
  display: inline-block;
  opacity: 0;
  margin-left: 5px;
  color: green;
  transition: opacity 0.3s;
}

.copy-indicator::before {
  content: "Copied";
  margin-right: 5px;
  color: green;
}

.copy-indicator.show {
    opacity: 1;
}


/* Updates section */
.updates-section {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .updates-section {
    flex-direction: column;
  }
}

.update-column {
  flex: 1;
  min-width: 300px;
}

.update-item {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eee;
}

.update-item h4 {
  margin-bottom: 0.25rem;
}

.update-item a {
  color: #0366d6;
  text-decoration: none;
}

.update-item a:hover {
  text-decoration: underline;
}

.date {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 0.5rem;
}

.technologies, .tags {
  margin-top: 0.5rem;
}

.tech-tag, .post-tag {
  display: inline-block;
  font-size: 0.8rem;
  background: #f0f0f0;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

.loading {
  font-style: italic;
  color: #666;
}

.loading.error {
  color: #e74c3c;
  font-style: normal;
}

.last-updated {
  font-size: 0.8rem;
  color: #666;
  margin-bottom: 1rem;
}


/* Importing the font */
@import url(https://fonts.googleapis.com/css?family=Anonymous+Pro);

/* Text */
html {
  min-height: 100%;
  overflow-y: auto;
  scroll-behavior: smooth;
}

/* Background color and format */

body {
  height: calc(100vh - 8em);
  padding-top: 0; /* Remove top padding */
  padding-right: 4em;
  padding-bottom: 4em;
  padding-left: 4em;
  color: rgba(255,255,255,.75);
  font-family: 'Anonymous Pro', monospace;  
  background-color: rgb(25,25,25);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  margin: 0;
}

header {
  max-width: 800px; /* Adjust as needed */
  max-height: 20px;
  margin: 0 auto; /* Centers the content */
  background-color: rgba(40, 40, 40, 0.85); /* Lighter background color */
  padding: 2em;
  border-radius: 10px; /* Optional: Adds rounded corners */
}



/* Main content area */
main {
  max-width: 800px; /* Adjust as needed */
  margin: 0 auto; /* Centers the content */
  background-color: rgba(40, 40, 40, 0.85); /* Lighter background color */
  padding: 2em;
  border-radius: 10px; /* Optional: Adds rounded corners */
}

/* Portrait image */
.portrait-image {
  float: left;
  width: 180px;
  height: 220px;
  object-fit: cover;
  border-radius: 6px;
  margin-right: 20px;
  margin-bottom: 10px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

.eth-image {
  position: absolute;
  width: 100%;
  height: 430px;
  top: 77%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  background-image: url('eth-night.png');
  background-size: cover;
  background-position: center;
  border-radius: 0px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  z-index: -1; /* Places it behind other content */
}

/* First line of text (my name) */

/* First line of text (my name) - FIXED VERSION */

.line-1 {
  /* Remove absolute positioning */
  position: relative;
  /* Remove top percentage that causes shifting */
  margin: 1rem 0; /* Use fixed spacing instead of percentage-based positioning */
  width: 14ch; /* Adjusted width for "Alejo Restrepo" using ch units */
  border-right: 3px solid rgba(255,255,255,.75);
  font-size: 130%;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  color: #00ff00;
}

/* If you need this to be placed in a specific container: */
.name-container {
  /* Create a container with appropriate padding/margin */
  padding: 0rem 0;
  /* This container can be placed where you want the line to appear */
}

/* Typing animation for first line */

.anim-typewriter {
  animation: typewriter 2s steps(14) 2s 1 normal both, 
             blinkTextCursor 800ms steps(2) infinite 0.1s, /* Changed steps from 14 to 2 */
             turnoff 500ms steps(1) 5s 1 normal forwards;
}

/* Keyframes for typing animation */

@keyframes typewriter {
  from { width: 0; }
  to { width: 14ch; } /* Ensure this matches the new width of .line-1 */
}

/* Blinking cursor effect */

@keyframes blinkTextCursor {
  50% { border-right-color: transparent; }
}

/* Turns of the cursor on the first line */

@keyframes turnoff {
  from { border-right-color: rgba(255,255,255,.75); }
  to { border-right-color: transparent; }
}

/* Updates section (NEW) */
.updates-section {
  margin: 3em 0;
  padding: 1em 0;
}

.updates-container {
  display: flex;
  gap: 2em;
  flex-wrap: wrap;
}

.update-column {
  flex: 1;
  min-width: 300px;
}

.update-heading {
  color: #00ff00;
  font-size: 1.2em;
  margin-bottom: 1em;
  font-weight: normal;
  border-bottom: 1px solid rgba(0, 255, 0, 0.3);
  padding-bottom: 0.5em;
}

.update-card {
  background-color: rgba(30, 30, 40, 0.8);
  border-left: 3px solid #00ff00;
  padding: 1em;
  margin-bottom: 1.5em;
  border-radius: 0 4px 4px 0;
  transition: transform 0.2s, box-shadow 0.2s;
}

.update-card:hover {
  transform: translateX(5px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

.update-card h4 {
  margin: 0 0 0.5em 0;
  color: #00ff00;
  font-weight: normal;
}

.update-date {
  font-size: 0.8em;
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0 0.8em 0;
}

.update-excerpt {
  font-size: 0.9em;
  margin: 0 0 0.8em 0;
}

.update-link {
  font-size: 0.85em;
  color: #00ff00;
  text-decoration: none;
  transition: opacity 0.2s;
}

.update-link:hover {
  opacity: 0.8;
}

/* FIXED: Container wrapper method for thumbnails */
.update-header {
  display: flex;
  align-items: flex-start;
  margin-bottom: 8px;
  gap: 10px;
}

.thumbnail-container {
  width: 50px;  /* Increased from 20px, adjust as needed */
  height: 50px; /* Increased from 20px, adjust as needed */
  overflow: hidden;
  border-radius: 3px;
  flex-shrink: 0;
  flex-grow: 0;
  background-color: #333; /* Optional: for placeholder visibility */
}

.thumbnail-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  margin: 0;
  padding: 0;
  border: none;
}

.update-header h4 {
  margin: 0;
  font-size: 1rem;
  flex: 1;
  line-height: 1.2;
  color: #00ff00;
  font-weight: normal;
}

/* About section */
.about-section {
  max-width: 2000px;
  margin-top: 50px;
  padding-top: 40px; /* Space for scrolling to */
  scroll-margin-top: 80px; /* Ensures scrolling positions the section correctly */
}

.section-title {
  color: #00ff00;
  font-size: 1.5em;
  font-weight: normal;
  margin-bottom: 1em;
  padding-bottom: 0.3em;
}

.about-content {
  line-height: 1.6;
}

/* Navigation container */
.nav-container {
  display: flex;
  gap: 2em;
  margin-bottom: 3em;
}

.nav-link {
  color: rgba(255,255,255,.75);
  text-decoration: none;
  font-size: 1.1em;
  transition: color 0.3s;
}

.nav-link:hover, .nav-link.active {
  color: #00ff00;
}

/* Social links section */
.social-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 30px 0;
  flex-wrap: wrap;
}

.social-icon {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.3s ease;
  display: inline-block;
}

.social-icon:hover {
  color: rgba(255, 255, 255, 0.9);
}

.ascii-icon {
  font-family: monospace;
  font-size: 7px;
  line-height: 1;
  margin: 0;
  white-space: pre;
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .updates-container {
    flex-direction: column;
  }
  
  .update-column {
    min-width: 100%;
  }

  /* Adjust navigation for smaller screens */
  .nav-container {
    gap: 1em; /* Reduce gap between nav items */
    flex-wrap: wrap; /* Allow items to wrap if they still don't fit */
  }

  .nav-link {
    font-size: 0.9em; /* Reduce font size of nav links */
  }

  .line-1 {
    font-size: 120%; /* Smaller font size for mobile */
  }
}

/* Loading indicator */
.loading {
  font-style: italic;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  padding: 15px;
}

/* Highlight links to GitHub */
a[href^="https://alerest285.github.io"] {
  color: #3696b6;
  position: relative;
}

a[href^="https://alerest285.github.io"]:hover::after {
  content: "↗";
  position: absolute;
  top: -5px;
  right: -10px;
  font-size: 0.8em;
}