@font-face { 
  font-family: 'SpongeBoy Font'; 
  src: url('/Krabby Patty.ttf') format('truetype'); 
}
body { margin: 0; overflow: hidden; font-family: 'SpongeBoy Font', Arial, sans-serif; }
canvas { display: block; }
#ui, #credit, #subtitles, #transitionOverlay, #topicDisplay, #stopTopic, #walkingToggle, #watermarkContainer, #bubbleTransition, #uiToggle, #promptBuilderButton { position: absolute; }

:fullscreen #ui, 
:fullscreen #credit,
:fullscreen #watermarkContainer {
  font-size: 12px;
  padding: 5px;
}

:fullscreen #ui {
}

:fullscreen #ui button {
}

:fullscreen #ui button .material-symbols-outlined {
}

#fullscreenToggle {
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
  z-index: 100;
  background: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
}

#fullscreenToggle .material-symbols-outlined {
  font-size: 24px;
  line-height: 1;
}

#submitTopic:disabled {
  background-color: #555;
  color: #ccc;
  cursor: not-allowed;
}

#promptBuilderButton {
  position: absolute;
  top: 10px;
  right: 60px;
  cursor: pointer;
  z-index: 100;
  background: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
}

#promptBuilderPopup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  max-width: 800px;
  max-height: 80vh;
  background-color: #FDD835;
  border: 3px solid #F57F17;
  color: black;
  padding: 20px;
  z-index: 1002;
  display: none;
  font-family: 'SpongeBoy Font', Arial, sans-serif;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
}

#promptBuilderContent {
  height: calc(100% - 160px);
  overflow-y: auto;
  white-space: pre-wrap;
  word-wrap: break-word;
  font-family: monospace;
  background: #FFF9C4;
  border: 2px solid #F57F17;
  color: #000;
  padding: 15px;
  border-radius: 5px;
  margin-bottom: 15px;
}

#promptBuilderControls {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  position: sticky;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  padding-top: 10px;
}

#promptBuilderControls button {
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  border: none;
}

#manualResponseInput {
  height: 80px;
  margin-bottom: 15px;
  width: calc(100% - 20px);
  background: #FFF9C4;
  border: 2px solid #F57F17;
  color: #000;
}

#loadingAssets {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(253, 216, 53, 0.95);
  color: #000;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#loadingAssets .loading-container {
  background: rgba(253, 216, 53, 0.95);
  padding: 20px;
  border-radius: 10px;
  border: 3px solid #F57F17;
  width: 80%;
  max-width: 400px;
  text-align: center;
}

#loadingAssets .loading-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 20px;
}

#loadingAssets .loading-header h2 {
  margin: 0;
  padding: 0;
  background: none;
  border-radius: 0;
  font-size: 32px;
}

#stopLoading {
  background-color: #FDD835;
  border: 2px solid #E65100;
  padding: 8px 20px;
  color: black;
  margin: 0;
  position: absolute;
  top: 10px;
  right: 10px;
}

#connectionWarning {
  display: none;
  color: #D32F2F;
  font-weight: bold;
  margin-top: 15px;
  padding: 10px;
  background: rgba(255, 0, 0, 0.1);
  border: 2px solid #D32F2F;
  border-radius: 5px;
}

#loadingAssets h2 {
  margin: 0 0 10px 0;
  background: none;
  border-radius: 0;
  padding: 0;
  font-size: 32px;
}

#loadingAssets p {
  margin: 5px 0;
  font-size: 16px;
}

#loadingCount {
  font-weight: bold;
  color: #F57F17;
}

#loadingAssets .progress {
  display: none;
}

#loadingAssets .progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #F57F17, #FBC02D);
  transition: width 0.3s;
}

#loadingScreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(253, 216, 53, 0.9);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.3s ease-out;
  opacity: 1;
}

#loadingScreen.fadeOut {
  opacity: 0;
  pointer-events: none;
}

.loadingContent {
  text-align: center;
  color: #fff;
  font-family: 'SpongeBoy Font', Arial, sans-serif;
}

.loadingSpinner {
  border: 8px solid rgba(245, 127, 23, 0.3);
  border-top: 8px solid #F57F17;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
  margin: 20px auto 0;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

#bottomBar {
  position: fixed;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  background-color: rgba(253, 216, 53, 0.9);
  padding: 10px 20px;
  display: flex;
  justify-content: center;
  gap: 10px;
  z-index: 100;
  backdrop-filter: blur(5px);
  border: 3px solid #F57F17;
  border-radius: 15px;
  transition: opacity 0.3s ease-out;
}

