:root {
  --magenta: #ff00ff;
  --yellow: #ffff00;
  --cyan: #00ffff;
  --purple: #800080;
  --slime: #99ff00;
}

*, *:before, *:after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 20px;
  color: #fff;
  font-family: 'Courier New', monospace;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  overflow-x: hidden;
  background: 
    linear-gradient(to bottom, rgba(124, 0, 72, 0.324) 0%, rgba(26, 13, 46, 0.7) 100%),
    url('../images/GIF-by-Omer-Studios.gif');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  background-attachment: fixed;
}

.phone-surround {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 30px 0;
  width: 100%;
  max-width: 900px;
}

.side-box {
  width: 200px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid var(--magenta);
  padding: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.side-box:empty {
  background: transparent;
  border: none;
  padding: 0;
}

.side-box-title {
  color: var(--yellow);
  text-align: center;
  margin-bottom: 15px;
  font-size: 1.2em;
  text-shadow: 0 0 5px var(--magenta);
}

.side-box-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.left-column {
  align-items: center;
  justify-content: flex-start;
  position: relative; /* makes the absolute positioning of child elements relative to this container */
  min-height: 100%; /* ensures column takes up full height */
}

.right-column {
  align-items: center;
  justify-content: flex-start;
}

.mini-gif {
  max-width: 100%;
  margin: 10px 0;
  border: 1px solid var(--yellow);
}

.layout-container {
  display: flex;
  justify-content: center; /* Center all columns horizontally */
  align-items: stretch; /* Keep equal height behavior */
  gap: 5px; /* Small gap between columns */
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 20px;
}

.use-pc {
  display: block;
  margin: 0 auto; /* Center the image horizontally */
  margin-top: -18px; /* Move the image higher */
  margin-bottom: 10px; /* Add space below the image */
  box-shadow: 0 0 5px var(--cyan), 0 0 7px var(--magenta);
}

/* Column styles */
.left-column {
  margin-right: 10px; /* Move closer to center */
}

.right-column {
  margin-left: 10px; /* Move closer to center */
}

/* Bottom row specific styles */
.bottom-row {
  display: flex;
  justify-content: space-between; /* Distribute columns evenly */
  align-items: center; /* Align items vertically */
  width: 100%; /* Ensure it spans the full width */
  max-width: 700px; /* Match the width of the top row */
  margin: 0 auto; /* Center the row */
  gap: 0; /* Remove extra spacing between columns */
}

.bottom-left-column,
.bottom-right-column {
  flex: 0 0 200px; /* Fixed width for left and right columns */
  display: flex;
  justify-content: center;
  align-items: center;
}

.bottom-center-column {
  flex: 0 0 auto; /* Prevent it from taking unnecessary space */
  display: flex;
  justify-content: center;
  align-items: center;
}

.bottom-left-column {
  justify-content: center;
  align-items: center;
}

.bottom-right-column {
  justify-content: center;
  align-items: center;
}

/* web ring area */
.webring {
  width: 100%;
  text-align: center;
  margin-top: 20px;
}

.webring a {
  color: var(--yellow);
  text-decoration: none;
  margin: 0 5px;
  font-size: 14px;
}

.webring a:hover {
  text-shadow: 0 0 5px var(--cyan);
}

/* Webring Badge Styling */
.webring-badge {
  width: 150px;
  height: 40px;
  border: 1px solid var(--magenta);
  image-rendering: pixelated;
  transition: all 0.3s;
}

.webring-badge:hover {
  border-color: var(--yellow);
  filter: 
    drop-shadow(0 0 3px var(--magenta)) 
    brightness(1.2);
}

.pixel-button.small-credits {
  width: 100px;
  height: 30px;
  line-height: 30px;
  font-size: 12px;
  background-size: 100% 100%;
  image-rendering: pixelated;
  transition: transform 0.1s;
}

/* Updates Section Styles */
.updates-section {
  width: 100%;
  margin-bottom: 20px;
}

.updates-container {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--cyan);
  height: 200px;
  overflow-y: auto;
  padding: 0;
  position: relative;
}

.updates-log {
  padding: 10px;
  font-size: 0.8em;
  line-height: 1.4;
}

.update-entry {
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
  color: var(--slime);
}

.update-entry:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

/* Timestamp styling */
.update-time {
  color: var(--magenta);
  font-weight: bold;
  text-shadow: 0 0 3px rgba(255, 0, 255, 0.5);
  display: inline-block;
  margin-right: 5px;
}

