/* === Base Reset & Body === */
body {
  position: relative;
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: radial-gradient(circle at center, #1a1a1a 0%, #0b0b0b 100%);
  background-attachment: fixed;
  color: #f8f8f8;
  line-height: 1.6;
  overflow-x: hidden;
}

/* === Container === */
.container {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 1.5rem;
  background-color: rgba(34, 34, 34, 0.9);
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(255, 87, 34, 0.5);
}

/* === Headers === */
h1, h2 {
  color: #ffb347;
  margin-bottom: 0.5rem;
}

h1 {
  border-bottom: 2px solid #ff6347;
  padding-bottom: 0.3rem;
}

/* === Links === */
a {
  color: #ffdf70;
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
}

a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 2px;
  width: 100%;
  background-color: #ff6347;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

a:hover {
  color: #ff7f50;
}

a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* === Images === */
img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  margin: 1rem auto;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

/* === Small Text === */
small {
  color: #bbbbbb;
}

/* === Footer === */
footer {
  clear: both;
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid #444;
  text-align: center;
  color: #999;
  font-size: 0.9rem;
}

/* === Navigation === */
nav a {
  display: inline-block;
  margin-bottom: 1rem;
  font-weight: bold;
}

/* === Article (404 & Others) === */
.container section {
  text-align: center;
  padding: 2rem 1rem;
}

.container section h1 {
  font-size: 2rem;
  color: #ff4444;
}

/* === 404 Error Backdrop Styling === */
.backdrop h1 {
  font-size: 8rem;
  color: #ff4500;
  margin-bottom: 1rem;
  letter-spacing: 5px;
  text-shadow:
    0 0 5px #ff4500,
    0 0 10px #ff6347,
    2px 2px 4px #000;
}

/* === Email Link Fix === */
.copy-email {
  cursor: pointer;
}

/* === Clearfix Utility === */
.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

code {
  /* Use inline code style for snippets */
 font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
 background-color: #383838; /* Darker background for inline code */
 color: #e0e0e0; /* Lighter text for inline code */
 padding: 0.2em 0.4em;
 border-radius: 3px;
 font-size: 0.9em;
 border: 1px solid #555; /* Optional: subtle border */
}


/* === Toast Notification === */
.toast {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 140, 0, 0.9);
  color: #000;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  font-weight: bold;
  font-size: 0.95rem;
  box-shadow: 0 0 10px rgba(255, 140, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  animation: fadeInOut 2s ease forwards;
  z-index: 1000;
}

/* === Right-Aligned Image Column === */
img.right-column {
  float: right;
  clear: right;
  margin: 1rem 0 1rem 1.5rem;
  max-width: 300px;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  display: block;
}


@keyframes fadeInOut {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
  10% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  90% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
}