#bottomBar.speaking {
  opacity: 0.5;
  pointer-events: none; 
}

#bottomBar button {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 15px;
}

#bottomBar button .material-symbols-outlined {
  font-size: 20px;
}

#scriptGenModal, #scriptInputModal, .script-gen-header, .script-options, #continueConversation, .debug-tabs, .debug-tab, .debug-pages, .debug-page {
  display: none;
}

#settingsPopup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #FDD835;
  padding: 20px;
  border: 3px solid #F57F17;
  z-index: 1001;
  display: none;
  transition: all 0.3s ease-in-out;
  width: 500px;
  max-width: 90vw;
  display: flex;
  flex-direction: column;
}

.settings-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #F57F17;
  padding: 15px;
  border-radius: 10px 10px 0 0;
  margin: -20px -20px 20px -20px;
}

.settings-title h2 {
  margin: 0;
  padding: 0;
  background: none;
  border-radius: 0;
}

#closeSettings {
  background-color: #FDD835;
  border: 2px solid #E65100;
  padding: 8px 20px;
  color: black;
  margin: 0;
}

.settings-content {
  flex: 1;
  overflow-y: auto;
  max-height: calc(100vh - 250px);
}

.settings-page {
  padding: 15px;
  overflow-y: auto;
  display: none;
}

.settings-page.active {
  display: block;
}

.settings-footer {
  display: none;
}

#characterSelection {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 15px;
  padding: 10px;
  background: rgba(255,255,255,0.1);
  border-radius: 5px;
  transition: opacity 0.3s ease;
}

#characterSelection label {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0;
}

input[name="characterMode"] {
  margin-right: 5px;
}

input[name="characterMode"] + label {
  margin-right: 15px;
}

.length-control {
  display: flex;
  align-items: center;
  gap: 10px;
}

#scriptLength {
  width: 60px;
}

#exchangeCount {
  color: #666;
}

#topicInput {
  background: rgba(255, 235, 59, 0.9);
  border: 2px solid #F57F17;
  color: #000;
  width: 300px;
}

#topicInput:focus {
  outline: none;
  box-shadow: 0 0 0 2px #FFA500;
}

#credit { 
  transition: bottom 0.3s ease;
  bottom: 10px; 
  left: 10px; 
  color: rgba(255,255,255,0.5); 
  font-size: 12px; 
  z-index: 100; 
  font-family: Times New Roman, serif;
}

.speaking #credit {
  bottom: 10px;
}

#parodyDisclaimer {
  position: fixed;
  bottom: 10px;
  left: 10px;
  color: rgba(255,255,255,1);
  font-size: 24px;
  z-index: 101;
  font-family: Impact, sans-serif;
  transition: opacity 0.3s ease;
}

#subtitles { 
  bottom: 70px; 
  left: 50%; 
  transform: translateX(-50%); 
  background-color: rgba(253, 216, 53, 0.9);
  border: 2px solid #F57F17;
  color: white; 
  padding: 10px; 
  border-radius: 5px; 
  font-size: 24px; 
  text-align: center; 
  max-width: 80%; 
  z-index: 100; 
  font-family: 'SpongeBoy Font', Arial, sans-serif; 
  line-height: 1.4;
}

#subtitles, #topicDisplay {
  transition: opacity 0.3s ease-out;
  opacity: 1;
}

#subtitles:empty, #topicDisplay:empty {
  opacity: 0;
}

#transitionOverlay { top: 0; left: 0; width: 100%; height: 100%; background-color: black; display: none; justify-content: center; align-items: center; z-index: 1000; }

#transitionOverlay img { max-width: 100%; max-height: 100%; }

#settingsOverlay {
  z-index: 999;
}

#promptBuilderPopup {
  z-index: 1002;
}

#loadingScreen {
  z-index: 2000;
}

#topicDisplay { 
  top: 10px;
  left: 10px;
  background-color: rgba(253, 216, 53, 0.9);
  border: 2px solid #F57F17;
  color: black; 
  padding: 10px; 
  border-radius: 5px; 
  font-size: 18px; 
  z-index: 100; 
  font-family: 'SpongeBoy Font', Arial, sans-serif;
  max-width: 300px;
  word-wrap: break-word;
}

#stopTopic { 
  bottom: 20px; 
  right: 10px; 
  background-color: #F57F17; 
  border: 2px solid #E65100; 
  color: white; 
  padding: 10px 20px; 
  border-radius: 5px; 
  font-size: 16px; 
  cursor: pointer; 
  display: none; 
  z-index: 100; 
  font-family: 'SpongeBoy Font', Arial, sans-serif; 
}

