/*!*************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[0].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[0].use[2]!./node_modules/sass-loader/dist/cjs.js!./src/scss/floor-template.scss ***!
  \*************************************************************************************************************************************************************************************************************************/
/**
 * Styles for the Floor Template - v6
 */
.spiral-tower-floor-wrapper {
  /* Portal styles for the Spiral Tower */
}
.spiral-tower-floor-wrapper .spiral-tower-portals-section {
  margin-top: 30px;
  padding: 20px;
}
.spiral-tower-floor-wrapper .spiral-tower-portals-section h2 {
  margin-top: 0;
  margin-bottom: 20px;
  font-family: var(--title-font);
  font-size: 1.6rem;
}
.spiral-tower-floor-wrapper .spiral-tower-portals-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}
.spiral-tower-floor-wrapper .spiral-tower-portal-item {
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background-color: rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}
.spiral-tower-floor-wrapper .spiral-tower-portal-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}
.spiral-tower-floor-wrapper .spiral-tower-portal-item h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-family: var(--title-font);
  font-size: 1.2rem;
}
.spiral-tower-floor-wrapper .spiral-tower-portal-details {
  font-family: var(--body-font);
  font-size: 0.9rem;
}
.spiral-tower-floor-wrapper .spiral-tower-portal-details a {
  color: inherit;
  text-decoration: underline;
  transition: all 0.2s ease;
}
.spiral-tower-floor-wrapper .spiral-tower-portal-details a:hover {
  opacity: 0.8;
}
.spiral-tower-floor-wrapper .spiral-tower-portals-wrapper {
  width: 100%;
  font-family: var(--body-font);
  position: fixed;
  bottom: 4px;
  left: 4px;
}
.spiral-tower-floor-wrapper .spiral-tower-portals-title {
  padding: 15px 20px;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
}
.spiral-tower-floor-wrapper .spiral-tower-portals-title h2 {
  margin: 0;
  font-family: var(--title-font);
  font-size: 1.8rem;
  letter-spacing: 1px;
}
.spiral-tower-floor-wrapper .spiral-tower-portals-content {
  padding: 25px;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
}
.spiral-tower-floor-wrapper .spiral-tower-portals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.spiral-tower-floor-wrapper .spiral-tower-portal-card {
  display: flex;
  padding: 15px;
  border-radius: 8px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.spiral-tower-floor-wrapper .portal-text {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  text-align: center;
  /* Allow text to wrap to multiple lines */
  white-space: normal;
  /* Optional: limit to certain number of lines */
  display: -webkit-box;
  -webkit-line-clamp: 2; /* Show only 2 lines */
  -webkit-box-orient: vertical;
  padding: 5px;
}
.spiral-tower-floor-wrapper .portal-icon-TEMP-DISABLED {
  width: 60px;
  height: 60px;
  margin-right: 15px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.3);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}
.spiral-tower-floor-wrapper .portal-gateway {
  background: radial-gradient(circle, rgb(55, 145, 255) 0%, rgb(0, 30, 120) 100%);
}
.spiral-tower-floor-wrapper .portal-gateway:after {
  content: "";
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 10px rgba(55, 145, 255, 0.8);
  animation: portal-pulse 2s infinite;
}
.spiral-tower-floor-wrapper .portal-vortex {
  background: radial-gradient(circle, rgb(143, 0, 255) 0%, rgb(60, 0, 120) 100%);
}
.spiral-tower-floor-wrapper .portal-vortex:after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: conic-gradient(rgba(143, 0, 255, 0), rgba(143, 0, 255, 0.8), rgba(143, 0, 255, 0));
  animation: portal-spin 3s linear infinite;
}
.spiral-tower-floor-wrapper .portal-door {
  background: radial-gradient(circle, rgb(170, 120, 50) 0%, rgb(90, 60, 30) 100%);
}
.spiral-tower-floor-wrapper .portal-door:after {
  content: "";
  position: absolute;
  width: 30px;
  height: 50px;
  background-color: rgba(0, 0, 0, 0.6);
  border: 2px solid rgba(200, 150, 80, 0.8);
  border-radius: 3px;
}
.spiral-tower-floor-wrapper .portal-custom img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 50%;
}
.spiral-tower-floor-wrapper .spiral-tower-portal-info {
  flex-grow: 1;
}
.spiral-tower-floor-wrapper .spiral-tower-portal-title {
  margin: 0 0 5px 0;
  font-family: var(--title-font);
  font-size: 1.3rem;
}
.spiral-tower-floor-wrapper .spiral-tower-portal-type {
  font-size: 0.9rem;
  margin-bottom: 8px;
  opacity: 0.8;
}
.spiral-tower-floor-wrapper .spiral-tower-portal-destination {
  font-size: 0.85rem;
  line-height: 1.4;
}
.spiral-tower-floor-wrapper .spiral-tower-portal-destination span {
  display: block;
  opacity: 0.7;
  margin-bottom: 3px;
}
.spiral-tower-floor-wrapper .spiral-tower-portal-link {
  color: inherit;
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
  display: inline-block;
}

.floor-gizmo {
  transition: transform 0.3s ease, filter 0.3s ease;
  box-sizing: border-box;
  z-index: 100;
  /* Default cursor */
  cursor: pointer;
  /* Basic link styling */
}
.floor-gizmo.no-pointer {
  cursor: default;
}
.floor-gizmo a {
  text-decoration: none;
  color: inherit;
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

/* Portal Types */
.floor-gizmo {
  /* Text Portal */
  /* Door Portal */
  /* Gateway Portal */
  /* Vortex Portal */
  /* Custom Image Portal */
  /* Invisible Portal */
}
.floor-gizmo .portal-text {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  color: #fff;
  border-radius: 5px;
  font-family: var(--body-font);
  font-size: 2rem;
  padding: 5px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}
.floor-gizmo .portal-door {
  width: 100%;
  height: 100%;
  background-color: #6b4226;
  border: 3px solid #542700;
  border-radius: 3px 3px 0 0;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
  position: relative;
}
.floor-gizmo .portal-door::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 15%;
  width: 8px;
  height: 8px;
  background-color: #daa520;
  border-radius: 50%;
  transform: translateY(-50%);
  box-shadow: 0 0 5px rgba(218, 165, 32, 0.7);
}
.floor-gizmo .portal-door::after {
  content: "";
  position: absolute;
  top: 10%;
  left: 10%;
  right: 10%;
  bottom: 50%;
  border: 1px solid rgba(0, 0, 0, 0.3);
  border-radius: 2px;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.3);
}
.floor-gizmo .portal-gateway {
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(173, 216, 230, 0.5), rgba(30, 144, 255, 0.7));
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 10px 10px 0 0;
  box-shadow: 0 0 15px rgba(30, 144, 255, 0.8);
  position: relative;
  overflow: hidden;
}
.floor-gizmo .portal-gateway::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.1) 10px, rgba(255, 255, 255, 0.2) 10px, rgba(255, 255, 255, 0.2) 20px);
  animation: gateway-shimmer 3s linear infinite;
}
.floor-gizmo .portal-vortex {
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(128, 0, 128, 0.9) 0%, rgba(75, 0, 130, 0.7) 50%, rgba(25, 25, 112, 0.5) 100%);
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(128, 0, 128, 0.8);
  position: relative;
  overflow: hidden;
  animation: vortex-rotate 10s linear infinite;
}
.floor-gizmo .portal-vortex::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: conic-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.9));
  border-radius: 50%;
  opacity: 0.7;
  mix-blend-mode: overlay;
  animation: vortex-shimmer 5s linear infinite reverse;
}
.floor-gizmo .portal-image {
  width: 100%;
  height: 100%;
  -o-object-fit: contain;
     object-fit: contain;
  display: block;
}
.floor-gizmo.invisible-portal {
  opacity: 0;
  /* Show in edit mode */
}
.portal-edit-mode .floor-gizmo.invisible-portal {
  opacity: 0.5;
  border: 2px dashed rgba(255, 255, 255, 0.8);
  background-color: rgba(0, 0, 0, 0.3);
}

/* Animations for Portals */
@keyframes vortex-rotate {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}
@keyframes vortex-shimmer {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@keyframes gateway-shimmer {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 100px 100px;
  }
}
/* Portal Editor Mode Styles */
.portal-edit-mode {
  /* Style for the edit button when active */
}
.portal-edit-mode .floor-gizmo {
  /* Disable pointer events on the link inside */
  /* Add edit mode styling */
  border: 2px dashed rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
  /* Selected portal styling */
}
.portal-edit-mode .floor-gizmo:hover {
  /* Override default hover to prevent scale when in edit mode */
  transform: translate(-50%, -50%) !important;
}
.portal-edit-mode .floor-gizmo:active {
  /* Override default active to prevent scale when in edit mode */
  transform: translate(-50%, -50%) !important;
}
.portal-edit-mode .floor-gizmo a {
  pointer-events: none;
}
.portal-edit-mode .floor-gizmo.selected-portal {
  border: 2px solid #4CAF50 !important;
  box-shadow: 0 0 15px rgba(76, 175, 80, 0.5) !important;
}
.portal-edit-mode #button-portal-edit.active {
  background-color: rgba(76, 175, 80, 0.5) !important;
}

/* Resize handles */
.resize-handle {
  position: absolute;
  width: 10px;
  height: 10px;
  background-color: white;
  border: 1px solid black;
  border-radius: 50%;
  pointer-events: all;
  z-index: 100;
}
.resize-handle.top-left {
  top: -5px;
  left: -5px;
  cursor: nwse-resize;
}
.resize-handle.top-right {
  top: -5px;
  right: -5px;
  cursor: nesw-resize;
}
.resize-handle.bottom-left {
  bottom: -5px;
  left: -5px;
  cursor: nesw-resize;
}
.resize-handle.bottom-right {
  bottom: -5px;
  right: -5px;
  cursor: nwse-resize;
}

/* Portal Editor Controls */
.portal-editor-controls {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.8);
  padding: 10px 15px;
  border-radius: 5px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.portal-editor-controls .editor-control-buttons {
  display: flex;
  gap: 10px;
}
.portal-editor-controls .editor-button {
  padding: 8px 15px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.2s;
}
.portal-editor-controls .save-button {
  background-color: #4CAF50;
  color: white;
}
.portal-editor-controls .save-button:hover {
  background-color: #45a049;
}
.portal-editor-controls .cancel-button {
  background-color: #f44336;
  color: white;
}
.portal-editor-controls .cancel-button:hover {
  background-color: #d32f2f;
}