/* Hover effects for entries */
.update-entry:hover {
  background: rgba(255, 255, 0, 0.1);
  transform: translateX(2px);
}

.update-entry:hover .update-time {
  color: var(--cyan);
  text-shadow: 0 0 5px rgba(0, 255, 255, 0.7);
}

/* Phone icon animation */
.update-entry::before {
  content: '📞';
  margin-right: 5px;
  display: inline-block;
  transition: transform 0.3s;
}

.update-entry:hover::before {
  transform: rotate(15deg) scale(1.2);
  animation: ring 0.5s ease;
}

@keyframes ring {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(10deg); }
  75% { transform: rotate(-10deg); }
}

/* Custom scrollbar styling */
.updates-container::-webkit-scrollbar {
  width: 8px;
}

.updates-container::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}

.updates-container::-webkit-scrollbar-thumb {
  background: var(--magenta);
  border-radius: 4px;
}

.updates-container::-webkit-scrollbar-thumb:hover {
  background: var(--yellow);
}

/* Hover/click effects */
.pixel-button.small-credits:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 2px rgba(255, 0, 255, 0.7));
}

.pixel-button.small-credits:active {
  transform: scale(0.95) translateY(1px);
}

/* FAQ Credit Contact buttons*/
.faq-credit-contact {
  display: flex;
  flex-direction: column; /* Stack items vertically */
  align-items: center; /* Center items horizontally */
  gap: 5px; /* spacing between items */
  position: absolute;
  bottom: 20px; /* adjust 2 to control how far from the bottom it sits */
  left: 0;
  right: 0;
  padding: 0 15px; /* match side-box padding */
  margin-top: 20px; /* adds some space above the buttons */
}

.faq-credit-contact a {
  display: block; /* Ensure links behave like block elements */
}

/* FAQ Popup Styles */
.faq-popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  max-width: 90%;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.9);
  border: 3px solid var(--yellow);
  border-radius: 5px;
  box-shadow: 0 0 20px rgba(255, 255, 0, 0.5);
  overflow: hidden;
  font-family: 'Courier New', monospace;
}

.faq-header {
  padding: 5px 10px;
  background: linear-gradient(to right, var(--yellow), var(--cyan));
  color: black;
  font-weight: bold;
  cursor: move;
  user-select: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--yellow);
}

.faq-content {
  padding: 15px;
  background: rgba(20, 20, 20, 0.8);
  max-height: 400px;
  overflow-y: auto;
}

.faq-item {
  margin-bottom: 15px;
}

.faq-question {
  color: var(--yellow);
  font-weight: bold;
  margin-bottom: 5px;
}

.faq-answer {
  color: white;
  padding-left: 15px;
  border-left: 2px solid var(--magenta);
}

/* FAQ Link Styling */
.faq-answer a {
  color: var(--magenta) !important;
  text-decoration: none;
  font-weight: bold;
}

.faq-answer a:hover {
  text-decoration: underline;
  text-shadow: 0 0 3px var(--magenta);
}

/* Credits Popup Styles */
.credits-popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  max-width: 90%;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.9);
  border: 3px solid var(--cyan);
  border-radius: 5px;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
  overflow: hidden;
  font-family: 'Courier New', monospace;
}

.credits-header {
  padding: 5px 10px;
  background: linear-gradient(to right, var(--cyan), var(--magenta));
  color: black;
  font-weight: bold;
  cursor: move;
  user-select: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--cyan);
}

.credits-content {
  padding: 15px;
  background: rgba(20, 20, 20, 0.8);
  max-height: 400px;
  overflow-y: auto;
}

.credits-category {
  margin-bottom: 15px;
}

.credits-title {
  color: var(--cyan);
  font-weight: bold;
  margin-bottom: 5px;
}

.credits-list {
  color: white;
  padding-left: 15px;
  border-left: 2px solid var(--yellow);
}

.credits-list li {
  margin-bottom: 5px;
}

.credits-list a {
  color: var(--magenta);
  text-decoration: none;
}

.credits-list a:hover {
  text-decoration: underline;
}

/* Header Styles */
.directory-header {
  text-align: center;
  margin: 0 0 20px 0;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  width: 100%;
}