#walkingToggle { top: 50px; right: 10px; z-index: 100; }

#uiToggle { top: 90px; right: 10px; z-index: 100; }

#watermarkContainer { 
  position: absolute;
  bottom: 70px;
  right: 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  z-index: 100;
  font-family: 'SpongeBoy Font', Arial, sans-serif;
  transition: bottom 0.3s ease-in-out;
}

.speaking #watermarkContainer {
  bottom: 110px;
}

#anyaiWatermark {
  font-size: 16px;
  z-index: 100;
  font-family: 'SpongeBoy Font', Arial, sans-serif;
  color: white;
  transition: all 0.2s ease-in-out;
  display: none;
}

#anyaiWatermark .any { color: #FF00FF; }

#anyaiWatermark .ai { color: #00FFFF; }

#bubbleTransition { top: 0; left: 0; width: 100%; height: 100%; display: none; z-index: 1001; }

#bubbleTransition img { width: 100%; height: 100%; object-fit: cover; }
#versionNotice {
  display: none;
}

#projectNote {
  position: fixed;
  top: 40px;  
  left: 0;
  background-color: #ff4136;
  color: white;
  padding: 10px;
  z-index: 9999;
  font-family: 'SpongeBoy Font', Arial, sans-serif; 
  border-radius: 0 0 5px 0;
  width: fit-content;
  max-width: 90%;
  white-space: normal;
  line-height: 1.2;
  font-size: 14px;
}

#projectNote a {
  color: #ffff00;
  text-decoration: underline;
}

#settingsPopup input[type="text"],
#settingsPopup input[type="range"],
#settingsPopup select {
  background-color: #FFF9C4;
  border: 2px solid #F57F17;
  color: #000;
}

#settingsPopup select,
#settingsPopup input[type="text"],
#settingsPopup input[type="range"] {
  width: 100%;
  margin-bottom: 15px;
}

.settings-section {
  border: 2px solid #F57F17;
  background: rgba(255, 249, 196, 0.3);
  padding: 15px;
  margin-bottom: 15px;
  border-radius: 5px;
}

.settings-section h3 {
  margin-top: 0;
  color: #F57F17;
  border-bottom: 2px solid #F57F17;
  padding-bottom: 5px;
  margin-bottom: 15px;
}

.setting-description {
  font-size: 14px;
  color: #666;
  margin-top: 5px;
  font-style: italic;
}

.setting-item {
  margin-bottom: 15px;
}

.setting-item .pc-mode-description {
  color: #E65100;
  font-weight: bold;
}

#lowEndToggle {
  margin-top: 10px;
}

button, select, input {
  padding: 10px;
  margin: 5px;
  font-size: 16px;
  cursor: pointer;
  font-family: 'SpongeBoy Font', Arial, sans-serif;
  border-radius: 5px;
  background-color: #FDD835;
  border: 2px solid #F57F17;
  color: #000;
  font-weight: bold;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  transition: all 0.2s ease-out;
}

button:hover, select:hover, input:hover {
  background-color: #FBC02D;
  transform: scale(0.98);
  transition: all 0.2s ease-in-out;
}

.tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  background: rgba(0,0,0,0.1);
  padding: 10px;
  border-radius: 5px;
  height: fit-content;
}

.tab-button {
  padding: 8px 15px;
  background: #FDD835;
  border: 2px solid #F57F17;
  border-radius: 5px;
  cursor: pointer;
  color: black;
  transition: all 0.2s ease;
  height: auto;
}

.tab-button.active {
  background: #FBC02D;
  border-color: #E65100;
  transform: scale(1.05);
}

.speaking .ui-hideable {
  display: none !important;
}

h2 {
  margin: 0 0 20px 0;
  padding: 15px;
  background: #F57F17;
  border-radius: 10px 10px 0 0;
  color: white;
}

.ui-hideable {
}

.page-buttons {
  position: sticky;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  gap: 10px;
  padding: 15px 0;
  margin-top: 20px;
  background: #F57F17;
  border-radius: 10px;
}

.page-button {
  flex: 1;
  text-align: center;
  background-color: #FDD835;
  border: 2px solid #F57F17;
  padding: 8px 15px;
  border-radius: 5px;
  cursor: pointer;
  margin: 0 5px;
  color: black;
}

.page-button.active {
  background-color: #FBC02D;
  color: black;
  border: 2px solid #E65100;
}

#closeSettings {
  margin-right: 10px;
  background-color: #FDD835;
  border: 2px solid #E65100;
  padding: 8px 20px;
  color: black;
}

