/* Reset default margins and paddings */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Define the custom font */
@font-face {
    font-family: 'Web437_IBM_VGA_8x16';
    src: url('/Web437_IBM_VGA_8x16.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}

/* Global styles */
html, body {
  height: 100%;
  background-color: black;
  color: #c0c0c0;
  font-family: 'Web437_IBM_VGA_8x16', monospace;
}

/* Flex container for vertical centering */
.content-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  min-height: calc(100vh - 40px);
  padding: 20px 0;
  visibility: hidden;
}

.content-container.loaded {
  visibility: visible;
}

h1, #bubble, .controls {
  margin: 0;
}

/* --- TAB NAVIGATION --- */
.tab-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.tab-btn {
  background: black;
  color: #FF00FF;
  border: 1px solid #FF00FF;
  border-radius: 5px;
  padding: 10px 20px;
  cursor: pointer;
  font-family: 'Web437_IBM_VGA_8x16', monospace;
  transition: all 0.2s;
}

/*.tab-btn:hover {
  background: #330033;
}*/

.tab-btn.active {
  background: #FF00FF;
  color: black;
}

/* --- TAB CONTENT --- */
.tab-content {
  display: none; /* Hidden by default */
  flex-direction: column;
  align-items: center;
  gap: 15px;
  width: 100%;
  max-width: 90vw;
}

.tab-content.active {
  display: flex; /* Show when active */
}

/* --- GALLERY STYLES --- */
#bubble {
  max-width: 100%;
  max-height: 60vh;
  border: 2px solid #FF00FF;
  border-radius: 25px;
  display: block;
}

.controls button {
  background: black;
  color: #FF00FF;
  border: 1px solid #FF00FF;
  border-radius: 5px;
  padding: 10px 20px;
  margin: 0 5px;
  cursor: pointer;
  font-family: 'Web437_IBM_VGA_8x16', monospace;
}

/*.controls button:hover:not(:disabled) { 
  background: #330033;
  color: #FF00FF;
}*/

.controls button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.controls button:active:not(:disabled) {
  background: #FF00FF;
  color: black;
}

/* --- AUDIO STYLES --- */
.audio-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 500px;
}

.audio-embed {
  border: 1px solid #FF00FF;
  border-radius: 10px;
  padding: 15px;
  background: #111;
  text-align: center;
}

.audio-embed p {
  margin-bottom: 10px;
  color: #FF00FF;
}

audio {
  width: 100%;
  outline: none;
}

/* --- SOCIAL LINKS --- */
.social-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
  max-width: 250px; /* Adjust this to make the buttons wider or narrower */
}

.social-list a {
  display: flex;
  align-items: center;
  gap: 20px;
  background: black;
  color: #C0C0C0;
  border: 1px solid #FF00FF;
  border-radius: 5px;
  padding: 0 20px; /* Removed vertical padding to let height control the size */
  height: 54px;    /* This forces all buttons to be exactly the same height */
  text-decoration: none;
  font-family: 'Web437_IBM_VGA_8x16', monospace;
  transition: all 0.2s;
  width: 100%;
  box-sizing: border-box;
}

.social-list a img {
  width: 24px;
  height: 24px;   /* Fixed height for the icon container */
  object-fit: contain; /* Keeps icons proportional without stretching */
  flex-shrink: 0; /* Prevents the icon from squishing on small screens */
  display: block;
}

.social-list a:active {
  background: #FF00FF;
  color: black;
}


/* Ensure the text stays aligned to the left */
.social-list a span {
  flex-grow: 1;
  text-align: center;
  line-height: 1; /* Keeps the text perfectly centered vertically */
}

/* Hover effect matching your gallery tabs 
.social-list a:hover {
  background: #330033;
  color: #FF00FF;
}*/


/* --- SPINNER --- */
.spinner {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border: 4px solid #FF00FF;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1s linear infinite;
  z-index: 1000;
}

@keyframes spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}