/* Main Styles for Capybloom Portfolio */

html, body, .container {
  min-width: 484px;
  min-height: 480px;
}

body {
  margin: 0;
  padding: 0;
  background-color: #5760d9;
  font-family: Arial, sans-serif;
  color: #333;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Background Animation */
.background-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.pixel-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.1);
  animation: float 8s ease-in-out infinite;
}

.pixel-particle:nth-child(2n) {
  background-color: rgba(255, 255, 255, 0.05);
  animation-duration: 12s;
  animation-delay: -2s;
}

.pixel-particle:nth-child(3n) {
  background-color: rgba(255, 255, 255, 0.08);
  animation-duration: 15s;
  animation-delay: -4s;
}

.pixel-particle:nth-child(4n) {
  width: 2px;
  height: 2px;
  background-color: rgba(255, 255, 255, 0.15);
  animation-duration: 10s;
  animation-delay: -1s;
}

.pixel-particle:nth-child(5n) {
  width: 6px;
  height: 6px;
  background-color: rgba(255, 255, 255, 0.03);
  animation-duration: 20s;
  animation-delay: -6s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px) translateX(0px);
    opacity: 0.1;
  }
  25% {
    transform: translateY(-20px) translateX(10px);
    opacity: 0.3;
  }
  50% {
    transform: translateY(-10px) translateX(-5px);
    opacity: 0.2;
  }
  75% {
    transform: translateY(-30px) translateX(15px);
    opacity: 0.4;
  }
}

.container {
  max-width: 1000px;
  margin: 20px auto 20px auto;
  padding: 0 0 20px 0;
  background-color: white;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.logo {
  text-align: center;
  background-color: white;
  padding: 20px 0;
  width: 100%;
  margin-bottom: 30px;
}

.logo img {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  outline: 2px solid black;
  outline-offset: -2px;
}

.nav {
  background-color: black;
  padding: 15px;
  margin-bottom: 30px;
  text-align: center;
}

.nav h1 {
  margin: 0;
  font-family: 'Press Start 2P', cursive, Arial, sans-serif;
  font-size: 1.5em;
}

.colored-title {
  display: inline-block;
}

.colored-title .letter-c,
.colored-title .letter-a,
.colored-title .letter-p,
.colored-title .letter-y {
  color: white;
}

.colored-title .letter-b { color: #FF3333; }
.colored-title .letter-l { color: #FF8800; }
.colored-title .letter-o1 { color: yellow; }
.colored-title .letter-o2 { color: #3399FF; }
.colored-title .letter-m { color: #CC66FF; }

.nav-links {
  margin-top: 15px;
}

.nav-links a {
  color: white;
  text-decoration: none;
  margin: 0 15px;
  font-family: 'Press Start 2P', cursive, Arial, sans-serif;
  font-size: 0.8em;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #3399FF;
}

.intro {
  text-align: left;
  margin-bottom: 40px;
  padding: 0 20px;
}

.intro h2 {
  text-align: center;
  font-size: 32px;
  margin-bottom: 20px;
  color: #5760d9;
}

details {
  margin-bottom: 20px;
  border: 1px solid #eee;
  border-radius: 4px;
  padding: 10px;
  background-color: #f9f9f9;
}

summary {
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  outline: none;
}

.game-section {
  margin-bottom: 50px;
  border-top: 1px solid #eee;
  padding: 30px 20px 0 20px;
}

.game-title {
  text-align: center;
  font-size: 32px;
  margin-bottom: 20px;
  color: #5760d9;
}

.game-banner {
  text-align: center;
  margin-bottom: 20px;
}

.game-banner img {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.game-description {
  margin-bottom: 20px;
  padding: 0 20px;
}

.game-link {
  text-align: center;
  margin-bottom: 20px;
}

.game-link a {
  display: inline-block;
  background-color: #5760d9;
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s;
}

.game-link a:hover {
  background-color: #4550b7;
}

@media (max-width: 768px) {
  .container {
    margin: 10px;
  }
  
  .nav-links a {
    display: block;
    margin: 5px 0;
  }
}