/* Add this to your SCSS file */
/* Inventory iframe container */
.inventory-iframe-container {
  width: 100%;
  height: 600px;
  border: 1px solid rgba(182, 157, 255, 0.3);
  border-radius: 8px;
  overflow: hidden;
  background: #000;
}
.inventory-iframe-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Tab link styling (for the Return to Tower tab) */
.tab-link {
  text-decoration: none !important;
  /* Never show active state on tab-links */
}
.tab-link:hover {
  background: rgba(60, 60, 90, 0.9) !important;
  color: #b69dff !important;
  border-color: rgba(182, 157, 255, 0.6) !important;
}
.tab-link.active {
  background: rgba(40, 40, 60, 0.9) !important;
  color: rgba(160, 160, 180, 0.8) !important;
  border-color: rgba(100, 100, 120, 0.5) !important;
  font-weight: 500 !important;
  box-shadow: none !important;
}

/* Responsive iframe */
@media (max-width: 768px) {
  .inventory-iframe-container {
    height: 500px;
  }
}
@media (max-width: 480px) {
  .inventory-iframe-container {
    height: 400px;
  }
}
/* Portal edit icon */
.portal-edit-icon {
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.2s ease;
  /* Show when portal is hovered in edit mode */
  /* Always show when portal has focus/is being manipulated */
  /* Ensure it doesn't interfere with resize handles */
  pointer-events: auto;
}
.portal-edit-mode .floor-gizmo:hover .portal-edit-icon {
  opacity: 1;
}
.portal-edit-mode .floor-gizmo.selected-portal .portal-edit-icon {
  opacity: 1;
}
.portal-edit-icon svg {
  display: block;
  width: 16px;
  height: 16px;
}
.portal-edit-icon:hover {
  background-color: rgba(33, 150, 243, 0.9) !important;
  transform: scale(1.1) !important;
}

/* Make sure the edit icon is always visible in edit mode for better UX */
.portal-edit-mode .floor-gizmo .portal-edit-icon {
  opacity: 0.7;
}

.portal-edit-mode .floor-gizmo:hover .portal-edit-icon {
  opacity: 1;
}

/* * Elevator CSS Styles
 * For the Spiral Tower Elevator
 * Last Updated: 2025-04-04 
 * Includes background-size adjustments for 2x structural images
 * and split animated background using fixed divs.
 */
/* * Define the keyframes for background-position animations
 */
@keyframes scrollBackgroundLeft {
  from {
    background-position: 0 0;
  }
  to {
    background-position: -256px 0;
  } /* Scroll left */
}
@keyframes scrollBackgroundRight {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 256px 0;
  } /* Scroll right */
}
/* * Styles for the main body element and nested structure
 */
body.stairs-fullscreen {
  /* Reset and base styles */
  /* Container for the three columns */
  /* Left column */
  /* Center column */
  /* Right column */
  /* Floor list panel */
  /* --- End of nested rules --- */
}
body.stairs-fullscreen .stairs-template-active * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body.stairs-fullscreen .stairs-template-active body,
body.stairs-fullscreen .stairs-template-active html {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  background-color: #333333; /* Base color */
}
body.stairs-fullscreen .stairs-container {
  display: flex;
  min-height: 100vh;
  width: 1411px; /* Adjust if needed based on original image widths */
  margin: 0 auto;
  position: relative; /* Children positioned relative to this */
}
body.stairs-fullscreen .stairs-left {
  width: 302px; /* Should match original_left_width if image filled it */
  background-image: url("/wp-content/plugins/the-spiral-tower/dist/images/Elevator 02 - tile left.jpg");
  background-repeat: repeat-y;
  /* --- Adjust Size for 2x Image --- */
  /* Replace placeholders with actual 1x dimensions! */
  background-size: 302px 2048px !important;
  box-shadow: -195px 0 1200px 0px rgba(0, 0, 0, 0.7);
  position: relative;
  z-index: 1;
}
body.stairs-fullscreen .stairs-center {
  width: 807px; /* Adjust if needed based on original image widths */
  display: flex;
  flex-direction: column;
  position: relative;
  flex-grow: 1;
}
body.stairs-fullscreen .stairs-top {
  background-image: url("/wp-content/plugins/the-spiral-tower/dist/images/Elevator 02 - tile top.jpg");
  background-repeat: repeat-x;
  /* --- Adjust Size for 2x Image --- */
  /* Replace placeholders with actual 1x dimensions! */
  background-size: 807px 771px !important;
  height: 771px; /* Should match original_top_height */
  flex-shrink: 0;
}
body.stairs-fullscreen .stairs-middle {
  background-image: url("/wp-content/plugins/the-spiral-tower/dist/images/Elevator 02 - tile center.jpg");
  background-repeat: repeat-y;
  /* --- Adjust Size for 2x Image --- */
  /* Replace placeholders with actual 1x dimensions! */
  background-size: 807px 386px !important;
  flex-grow: 1;
  position: relative;
  min-height: 386px; /* Example min-height, adjust if needed */
  display: flex;
  align-items: center;
  justify-content: center;
}
body.stairs-fullscreen .stairs-bottom {
  background-image: url("/wp-content/plugins/the-spiral-tower/dist/images/Elevator 02 - tile bottom.jpg");
  background-repeat: repeat-x;
  /* --- Adjust Size for 2x Image --- */
  /* Replace placeholders with actual 1x dimensions! */
  background-size: 807px 638px !important;
  height: 638px; /* Should match original_bottom_height */
  flex-shrink: 0;
}
body.stairs-fullscreen .stairs-right {
  width: 302px; /* Should match original_right_width if image filled it */
  background-image: url("/wp-content/plugins/the-spiral-tower/dist/images/Elevator 02 - tile right.jpg");
  background-repeat: repeat-y;
  /* --- Adjust Size for 2x Image --- */
  /* Replace placeholders with actual 1x dimensions! */
  background-size: 302px 2048px !important;
  box-shadow: 195px 0 1200px 0px rgba(0, 0, 0, 0.7);
  position: relative;
  z-index: 1;
}
body.stairs-fullscreen .stairs-floor-list {
  width: 100%;
  padding: 20px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
body.stairs-fullscreen .stairs-panel {
  width: 80%;
  max-width: 600px;
  padding: 50px;
  color: #fff;
  margin-left: -15px;
  position: relative;
  margin-top: -400px; /* Your value */
  margin-bottom: -500px; /* Your value */
  z-index: 2; /* Ensure panel is above columns */
}
body.stairs-fullscreen .stairs-panel h2 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 28px;
  color: #f0f0f0;
  text-transform: uppercase;
  letter-spacing: 2px;
}
body.stairs-fullscreen ul.floor-buttons {
  list-style: none;
  padding: 0;
  margin: 0;
  display: block;
}
body.stairs-fullscreen .floor-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.8);
  border: 2px solid #555;
  border-radius: 5px;
  padding: 10px;
  text-decoration: none;
  color: #fff;
  transition: all 0.3s ease;
  text-align: center;
  height: 100%;
  margin: 20px;
}
body.stairs-fullscreen .floor-button:hover {
  background-color: rgba(10, 10, 10, 0.8);
  border-color: #888;
  transform: scale(1.05);
}
body.stairs-fullscreen .floor-number {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 5px;
  color: #f0f0f0;
}
body.stairs-fullscreen .floor-title {
  font-size: 14px;
  color: #ccc;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.stairs-fullscreen .stairs-nav-arrow {
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.5);
  transition: background-color 0.3s ease;
  position: fixed;
  right: 24px;
  z-index: 1000;
  border: none;
  padding: 0;
}
body.stairs-fullscreen #goToTopBtn {
  top: 20px;
}
body.stairs-fullscreen #goToBottomBtn {
  bottom: 20px;
}
body.stairs-fullscreen .stairs-nav-arrow:hover {
  background-color: rgba(0, 0, 0, 0.7);
}
body.stairs-fullscreen .stairs-nav-arrow svg {
  width: 24px;
  height: 24px;
}

/* --- End of body.stairs-fullscreen rules --- */
/* * Styles for the fixed background divs (using the 1x animated tile)
 */
.fixed-background {
  position: fixed;
  top: 0;
  height: 100vh; /* Cover full viewport height */
  z-index: -1; /* Sit behind all other content */
  /* Common background properties */
  background-image: url("/wp-content/plugins/the-spiral-tower/dist/images/Elevator 02 - bg tile.jpg") !important;
  background-size: 256px 256px !important;
  background-repeat: repeat !important;
  background-position: 0 0; /* Base position (NO !important) */
}

/* Left half styles */
.fixed-background.left-half {
  left: 0;
  width: 50%; /* Cover left 50% of viewport */
  animation: scrollBackgroundRight 10s linear infinite !important; /* Scroll RIGHT */
}

/* Right half styles */
.fixed-background.right-half {
  right: 0; /* Align to the right edge */
  width: 50%; /* Cover right 50% of viewport */
  animation: scrollBackgroundLeft 10s linear infinite !important; /* Scroll LEFT */
}

