/* Comic / Webtoon Theme */
@import url('https://fonts.googleapis.com/css2?family=Bangers&family=Balsamiq+Sans:wght@400;700&display=swap');

:root {
  --comic-bg: #4fc3f7; /* Cyan halftone bg */
  --comic-panel: #ffffff;
  --comic-text: #000000;
  --comic-primary: #ffeb3b; /* Yellow */
  --comic-accent: #f44336; /* Red */
  --font-title: 'Bangers', cursive;
  --font-text: 'Balsamiq Sans', cursive;
}

body {
  margin: 0; padding: 0;
  background-color: var(--comic-bg);
  background-image: radial-gradient(#000000 15%, transparent 16%), radial-gradient(#000000 15%, transparent 16%);
  background-size: 20px 20px;
  background-position: 0 0, 10px 10px;
  color: var(--comic-text);
  font-family: var(--font-text);
  overflow-x: hidden;
}

/* Typography */
.c-title {
  font-family: var(--font-title);
  font-size: 3rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0 0 15px 0;
  color: var(--comic-primary);
  text-shadow: 3px 3px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
  line-height: 1.1;
  text-align: center;
}

.c-title.red {
  color: var(--comic-accent);
}

.c-title.white {
  color: #fff;
}

.c-text {
  font-size: 1.1rem;
  line-height: 1.6;
  font-weight: 700;
}

/* Base Layout Container */
.comic-container {
  max-width: 600px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background: transparent;
  padding: 20px;
}

/* Comic Panels */
.comic-panel {
  background: var(--comic-panel);
  border: 4px solid #000;
  box-shadow: 8px 8px 0px #000;
  padding: 20px;
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
  transform: rotate(-1deg);
}

.comic-panel:nth-child(even) {
  transform: rotate(1deg);
}

/* Panel Headers */
.panel-cap {
  background: var(--comic-primary);
  border: 3px solid #000;
  display: inline-block;
  padding: 5px 15px;
  font-family: var(--font-title);
  font-size: 1.5rem;
  text-transform: uppercase;
  position: absolute;
  top: -3px; left: -3px;
  box-shadow: 4px 4px 0 #000;
  z-index: 10;
}

/* Cover Overlay */
.comic-cover {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--comic-accent);
  background-image: radial-gradient(rgba(0,0,0,0.2) 15%, transparent 16%), radial-gradient(rgba(0,0,0,0.2) 15%, transparent 16%);
  background-size: 20px 20px;
  background-position: 0 0, 10px 10px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: transform 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.comic-cover.opened {
  transform: translateY(-120%);
}

.burst-bg {
  background: var(--comic-primary);
  width: 90%;
  max-width: 400px;
  aspect-ratio: 1;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 5px solid #000;
  box-shadow: 10px 10px 0 #000;
  text-align: center;
  padding: 20px;
  position: relative;
}

/* Buttons */
.btn-comic {
  background: var(--comic-accent);
  color: #fff;
  border: 3px solid #000;
  padding: 10px 20px;
  font-family: var(--font-title);
  font-size: 1.5rem;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 4px 4px 0 #000;
  transition: all 0.1s;
  display: inline-block;
  text-decoration: none;
  border-radius: 0;
}

.btn-comic:active {
  transform: translate(4px, 4px);
  box-shadow: 0px 0px 0 #000;
}

.btn-blue { background: #2196F3; }
.btn-yellow { background: var(--comic-primary); color: #000; }
.btn-white { background: #fff; color: #000; }

/* Pictures & Frames */
.comic-img-wrapper {
  border: 4px solid #000;
  box-shadow: 6px 6px 0 #000;
  margin-bottom: 15px;
  position: relative;
  overflow: hidden;
  background: #fff;
}
.comic-img-wrapper img {
  display: block;
  width: 100%;
  height: auto;
  filter: contrast(1.1) saturate(1.2);
}

/* Speech Bubbles */
.speech-bubble {
  position: relative;
  background: #fff;
  border: 3px solid #000;
  border-radius: 20px;
  padding: 15px 20px;
  margin-bottom: 20px;
  text-align: center;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.2);
  font-weight: bold;
}
.speech-bubble::before {
  content: '';
  position: absolute;
  bottom: -20px; left: 50%;
  transform: translateX(-50%);
  border-width: 20px 20px 0;
  border-style: solid;
  border-color: #000 transparent transparent transparent;
}
.speech-bubble::after {
  content: '';
  position: absolute;
  bottom: -15px; left: 50%;
  transform: translateX(-50%);
  border-width: 16px 16px 0;
  border-style: solid;
  border-color: #fff transparent transparent transparent;
}

/* Countdown */
.cd-wrapper {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 20px 0;
}
.cd-box {
  background: var(--comic-primary);
  border: 3px solid #000;
  padding: 10px;
  min-width: 60px;
  text-align: center;
  box-shadow: 4px 4px 0 #000;
  transform: rotate(-2deg);
}
.cd-box:nth-child(even) {
  transform: rotate(2deg);
  background: #2196F3;
  color: #fff;
}
.cd-box span {
  display: block;
  font-family: var(--font-title);
  font-size: 2rem;
  line-height: 1;
}
.cd-box small {
  font-family: var(--font-text);
  font-weight: bold;
  text-transform: uppercase;
  font-size: 0.8rem;
}

/* Forms */
.comic-form {
  text-align: left;
}
.comic-form label {
  display: block;
  font-family: var(--font-title);
  font-size: 1.2rem;
  margin-bottom: 5px;
  letter-spacing: 1px;
}
.comic-form input, .comic-form select, .comic-form textarea {
  width: 100%;
  padding: 12px;
  background: #fff;
  border: 3px solid #000;
  margin-bottom: 15px;
  font-family: var(--font-text);
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.2);
}
.comic-form input:focus, .comic-form select:focus, .comic-form textarea:focus {
  outline: none;
  background: var(--comic-primary);
}

.guestbook-item {
  text-align: left;
  border: 3px solid #000;
  background: #fff;
  padding: 15px;
  margin-bottom: 15px;
  border-radius: 10px;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.1);
  position: relative;
}
.guestbook-item h4 {
  margin: 0 0 5px 0;
  font-family: var(--font-title);
  font-size: 1.3rem;
  letter-spacing: 1px;
}
.guestbook-item p {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

/* Music FAB */
.fab-music {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: var(--comic-accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 3px solid #000;
  box-shadow: 4px 4px 0 #000;
  z-index: 1000;
  font-size: 1.5rem;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Graphics/Ornaments */
.pow-icon {
  position: absolute;
  top: -20px; right: -20px;
  background: #ffeb3b;
  color: #000;
  font-family: var(--font-title);
  font-size: 1.5rem;
  border: 3px solid #000;
  padding: 10px;
  border-radius: 50%;
  transform: rotate(15deg);
  box-shadow: 4px 4px 0 #000;
  z-index: 20;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-top: 20px;
}
.gallery-item {
  border: 3px solid #000;
  box-shadow: 4px 4px 0 #000;
  height: 150px;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.gallery-item:first-child {
  grid-column: span 2;
  height: 200px;
}
