@import url('https://fonts.googleapis.com/css2?family=Comic+Neue:ital,wght@0,700;1,700&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body, html {
  height: 100%;
  background-color: black;
  overflow-y: scroll;
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  font-family: 'Comic Neue', cursive;
}

#comic-container {
  width: 100%;
}

/* Panel takes full screen */
.comic-panel {
  position: relative;
  height: 100vh;
  width: 100%;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: black;
  overflow: hidden;
}

/* Wrapper around image + caption */
.image-wrapper {
  position: relative;
  display: inline-block;
  max-height: 100%;
  max-width: 100%;
}

/* Image is responsive inside wrapper */
.image-wrapper img {
  display: block;
  max-height: 100vh;
  max-width: 100vw;
  object-fit: contain;
}

/* Caption is positioned relative to the image */
.caption {
  position: absolute;
  background: white;
  color: black;
  font-size: 2em;
  font-weight: bold;
  box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.4);
  border-radius: 0;
  z-index: 2;
  max-width: 90%;
}

/* Mobile-specific font size */
@media (max-width: 768px) {
  .caption {
    font-size: 1.1em;
  }
}


/* Positions relative to the image */
.top-left {
  top: 0;
  left: 0;
  border-right: 4px solid #000;
  border-bottom: 4px solid #000;
  padding: 0.25em 0.4em 0.2em 0.3em;
}

.top-right {
  top: 0;
  right: 0;
  border-left: 4px solid #000;
  border-bottom: 4px solid #000;
  padding: 0.25em 0.3em 0.2em 0.4em;
}

.bottom-left {
  bottom: 0;
  left: 0;
  border-right: 4px solid #000;
  border-top: 4px solid #000;
  padding: 0.2em 0.4em 0.25em 0.3em;
}

.bottom-right {
  bottom: 0;
  right: 0;
  border-left: 4px solid #000;
  border-top: 4px solid #000;
  padding: 0.2em 0.3em 0.25em 0.4em;
}

#controls {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 999;
  background: rgba(0, 0, 0, 0.6);
  padding: 0.5rem 1rem;
  border: 2px solid white;
  color: white;
  font-family: 'Comic Neue', cursive;
}

#controls label {
  margin-right: 1rem;
  cursor: pointer;
}


/* ... existing styles remain above this line ... */

/* Title / settings panel */
.title-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  background-color: black;
  text-align: center;
  padding: 2rem;
}

.title-content h1 {
  font-size: 5rem;
  font-family: 'Comic Neue', cursive;
  margin-bottom: 2rem;
}

.mode-select label {
  display: inline-block;
  margin: 0 1rem;
  font-size: 1.5rem;
  cursor: pointer;
  font-family: 'Comic Neue', cursive;
}