/* Authors Page Styles for Spiral Tower */
.spiral-tower-authors-page {
  font-family: "Winky Sans", sans-serif;
  background: linear-gradient(135deg, #0f0f1a 0%, #16213e 50%, #0f0f1a 100%) !important;
  color: #e0e0e0;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  /* Tab Navigation - Match Profile Page Design */
  /* Responsive Design */
}
.spiral-tower-authors-page .spiral-profile-container {
  width: 90%;
  max-width: 1024px;
  margin: 2rem auto;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  position: relative;
  padding-bottom: 8rem;
  background: linear-gradient(0deg, transparent 0%, transparent 50%, transparent 50%, transparent 100%), url(/wp-content/plugins/the-spiral-tower/assets/images/authors-bg.jpg), url(/wp-content/plugins/the-spiral-tower/assets/images/authors-bg.jpg);
  background-size: 100% 9164px, 1024px 4582px, 1024px 4582px;
  background-position: center 0, center 0, center 4582px;
  background-repeat: repeat-y, repeat-y, repeat-y;
  background-attachment: local, local, local;
  filter: none, none, flipV;
}
.spiral-tower-authors-page .profile-header {
  color: white;
  padding: 2rem;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 150px;
  /* Space for background image */
}
.spiral-tower-authors-page .page-title {
  font-family: "Metamorphous", serif;
  font-size: 2.5rem;
  margin: 0.5rem 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  text-align: center;
  width: 324px;
  /* Match active tab styling */
  background: rgba(10, 10, 10, 0.6) !important;
  color: #b69dff !important;
  border: 1px solid #b69dff !important;
  border-radius: 8px;
  padding: 1rem 2rem;
  font-weight: 600 !important;
  box-shadow: inset 0 0 10px rgba(182, 157, 255, 0.3) !important;
  display: inline-block;
}
.spiral-tower-authors-page .profile-tabs {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 auto !important;
  width: 80% !important;
  height: auto !important;
  display: block !important;
}
.spiral-tower-authors-page .tab-nav {
  display: flex !important;
  justify-content: center !important;
  max-width: 1024px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  width: 100% !important;
  height: auto !important;
  visibility: visible !important;
  opacity: 1 !important;
  gap: 0 !important;
}
.spiral-tower-authors-page .tab-button {
  /* Reset all WordPress button styles */
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background: rgba(40, 40, 60, 0.9) !important;
  border: 1px solid rgba(100, 100, 120, 0.5) !important;
  border-radius: 0 !important;
  color: rgba(160, 160, 180, 0.8) !important;
  cursor: pointer !important;
  display: inline-block !important;
  font-family: "Metamorphous", serif !important;
  font-size: 1.5rem !important;
  font-weight: bold !important;
  letter-spacing: 0.5px !important;
  line-height: 1.2 !important;
  margin: 0 !important;
  opacity: 1 !important;
  padding: 1rem 1.5rem !important;
  text-align: center !important;
  text-decoration: none !important;
  text-transform: uppercase !important;
  transition: all 0.3s ease !important;
  position: relative !important;
  outline: none !important;
  width: auto !important;
  height: auto !important;
  min-height: auto !important;
  box-sizing: border-box !important;
  visibility: visible !important;
  flex: 1 !important;
}
.spiral-tower-authors-page .tab-button .smaller {
  font-size: 1rem;
  margin-top: 0.5rem;
}
.spiral-tower-authors-page .tab-button:last-child {
  border-right: 1px solid rgba(100, 100, 120, 0.5) !important;
}
.spiral-tower-authors-page .tab-button:hover {
  background: rgba(60, 60, 90, 0.9) !important;
  color: #b69dff !important;
  border-color: rgba(182, 157, 255, 0.6) !important;
}
.spiral-tower-authors-page .tab-button.active {
  background: rgba(20, 20, 40, 0.9) !important;
  color: #b69dff !important;
  border-color: #b69dff !important;
  font-weight: 600 !important;
  box-shadow: inset 0 0 10px rgba(182, 157, 255, 0.3) !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8) !important;
}
.spiral-tower-authors-page .tab-button:focus {
  outline: none !important;
}
.spiral-tower-authors-page .profile-content {
  padding: 2rem !important;
  background: rgb(15, 15, 15);
  width: 80% !important;
  height: auto !important;
  margin: auto auto 400px auto;
}
.spiral-tower-authors-page .content-section {
  width: 100%;
}
.spiral-tower-authors-page .authors-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto;
}
.spiral-tower-authors-page .author-item {
  background: rgba(20, 20, 30, 0.95);
  border: 1px solid rgba(182, 157, 255, 0.2);
  border-radius: 8px;
  padding: 1rem 1.5rem;
  transition: all 0.3s ease;
  text-align: center;
  width: 300px;
  margin: auto;
}
.spiral-tower-authors-page .author-item:hover {
  background: rgba(60, 60, 90, 0.9);
  border-color: rgba(182, 157, 255, 0.6);
  box-shadow: 0 0 10px rgba(182, 157, 255, 0.3);
}
.spiral-tower-authors-page .author-item a {
  color: #e0e0e0;
  text-decoration: none;
  font-family: "Metamorphous", serif;
  font-size: 1.2rem;
  font-weight: 500;
  display: block;
  transition: color 0.3s ease;
}
.spiral-tower-authors-page .author-item a:hover {
  color: #b69dff;
}
.spiral-tower-authors-page .no-authors {
  text-align: center;
  padding: 3rem;
  color: #a0a0a0;
  font-family: "Metamorphous", serif;
  font-size: 1.1rem;
}
@media (max-width: 768px) {
  .spiral-tower-authors-page .profile-header {
    padding: 1.5rem;
    padding-top: 120px;
  }
  .spiral-tower-authors-page .page-title {
    font-size: 2rem;
  }
  .spiral-tower-authors-page .profile-content {
    padding: 1.5rem !important;
    width: 85% !important;
    margin: auto auto 300px auto !important;
  }
  .spiral-tower-authors-page .author-item {
    padding: 0.8rem 1rem;
    text-align: center;
  }
  .spiral-tower-authors-page .author-item a {
    font-size: 1.1rem;
  }
}
@media (max-width: 480px) {
  .spiral-tower-authors-page .profile-header {
    padding-top: 100px;
  }
  .spiral-tower-authors-page .page-title {
    font-size: 1.8rem;
    padding: 0.8rem 1.5rem;
  }
  .spiral-tower-authors-page .profile-content {
    padding: 1rem !important;
    width: 90% !important;
  }
  .spiral-tower-authors-page .author-item {
    padding: 0.7rem;
  }
  .spiral-tower-authors-page .author-item a {
    font-size: 1rem;
  }
}

/* User Profile Styles for Spiral Tower */
.spiral-tower-profile-page {
  font-family: "Winky Sans", sans-serif;
  background: linear-gradient(to right, #0f1337 0%, #030c13 20%, #030c13 80%, #0f1337 100%) !important;
  color: #e0e0e0;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  /* Tab Navigation - Force override theme styles */
  /* Tab Navigation - Match Your Image Design */
  /* Tab Content */
  /* Floors Grid */
  /* Inventory Content */
  /* No Content Message */
  /* Responsive Design */
  /* Floor cards with thumbnail backgrounds */
}
.spiral-tower-profile-page .spiral-profile-container {
  width: 90%;
  max-width: 1024px;
  margin: 2rem auto;
  background-image: url(/wp-content/plugins/the-spiral-tower/assets/images/profile-bg.jpg);
  background-size: 1024px auto !important;
  background-position: center top !important;
  /* Center horizontally, top vertically */
  background-repeat: no-repeat !important;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  position: relative;
}
.spiral-tower-profile-page .profile-header {
  color: white;
  padding: 2rem;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.spiral-tower-profile-page .profile-avatar-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.5rem;
}
.spiral-tower-profile-page .profile-avatar-container .profile-avatar {
  width: 304px;
  height: auto;
  margin-top: 72px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  margin-bottom: 1rem;
  position: relative;
}
.spiral-tower-profile-page .profile-avatar-container .profile-avatar img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}
.spiral-tower-profile-page .profile-avatar-container .profile-avatar:hover .edit-avatar-link {
  opacity: 1;
}
.spiral-tower-profile-page .profile-username {
  font-family: "Metamorphous", serif;
  font-size: 2.5rem;
  margin: 0.5rem 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  text-align: center;
  /* Match active tab styling */
  background: rgba(10, 10, 10, 0.6) !important;
  color: #b69dff !important;
  border: 1px solid #b69dff !important;
  border-radius: 8px;
  padding: 1rem 2rem;
  font-weight: 600 !important;
  box-shadow: inset 0 0 10px rgba(182, 157, 255, 0.3) !important;
  display: inline-block;
}
.spiral-tower-profile-page .profile-website a {
  color: #b69dff;
  text-decoration: none;
  transition: color 0.3s ease;
}
.spiral-tower-profile-page .profile-website a:hover {
  color: #d9c9ff;
}
.spiral-tower-profile-page .profile-metadata {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}
.spiral-tower-profile-page .profile-bio-section {
  margin: auto;
  padding: 2rem;
  background-color: rgba(10, 10, 10, 0.6);
  border-bottom: 1px solid rgba(182, 157, 255, 0.2);
  width: 80%;
}
.spiral-tower-profile-page .profile-bio-section .profile-bio h2 {
  font-family: "Metamorphous", serif;
  color: #b69dff;
  margin-top: 0;
  border-bottom: 1px solid rgba(182, 157, 255, 0.2);
  padding-bottom: 0.5rem;
}
.spiral-tower-profile-page .profile-bio-section .bio-content {
  line-height: 1.6;
}
.spiral-tower-profile-page .profile-tabs {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 auto !important;
  width: 80% !important;
  height: auto !important;
  display: block !important;
}
.spiral-tower-profile-page .tab-nav {
  display: flex !important;
  justify-content: center !important;
  max-width: 1024px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  width: 100% !important;
  height: auto !important;
  visibility: visible !important;
  opacity: 1 !important;
  gap: 0 !important;
}
.spiral-tower-profile-page .tab-button {
  /* Reset all WordPress button styles */
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background: rgba(40, 40, 60, 0.9) !important;
  border: 1px solid rgba(100, 100, 120, 0.5) !important;
  border-radius: 0 !important;
  color: rgba(160, 160, 180, 0.8) !important;
  cursor: pointer !important;
  display: inline-block !important;
  font-family: "Metamorphous", serif !important;
  font-size: 1.5rem !important;
  font-weight: bold !important;
  letter-spacing: 0.5px !important;
  line-height: 1.2 !important;
  margin: 0 !important;
  opacity: 1 !important;
  padding: 1rem 1.5rem !important;
  text-align: center !important;
  text-decoration: none !important;
  text-transform: uppercase !important;
  transition: all 0.3s ease !important;
  position: relative !important;
  outline: none !important;
  width: auto !important;
  height: auto !important;
  min-height: auto !important;
  box-sizing: border-box !important;
  visibility: visible !important;
  flex: 1 !important;
}
.spiral-tower-profile-page .tab-button .smaller {
  font-size: 1rem;
  margin-top: 0.5rem;
}
.spiral-tower-profile-page .tab-button:last-child {
  border-right: 1px solid rgba(100, 100, 120, 0.5) !important;
}
.spiral-tower-profile-page .tab-button:hover {
  background: rgba(60, 60, 90, 0.9) !important;
  color: #b69dff !important;
  border-color: rgba(182, 157, 255, 0.6) !important;
}
.spiral-tower-profile-page .tab-button.active {
  background: rgba(20, 20, 40, 0.9) !important;
  color: #b69dff !important;
  border-color: #b69dff !important;
  font-weight: 600 !important;
  box-shadow: inset 0 0 10px rgba(182, 157, 255, 0.3) !important;
  text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8) !important;
}
.spiral-tower-profile-page .tab-button:focus {
  outline: none !important;
}
.spiral-tower-profile-page .profile-content {
  padding: 2rem !important;
  background: rgb(15, 15, 15);
  width: 80% !important;
  height: auto !important;
  margin: auto auto 400px auto;
}
.spiral-tower-profile-page .tab-content {
  display: none !important;
  width: 100% !important;
  height: auto !important;
}
.spiral-tower-profile-page .tab-content.active {
  display: block !important;
}
.spiral-tower-profile-page .content-section h2 {
  font-family: "Metamorphous", serif;
  color: #b69dff;
  margin-top: 0;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(182, 157, 255, 0.2);
  padding-bottom: 0.5rem;
}
.spiral-tower-profile-page .floors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.spiral-tower-profile-page .achievements-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 768px) {
  .spiral-tower-profile-page .achievements-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
  }
}
@media (max-width: 480px) {
  .spiral-tower-profile-page .achievements-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}
.spiral-tower-profile-page .achievement-item {
  position: relative;
  text-align: center;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}
