/* Retro Pixel Art Website Styling */

/* Import pixelated font */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #FFD700; /* Yellow background */
  background-image: url('/imgs/saturn_background.png');
  background-repeat: repeat;
  color: #000;
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  line-height: 1.4;
  transition: background-image 0.5s ease;
}

/* Theme Backgrounds */
.theme-fire {
  background-image: url('/imgs/textures/tex_Fire.png');
  background-repeat: repeat;
}

.theme-water {
  background-image: url('/imgs/textures/tex_Water.jpg');
  background-repeat: repeat;
}

.theme-air {
  background-image: url('/imgs/textures/tex_Air.png');
  background-repeat: repeat;
}

.theme-earth {
  background-image: url('/imgs/textures/tex_Earth.jpg');
  background-repeat: repeat;
}

/* Header Styling */
.header {
  margin-bottom: 20px;
}

.header-illustration {
  background: linear-gradient(135deg, #E6E6FA 0%, #F0E68C 50%, #FFA500 100%);
  padding: 40px 20px;
  text-align: center;
  border: 3px solid #8B4513;
  margin-bottom: 10px;
  position: relative;
}

.site-title {
  color: #000;
  font-size: 12px;
  text-shadow: 2px 2px 0px #FFF;
  margin: 0;
}

/* Navigation */
.navigation {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-bottom: 20px;
}

.nav-button {
  background-color: #DEB887;
  color: #000;
  text-decoration: none;
  padding: 8px 12px;
  border: 2px solid #8B4513;
  font-size: 8px;
  font-family: 'Press Start 2P', monospace;
  transition: background-color 0.2s;
}

.nav-button:hover {
  background-color: #F4A460;
}


/* Main Content Layout */
.main-content {
  display: flex;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.left-column, .right-column {
  flex: 1;
}

/* Content Boxes */
.content-box {
  background-color: #FFF;
  border: 2px solid #8B4513;
  margin-bottom: 15px;
  padding: 15px;
}

.section-title {
  color: #8B4513;
  font-size: 10px;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.section-text {
  font-size: 7px;
  line-height: 1.6;
  margin-bottom: 10px;
}

/* Work Section */
.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.work-item {
  text-align: center;
}

.work-placeholder {
  background-color: #F0F0F0;
  border: 1px solid #8B4513;
  padding: 20px;
  margin-bottom: 5px;
  font-size: 6px;
}

.work-status {
  font-size: 6px;
  color: #8B4513;
}

.work-image {
  width: 100%;
  height: auto;
  max-height: 80px;
  object-fit: contain;
  border: 1px solid #8B4513;
}

/* Work of the Magician Section */
.magic-schools {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
  background-color: #000;
  padding: 15px;
}

.magic-item {
  background-color: transparent;
  border: none;
  padding: 0;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: filter 0.3s ease;
}

.magic-button {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  transition: filter 0.3s ease;
}

.magic-button:hover {
  filter: invert(1);
}

.magic-school-img {
  width: 100%;
  height: auto;
  max-width: 526px;
  max-height: 95px;
  object-fit: contain;
  transition: filter 0.3s ease;
}

.shop-tip {
  font-size: 6px;
  color: #8B4513;
  margin: 10px 0;
  text-align: center;
}

.themes {
  margin-top: 10px;
}

.theme-label {
  font-size: 6px;
  margin-right: 5px;
}

.theme-button {
  background-color: #DEB887;
  border: 1px solid #8B4513;
  padding: 4px 8px;
  margin: 2px;
  font-size: 6px;
  font-family: 'Press Start 2P', monospace;
  cursor: pointer;
}

.theme-button:hover {
  background-color: #F4A460;
}

.ball-divider {
  width: auto;
  height: 20px;
  margin: 5px 0;
  display: block;
}

/* Planetary Tarot */
.tarot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 15px;
}

.tarot-card {
  position: relative;
  width: 80px;
  height: 120px;
  cursor: pointer;
  perspective: 1000px;
}

.card-back, .card-front {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 2px solid #000;
  border-radius: 8px;
  backface-visibility: hidden;
  transition: transform 0.6s;
}

.card-back {
  background-image: url('/imgs/card_back.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 2;
}

.card-front {
  background-color: #FFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: rotateY(180deg);
  z-index: 1;
}

.tarot-card.flipped .card-back {
  transform: rotateY(180deg);
}

.tarot-card.flipped .card-front {
  transform: rotateY(0deg);
}

.tarot-card.disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.planet-symbol {
  font-size: 24px;
  margin-bottom: 8px;
}

.planet-name {
  font-size: 8px;
  font-family: 'Press Start 2P', monospace;
  text-align: center;
}

.moon-card .planet-name { color: #808080; }
.sun-card .planet-name { color: #FFD700; }
.mars-card .planet-name { color: #FF0000; }
.venus-card .planet-name { color: #FF69B4; }
.mercury-card .planet-name { color: #0000FF; }
.jupiter-card .planet-name { color: #FFD700; }
.saturn-card .planet-name { color: #808000; }

/* Link Buttons */
.link-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 10px 0;
}

.link-button {
  background-color: #DEB887;
  border: 2px solid #8B4513;
  padding: 10px;
  text-align: center;
  font-size: 8px;
  min-width: 30px;
}

.link-text {
  text-align: center;
  font-size: 6px;
  color: #8B4513;
  margin-top: 5px;
}

/* Updates Section */
.updates-content {
  font-size: 6px;
  line-height: 1.6;
}

/* Saturn Visualization Section */
.saturn-iframe {
  width: 100%;
  height: 400px;
  border: 1px solid #8B4513;
  display: block;
}

/* Footer - Windows XP Start Bar Style */
.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #E6E6FA 0%, #F0E68C 50%, #FFA500 100%);
  border-top: 2px solid #8B008B; /* Dark purple border */
  padding: 0;
  margin: 0;
  z-index: 1000;
}

.start-bar {
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0 10px;
  gap: 10px;
}

.start-bar > *:nth-last-child(2) {
  margin-right: auto;
}

.start-bar > *:last-child {
  margin-left: 0;
}

.start-button {
  display: flex;
  align-items: center;
  background-color: #DEB887; /* Same as nav-button */
  border: 2px solid #8B4513; /* Same as nav-button */
  padding: 5px 10px;
  cursor: pointer;
  transition: background-color 0.2s;
  text-decoration: none;
  color: inherit;
}

.start-button:hover {
  background-color: #F4A460; /* Same as nav-button hover */
}

.date-button {
  display: flex;
  align-items: center;
  background-color: #DEB887; /* Same as nav-button */
  border: 2px solid #8B4513; /* Same as nav-button */
  padding: 5px 10px;
  cursor: pointer;
  transition: background-color 0.2s;
  margin-left: auto; /* Align to the right side */
}

.date-button:hover {
  background-color: #F4A460; /* Same as nav-button hover */
}

.start-icon {
  width: 16px;
  height: 16px;
  margin-right: 5px;
}

.start-text {
  font-size: 8px;
  color: #000;
  font-family: 'Press Start 2P', monospace;
}

.vl {
  width: 2px;
  height: 30px;
  border: 2px solid #8B008B;
  border-top: 0;
  border-left: 0;
  background: whitesmoke;
}


.start-bar-btns {
  width: 88px;
  height: 31px;
}

.date-text {
  font-size: 8px;
  color: #000;
  font-family: 'Press Start 2P', monospace;
}

/* Add bottom padding to main content to account for fixed footer */
.main-content {
  margin-bottom: 60px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .main-content {
    flex-direction: column;
  }
  
  .navigation {
    flex-wrap: wrap;
  }
  
  .nav-button {
    font-size: 6px;
    padding: 6px 8px;
  }
}