.directory-header:before,
.directory-header:after {
  content: "";
  flex: 1;
  height: 3px;
  background: linear-gradient(to right, #ff00ff, #ffff00);
}

.directory-header h1 {
  background: linear-gradient(to right, #ff00ff, #ffff00);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 10px rgba(255, 0, 255, 0.5);
  font-size: 32px;
  margin: 0;
  padding: 0 0px;
  white-space: nowrap;
  position: relative;
}

/* Sparkle Elements */
.sparkle {
  position: absolute;
  font-size: 16px;
  color: #ffff00;
  animation: sparkle 2s infinite;
  opacity: 0;
}

@keyframes sparkle {
  0% { opacity: 0; transform: scale(0.3) rotate(0deg); }
  50% { opacity: 1; transform: scale(1) rotate(20deg); }
  100% { opacity: 0; transform: scale(0.3) rotate(40deg); }
}

/* Main Content */
.switchboard {
  background: #111;
  border: 5px solid #ff00ff;
  padding: 30px;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  flex: 1; /* Center column takes remaining space */
  margin-left: -5px; /* Pull the center column closer to the left */
  margin-right: -5px; /* Pull the center column closer to the right */
}

.directory {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.extension {
  background: #222;
  border: 1px solid #ffff00;
  padding: 12px;
  transition: all 0.2s;
}

.extension:hover {
  background: #333;
  border-color: #ff00ff;
}

.extension a {
  color: #fff;
  text-decoration: none;
  display: block;
}

.phone-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

/* Newsletter Form */
.newsletter {
  background: #111;
  border: 5px solid #ffff00;
  padding: 25px;
  width: 100%;
  max-width: 500px;
  margin: 20px 0;
}

.newsletter h2 {
  background: linear-gradient(to right, #ff00ff, #ffff00);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 10px rgba(255, 0, 255, 0.5);
  position: relative;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  padding: 0 20px;
  margin: 0 auto 20px;
  text-align: center;
}

/* === PORTAL TRANSITION STYLES === */
.portal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, #3d0b6e, #1a0033);
  z-index: 9999;
  display: none;
  overflow: hidden;
}
    
.portal-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
    
.portal-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}
    
.portal-main-gif {
  max-width: 80%;
  max-height: 80%;
  border: 5px solid #ffff00;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
  position: relative;
  z-index: 2;
}
    
.portal-text {
  position: absolute;
  bottom: 30%;
  left: 0;
  right: 0;
  text-align: center;
  color: #ffff00;
  font-size: 2rem;
  text-shadow: 0 0 10px #ff00ff;
  z-index: 3;
  font-weight: bold;
  text-transform: uppercase;
  animation: text-pulse 1.5s infinite alternate;
}
    
@keyframes text-pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  100% { transform: scale(1.05); opacity: 1; }
}

@media (min-width: 769px) {
  .newsletter h2 {
    flex-direction: row;
    gap: 0.3em;
  }
  .newsletter h2 .title-line-1::after {
    content: " ";
  }
}

.form-group {
  margin-bottom: 15px;
}

label {
  display: block;
  margin-bottom: 5px;
  color: #ffff00;
}

input, textarea {
  width: 100%;
  padding: 8px;
  background: #000;
  border: 1px solid #ff00ff;
  color: #fff;
  font-family: 'Courier New', monospace;
}

button {
  background: #ff00ff;
  color: #000;
  border: none;
  padding: 10px;
  width: 100%;
  font-family: 'Courier New', monospace;
  font-weight: bold;
  cursor: pointer;
  margin-top: 10px;
}

button:hover {
  background: #ffff00;
}

/* Thank You Message */
#thankYouMessage {
  background: #111;
  border: 5px solid #ff00ff;
  padding: 40px;
  width: 100%;
  max-width: 500px;
  text-align: center;
  position: relative;
  box-shadow: 0 0 0 5px #000, 0 0 30px rgba(255, 0, 255, 0.5);
  margin-top: 20px;
}

#thankYouMessage:before {
  content: "✧･ﾟ:* ✧･ﾟ:* ✧･ﾟ:*";
  position: absolute;
  top: -15px;
  left: 0;
  right: 0;
  color: #ffff00;
  font-size: 14px;
  background: #000;
  margin: 0 auto;
  width: fit-content;
  padding: 0 10px;
}

#thankYouMessage h2 {
  position: relative;
  display: inline-block;
  padding: 0 20px;
  color: transparent;
  margin-top: 0;
}

#thankYouMessage h2::before {
  content: attr(data-text);
  position: absolute;
  z-index: -1;
  text-shadow: 2px 2px 0 #fff;
  color: transparent;
  width: 100%;
  text-align: center;
  left: 0;
}

#thankYouMessage h2 span:first-child {
  background: linear-gradient(to right, #ff00ff, #ffff00);
  -webkit-background-clip: text;
  background-clip: text;
  position: relative;
}