.spiral-tower-profile-page .achievement-item.earned {
  cursor: pointer;
  background: transparent;
}
.spiral-tower-profile-page .achievement-item.locked {
  opacity: 0.3;
  background: transparent;
}
.spiral-tower-profile-page .achievement-item.locked:hover {
  opacity: 0.5;
}
.spiral-tower-profile-page .achievement-image {
  margin-bottom: 12px;
  overflow: visible;
  border-radius: 0 !important;
  background: transparent !important;
  width: 100% !important;
  height: auto !important;
  display: block;
}
.spiral-tower-profile-page .achievement-image img {
  width: 100% !important;
  height: auto !important;
  border-radius: 0;
  clip-path: none;
  -webkit-mask: none;
          mask: none;
  background: transparent;
  transition: transform 0.3s ease;
  transform-origin: center;
  -o-object-fit: contain;
     object-fit: contain;
}
.spiral-tower-profile-page .achievement-image img:hover {
  transform: scale(1.5);
}
.spiral-tower-profile-page .achievement-info {
  font-size: 12px;
  color: #e0e0e0;
}
@media (min-width: 768px) {
  .spiral-tower-profile-page .achievement-info {
    font-size: 13px;
  }
}
.spiral-tower-profile-page .achievement-title {
  font-weight: bold;
  margin-bottom: 6px;
  color: #b69dff;
  font-size: 13px;
  line-height: 1.2;
}
@media (min-width: 768px) {
  .spiral-tower-profile-page .achievement-title {
    font-size: 14px;
  }
}
.spiral-tower-profile-page .achievement-description {
  line-height: 1.3;
  font-size: 11px;
  font-family: "Metamorphous", serif;
  color: #b69dff;
  margin: -8px 0 8px 0;
}
@media (min-width: 768px) {
  .spiral-tower-profile-page .achievement-description {
    font-size: 12px;
  }
}
.spiral-tower-profile-page .inventory-content {
  text-align: center;
  padding: 3rem;
  color: #a0a0a0;
}
.spiral-tower-profile-page .inventory-content a {
  color: #b69dff;
  text-decoration: none;
}
.spiral-tower-profile-page .inventory-content a:hover {
  text-decoration: underline;
}
.spiral-tower-profile-page .no-content-message {
  text-align: center;
  padding: 3rem;
  color: #a0a0a0;
}
.spiral-tower-profile-page .no-content-message a {
  color: #b69dff;
  text-decoration: none;
}
.spiral-tower-profile-page .no-content-message a:hover {
  text-decoration: underline;
}
.spiral-tower-profile-page .profile-footer {
  padding: 1.5rem;
  text-align: center;
  background-color: rgba(10, 10, 10, 0.8);
}
.spiral-tower-profile-page .back-to-tower {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background-color: #432675;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  transition: background-color 0.3s ease;
  font-family: "Metamorphous", serif;
  font-size: 1rem;
  letter-spacing: 0.5px;
}
.spiral-tower-profile-page .back-to-tower:hover {
  background-color: #583a96;
}
.spiral-tower-profile-page .edit-profile-link,
.spiral-tower-profile-page .edit-section-link,
.spiral-tower-profile-page .edit-floor-link,
.spiral-tower-profile-page .manage-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  font-size: 0.7em;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.spiral-tower-profile-page .edit-profile-link:hover,
.spiral-tower-profile-page .edit-section-link:hover,
.spiral-tower-profile-page .edit-floor-link:hover,
.spiral-tower-profile-page .manage-icon:hover {
  opacity: 1;
  text-decoration: none;
}
.spiral-tower-profile-page .edit-profile-link .edit-icon,
.spiral-tower-profile-page .edit-section-link .edit-icon,
.spiral-tower-profile-page .edit-floor-link .edit-icon,
.spiral-tower-profile-page .manage-icon .edit-icon {
  font-size: 1.2em;
}
.spiral-tower-profile-page .edit-avatar-link {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 10px;
  background: rgba(0, 0, 0, 0.6);
  padding: 4px 12px;
  border-radius: 16px;
  white-space: nowrap;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.spiral-tower-profile-page .edit-avatar-link a {
  color: #fff;
  text-decoration: none;
  font-size: 0.8em;
  display: flex;
  align-items: center;
}
.spiral-tower-profile-page .edit-avatar-link a .edit-icon {
  margin-right: 4px;
}
.spiral-tower-profile-page .edit-profile-section {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: -10px;
  margin-bottom: 20px;
}
.spiral-tower-profile-page .edit-profile-section .profile-button {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 4px;
  font-size: 0.9em;
  text-decoration: none;
  transition: background 0.2s;
  min-width: 72px;
  margin: 0 8px;
  text-align: center;
  font-family: "Metamorphous", serif;
}
.spiral-tower-profile-page .edit-profile-section .profile-button:hover {
  background: rgba(255, 255, 255, 0.3);
}
.spiral-tower-profile-page .edit-profile-section .profile-user-button {
  font-family: "Metamorphous", serif;
  font-size: 1rem;
  margin: 0.5rem 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  text-align: center;
  text-decoration: none;
  /* Match active tab styling */
  background: rgba(10, 10, 10, 0.6) !important;
  color: #b69dff !important;
  border: 1px solid #b69dff !important;
  border-radius: 8px;
  padding: 1rem 2rem;
  font-weight: 600 !important;
  box-shadow: inset 0 0 10px rgba(182, 157, 255, 0.3) !important;
  display: inline-block;
}
@media (max-width: 768px) {
  .spiral-tower-profile-page .profile-avatar {
    margin-top: 80px;
  }
  .spiral-tower-profile-page .profile-header {
    padding: 1.5rem;
  }
  .spiral-tower-profile-page .tab-nav {
    flex-wrap: wrap;
  }
  .spiral-tower-profile-page .tab-button {
    padding: 0.8rem 1.5rem !important;
    font-size: 1rem !important;
  }
  .spiral-tower-profile-page .profile-content {
    padding: 2rem !important;
    background: rgba(15, 15, 15, 0.9);
    width: 80% !important;
    height: auto !important;
    margin: auto auto 300px auto !important;
  }
  .spiral-tower-profile-page .profile-bio-section {
    margin: auto;
    width: 80%;
    padding: 1.5rem;
  }
  .spiral-tower-profile-page .floors-grid {
    grid-template-columns: 1fr;
  }
  .spiral-tower-profile-page .achievements-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}
@media (max-width: 480px) {
  .spiral-tower-profile-page .profile-username {
    font-size: 1.8rem;
  }
  .spiral-tower-profile-page .tab-button {
    padding: 0.6rem 1rem !important;
    font-size: 1.2rem !important;
    font-weight: bold;
  }
  .spiral-tower-profile-page .profile-content {
    padding: 1rem !important;
  }
  .spiral-tower-profile-page .profile-bio-section {
    margin: auto;
    padding: 1rem;
  }
  .spiral-tower-profile-page .achievements-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (prefers-reduced-motion: reduce) {
  .spiral-tower-profile-page .achievement-image img {
    transition: transform 0.3s ease !important;
  }
}
.spiral-tower-profile-page .floor-card {
  border: 1px solid rgba(182, 157, 255, 0.2) !important;
  border-radius: 8px !important;
  padding: 1.5rem !important;
  transition: box-shadow 0.3s ease !important;
  position: relative !important;
  min-height: 160px !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  cursor: pointer !important;
  /* Add overlay to ensure text readability */
}
.spiral-tower-profile-page .floor-card::before {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background: rgba(0, 0, 0, 0.2) !important;
  border-radius: 8px !important;
  z-index: 1 !important;
}
.spiral-tower-profile-page .floor-card:hover {
  box-shadow: 0 0 6px rgba(162, 157, 255, 0.3) !important;
}
.spiral-tower-profile-page .floor-card:hover::before {
  opacity: 0 !important;
}
.spiral-tower-profile-page .floor-card .floor-link {
  position: absolute !important;
  z-index: 2 !important;
  color: #e0e0e0 !important;
  text-decoration: none !important;
  font-weight: 500 !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8) !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  padding: 1.5rem !important;
  display: flex !important;
  align-items: flex-end !important;
}
.spiral-tower-profile-page .floor-card .floor-link:hover {
  color: #b69dff !important;
}
.spiral-tower-profile-page .floor-card .edit-floor-link {
  position: absolute !important;
  top: 10px !important;
  right: 10px !important;
  z-index: 3 !important;
  background: rgba(0, 0, 0, 0.6) !important;
  padding: 5px !important;
  border-radius: 3px !important;
  opacity: 0 !important;
  transition: opacity 0.3s ease !important;
}
.spiral-tower-profile-page .floor-card:hover .edit-floor-link {
  opacity: 1 !important;
}

.inventory-iframe-container {
  width: 100%;
  height: 600px;
  border: 1px solid rgba(182, 157, 255, 0.3);
  border-radius: 8px;
  overflow: hidden;
  background: #fff !important; /* Force white background */
}
.inventory-iframe-container iframe {
  width: 100% !important;
  height: 100% !important;
  border: none !important;
  display: block !important;
  background: #fff !important; /* Force white background on iframe too */
}

/* Hide content toggle button when text-only mode is active */
#button-content-toggle.hidden-by-text-mode {
  display: none !important;
  /* Use !important if necessary to override other display rules */
}

#toolbar {
  display: flex;
  position: fixed;
  bottom: 15px;
  right: 75px;
  z-index: 9999 !important;
  overflow: visible;
  opacity: 0.8;
  /* Add this to your CSS */
  /* Optional hover effect */
  /* Keyframes for breathing fade */
  /* Animation with high specificity and !important to override reduced motion */
  /* Prevent prefers-reduced-motion from disabling this specific animation */
  /* Like users tooltip styles */
  /* Processing state */
  /* Like button in the toolbar */
  /* Fill the heart when liked */
  /* Hover animation */
  /* Processing state (while AJAX request is in progress) */
  /* Like users tooltip - if you prefer to use CSS instead of JavaScript styling */
}
#toolbar > a,
#toolbar > div {
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  padding: 5px;
  cursor: pointer;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  transition: background-color 0.2s ease;
  padding: 8px;
}
#toolbar > a:first-child,
#toolbar > div:first-child {
  border-left: none;
}
#toolbar #toolbar > div.tooltip-trigger:hover {
  background-color: rgba(255, 255, 255, 0.1);
}
#toolbar #toolbar > a img,
#toolbar #toolbar > a svg,
#toolbar #toolbar > div img,
#toolbar #toolbar > div svg {
  width: 100%;
  height: 100%;
  max-width: 70%;
  max-height: 70%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: auto;
  fill: white;
  opacity: 0.8;
  pointer-events: none;
}
#toolbar .new-section-after {
  margin-right: 12px;
}
#toolbar #toolbar-edit-portals.active-edit-mode {
  background-color: rgba(76, 175, 80, 0.2);
  /* Light green background */
  border-radius: 50%;
  /* Makes it circular */
  box-shadow: 0 0 5px rgba(76, 175, 80, 0.5);
  /* Subtle glow effect */
}
#toolbar #toolbar-edit-portals:hover {
  transform: scale(1.1);
  transition: transform 0.2s ease;
}
#toolbar #button-user-profile a {
  font-family: var(--title-font, "Metamorphous", serif) !important;
  color: #fff;
  font-weight: bold;
  text-decoration: none;
}
#toolbar #button-sound-toggle {
  display: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}
