/* ============================================
   MAKE STUPID STUFF - Global Stylesheet
   Best viewed in Netscape Navigator 3.0
   Last updated by the webmaster
   ============================================ */

/* === RESET (minimal, like it's 1996) === */
* {
  margin: 0;
  padding: 0;
}

/* === BODY === */
body {
  background-color: #000033;
  background-image: url('/images/bg-tile.svg');
  background-repeat: repeat;
  background-attachment: fixed;
  color: #FFFFFF;
  font-family: 'Comic Sans MS', 'Comic Sans', cursive;
  font-size: 14px;
  cursor: crosshair;
}

/* === BLINK ANIMATION === */
@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.blink {
  animation: blink 1s step-end infinite;
}

/* === WORDART TITLE === */
.wordart-title {
  font-family: Impact, 'Arial Black', sans-serif;
  font-size: 72px;
  font-weight: bold;
  background: linear-gradient(180deg, #FFD700, #FF6600, #FF0000, #FF00FF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  filter: drop-shadow(3px 3px 0px #000000) drop-shadow(-1px -1px 0px #333333);
  transform: perspective(500px) rotateX(15deg) scaleY(1.3);
  letter-spacing: 4px;
  line-height: 1.2;
  display: inline-block;
  padding: 10px 20px;
}

.wordart-outline {
  font-family: Impact, 'Arial Black', sans-serif;
  font-size: 72px;
  font-weight: bold;
  -webkit-text-stroke: 3px #000080;
  color: transparent;
  position: absolute;
  top: 0;
  left: 0;
  transform: perspective(500px) rotateX(15deg) scaleY(1.3);
  letter-spacing: 4px;
  line-height: 1.2;
  padding: 10px 20px;
}

/* === MARQUEE === */
marquee {
  background-color: #FF0000;
  color: #FFFF00;
  font-family: 'Comic Sans MS', cursive;
  font-size: 16px;
  font-weight: bold;
  padding: 8px 0;
  border-top: 3px ridge #C0C0C0;
  border-bottom: 3px ridge #C0C0C0;
}

/* === LINKS === */
a:link {
  color: #0000FF;
  text-decoration: underline;
}

a:visited {
  color: #800080;
}

a:hover {
  color: #FF0000;
  text-decoration: underline;
}

a:active {
  color: #FF00FF;
}

/* === HIT COUNTER === */
.hit-counter-wrapper {
  text-align: center;
  margin: 20px 0;
}

.hit-counter {
  display: inline-block;
  background-color: #000000;
  border: 3px inset #808080;
  padding: 8px 16px;
  font-family: 'Courier New', monospace;
  font-size: 32px;
  font-weight: bold;
  color: #00FF00;
  letter-spacing: 6px;
  text-shadow: 0 0 10px #00FF00, 0 0 20px #00FF00;
  min-width: 200px;
}

/* === SECTION TITLES === */
.section-title {
  font-family: 'Comic Sans MS', cursive;
  font-size: 28px;
  color: #FFFF00;
  text-align: center;
  margin: 20px 0 10px 0;
}

.section-title-fancy {
  font-family: 'Papyrus', 'Comic Sans MS', cursive;
  font-size: 32px;
  color: #FF00FF;
  text-align: center;
  margin: 20px 0 10px 0;
}

/* === PROJECT TABLE === */
.projects-table {
  border: 3px ridge #C0C0C0;
  background-color: rgba(0, 0, 51, 0.8);
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  max-width: 700px;
}

.projects-table td {
  padding: 10px;
  border: 1px solid #333366;
  vertical-align: middle;
}

.projects-table tr:hover {
  background-color: rgba(0, 0, 128, 0.5);
}

.project-name {
  font-family: Impact, sans-serif;
  font-size: 22px;
}

.project-desc {
  font-family: 'Times New Roman', serif;
  font-size: 14px;
  color: #00FFFF;
}

/* === GUESTBOOK === */
.guestbook-form {
  background-color: #C0C0C0;
  border: 3px outset #FFFFFF;
  padding: 15px;
  width: 100%;
  max-width: 500px;
}

.guestbook-form label {
  font-family: 'Comic Sans MS', cursive;
  font-size: 14px;
  color: #000000;
  font-weight: bold;
  display: block;
  margin-top: 8px;
}

.guestbook-form input[type="text"],
.guestbook-form textarea {
  font-family: 'Comic Sans MS', cursive;
  font-size: 13px;
  border: 2px inset #808080;
  background-color: #FFFFFF;
  padding: 4px;
  width: 95%;
}

.guestbook-form textarea {
  height: 60px;
  resize: none;
}

.guestbook-form button {
  font-family: 'Comic Sans MS', cursive;
  font-size: 14px;
  font-weight: bold;
  background-color: #C0C0C0;
  border: 3px outset #FFFFFF;
  padding: 6px 20px;
  cursor: pointer;
  margin-top: 10px;
  color: #000000;
}

.guestbook-form button:active {
  border-style: inset;
}

.guestbook-entries {
  border: 2px ridge #C0C0C0;
  background-color: rgba(0, 0, 51, 0.8);
  width: 100%;
  max-width: 600px;
  border-collapse: collapse;
}

.guestbook-entries th {
  background-color: #000080;
  color: #FFFFFF;
  font-family: 'Comic Sans MS', cursive;
  font-size: 13px;
  padding: 6px;
  border: 1px solid #333366;
}

.guestbook-entries td {
  font-family: 'Comic Sans MS', cursive;
  font-size: 12px;
  padding: 6px;
  border: 1px solid #333366;
  color: #FFFFFF;
}

/* === ABOUT SECTION === */
.about-photo {
  border: 3px ridge #C0C0C0;
  width: 120px;
  height: 120px;
  background-color: #808080;
  display: inline-block;
  image-rendering: pixelated;
}

.about-text {
  font-family: 'Comic Sans MS', cursive;
  font-size: 14px;
  color: #FFFFFF;
  max-width: 500px;
  text-align: left;
  display: inline-block;
  vertical-align: top;
  margin-left: 15px;
}

/* === FOOTER === */
.footer {
  border-top: 3px ridge #C0C0C0;
  padding: 15px;
  margin-top: 30px;
  font-family: 'Times New Roman', serif;
  font-size: 12px;
  color: #808080;
  text-align: center;
}

.footer a {
  color: #00FFFF;
}

.banner-ad {
  width: 468px;
  height: 60px;
  border: 2px solid #808080;
  background-color: #333333;
  display: inline-block;
  line-height: 60px;
  font-family: Impact, sans-serif;
  font-size: 20px;
  color: #FFFF00;
  text-align: center;
  margin: 10px 0;
}

/* === HR STYLING === */
hr {
  border: none;
  border-top: 2px ridge #C0C0C0;
  margin: 15px 0;
}

/* === UNDER CONSTRUCTION PAGE === */
.under-construction {
  text-align: center;
  padding: 50px 20px;
}

.under-construction h1 {
  font-family: Impact, sans-serif;
  font-size: 48px;
  color: #FFFF00;
}

.under-construction p {
  font-family: 'Comic Sans MS', cursive;
  font-size: 18px;
  color: #00FFFF;
}

/* === MOBILE (the warning still shows, but the site works anyway) === */
@media screen and (max-width: 800px) {
  /* The sacred 800px tables bend to fit the screen */
  table[width="800"] {
    width: 100% !important;
  }

  body {
    overflow-x: hidden;
  }

  .wordart-title,
  .wordart-outline {
    font-size: clamp(26px, 9vw, 40px);
    letter-spacing: 2px;
    padding: 10px 8px;
  }

  .subtitle {
    font-size: 15px;
    display: inline-block;
    padding: 0 12px;
  }

  marquee {
    font-size: 13px;
  }

  .hit-counter {
    font-size: 24px;
    letter-spacing: 4px;
    min-width: 0;
  }

  .section-title {
    font-size: 22px;
  }

  .section-title-fancy {
    font-size: 24px;
  }

  .project-name {
    font-size: 18px;
  }

  .projects-table td {
    padding: 8px;
  }

  .projects-table td:first-child {
    width: 40px;
  }

  /* About: the webmaster photo stacks on top of the text */
  .about-table,
  .about-table tbody,
  .about-table tr,
  .about-table td {
    display: block;
    width: auto;
    text-align: center;
  }

  .about-photo {
    margin: 0 auto;
  }

  .about-text {
    margin-left: 0;
    padding: 0 12px;
    text-align: left;
  }

  .guestbook-form {
    box-sizing: border-box;
  }

  .guestbook-entries th,
  .guestbook-entries td {
    padding: 4px;
    word-break: break-word;
  }

  .banner-ad {
    width: 90%;
    max-width: 300px;
    height: 50px;
    font-size: 14px;
    line-height: 50px;
  }

  .mobile-warning {
    display: block !important;
  }
}

.mobile-warning {
  display: none;
  background-color: #FF0000;
  color: #FFFF00;
  font-family: 'Comic Sans MS', cursive;
  font-size: 12px;
  padding: 8px;
  text-align: center;
  border: 2px solid #FFFF00;
  margin: 10px;
}

/* === MISC === */
.sparkle-img {
  width: 20px;
  height: 20px;
  vertical-align: middle;
}

.flame-divider {
  width: 100%;
  max-width: 600px;
  height: 30px;
}

.badge-img {
  width: 88px;
  height: 31px;
  border: 0;
  margin: 0 5px;
  vertical-align: middle;
}

.new-badge {
  width: 40px;
  height: 20px;
  vertical-align: middle;
}

.globe-img {
  width: 30px;
  height: 30px;
  vertical-align: middle;
}

.construction-img {
  width: 80px;
  height: 80px;
}

.hardhat-img {
  width: 40px;
  height: 40px;
  vertical-align: middle;
}

.email-img {
  width: 24px;
  height: 24px;
  vertical-align: middle;
}

.subtitle {
  font-family: 'Comic Sans MS', cursive;
  font-size: 18px;
  color: #00FFFF;
  font-style: italic;
}

.coming-soon {
  color: #FF6600;
  font-family: Impact, sans-serif;
  font-size: 14px;
}

.under-construction-badge {
  color: #FFFF00;
  font-family: Impact, sans-serif;
  font-size: 14px;
}

.guestbook-entries tr:nth-child(even) td {
  color: #00FF00;
}

.guestbook-entries tr:nth-child(odd) td {
  color: #FF00FF;
}

.loading-counter {
  color: #00FF00;
  font-family: 'Courier New', monospace;
  animation: blink 1.5s step-end infinite;
}
