@font-face {
  font-family: "Pixie";
  src: url("https://writeoddity.neocities.org/fonts/Pixie%20NormalA.ttf") format("truetype");
}

@font-face {
  font-family: "FinkRoman";
  src: url("https://writeoddity.neocities.org/fonts/FinkRoman.otf") format("truetype");
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(to bottom, #9ecbff, #ffffff);
  font-family: "FinkRoman";
  color: #2c2c2c;
  padding: 2rem 1rem;
}

.cloud-container {
  position: relative;
  width: min(90vw, 900px);
  aspect-ratio: 16 / 10;
  background-image: url("https://files.catbox.moe/jllinn.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  padding: clamp(1.5rem, 6vw, 4rem) clamp(2rem, 10vw, 6rem);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Curved text containers */
.character-name-top,
.character-name-bottom {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 500px;
  height: auto;
  z-index: 1;
  pointer-events: none;
  font-family: "Pixie";
  overflow: visible;
}

.character-name-top {
  top: 2%;
}

.character-name-bottom {
  bottom: -8%;
}

.character-name-top svg,
.character-name-bottom svg {
  width: 100%;
  height: auto;
  display: block;
}

.character-name-top svg text {
  font-size: clamp(2.8rem, 12vw, 5.6rem);
}

svg text {
  font-size: clamp(1rem, 4vw, 2rem);
  font-weight: bold;
  fill: rgba(251, 201, 1, 1);
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: #AA6C39 2px 2px 2px;
}

.character-image {
  position: relative;
  z-index: 2;
  width: min(60%, 300px);
  height: auto;
  margin: 1rem auto;
  display: block;
  filter: drop-shadow(0 0 15px rgba(173, 216, 230, 0.8))
          drop-shadow(0 0 30px rgba(173, 216, 230, 0.5));
  transition: transform 0.3s ease, filter 0.3s ease;
}

.character-info {
  margin-top: 1rem;
  font-size: clamp(0.85rem, 2.5vw, 1rem);
  z-index: 3;
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.info-field {
  background: rgba(240, 248, 255, 0.7);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  display: inline-block;
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.1);
}

.info-field a {
  text-decoration: none;
  color: #3b82f6;
  font-weight: bold;
  transition: color 0.3s ease;
}

.info-field a:hover {
  color: #1e40af;
}

.floating-img {
  position: absolute;
  max-width: 90px;
  width: 15vw;          /* scales with viewport for responsiveness */
  height: auto;
}

@media (max-width: 768px) {
  .floating-img {
    display: none;      /* hides all decorative images on mobile */
  }
}

@media (max-width: 480px) {
  .cloud-container {
    width: 95vw;
    padding: 1rem 1.5rem;
  }

  .character-name-top {
    top: -8%;
  }

  .character-name-bottom {
    bottom: -10%;
  }
}