/* Sir Wobbles Official Website CSS - Pure 90s/Early 2000s Nostalgia! */

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

body {
  font-family: "Comic Sans MS", cursive, sans-serif;
  background: linear-gradient(
    45deg,
    #ff6b6b,
    #4ecdc4,
    #45b7d1,
    #96ceb4,
    #ffeaa7
  );
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  color: #000;
  line-height: 1.6;
  overflow-x: hidden;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.container {
  max-width: 800px;
  margin: 0 auto;
  background: #ffffff;
  border: 5px solid #000;
  box-shadow: 10px 10px 0px #333;
  margin-top: 20px;
  margin-bottom: 20px;
}

/* Header Styles */
header {
  background: linear-gradient(90deg, #ff69b4, #00ced1, #ffd700);
  padding: 20px;
  text-align: center;
  border-bottom: 3px solid #000;
}

h1 {
  font-size: 2.5rem;
  color: #000;
  text-shadow: 3px 3px 0px #fff, 6px 6px 0px #ff0000;
  margin-bottom: 10px;
  font-weight: bold;
}

.marquee {
  background: #000;
  color: #00ff00;
  font-weight: bold;
  padding: 10px;
  border: 2px solid #00ff00;
  font-size: 1.1rem;
}

/* Blinking Animation */
.blink {
  animation: blinkText 1s infinite;
}

@keyframes blinkText {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}

/* Navigation */
nav {
  background: #ffff00;
  border-bottom: 3px solid #000;
  padding: 10px 0;
}

.nav-menu {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.nav-menu li a {
  display: block;
  padding: 10px 15px;
  background: #ff69b4;
  color: #000;
  text-decoration: none;
  border: 2px solid #000;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 3px 3px 0px #333;
}

.nav-menu li a:hover {
  background: #00ced1;
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0px #333;
}

.nav-menu li a.active-nav {
  background: #00ced1;
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0px #333;
}

/* Main Content */
main {
  padding: 20px;
  min-height: 500px;
}

.content-section {
  display: block;
}

.content-section.active {
  display: block;
}

h2 {
  font-size: 2rem;
  color: #ff0000;
  text-shadow: 2px 2px 0px #ffff00;
  margin-bottom: 20px;
  text-align: center;
  border: 3px solid #000;
  background: #00ffff;
  padding: 10px;
}

h3 {
  font-size: 1.5rem;
  color: #0000ff;
  margin-bottom: 15px;
  text-decoration: underline;
}

/* Home Section Styles */
.welcome-box {
  background: linear-gradient(135deg, #ffcccc, #ccffcc, #ccccff);
  border: 3px solid #000;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 5px 5px 0px #666;
}

.penguin-ascii {
  background: #000;
  color: #00ff00;
  padding: 20px;
  margin: 20px 0;
  border: 2px solid #00ff00;
  text-align: center;
  font-family: monospace;
  font-size: 0.9rem;
}

.intro-text {
  font-size: 1.2rem;
  margin: 15px 0;
  padding: 15px;
  background: #ffffcc;
  border: 2px dashed #ff0000;
}

.visitor-counter {
  background: #000;
  color: #00ff00;
  padding: 10px;
  text-align: center;
  border: 2px solid #00ff00;
  margin-top: 20px;
  font-weight: bold;
}

#counter {
  font-size: 1.5rem;
  color: #ffff00;
}

/* About Section Styles */
.about-content {
  display: grid;
  gap: 20px;
}

.profile-card,
.story-box {
  background: #f0f8ff;
  border: 3px solid #000;
  padding: 20px;
  box-shadow: 5px 5px 0px #666;
}

.profile-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.profile-table td {
  padding: 8px;
  border: 1px solid #000;
  background: #fff;
}

.profile-table td:first-child {
  background: #ffff99;
  font-weight: bold;
}

/* Gallery Styles */
.gallery-intro {
  text-align: center;
  font-size: 1.2rem;
  margin-bottom: 20px;
  background: #ffccff;
  padding: 10px;
  border: 2px solid #ff00ff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.photo-frame {
  background: #fff;
  border: 5px solid #000;
  padding: 10px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s ease;
  box-shadow: 5px 5px 0px #666;
}

.photo-frame:hover {
  transform: scale(1.05) rotate(1deg);
  box-shadow: 8px 8px 0px #666;
}

.gallery-photo {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border: 2px solid #000;
  display: block;
}

.placeholder-photo {
  height: 200px;
  background: linear-gradient(45deg, #ff9999, #99ff99, #9999ff);
  border: 2px solid #000;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.photo-content {
  text-align: center;
  color: #000;
}

.fake-photo {
  font-size: 3rem;
  margin-top: 10px;
}

.photo-caption {
  font-weight: bold;
  color: #ff0000;
  background: #ffff00;
  padding: 5px;
  border: 1px solid #000;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
  background-color: #fff;
  margin: 5% auto;
  padding: 20px;
  border: 5px solid #000;
  width: 80%;
  max-width: 600px;
  box-shadow: 10px 10px 0px #333;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: #000;
}

/* Facts Section */
.facts-container {
  display: grid;
  gap: 20px;
}

.fact-box,
.achievement-box {
  background: linear-gradient(135deg, #fff2cc, #e6f3ff);
  border: 3px solid #000;
  padding: 20px;
  box-shadow: 5px 5px 0px #666;
}

.fact-list {
  list-style: none;
  padding-left: 0;
}

.fact-list li {
  background: #fff;
  margin: 10px 0;
  padding: 10px;
  border: 2px solid #000;
  border-left: 5px solid #ff0000;
}

.fact-list li:before {
  content: "🐧 ";
  font-size: 1.2rem;
}

.achievements {
  display: grid;
  gap: 10px;
}

.achievement {
  background: #ffd700;
  padding: 10px;
  border: 2px solid #000;
  text-align: center;
  font-weight: bold;
  box-shadow: 2px 2px 0px #333;
}

/* Guest Book Styles */
.guestbook-form {
  background: #f0f8ff;
  border: 3px solid #000;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 5px 5px 0px #666;
}

.form-table {
  width: 100%;
}

.form-table td {
  padding: 10px;
  vertical-align: top;
}

.form-table label {
  font-weight: bold;
  color: #0000ff;
}

.form-table input,
.form-table textarea {
  width: 100%;
  padding: 8px;
  border: 2px solid #000;
  font-family: "Comic Sans MS", cursive, sans-serif;
  font-size: 1rem;
}

.submit-btn {
  background: #00ff00;
  color: #000;
  border: 3px solid #000;
  padding: 15px 30px;
  font-family: "Comic Sans MS", cursive, sans-serif;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 3px 3px 0px #333;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  background: #ffff00;
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0px #333;
}

.guestbook-entries {
  max-height: 400px;
  overflow-y: auto;
  border: 3px solid #000;
  background: #fff;
}

.entry {
  border-bottom: 2px solid #ccc;
  padding: 15px;
}

.entry:last-child {
  border-bottom: none;
}

.entry-header {
  background: #ffcccc;
  padding: 5px 10px;
  border: 1px solid #000;
  margin-bottom: 10px;
  font-weight: bold;
}

.entry-message {
  background: #f9f9f9;
  padding: 10px;
  border: 1px dashed #666;
}

/* Footer */
footer {
  background: #000;
  color: #00ff00;
  padding: 20px;
  text-align: center;
  border-top: 3px solid #00ff00;
  font-weight: bold;
}

.footer-content p {
  margin: 5px 0;
}

.web-ring {
  margin-top: 15px;
  padding: 10px;
  border: 1px solid #00ff00;
}

.webring-link {
  color: #ffff00;
  text-decoration: none;
  font-weight: bold;
}

.webring-link:hover {
  color: #00ffff;
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    margin: 10px;
    border-width: 3px;
  }

  h1 {
    font-size: 1.8rem;
  }

  .nav-menu {
    flex-direction: column;
    align-items: center;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .facts-container {
    grid-template-columns: 1fr;
  }

  .modal-content {
    width: 95%;
    margin: 10% auto;
  }
}

/* Special Effects */
@keyframes rainbow {
  0% {
    color: #ff0000;
  }
  16% {
    color: #ff8000;
  }
  33% {
    color: #ffff00;
  }
  50% {
    color: #00ff00;
  }
  66% {
    color: #0080ff;
  }
  83% {
    color: #8000ff;
  }
  100% {
    color: #ff0000;
  }
}

.rainbow-text {
  animation: rainbow 3s linear infinite;
}

/* Retro cursor styles */
a,
button,
.photo-frame {
  cursor: pointer;
}

/* Under construction animation */
@keyframes construction {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.under-construction {
  background: repeating-linear-gradient(
    45deg,
    #ffff00,
    #ffff00 10px,
    #000 10px,
    #000 20px
  );
  color: #ff0000;
  font-weight: bold;
  text-align: center;
  padding: 10px;
  border: 2px solid #000;
  position: relative;
  overflow: hidden;
}

.under-construction::before {
  content: "🚧";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  animation: construction 3s linear infinite;
  font-size: 1.5rem;
}
