/* =========================================================
   Emilio's Homepage — GeoCities, 1996
   ========================================================= */

html { background: #00001a; }

body {
  min-height: 100vh;
  margin: 0;
  font-family: "Times New Roman", Times, serif;
  font-size: 16px;
  color: #fff;
  background-color: #00001a;
  background-image:
    radial-gradient(1px 1px at 12px 18px, #fff, transparent),
    radial-gradient(1px 1px at 64px 82px, #fff, transparent),
    radial-gradient(1.5px 1.5px at 118px 40px, #ffd, transparent),
    radial-gradient(1px 1px at 152px 128px, #aaf, transparent),
    radial-gradient(1px 1px at 34px 146px, #fff, transparent),
    radial-gradient(1.5px 1.5px at 92px 160px, #fff, transparent);
  background-size: 180px 180px;
}

.gc {
  max-width: 820px;
  margin: 0 auto;
  padding: 16px 18px 24px;
}

a { color: #0ff; }
a:visited { color: #ff80ff; }
a:hover { color: #ff0; }
a:focus-visible { outline: 2px dotted #ff0; outline-offset: 2px; }

.gc-pre {
  margin: 0;
  font-family: "Comic Sans MS", "Comic Sans", cursive;
  color: #ff0;
  text-align: center;
}

.gc-title {
  margin: 4px 0;
  font-family: "Comic Sans MS", "Comic Sans", cursive;
  font-size: clamp(28px, 5vw, 46px);
  text-align: center;
  color: transparent;
  background: linear-gradient(90deg, #f00, #ff8000, #ff0, #0f0, #0ff, #00f, #f0f, #f00) 0 0 / 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(2px 2px 0 #333);
  animation: rainbow 3s linear infinite;
}

.gc-sub { margin: 0 0 14px; font-style: italic; color: #c0c0c0; text-align: center; }

.gc-marquee {
  margin: 0 0 14px;
  padding: 3px 0;
  overflow: hidden;
  font: bold 14px "Courier New", Courier, monospace;
  white-space: nowrap;
  color: #ff0;
  background: #000080;
  border: 2px inset #c0c0c0;
}
.gc-marquee span { display: inline-block; padding-left: 100%; animation: marquee 24s linear infinite; }

.construction {
  max-width: 420px;
  margin: 0 auto 16px;
  padding: 6px;
  text-align: center;
  background: repeating-linear-gradient(-45deg, #000 0 12px, #ffd800 12px 24px);
}
.construction span {
  display: inline-block;
  padding: 4px 12px;
  font: 900 14px "Arial Black", Arial, sans-serif;
  letter-spacing: 2px;
  color: #000;
  background: #ffd800;
}

.gc-layout { display: grid; grid-template-columns: 150px 1fr; gap: 18px; }

.gc-nav {
  display: flex;
  flex-direction: column;
  align-self: start;
  gap: 6px;
  padding: 10px;
  font-family: "Comic Sans MS", "Comic Sans", cursive;
  font-size: 14px;
  background: #000080;
  border: 3px ridge #c0c0c0;
}
.gc-nav-title { margin: 0 0 4px; color: #ff0; text-align: center; }

.gc-content h2 {
  margin: 22px 0 8px;
  font-size: 22px;
  color: #ff0;
  text-shadow: 2px 2px #800000;
}
.gc-content h2:first-child { margin-top: 0; }
.gc-content p { margin: 0 0 8px; line-height: 1.4; }

/* CV */
.gc-content h3.cv-heading {
  margin: 14px 0 8px;
  font-family: "Comic Sans MS", "Comic Sans", cursive;
  font-size: 17px;
  font-weight: normal;
  color: #0ff;
}
.cv-entry {
  margin: 0 0 12px;
  padding: 10px 12px;
  background: #000080;
  border: 3px ridge #c0c0c0;
}
.cv-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 2px 12px;
}
.cv-title { font-size: 19px; color: #ff0; }
.cv-date { font: bold 14px "Courier New", Courier, monospace; color: #0f0; }
.gc-content .cv-program { margin: 2px 0 8px; font-style: italic; color: #c0c0c0; }
.gc-content .cv-skills { margin: 8px 0 0; font-size: 14px; }
.cv-skills b { color: #ff80ff; }

.cv-table {
  width: 100%;
  border: 3px ridge #c0c0c0;
  border-spacing: 2px;
  background: #000;
}
.cv-table th,
.cv-table td {
  padding: 5px 8px;
  line-height: 1.35;
  text-align: left;
  vertical-align: top;
  border: 1px inset #808080;
}
.cv-table th {
  width: 160px;
  font: normal 14px "Comic Sans MS", "Comic Sans", cursive;
  color: #ff0;
  background: #000080;
}

.gc-list { margin: 0; padding-left: 22px; list-style: square; }
.gc-list li { margin-bottom: 9px; line-height: 1.35; }

.new {
  padding: 0 3px;
  font: bold 11px Arial, sans-serif;
  color: #ff0;
  background: #f00;
  animation: blink 1s steps(1) infinite;
}


.gc-links { margin: 0; padding-left: 22px; }

.gc-button {
  display: inline-block;
  padding: 3px 10px;
  font: 13px Arial, sans-serif;
  text-decoration: none;
  color: #000 !important;
  background: #c0c0c0;
  border: 2px outset #fff;
}
.gc-button:active { border-style: inset; }

small { color: #c0c0c0; }

hr.rainbow {
  height: 4px;
  margin: 22px 0;
  border: 0;
  background: linear-gradient(90deg, #f00, #ff8000, #ff0, #0f0, #0ff, #00f, #f0f);
}

.gc-footer { text-align: center; }
.gc-footer > p { margin: 0 0 6px; }

.counter {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  font-family: "VT323", "Courier New", monospace;
  font-size: 26px;
  line-height: 1;
  background: #333;
  border: 2px inset #808080;
}
.counter span { display: inline-block; width: 17px; padding: 2px 0 0; color: #0f0; text-align: center; background: #000; }

.webring { margin: 16px 0; }

.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 14px 0; }
.badge88 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 88px;
  height: 31px;
  font: bold 10px/1.1 Arial, sans-serif;
  letter-spacing: 0.3px;
  text-align: center;
  border: 1px solid #fff;
}
.badge88 b { font-size: 8px; font-weight: normal; }
.b1 { color: #000080; background: #fff; }
.b2 { color: #0f0; background: #000; border-color: #0f0; }
.b3 { color: #ff0; background: #008080; }
.b4 { color: #fff; background: #800000; }

.gc-small { font-size: 12px; line-height: 1.5; color: #c0c0c0; }

@keyframes blink { 50% { visibility: hidden; } }
@keyframes rainbow { to { background-position: 200% 0; } }
@keyframes marquee { to { transform: translateX(-100%); } }

@media (max-width: 640px) {
  .gc-layout { grid-template-columns: 1fr; }
  .cv-table th { width: 105px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  .gc-marquee span { padding-left: 0; }
}
