.main-inner {
  padding-bottom: 0 !important;
}

.media-tabs {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 0 0 0 !important;
  flex-wrap: wrap;
}
.media-tab {
  background: #4d428a;
  border: 6px outset #ffb347;
  border-radius: 40px;
  color: #ffecaa;
  font-family: 'Party Confetti', cursive;
  font-size: clamp(20px, 5vw, 28px);
  font-weight: bold;
  text-shadow: 4px 4px 0 #b51e6b;
  padding: 8px 30px;
  box-shadow: 0 8px 0 #2a2355;
  cursor: url(/images/Anita_mouse2.png), pointer;
  white-space: nowrap;
  transition: all 0.08s ease-out;
}
.media-tab:hover {
  transform: scale(1.02) translateY(-2px);
  border-color: #ffcc66;
  background: #5b4caf;
}
.media-tab:active {
  border-style: inset;
  transform: translateY(4px);
  box-shadow: 0 4px 0 #2a2355;
}
.media-tab.active {
  background: #5b4caf;
  border-style: inset;
  transform: translateY(3px);
  box-shadow: 0 5px 0 #2a2355;
}

.media-gif-box {
  min-height: 150px;
  position: relative;
  margin-bottom: 0;
  width: 100%;
  overflow: hidden;
  background: none;
  border: none;
  box-shadow: none;
}
.media-gif-container {
  position: absolute;
  top: -29px;
  left: 50%;
  transform: translate(-50%);
  pointer-events: none;
  width: 100%;
  text-align: center;
}
.media-static-anita {
  display: block;
  max-width: 90%;
  max-height: 250px;
  margin: 0 auto;
}

.media-content {
  display: none;
  text-align: center;
}

#comics h2 {
  font-family: 'Party Confetti', cursive;
  color: #4d428a;
  font-size: 32px;
  text-shadow: 2px 2px 0 #ffb3d9;
  margin: 0 0 20px;
  margin-top: 20px;
}
.comic-preview {
  margin-bottom: 20px;
}
.preview-image {
  max-width: 100%;
  max-height: 400px;
  border: 8px solid white;
  outline: 6px solid #ff9e7a;
  border-radius: 40px 10px 40px 10px;
  box-shadow: 8px 8px 0 #7b5fa3;
  cursor: url(/images/Anita_mouse2.png), pointer;
}
.comic-title {
  font-family: 'Party Confetti', cursive;
  color: #3f3887;
  font-size: 24px;
  margin-top: 10px;
  text-shadow: 1px 1px 0 #ffb3d9;
}
.button-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.comic-btn {
  background: #4d428a;
  border: 6px outset #ffb347;
  border-radius: 50px;
  color: #ffecaa;
  font-family: 'Party Confetti', cursive;
  font-size: 36px;
  font-weight: bold;
  text-shadow: 4px 4px 0 #b51e6b;
  padding: 5px 30px;
  box-shadow: 0 6px 0 #2a2355;
  cursor: url(/images/Anita_mouse2.png), pointer;
  transition: all 0.08s ease-out;
}
.comic-btn:hover {
  transform: scale(1.02) translateY(-2px);
  border-color: #ffcc66;
  background: #5b4caf;
}
.comic-btn:active {
  border-style: inset;
  transform: translateY(4px);
  box-shadow: 0 2px 0 #2a2355;
}
.comic-btn.active {
  background: #5b4caf;
  border-style: inset;
  transform: translateY(2px);
  box-shadow: 0 3px 0 #2a2355;
}

#cartoons h2 {
  font-family: 'Party Confetti', cursive;
  color: #4d428a;
  font-size: 32px;
  text-shadow: 2px 2px 0 #ffb3d9;
  margin: 0 0 20px;
  margin-top: 20px;
}
.video-preview {
  margin-bottom: 20px;
}
.preview-video {
  max-width: 100%;
  max-height: 400px;
  border: 8px solid white;
  outline: 6px solid #ff9e7a;
  border-radius: 40px 10px 40px 10px;
  box-shadow: 8px 8px 0 #7b5fa3;
  background: #000;
  width: 100%;
  max-width: 640px;
}
.video-title {
  font-family: 'Party Confetti', cursive;
  color: #3f3887;
  font-size: 24px;
  margin-top: 10px;
  text-shadow: 1px 1px 0 #ffb3d9;
}
.video-btn {
  background: #4d428a;
  border: 6px outset #ffb347;
  border-radius: 50px;
  color: #ffecaa;
  font-family: 'Party Confetti', cursive;
  font-size: 36px;
  font-weight: bold;
  text-shadow: 4px 4px 0 #b51e6b;
  padding: 5px 30px;
  box-shadow: 0 6px 0 #2a2355;
  cursor: url(/images/Anita_mouse2.png), pointer;
  transition: all 0.08s ease-out;
}
.video-btn:hover {
  transform: scale(1.02) translateY(-2px);
  border-color: #ffcc66;
  background: #5b4caf;
}
.video-btn:active {
  border-style: inset;
  transform: translateY(4px);
  box-shadow: 0 2px 0 #2a2355;
}
.video-btn.active {
  background: #5b4caf;
  border-style: inset;
  transform: translateY(2px);
  box-shadow: 0 3px 0 #2a2355;
}

.popup-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  z-index: 200;
  cursor: url(/images/Anita_mouse2.png), pointer;
}
.popup-content {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  max-width: 90vw;
  max-height: 90vh;
  border: 12px ridge #ffb347;
  border-radius: 60px 15px 60px 15px;
  background: #fff8d6;
  padding: 10px;
}
.popup-content img {
  max-width: 100%;
  max-height: 80vh;
  display: block;
  border-radius: 40px 10px 40px 10px;
}

/* mobile stuffs */
@media screen and (max-width: 700px) {
  .media-tab {
    font-size: 18px;
    padding: 6px 20px;
    margin-bottom: 0;
  }
  .media-gif-box {
    min-height: 100px;
  }
  .media-static-anita {
    max-height: 150px;
  }
  .comic-btn, .video-btn {
    font-size: 28px;
    padding: 4px 20px;
  }
  .comic-title, .video-title {
    font-size: 20px;
  }
  .preview-video {
    width: 100%;
  }
}