body, html {
  height: 100%;
  margin: 0;
  font-family: 'Helvetica', 'Arial', sans-serif;
}

body {
  background-image: url('https://bluescorner.neocities.org/images/Untitled%20(5).png');
  background-size: 2000px;
}

img {
  image-rendering: -moz-crisp-edges;
  image-rendering: -webkit-crisp-edges;
  image-rendering: pixelated;
  display: block;
}

.chibi-container {
  position: absolute;
  bottom: 10%;
  left: 7%; 
  width: 400px;
}

.chibi-container img {
  width: 100%;
}

.speech-bubble {
  position: absolute;
}

#bubble1 { width: 35%; bottom: 75%; left: 85%; transform: rotate(8deg); }
#bubble2 { width: 70%; bottom: 95%; left: 55%; transform: rotate(10deg); }
#bubble3 { width: 100%; bottom: 96%; left: 35%; transform: rotate(0deg); }
#bubble4 { width: 70%; bottom: 92%; left: 50%; transform: rotate(12deg); }
#bubble5 { width: 35%; bottom: 75%; left: -5%; transform: rotate(-10deg); }

.speech-bubble img {
  width: 100%;
  height: auto;
  opacity: 0;
}

@keyframes shortGifCycle { 0% { opacity: 0; } 1.0% { opacity: 1; } 11.2% { opacity: 1; } 12.2% { opacity: 0; } 100% { opacity: 0; } }
@keyframes longGifCycle { 0% { opacity: 0; } 1.0% { opacity: 1; } 15.3% { opacity: 1; } 16.3% { opacity: 0; } 100% { opacity: 0; } }

#gif1, #gif5 { animation-name: shortGifCycle; }
#gif2, #gif3, #gif4 { animation-name: longGifCycle; }
#gif1, #gif2, #gif3, #gif4, #gif5 {
  animation-duration: 49s; animation-iteration-count: infinite; animation-fill-mode: forwards;
}
#gif1 { animation-delay: 0s; } #gif2 { animation-delay: 7s; } #gif3 { animation-delay: 18s; } #gif4 { animation-delay: 29s; } #gif5 { animation-delay: 40s; }

.main-container {
  box-sizing: border-box;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 500px;
  padding: 25px;
  background-color: rgba(173, 216, 230, 0.85);
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.icon-placeholder {
  width: 105px;
  height: 110px;
  margin: -70px auto 10px;
  transform: rotate(-10deg);
}

.icon-placeholder img { width: 100%; }

.divider-container {
  width: 80%;
  margin: 0 auto 25px auto;
}

.divider-container img { width: 100%; }

.gif-showcase {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 60px;
}

.gif-showcase img {
  width: 80px;
  height: 70px;
}

.main-nav {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 320px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.nav-button {
  background-color: #000080;
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: all 0.2s ease;
  z-index: 10;
}

.nav-button:hover {
  background-color: #000050;
  transform: translateY(-2px);
}

.gallery-button {
  position: absolute;
  bottom: -220px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #ADD8E6;
}

.gallery-button:hover {
  transform: scale(1.05) translateX(-50%);
}

@media (max-width: 1600px) {
  .chibi-container {
    width: 22vw;
    max-width: 280px;
    left: 4vw;
    bottom: 12vh;
  }
}