body {
  margin: 0;
  padding: 20px;
  background: #f0e68c;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

h1 {
  text-align: center;
  color: #8b4513;
  font-size: 2.5em;
  margin-bottom: 30px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.comic {
  background: white;
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.comic h2 {
  text-align: center;
  color: #d2691e;
  margin-top: 0;
}

.comic-1 .panel {
  display: inline-block;
  width: 180px;
  min-height: 200px;
  margin: 10px;
  vertical-align: top;
  background: #fff8dc;
  border: 2px solid #deb887;
  border-radius: 15px;
  padding: 10px;
  position: relative;
}

.bubble {
  background: white;
  border: 2px solid #333;
  border-radius: 15px;
  padding: 10px;
  margin-bottom: 10px;
  font-size: 0.9em;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
}

.bubble.left {
  background: #e0f7fa;
  margin-right: 20px;
}

.bubble.right {
  background: #ffe0b2;
  margin-left: 20px;
}

.character {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
}

.comic-2 .story-image-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
}

.story-image {
  width: 60%;
  max-width: 800px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.story-text {
  width: 35%;
  min-width: 250px;
  background: #fffaf0;
  padding: 15px;
  border-radius: 15px;
  border: 2px solid #deb887;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.story-text h3 {
  color: #8b4513;
  margin-top: 0;
}

.story-text p {
  line-height: 1.6;
  font-size: 1.1em;
  color: #333;
}

@media (max-width: 768px) {
  .comic-1 .panel {
    width: 130px;
  }
  .story-image {
    width: 100%;
  }
  .story-text {
    width: 100%;
  }
}