#specialInstructions {
  font-family: Arial, sans-serif;
  padding: 10px;
  border-radius: 5px;
  border: 2px solid #F57F17;
  background-color: #FFF9C4;
  color: #000;
  resize: vertical;
}

#specialInstructions::placeholder {
  color: #666;
}

#debugMenuButton {
  position: absolute;
  top: 10px;
  right: 110px;
  cursor: pointer;
  z-index: 100;
  background: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
}

#debugMenuButton .material-symbols-outlined {
  font-size: 24px;
  line-height: 1;
}

#debugMenu {
  position: fixed;
  top: 50px;
  right: 10px;
  background: rgba(253, 216, 53, 0.95);
  border: 3px solid #F57F17;
  padding: 15px;
  z-index: 9999;
  font-family: 'SpongeBoy Font', Arial, sans-serif;
  min-width: 300px;
  max-width: 500px;
  display: none;
}

.debug-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  border-bottom: 2px solid #F57F17;
  padding-bottom: 10px;
}

.debug-header h3 {
  margin: 0;
  color: #F57F17;
}

.debug-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  background: rgba(0,0,0,0.1);
  padding: 10px;
  border-radius: 5px;
}

.debug-tab {
  padding: 8px 15px;
  background: #FDD835;
  border: 2px solid #F57F17;
  border-radius: 5px;
  cursor: pointer;
  color: black;
  transition: all 0.2s ease;
}

.debug-tab.active {
  background: #FBC02D;
  border-color: #E65100;
  transform: scale(1.05);
}

.debug-page {
  display: none;
}

.debug-page.active {
  display: block;
}

.debug-section {
  margin-bottom: 20px;
  background: rgba(255, 255, 255, 0.1);
  padding: 10px;
  border-radius: 5px;
}

.debug-section h4 {
  margin: 0 0 10px 0;
  color: #F57F17;
  border-bottom: 1px solid #F57F17;
  padding-bottom: 5px;
}

#debugMenu select,
#debugMenu button {
  width: 100%;
  margin: 5px 0;
  padding: 8px;
  font-family: 'SpongeBoy Font', Arial, sans-serif;
}

#debugMenu button {
  background: #FDD835;
  border: 2px solid #F57F17;
  cursor: pointer;
  transition: all 0.2s ease;
}

#debugMenu button:hover {
  background: #FBC02D;
}

#aiResponseView {
  border: 1px solid #F57F17;
  background: #FFF9C4;
}

#episodesModal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #FDD835;
  padding: 20px;
  border: 3px solid #F57F17;
  border-radius: 10px;
  z-index: 1000;
  width: 500px;
  max-width: 90vw;
  display: none;
}

.episodes-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #F57F17;
  padding: 15px;
  border-radius: 10px 10px 0 0;
  margin: -20px -20px 20px -20px;
}

.episodes-header h2 {
  margin: 0;
  padding: 0;
  background: none;
  border-radius: 0;
}

#closeEpisodes {
  background-color: #FDD835;
  border: 2px solid #E65100;
  padding: 8px 20px;
  color: black;
  margin: 0;
}

#episodesList {
  max-height: 400px;
  overflow-y: auto;
  display: grid;
  grid-template-rows: repeat(5, auto);
  gap: 10px;
  padding: 10px;
}

#episodesList .episode-item {
  height: fit-content;
}

.episode-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.episode-actions button {
  background: #FDD835;
  border: 2px solid #F57F17;
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
}

#fileUpload {
  display: none;
}

.upload-area {
  border: 3px dashed #F57F17;
  padding: 20px;
  margin: 20px;
  text-align: center;
  background: rgba(255, 249, 196, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.upload-area.dragover {
  background: rgba(255, 249, 196, 0.6);
  border-color: #FBC02D;
}

.upload-area p {
  margin: 0;
  font-size: 16px;
  color: #F57F17;
}

#communityEpisodes,
#savedEpisodes {
  height: 400px;
  overflow-y: auto;
}

#titleCard {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(253, 216, 53, 0.95);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.title-content {
  text-align: center;
  padding: 40px;
  background: #FDD835;
  border: 5px solid #F57F17;
  border-radius: 20px;
  transform: scale(0);
  transition: transform 0.5s ease-out;
}

#titleCard.active .title-content {
  transform: scale(1);
}

#episodeTitle {
  font-size: 36px;
  margin-bottom: 20px;
  color: #000;
}

#episodeDescription {
  font-size: 18px;
  color: #333;
}