#thankYouMessage .button-container {
  text-align: center;
  margin: 30px auto 0;
  width: fit-content;
}

#thankYouMessage .return-btn {
  background: #000;
  color: #ffff00;
  border: 2px solid #ff00ff;
  padding: 12px 25px;
  font-family: 'Courier New', monospace;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 0 2px #000, 0 0 10px rgba(255, 0, 255, 0.3);
}

#thankYouMessage .return-btn:hover {
  background: #ffff00;
  color: #000;
  box-shadow: 0 0 15px rgba(255, 255, 0, 0.7);
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

#thankYouMessage .return-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 0, 0.2), transparent);
  transition: 0.5s;
}

#thankYouMessage .return-btn:hover::before {
  left: 100%;
}

/* Hang Up Link */
.hangup {
  margin-top: 20px;
}

.hangup a {
  color: #ff00ff;
  text-decoration: none;
  font-size: 20px;
}

.hangup a:hover {
  text-decoration: underline;
}

/* Credits Popup Styles */
.credit-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #111;
  border: 3px solid #ff00ff;
  padding: 20px;
  z-index: 1000;
  box-shadow: 0 0 0 5px #000, 0 0 30px rgba(255, 0, 255, 0.7);
  max-width: 80%;
  text-align: center;
}

.credit-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #000;
  padding: 10px;
  border-bottom: 2px solid #ff00ff;
  color: #ffff00;
  font-family: 'Courier New', monospace;
  font-size: 18px;
}

.credit-content {
  margin-top: 10px;
  color: #fff;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  line-height: 1.5;
}

.credit-content a {
  color: #ff00ff;
  text-decoration: none;
}

.credit-content a:hover {
  text-decoration: underline;
}

.popup-close {
  cursor: pointer;
  font-size: 20px;
  color: #ff00ff;
}

.popup-close:hover {
  color: #ffff00;
}

/* Credits Popup Close Button */
.credits-popup .popup-close {
  color: var(--yellow); /* Make the X yellow */
  font-weight: bold;
  transition: color 0.3s;
}

.credits-popup .popup-close:hover {
  color: var(--cyan); /* Optional: change to magenta on hover */
  text-shadow: 0 0 3px var(--yellow);
}

/* Scrollbar GIF styling */
.scrollgif {
  display: block;
  width: 100%; /* Full width of the column */
  max-width: 100%; /* Prevent overflow */
  height: 10px; /* Set a specific height (adjust as needed) */
  margin: 0;
  box-sizing: border-box; /* Include border in width */
  image-rendering: pixelated; /* Keep pixel art crisp */
}

/* Bunny Gif container */
.bunny-computer-container {
  width: 100%;
  margin-top: 5px; /* Space below stamps */
  margin-bottom: 5px;
  text-align: center;
}

/* bunny GIF styling */
.bunny-scene {
  width: auto;       /* Scales to column width */
  max-width: auto;
  height: auto;
  image-rendering: pixelated;
  display: block;
  margin: 0 auto;
  margin-bottom: 10px;
  border: var(--slime) 1px solid; /* Border around the GIF */
  border-radius: 10px; /* Rounded corners */
}

/* Future click effect (hidden for now) 
.bunny-scene:hover {
  cursor: pointer;    /* Indicates interactivity */

/*Stamps*/
.stamps-marquee {
  overflow: hidden;
  width: 100%;
  position: relative;
  height: 195px; /* add more if adding a 4th row) */
  margin-bottom: 0px;
  padding-top: 3px; /* Space above the stamps */
  border: #00ffff 1px solid; /* Border around the scrolling area */
}

.stamps-marquee.four-rows {
  height: 280px; /* 56px x 4 rows + margin */
}

.stamp {
  height: 56px; /* Original height */
  width: 99px; /* Original width */
  object-fit: contain;
  flex-shrink: 0;
}

.stamps-row {
  position: relative;
  width: 100%;
  height: 56px; /* Match stamp height exactly */
  display: flex;
  align-items: center;
  margin-bottom: 5px; /* Space between rows */
}

.scrolling-container {
  display: flex;
  gap: 10px;
  will-change: transform;
  padding: 5px 0; /* Add some vertical padding */
}

/* Adjust the animation delays for each row */
.stamps-row:nth-child(2) .scrolling-container {
  animation-delay: -10s;
}

.stamps-row:nth-child(3) .scrolling-container {
  animation-delay: -20s;
}