@keyframes volumeBreath {
  0%, 100% {
    opacity: 0.2;
  }
  50% {
    opacity: 1;
  }
}
#toolbar #volume-off-icon {
  animation: volumeBreath 4s ease-in-out infinite !important;
}
@media (prefers-reduced-motion: reduce) {
  #toolbar #volume-off-icon {
    animation: volumeBreath 4s ease-in-out infinite !important;
  }
}
#toolbar #toolbar-heart.liked svg {
  fill: red;
  stroke: red;
  opacity: 1;
}
#toolbar .like-users-tooltip {
  position: fixed;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.9);
  color: white;
  border-radius: 4px;
  padding: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  max-width: 250px;
  width: -moz-max-content;
  width: max-content;
  display: none;
  transform: translateX(-50%);
}
#toolbar .tooltip-content {
  max-height: 200px;
  overflow-y: auto;
}
#toolbar .tooltip-header {
  font-weight: bold;
  margin-bottom: 6px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
#toolbar .tooltip-user {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
}
#toolbar .user-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  margin-right: 8px;
}
#toolbar .user-name {
  font-size: 13px;
}
#toolbar .tooltip-no-users {
  font-style: italic;
  opacity: 0.7;
}
#toolbar #toolbar-like.processing {
  opacity: 0.7;
  pointer-events: none;
}
#toolbar #toolbar-like {
  position: relative;
  cursor: pointer;
  transition: transform 0.2s ease;
}
#toolbar #toolbar-like.liked svg {
  fill: #bb2222;
}
#toolbar #toolbar-like:hover {
  transform: scale(1.1);
}
#toolbar #toolbar-like.processing {
  opacity: 0.7;
  pointer-events: none;
}
#toolbar .like-users-tooltip {
  position: fixed;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 14px;
  max-width: 300px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  display: none;
  transform: translateX(-50%);
}

#portal-notifications,
.portal-notification {
  pointer-events: none !important;
}

.tooltip-trigger {
  position: relative;
  cursor: help;
}

.tooltip-trigger::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 110%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 5px;
  background-color: #333;
  color: #fff;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.9em;
  font-family: var(--body-font);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out;
  z-index: 10000;
}

.tooltip-trigger::before {
  content: "";
  position: absolute;
  bottom: 110%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 0px;
  border-width: 5px;
  border-style: solid;
  border-color: #333 transparent transparent transparent;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out;
  z-index: 10001;
}

.tooltip-trigger:hover::after,
.tooltip-trigger:hover::before {
  opacity: 1;
  visibility: visible;
}

/* --------------------------------------------------------
   * TOOLBAR SEARCH EXTENSION 
   * -------------------------------------------------------- */
#toolbar-search-form {
  /* --- Positioning & Size --- */
  position: fixed;
  bottom: 60px;
  right: 75px;
  width: 10vw;
  min-width: 200px;
  max-width: 300px;
  /* --- Appearance --- */
  background-color: transparent;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  z-index: 10000;
  /* --- Flex Layout for Input/Button --- */
  display: flex;
  align-items: stretch;
  flex-wrap: nowrap;
}
#toolbar-search-form input[type=text] {
  /* --- Sizing & Layout --- */
  flex-grow: 1;
  flex-shrink: 1;
  width: auto;
  height: 32px;
  box-sizing: border-box;
  /* --- Appearance (including darker bg and placeholder from previous step) --- */
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-right: none;
  background-color: rgba(0, 0, 0, 0.7);
  color: #ddd;
  font-family: var(--body-font);
  font-size: 0.9em;
}
#toolbar-search-form input[type=text]::-moz-placeholder {
  color: #bbb;
  opacity: 1;
}
#toolbar-search-form input[type=text]::placeholder {
  color: #bbb;
  opacity: 1;
}
#toolbar-search-form input[type=text]:focus {
  outline: none;
  border-color: var(--subtitle-color, #e90303);
  position: relative;
  z-index: 1;
}
#toolbar-search-form button {
  /* --- Sizing & Layout --- */
  flex-shrink: 0;
  flex-grow: 0;
  height: 32px;
  box-sizing: border-box;
  /* --- Appearance --- */
  padding: 0 12px;
  background-color: rgba(85, 85, 85, 0.9);
  color: #fff;
  border: 1px solid rgba(119, 119, 119, 0.8);
  cursor: pointer;
  font-family: var(--body-font);
  font-size: 0.9em;
  white-space: nowrap;
  line-height: 30px;
}
#toolbar-search-form button:disabled {
  opacity: 0.6;
  cursor: default;
}

#user-profile-popup {
  position: absolute;
  bottom: 60px;
  right: 10px;
  height: 70px;
  width: 280px;
  background-color: rgba(10, 10, 20, 0.85);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  z-index: 1000;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
  display: none;
  transform-origin: bottom right;
  overflow: visible;
}

.profile-popup-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.profile-popup-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  padding: 0 15px;
}

.author-info {
  color: white;
  font-size: 15px;
  width: 60%;
  display: flex;
  align-items: center;
  height: 100%;
}

.author-info p {
  margin: 0;
  text-decoration: none;
}

.author-name {
  color: #9ecaed;
  font-weight: bold;
  position: relative;
  display: inline-block;
}

.author-name:after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: #9ecaed;
  transition: width 0.3s ease;
}

.profile-popup-link:hover .author-name:after {
  width: 100%;
}

.author-avatar-container {
  position: relative;
  width: 120px;
  height: 100%;
}

.author-avatar {
  position: absolute;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  bottom: -15px;
  right: 0;
  border: 3px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 15px rgba(158, 202, 237, 0.5);
  -o-object-fit: cover;
     object-fit: cover;
}

/**
 * CSS-only fix for mobile user profile popup
 * Add this to your theme's CSS or inline it in the head
 */
/* Make sure popup is positioned properly */
#user-profile-popup {
  position: absolute !important;
  z-index: 9999 !important;
  bottom: 60px !important;
  /* Position above toolbar */
  right: 10px !important;
  background-color: rgba(20, 20, 20, 0.95) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 8px !important;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5) !important;
  padding: 10px !important;
  width: 280px !important;
  max-width: 90vw !important;
  /* Prevent overflow on small screens */
}

/* Mobile-specific styles */
@media (max-width: 767px) {
  /* Fix for tap events on mobile */
  #button-user-profile {
    cursor: pointer !important;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0) !important;
    -webkit-touch-callout: none !important;
  }
  /* Add a special class to handle visibility on mobile */
  #button-user-profile.mobile-tapped + #user-profile-popup {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: scale(1) !important;
  }
}
#button-floor-up,
#button-floor-down {
  position: relative;
}

#button-floor-up,
#button-floor-down {
  position: relative;
  z-index: 1;
  pointer-events: auto;
}

#button-floor-up svg,
#button-floor-down svg {
  pointer-events: none;
}

.dom-tooltip {
  min-width: 100px;
}

.discovery-info {
  position: absolute;
  top: -60px;
  white-space: nowrap;
  text-shadow: 2px 2px black;
  display: block;
}

img {
  transition-duration: 2s !important;
}

@media (prefers-reduced-motion: reduce) {
  img {
    transition-duration: 2s !important;
  }
}
/* Tower Stats Page Styles */
.tower-stats-page {
  background: linear-gradient(135deg, #0f0f1a 0%, #16213e 50%, #0f0f1a 100%) !important;
  min-height: 100vh;
  margin: 0;
  font-family: "Winky Sans", sans-serif;
}
.tower-stats-page .stats-page-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}
.tower-stats-page .stats-header {
  text-align: center;
  margin-bottom: 40px;
  color: white;
}
.tower-stats-page .stats-header h1 {
  font-size: 3rem;
  margin: 0 0 20px 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  font-family: "Metamorphous", serif;
}
.tower-stats-page .stats-nav a {
  color: #ffd700;
  text-decoration: none;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}