#continueConversation {
  background-color: #FDD835;
  border: 2px solid #F57F17;
  opacity: 0.5;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

#continueConversation.enabled {
  opacity: 1;
  pointer-events: auto;
}

#continueConversation.ui-hideable {
  display: inline-flex !important;
}

#continueConversation:hover {
  background-color: #FBC02D;
}

#continueConversation .material-symbols-outlined {
  font-size: 24px;
  vertical-align: middle;
}

#promptBuilderContent {
  background: #FFF9C4;
  border: 2px solid #F57F17;
  padding: 15px;
  margin: 15px 0;
  border-radius: 5px;
  max-height: 300px;
  overflow-y: auto;
}

#manualResponseInput {
  width: 100%;
  height: 100px;
  margin: 15px 0;
  padding: 10px;
  background: #FFF9C4;
  border: 2px solid #F57F17;
  border-radius: 5px;
  resize: vertical;
}

#creditsMenu {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #FDD835;
  padding: 20px;
  border: 3px solid #F57F17;
  border-radius: 10px;
  z-index: 1001;
  width: 500px;
  max-width: 90vw;
  display: none;
}

.credits-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #F57F17;
  padding: 15px;
  border-radius: 10px 10px 0 0;
  margin: -20px -20px 20px -20px;
}

.credits-content {
  max-height: 400px;
  overflow-y: auto;
  padding: 15px;
  background: rgba(255, 249, 196, 0.3);
  border: 2px solid #F57F17;
  border-radius: 5px;
}

.credits-section {
  margin-bottom: 20px;
}

.credits-section h3 {
  color: #F57F17;
  border-bottom: 2px solid #F57F17;
  padding-bottom: 5px;
  margin-bottom: 10px;
}

.credits-section p {
  font-family: "Times New Roman", serif;
}

.credits-list {
  list-style: none;
  padding: 0;
}

.credits-list li {
  margin-bottom: 8px;
}

.credits-list a {
  color: #E65100;
  text-decoration: none;
}

.credits-list a:hover {
  text-decoration: underline;
}

.episode-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  background: rgba(0,0,0,0.1);
  padding: 10px;
  border-radius: 5px;
}

.episode-tab {
  padding: 8px 15px;
  background: #FDD835;
  border: 2px solid #F57F17;
  border-radius: 5px;
  cursor: pointer;
  color: black;
  transition: all 0.2s ease;
}

.episode-tab.active {
  background: #FBC02D;
  border-color: #E65100;
  transform: scale(1.05);
}

#communityEpisodes {
  display: none;
}

#thumbnailOverlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #FDD835;
  z-index: 9999;
  justify-content: center;
  align-items: center;
  text-align: center;
}

#thumbnailOverlay h1 {
  font-size: 48px;
  color: #F57F17;
  margin-bottom: 10px;
}

#thumbnailOverlay p {
  font-size: 24px;
  color: #E65100;
}

@media (aspect-ratio: 1/1) {
  #thumbnailOverlay {
    display: flex;
    flex-direction: column;
  }
}

.creator-link {
  text-decoration: none !important;
}

.creator-pine .pine {
  color: #FFD700;
}

.creator-pine .guy {
  color: #228B22;
}

.creator-xd .xd {
  color: #800080;
}

.creator-xd .numbers {
  color: #00FFFF;
}

#boomboxMenu {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #FDD835;
  padding: 20px;
  border: 3px solid #F57F17;
  border-radius: 10px;
  z-index: 1000;
  width: 500px;
  max-width: 90vw;
  display: none;
}

.boombox-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #F57F17;
  padding: 15px;
  border-radius: 10px 10px 0 0;
  margin: -20px -20px 20px -20px;
}

.boombox-header h2 {
  margin: 0;
  padding: 0;
  background: none;
  border-radius: 0;
}

#closeBoombox {
  background-color: #FDD835;
  border: 2px solid #E65100;
  padding: 8px 20px;
  color: black;
  margin: 0;
}

.boombox-content {
  padding: 15px;
  background: rgba(255, 249, 196, 0.3);
  border: 2px solid #F57F17;
  border-radius: 5px;
}

#openEditor {
  background: linear-gradient(45deg, 
    violet,
    indigo, 
    blue,
    green,
    yellow, 
    orange,
    red
  );
  color: white;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
  transition: all 0.3s ease;
  animation: rainbow-pulse 2s infinite;
}

#openEditor:hover {
  transform: scale(1.05);
  filter: brightness(1.2);
}

@keyframes rainbow-pulse {
  0% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.2);
  }
  100% {
    filter: brightness(1);
  }
}