.tower-stats-page .stats-nav a:hover {
  color: white;
}
.tower-stats-page .tower-stats-container {
  max-width: 100%;
}
.tower-stats-page .stats-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}
.tower-stats-page .stat-card {
  background: linear-gradient(135deg, #2a1a4a 0%, #432675 100%);
  padding: 20px;
  text-align: center;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.tower-stats-page .stat-card h3 {
  margin: 0 0 10px 0;
  font-size: 18px;
  color: #fff;
  font-family: "Metamorphous", serif;
}
.tower-stats-page .stat-number {
  font-size: 48px;
  font-weight: bold;
  color: #ffd700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  font-family: "Metamorphous", serif;
}
.tower-stats-page .stats-leaderboards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}
.tower-stats-page .leaderboard {
  background: linear-gradient(135deg, #2a1a4a 0%, #432675 100%);
  padding: 20px;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.tower-stats-page .leaderboard h3 {
  margin: 0 0 20px 0;
  font-size: 20px;
  color: #fff;
  text-align: center;
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 10px;
  font-family: "Metamorphous", serif;
}
.tower-stats-page .leaderboard-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tower-stats-page .leaderboard-item {
  display: flex;
  align-items: center;
  padding: 10px;
  background: rgba(255, 255, 255, 0.05);
  transition: background 0.3s ease;
}
.tower-stats-page .leaderboard-item:hover {
  background: linear-gradient(135deg, #2a1a4a 0%, #432675 100%);
}
.tower-stats-page .leaderboard a {
  text-decoration: none;
}
.tower-stats-page .rank {
  font-family: "Metamorphous", serif;
  font-weight: bold;
  color: #ffd700;
  min-width: 30px;
  margin-right: 15px;
}
.tower-stats-page .name {
  flex: 1;
  color: #fff;
  font-weight: 500;
}
.tower-stats-page .count {
  color: #ccc;
  font-size: 14px;
}
@media (max-width: 768px) {
  .tower-stats-page .stats-page-wrapper {
    padding: 10px;
  }
  .tower-stats-page .stats-leaderboards {
    grid-template-columns: 1fr;
  }
  .tower-stats-page .stat-number {
    font-size: 36px;
  }
  .tower-stats-page .stats-header h1 {
    font-size: 2rem;
  }
}

.tower-how-it-works-page {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  min-height: 100vh;
  margin: 0;
  font-family: "Winky Sans", sans-serif;
  background: linear-gradient(135deg, #0f0f1a 0%, #16213e 50%, #0f0f1a 100%) !important;
}
.tower-how-it-works-page .how-it-works-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}
.tower-how-it-works-page .how-it-works-header {
  text-align: center;
  margin-bottom: 40px;
  color: white;
}
.tower-how-it-works-page .how-it-works-header h1 {
  font-size: 3rem;
  margin: 0 0 20px 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  font-family: "Metamorphous", serif;
  color: white;
}
.tower-how-it-works-page .how-it-works-subtitle {
  font-size: 1.3rem;
  color: #b0c4de;
  font-style: italic;
  margin: 0;
}
.tower-how-it-works-page .how-it-works-nav {
  margin-bottom: 20px;
}
.tower-how-it-works-page .how-it-works-nav a {
  color: #b69dff;
  text-decoration: none;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}
.tower-how-it-works-page .how-it-works-nav a:hover {
  color: white;
}
.tower-how-it-works-page .how-it-works-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}
.tower-how-it-works-page .hiw-section {
  background: linear-gradient(135deg, #2a1a4a 0%, #432675 100%);
  padding: 25px;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.tower-how-it-works-page .hiw-section h2 {
  font-size: 2rem;
  color: #b69dff;
  margin: 0 0 15px 0;
  font-family: "Metamorphous", serif;
  text-align: center;
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}
.tower-how-it-works-page .hiw-section h2 svg {
  width: 28px;
  height: 28px;
  stroke: #ffd700;
  fill: none;
}
.tower-how-it-works-page .hiw-section h2 svg path {
  stroke: #ffd700;
}
.tower-how-it-works-page .hiw-section h2 svg circle {
  stroke: #ffd700;
}
.tower-how-it-works-page .hiw-section h2 svg line {
  stroke: #ffd700;
}
.tower-how-it-works-page .hiw-section h2 img {
  filter: brightness(0) saturate(100%) invert(84%) sepia(75%) saturate(2489%) hue-rotate(346deg) brightness(104%) contrast(101%);
}
.tower-how-it-works-page .hiw-description {
  font-size: 1.5rem;
  line-height: 1.6;
  color: #e0e0e0;
}
.tower-how-it-works-page .hiw-description p {
  margin-bottom: 1rem;
}
.tower-how-it-works-page .hiw-description ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
}
.tower-how-it-works-page .hiw-description li {
  margin-bottom: 0.5rem;
  color: #d0d0d0;
}
.tower-how-it-works-page .hiw-description strong {
  color: #b69dff;
  font-weight: bold;
}
.tower-how-it-works-page .hiw-description a {
  color: #b69dff;
  text-decoration: none;
  transition: color 0.3s ease;
}
.tower-how-it-works-page .hiw-description a:hover {
  color: #c4b1ff;
  text-shadow: 0 0 5px rgba(182, 157, 255, 0.5);
}
.tower-how-it-works-page .getting-started-section {
  background: linear-gradient(135deg, #2a1a4a 0%, #432675 100%);
  padding: 30px;
  text-align: center;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 30px;
  grid-column: 1/-1;
}
.tower-how-it-works-page .getting-started-section h2 {
  font-size: 2.2rem;
  color: #b69dff;
  margin: 0 0 20px 0;
  font-family: "Metamorphous", serif;
}
.tower-how-it-works-page .getting-started-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 25px;
}
.tower-how-it-works-page .cta-button {
  display: inline-block;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: all 0.3s ease;
  font-size: 1rem;
  border: 2px solid;
  font-family: "Winky Sans", sans-serif;
}
.tower-how-it-works-page .cta-button.primary {
  background: #b69dff;
  color: #1a1a2e;
  border-color: #b69dff;
}
.tower-how-it-works-page .cta-button.primary:hover {
  background: #c4b1ff;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(182, 157, 255, 0.4);
}
.tower-how-it-works-page .cta-button.secondary {
  background: transparent;
  color: #87ceeb;
  border-color: #87ceeb;
}
.tower-how-it-works-page .cta-button.secondary:hover {
  background: rgba(135, 206, 235, 0.2);
  color: #b0e0ff;
  transform: translateY(-2px);
}
.tower-how-it-works-page .tower-navigation {
  background: linear-gradient(135deg, #2a1a4a 0%, #432675 100%);
  padding: 25px;
  text-align: center;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.tower-how-it-works-page .tower-navigation h3 {
  color: #b69dff;
  font-family: "Metamorphous", serif;
  margin: 0 0 20px 0;
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 10px;
}
.tower-how-it-works-page .nav-links {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}
.tower-how-it-works-page .nav-link {
  display: inline-block;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.1);
  color: #87ceeb;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s ease;
  border: 1px solid rgba(135, 206, 235, 0.3);
  font-family: "Winky Sans", sans-serif;
}
.tower-how-it-works-page .nav-link:hover {
  background: rgba(135, 206, 235, 0.2);
  color: #b0e0ff;
  transform: translateY(-1px);
}
@media (max-width: 768px) {
  .tower-how-it-works-page .how-it-works-wrapper {
    padding: 10px;
  }
  .tower-how-it-works-page .how-it-works-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .tower-how-it-works-page .how-it-works-header h1 {
    font-size: 2rem;
  }
  .tower-how-it-works-page .hiw-section {
    padding: 20px;
  }
  .tower-how-it-works-page .getting-started-buttons,
  .tower-how-it-works-page .nav-links {
    flex-direction: column;
    align-items: center;
  }
  .tower-how-it-works-page .cta-button,
  .tower-how-it-works-page .nav-link {
    width: 100%;
    max-width: 300px;
  }
}
.tower-how-it-works-page.how-it-works-template {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}
.tower-how-it-works-page.how-it-works-template * {
  box-sizing: border-box;
}
@media (prefers-reduced-motion: reduce) {
  .tower-how-it-works-page * {
    animation-duration: 2s !important;
    transition-duration: 0.3s !important;
  }
}

#menu {
  background-color: rgba(67, 38, 117, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 0;
  margin: 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
#menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (max-width: 768px) {
  #menu ul {
    flex-direction: column;
    padding: 10px 0;
  }
}
#menu li {
  margin: 0;
}
@media (max-width: 768px) {
  #menu li {
    width: 100%;
    text-align: center;
  }
}
#menu a {
  display: block;
  padding: 15px 25px;
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  transition: all 0.3s ease;
  border-radius: 0;
}
#menu a:hover {
  background-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  transform: translateY(-1px);
}
#menu a:active {
  transform: translateY(0);
}
#menu a.active {
  background-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-weight: 600;
}
@media (max-width: 768px) {
  #menu a {
    padding: 12px 20px;
    width: 100%;
    box-sizing: border-box;
  }
}

#menu.fixed {
  position: fixed;
  top: 0;
  left: 0;
}

body.has-fixed-menu {
  padding-top: 60px;
}

#menu {
  animation: fadeInDown 0.5s ease-out;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: initial !important;
    transition-duration: initial !important;
  }
}
* {
  animation-duration: unset !important;
  transition-duration: unset !important;
}

/* Force override WordPress theme's reduced motion setting */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: unset !important;
    transition-duration: unset !important;
    animation-play-state: running !important;
  }
}
/* Completely disable reduced motion media query */
@media (prefers-reduced-motion: no-preference), (prefers-reduced-motion: reduce) {
  * {
    animation-duration: unset !important;
    transition-duration: unset !important;
  }
}
:root {
  /* Default colors (fallbacks) - Keep these */
  --background-color: #000;
  --title-bg-color: rgba(20, 20, 20, 0.85);
  --content-bg-color: rgba(35, 35, 35, 0.85);
  --title-text-color: #fff;
  --content-text-color: #e6e6e6;
  --subtitle-color: #e90303;
  --title-font: "Metamorphous", serif;
  --body-font: "Winky Sans", sans-serif;
}

/* Variables - non-color styles remain the same */
/* --------------------------------------------------------
 * 1. FULL VIEWPORT & RESET
 * Ensures html/body fill viewport without scrollbars.
 * -------------------------------------------------------- */
html,
html.floor-template-active,
html.floor-fullscreen {
  height: 100% !important;
  min-height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  /* Prevent scrollbars */
  box-sizing: border-box !important;
}

body,
body.floor-template-active,
body.floor-fullscreen {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 100vh !important;
  overflow: auto;
  /* Prevent scrollbars */
  background: var(--background-color) !important;
  max-width: 100% !important;
  font-family: var(--body-font) !important;
  box-sizing: border-box !important;
}

body.single-floor {
  overflow: hidden !important;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

/* --------------------------------------------------------
 * 2. HIDE WORDPRESS ELEMENTS (Keep from Original)
 * -------------------------------------------------------- */
#wpadminbar,
.admin-bar #wpadminbar,
nav,
#site-navigation,
.main-navigation,
.menu,
.menu-toggle,
.site-header,
.site-header-menu,
.site-branding,
#masthead,
.nav-menu,
.top-bar,
.navigation-top,
.primary-navigation,
.navigation,
.main-header,
.header,
#header,
.site-footer,
#colophon,
.footer,
footer {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

/* Hide common theme containers (Keep from Original) */
body #page,
body #content,
body .site,
body .site-content,
body .content-area,
body #wrapper,
body #main,
body .content-wrapper,
body .container {
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
  display: block !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* --------------------------------------------------------
 * 3. WRAPPER (SCALED VIA JS)
 * Positioned fixed, centered, scaled by JS transform.
 * -------------------------------------------------------- */
.spiral-tower-floor-wrapper {
  position: fixed !important;
  /* top: 50%, left: 50% are set dynamically by JS */
  /* width, height are set dynamically by JS to content's natural size */
  /* transform: translate(-50%, -50%) scale(N) is set dynamically by JS */
  transform-origin: center center !important;
  /* ESSENTIAL for scaling */
  overflow: hidden !important;
  /* ESSENTIAL */
  z-index: 1 !important;
  visibility: hidden;
  /* Hide until JS positions and shows it */
  margin: 0 !important;
  padding: 0 !important;
  /* outline: 3px solid cyan !important; */
  /* DEBUG */
}

/* --------------------------------------------------------
 * 4. BACKGROUND CONTENT (Image/Video)
 * Fills the wrapper using absolute positioning.
 * -------------------------------------------------------- */
.background-container {
  /* General container for bg elements */
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  /* Fill parent wrapper */
  height: 100% !important;
  /* Fill parent wrapper */
  overflow: hidden !important;
  z-index: 1 !important;
  /* Below gizmo container */
}

#background-image {
  /* The actual <img> element */
  display: block !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  /* Fill background-container */
  height: 100% !important;
  /* Fill background-container */
  -o-object-fit: initial !important;
     object-fit: initial !important;
  /* Do not use object-fit, parent scaling handles it */
  -o-object-position: initial !important;
     object-position: initial !important;
  transform: none !important;
}

#youtube-background {
  /* Container specific to YouTube */
}
#youtube-background.audio-only {
  /* Keep original audio-only hiding styles */
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  top: -9999px !important;
  left: -9999px !important;
  opacity: 0 !important;
  visibility: hidden !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

.youtube-container {
  /* Inner container if needed for aspect ratio */
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  /* Fill parent #youtube-background */
  height: 100% !important;
  /* Fill parent #youtube-background */
  overflow: hidden !important;
}

#youtube-player {
  /* The actual <iframe> */
  display: block !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  /* Fill youtube-container */
  height: 100% !important;
  /* Fill youtube-container */
  border: none !important;
  transform: none !important;
}

/* --------------------------------------------------------
 * 5. GIZMOS CONTAINER & GIZMOS (v5 - CSS Positioning)
 * -------------------------------------------------------- */
.wrapper-floor-gizmos {
  /* Container INSIDE the scaled wrapper */
  position: absolute !important;
  /* CRUCIAL: Relative to scaled wrapper */
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  /* CRUCIAL: Spans the wrapper's current size */
  height: 100% !important;
  /* CRUCIAL: Spans the wrapper's current size */
  pointer-events: none !important;
  /* Allow clicks through to background */
  z-index: 10 !important;
  /* Above background, below UI */
}

.floor-gizmo {
  /* Individual Gizmo */
  position: absolute !important;
  /* CRUCIAL: Relative to wrapper-floor-gizmos */
  /* top: % and left: % MUST be set via inline style in HTML template */
  transform: translate(-50%, -50%);
  /* Centers the gizmo element on its coordinate point */
  transform-origin: center center;
  pointer-events: auto !important;
  /* Make gizmo clickable */
  z-index: 11 !important;
  /* Above gizmo container */
  cursor: pointer !important;
  /* --- Base Visual Style (Customize as needed) --- */
  transition: transform 0.2s ease;
  /* Smooth hover effect */
}

/* Override the problematic rule that's emptying tooltip content */
.floor-gizmo.tooltip-trigger::after {
  /* Re-establish the tooltip content from the data-tooltip attribute */
  content: attr(data-tooltip) !important;
  /* Position in center */
  bottom: auto !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  /* Make it visible and well-styled */
  background-color: rgba(0, 0, 0, 0.85) !important;
  color: #fff !important;
  font-weight: bold !important;
  padding: 6px 12px !important;
  border-radius: 4px !important;
  white-space: nowrap !important;
  /* Control visibility */
  opacity: 0 !important;
  /* Start hidden */
  visibility: hidden !important;
  transition: opacity 0.3s ease, visibility 0.3s ease !important;
  /* Ensure it's on top */
  z-index: 10000 !important;
  /* Allow clicks to pass through */
  pointer-events: none !important;
}

/* Ensure proper pointer-events behavior */
.floor-gizmo.tooltip-trigger {
  pointer-events: auto !important;
  /* Allow clicking on the gizmo */
}

/* Make sure the link takes up the full gizmo area */
.floor-gizmo.tooltip-trigger a.spiral-tower-portal-link {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  position: relative !important;
  z-index: 1 !important;
  /* Should be lower than the tooltip z-index */
}

/* Show on hover */
.floor-gizmo.tooltip-trigger:hover::after {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Hide the tooltip arrow */
.floor-gizmo.tooltip-trigger::before {
  display: none !important;
}

.spiral-tower-floor-title {
  opacity: 0;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  z-index: 1001 !important;
  margin: 0 !important;
  border-radius: 0 !important;
  background-color: var(--title-bg-color, rgba(20, 20, 20, 0.85)) !important;
  padding: 20px !important;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1) !important;
  box-sizing: border-box !important;
  cursor: pointer !important;
  /* Indicate it's clickable */
  will-change: transform, opacity;
  /* Optimize for animations */
  transform: translateX(0);
}
.spiral-tower-floor-title h1 {
  margin: 0 !important;
  padding: 0 !important;
  font-size: 1.5em !important;
  color: var(--title-text-color, #fff) !important;
  font-weight: bold !important;
  line-height: 1.2 !important;
  font-family: var(--title-font, "Metamorphous", serif) !important;
  letter-spacing: -0.5px;
  text-align: center;
}

.spiral-tower-floor-number {
  font-size: 0.8em !important;
  margin-bottom: 6px !important;
  font-weight: bold !important;
  color: var(--subtitle-color, #e90303) !important;
  font-family: var(--title-font) !important;
  text-align: center;
}

/* Fix pointer events for content-hidden state */
.spiral-tower-floor-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  max-width: 800px;
  z-index: 1000;
  box-sizing: border-box !important;
  margin-top: 60px;
  max-height: calc(80vh - 100px);
  /* Start hidden for transitions */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  /* Container does NOT scroll - content does */
  overflow: visible !important;
}

/* When content becomes visible, restore click events */
.spiral-tower-floor-container.content-visible {
  opacity: 1;
  visibility: visible !important;
  pointer-events: auto !important;
  /* Higher specificity */
}

/* IMPORTANT: When content is hidden, block all pointer events */
.spiral-tower-floor-container.content-hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  /* Higher specificity to override inline styles */
}

/* Also block pointer events on the content itself when hidden */
.spiral-tower-floor-container.content-hidden .spiral-tower-floor-content {
  pointer-events: none !important;
}

/* Make sure title doesn't block when content is hidden */
.spiral-tower-floor-title {
  opacity: 0;
  visibility: hidden;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  z-index: 1001 !important;
  margin: 0 !important;
  border-radius: 0 !important;
  background-color: var(--title-bg-color, rgba(20, 20, 20, 0.85)) !important;
  padding: 20px !important;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1) !important;
  box-sizing: border-box !important;
  cursor: pointer !important;
  will-change: transform, opacity;
  transform: translateX(0);
  pointer-events: auto;
  /* Title should always be clickable when visible */
}
.spiral-tower-floor-title h1 {
  margin: 0 !important;
  padding: 0 !important;
  font-size: 1.5em !important;
  color: var(--title-text-color, #fff) !important;
  font-weight: bold !important;
  line-height: 1.2 !important;
  font-family: var(--title-font, "Metamorphous", serif) !important;
  letter-spacing: -0.5px;
  text-align: center;
}

/* Smooth scrollbar fade-in for webkit browsers */
body.floor-template-active .spiral-tower-floor-content.scrollbars-visible::-webkit-scrollbar {
  opacity: 0;
  animation: fadeInScrollbar 0.5s ease forwards;
}

@keyframes fadeInScrollbar {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.spiral-tower-floor-container.content-hidden {
  opacity: 0;
  visibility: hidden !important;
}

.spiral-tower-floor-container.content-visible {
  opacity: 1;
  visibility: visible !important;
}

body.text-only-mode .spiral-tower-floor-container {
  opacity: 1 !important;
  display: block;
}

.spiral-tower-floor-content {
  /* Appearance */
  background-color: var(--content-bg-color, rgba(35, 35, 35, 0.85)) !important;
  padding: 30px !important;
  border-radius: 15px !important;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1) !important;
  box-sizing: border-box !important;
  color: var(--content-text-color, #e6e6e6) !important;
  font-family: var(--body-font) !important;
  position: relative !important;
  /* CRITICAL: Set explicit height constraint for scrolling */
  height: 100%;
  max-height: calc(80vh - 160px);
  /* Account for padding and title */
  /* Scrolling - start with auto (normal behavior) */
  overflow-y: auto;
  /* Content styling */
  /* Scrollbar styling */
}
.spiral-tower-floor-content p,
.spiral-tower-floor-content ul,
.spiral-tower-floor-content ol,
.spiral-tower-floor-content li,
.spiral-tower-floor-content blockquote {
  color: var(--content-text-color, #e6e6e6) !important;
  font-size: 1.8rem;
  line-height: 1.6;
  margin-bottom: 1em;
}
.spiral-tower-floor-content h1,
.spiral-tower-floor-content h2,
.spiral-tower-floor-content h3,
.spiral-tower-floor-content h4,
.spiral-tower-floor-content h5,
.spiral-tower-floor-content h6 {
  color: var(--title-text-color, #fff) !important;
  font-family: var(--title-font) !important;
  margin: 1.5em 0 0.5em;
}
.spiral-tower-floor-content a {
  color: var(--subtitle-color, #e90303) !important;
  text-decoration: none !important;
}
.spiral-tower-floor-content a:hover {
  text-decoration: underline !important;
}
.spiral-tower-floor-content::-webkit-scrollbar {
  width: 8px;
}
.spiral-tower-floor-content::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
}
.spiral-tower-floor-content::-webkit-scrollbar-thumb {
  background-color: var(--subtitle-color, #e90303);
  border-radius: 4px;
}
.spiral-tower-floor-content::-webkit-scrollbar-thumb:hover {
  background-color: rgba(233, 3, 3, 0.8);
}

.spiral-tower-floor-content::-webkit-scrollbar {
  width: 10px !important;
}

.spiral-tower-floor-content::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3) !important;
}

.spiral-tower-floor-content::-webkit-scrollbar-thumb {
  background-color: var(--subtitle-color, #e90303) !important;
  border-radius: 5px;
}

.spiral-tower-floor-content::-webkit-scrollbar-thumb:hover {
  background-color: rgba(233, 3, 3, 0.8) !important;
}

/* --------------------------------------------------------
 * 8. RESPONSIVE ADJUSTMENTS (Keep/Adjust from Original)
 * Adjust padding, font sizes, container widths for smaller screens.
 * -------------------------------------------------------- */
@media (max-width: 768px) {
  .spiral-tower-floor-container {
    opacity: 1 !important;
    visibility: visible !important;
    width: 90%;
    margin-top: 50px;
    max-height: calc(85vh - 80px);
  }
  .spiral-tower-floor-title {
    padding: 15px;
  }
  .spiral-tower-floor-title h1 {
    font-size: 1.3em;
  }
  .spiral-tower-floor-content {
    padding: 20px;
    font-size: 1.1rem;
  }
}
@media (max-width: 480px) {
  .spiral-tower-floor-container {
    width: 95%;
    margin-top: 45px;
    max-height: calc(80vh - 70px);
  }
  .spiral-tower-floor-title {
    padding: 12px;
  }
  .spiral-tower-floor-title h1 {
    font-size: 1.2em;
  }
  .spiral-tower-floor-content {
    font-size: 1rem;
    padding: 15px;
  }
  #toolbar {
    bottom: 10px;
    right: 10px;
  }
  #toolbar > div {
    width: 35px;
    height: 35px;
  }
}
/* Ensure these are active */
.spiral-tower-floor-wrapper {
  position: fixed !important;
  transform-origin: center center !important;
  overflow: hidden !important;
  z-index: 1 !important;
  /* Start hidden - JS MUST set visibility: visible */
  visibility: hidden;
  /* JS sets width, height, top, left, transform */
  margin: 0 !important;
  /* Ensure no margin interferes */
  padding: 0 !important;
  /* Ensure no padding interferes */
}
.spiral-tower-floor-wrapper a {
  text-decoration: none;
}

.background-container,
#image-background,
#youtube-background {
  position: absolute !important;
  pointer-events: none;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  /* Fill wrapper */
  height: 100% !important;
  /* Fill wrapper */
  overflow: hidden !important;
}

#background-image,
#youtube-player {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  /* Fill container */
  height: 100% !important;
  /* Fill container */
  display: block !important;
  border: none !important;
  transform: none !important;
}

/* --------------------------------------------------------
 * 9. TEXT ONLY MODE
 * -------------------------------------------------------- */
body.text-only-mode {
  overflow: auto !important;
}
body.text-only-mode .spiral-tower-floor-wrapper {
  display: none !important;
}
body.text-only-mode .spiral-tower-floor-container {
  width: auto !important;
  height: auto !important;
  margin: 140px auto 20px auto;
  position: relative !important;
  transform: none;
  top: auto;
  left: auto;
}
body.text-only-mode .spiral-tower-floor-container .spiral-tower-floor-content {
  max-height: none;
}
body.text-only-mode .portals-text-only {
  display: block !important;
  margin-top: 40px;
  text-align: center;
}
body.text-only-mode .portals-text-only img {
  display: none;
}
body.text-only-mode .portals-text-only a {
  text-decoration: underline;
}

.portals-text-only {
  display: none !important;
}

/* --------------------------------------------------------
 * 10. SCROLL ARROWS
 * -------------------------------------------------------- */
/* Scroll Arrows - Fixed position at the viewport level, similar to toolbar */
.spiral-tower-scroll-arrows {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  /* Let clicks pass through to the background */
  z-index: 1100;
  /* Above wrapper (z-index: 1) but below fixed UI (z-index: 1001) */
}

/* Base styles for all arrow buttons */
.scroll-arrow {
  position: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.5);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s ease, background-color 0.2s ease;
  pointer-events: auto;
  /* Make arrows clickable */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* The SVG inside the arrow button */
.scroll-arrow svg {
  width: 24px;
  height: 24px;
}

/* Position each arrow */
.scroll-up {
  top: 85px;
  right: 15px;
  transform: translateX(-50%);
}

.scroll-right {
  bottom: 0;
  right: 15px;
  transform: translateY(-50%);
}

@media (max-width: 768px) {
  .scroll-right {
    bottom: 40px;
  }
}
.scroll-down {
  bottom: 15px;
  right: 0%;
  transform: translateX(-50%);
}

.scroll-left {
  bottom: 0;
  left: 15px;
  transform: translateY(-50%);
}

@media (max-width: 768px) {
  .scroll-left {
    bottom: 40px;
  }
}
/* Visible state for the arrows */
.scroll-arrow.visible {
  opacity: 0.75;
}

/* Hover and active states */
.scroll-arrow.visible:hover {
  opacity: 1;
  background-color: rgba(30, 30, 30, 0.8);
}

/* Active states with proper transform preservation */
.scroll-up.visible:active,
.scroll-down.visible:active {
  transform: translateX(-50%) scale(0.95);
}

.scroll-left.visible:active,
.scroll-right.visible:active {
  transform: translateY(-50%) scale(0.95);
}

/* Keep arrows hidden in text-only mode */
body.text-only-mode .spiral-tower-scroll-arrows {
  display: none;
}

/* --------------------------------------------------------
 * 11. GUEST BOOK MODAL
 * -------------------------------------------------------- */
.spiral-tower-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99999;
  display: none;
  overflow: auto;
}

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 99999;
}

.guestbook-container {
  width: 50%;
  max-width: 700px;
  margin: 40px auto;
  background-color: rgb(210, 202, 188);
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  z-index: 100000;
  position: relative;
  padding: 20px;
}

.guestbook-content {
  width: 100%;
}

.guestbook-header {
  text-align: center;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(139, 107, 74, 0.4);
}
.guestbook-header h2 {
  margin: 0;
  font-family: "Bilbo", cursive;
  color: #5a3921;
  font-size: 2.4em;
}

.guestbook-close {
  position: absolute;
  right: 0;
  top: 0;
  background: none;
  border: none;
  color: #5a3921;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.guestbook-body #reply-title {
  display: none !important;
}
.guestbook-body .logged-in-as {
  display: none;
}

.guestbook-entries {
  margin-bottom: 30px;
}
.guestbook-entries h3 {
  display: none !important;
}

.comment-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.comment {
  margin-bottom: 20px;
  padding: 15px;
  background-color: rgba(255, 255, 255, 0.5);
  border-left: 3px solid #8b6b4a;
  border-radius: 4px;
}
.comment .comment-author {
  font-weight: bold;
  color: #5a3921;
  margin-bottom: 5px;
  font-family: "Bilbo", cursive;
  font-size: 1.4em;
}
.comment .comment-date {
  font-size: 0.9em;
  color: #777;
  margin-bottom: 10px;
}
.comment .comment-content p {
  margin: 0 0 10px 0;
  color: #333;
  font-family: "Bilbo", cursive;
  font-size: 1.3em;
}

.no-comments {
  font-style: italic;
  text-align: center;
  padding: 20px;
  border: 1px dashed rgba(139, 107, 74, 0.4);
  border-radius: 4px;
  color: #5a3921;
  font-family: "Bilbo", cursive;
  font-size: 1.3em;
}

.guestbook-form {
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
}
.guestbook-form .comment-notes {
  font-style: italic;
  margin-bottom: 10px;
  color: #5a3921;
  font-family: "Bilbo", cursive;
  font-size: 1.3em;
}
.guestbook-form #commentform {
  margin-bottom: 0;
}
.guestbook-form .comment-form-comment label {
  display: block;
  margin-bottom: 5px;
  color: #5a3921;
  font-weight: bold;
  font-family: "Bilbo", cursive;
  font-size: 1.4em;
}
.guestbook-form #comment {
  width: 100%;
  height: 100px;
  padding: 10px;
  background-color: rgba(255, 255, 255, 0.7);
  border: 1px solid #8b6b4a;
  color: #333;
  border-radius: 4px;
  resize: vertical;
  font-family: "Bilbo", cursive;
  font-size: 1.3em;
}
.guestbook-form .form-submit {
  text-align: right;
  margin-top: 15px;
}
.guestbook-form #submit {
  background-color: #8b6b4a;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-family: "Bilbo", cursive;
  font-size: 1.3em;
}

/* Author, email, url fields */
.comment-form-author,
.comment-form-email,
.comment-form-url {
  margin-bottom: 10px;
}
.comment-form-author label,
.comment-form-email label,
.comment-form-url label {
  display: block;
  margin-bottom: 5px;
  color: #5a3921;
  font-weight: bold;
  font-family: "Bilbo", cursive;
  font-size: 1.4em;
}
.comment-form-author input,
.comment-form-email input,
.comment-form-url input {
  width: 100%;
  padding: 8px;
  background-color: rgba(255, 255, 255, 0.7);
  border: 1px solid #8b6b4a;
  color: #333;
  border-radius: 4px;
  font-family: "Bilbo", cursive;
  font-size: 1.3em;
}

@media (max-width: 992px) {
  .guestbook-container {
    width: 70%;
  }
}
@media (max-width: 768px) {
  .guestbook-container {
    width: 90%;
    margin: 20px auto;
  }
}
/* --------------------------------------------------------
 * VOID PAGE STYLES
 * 404 page "The Void" styling
 * -------------------------------------------------------- */
/* Make sure we define keyframes explicitly at the root level only on void page */
.spiral-void-page {
  /* Base layout for void page */
  /* Video container and video */
  /* Scrolling text */
  /* Individual letter animation */
  /* Link styling */
  /* Emoji container */
  /* Media queries for responsive styling */
}
@keyframes scrollText {
  0% {
    transform: translateX(100vw);
  }
  100% {
    transform: translateX(-100%);
  }
}
@keyframes pulsate {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.5);
  }
  100% {
    transform: scale(1);
  }
}
.spiral-void-page body.spiral-void-page {
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  background-color: var(--background-color, #000) !important;
  width: 100vw !important;
  height: 100vh !important;
  font-family: var(--title-font, "Metamorphous", serif) !important;
  /* Hide WordPress elements */
}
.spiral-void-page body.spiral-void-page #wpadminbar,
.spiral-void-page body.spiral-void-page .site-header,
.spiral-void-page body.spiral-void-page .site-footer,
.spiral-void-page body.spiral-void-page nav,
.spiral-void-page body.spiral-void-page #masthead,
.spiral-void-page body.spiral-void-page #colophon {
  display: none !important;
}
.spiral-void-page .spiral-void {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 1 !important;
}
.spiral-void-page .spiral-void video {
  -o-object-fit: cover !important;
     object-fit: cover !important;
  width: 100% !important;
  height: 100% !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
}
.spiral-void-page .spiral-void-content {
  position: relative !important;
  z-index: 2 !important;
  height: 100vh !important;
  width: 100vw !important;
}
.spiral-void-page .spiral-void-content h1 {
  display: none !important;
  /* Hide original h1 */
}
.spiral-void-page .scrolling-text {
  position: absolute !important;
  white-space: nowrap !important;
  font-size: 10vh !important;
  letter-spacing: 0.2vw !important;
  color: black !important;
  opacity: 0.9 !important;
  bottom: 100px !important;
  animation: scrollText 45s linear infinite !important;
  text-shadow: 0 0 10px white, 0 0 15px white !important;
  text-align: left !important;
  font-family: var(--title-font, "Metamorphous", serif) !important;
  z-index: 100 !important;
}
.spiral-void-page .letter {
  display: inline-block !important;
  animation: pulsate 3s infinite !important;
}
.spiral-void-page .spiral-void-content a {
  color: #ff00ff !important;
  text-decoration: none !important;
  font-weight: bold !important;
}
.spiral-void-page .emoji-container {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  font-size: 5rem !important;
  z-index: 5 !important;
  text-align: center !important;
  will-change: transform, opacity !important;
  /* Optimize animations */
}
@media (max-width: 768px) {
  .spiral-void-page .scrolling-text {
    font-size: 7vh !important;
    bottom: 70px !important;
  }
  .spiral-void-page .emoji-container {
    font-size: 4rem !important;
  }
}
@media (max-width: 480px) {
  .spiral-void-page .scrolling-text {
    font-size: 5vh !important;
    bottom: 50px !important;
  }
  .spiral-void-page .emoji-container {
    font-size: 3rem !important;
  }
}

/*# sourceMappingURL=floor-template.css.map*/