/* SIA Synthwave-inspired theme */

body {
  color: #f6f7f9;
  background: linear-gradient(120deg, #2a2139 0%, #3a2d5d 50%, #2a2139 100%);
  min-height: 100vh;
  font-family: 'Fira Mono', 'Consolas', 'Monaco', monospace;
  letter-spacing: 0.5px;
  padding-top: 70px;
}

.myButton {
  font-family: 'Fira Mono', 'Consolas', 'Monaco', monospace;
  font-size: 16px;
  color: #f6f7f9;
  background: linear-gradient(90deg, #ff6ac1 0%, #198fff 100%);
  border: 2px solid #ff6ac1;
  border-radius: 8px;
  padding: 14px 36px;
  box-shadow: 0 0 12px #ff6ac1, 0 0 24px #198fff inset;
  transition: background 0.4s, color 0.4s, box-shadow 0.4s;
  cursor: pointer;
  text-shadow: 0 2px 8px #000a;
}

.myButton:hover {
  background: linear-gradient(90deg, #198fff 0%, #ff6ac1 100%);
  color: #fff;
  box-shadow: 0 0 24px #198fff, 0 0 32px #ff6ac1 inset;
}

.topnav {
  background: rgba(42, 33, 57, 0.95);
  overflow: hidden;
  padding: 8px 0;
  border-radius: 10px;
  box-shadow: 0 2px 16px #ff6ac1a0;
  margin-bottom: 24px;
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  justify-content: center;
  min-width: 400px;
  max-width: 90vw;
}

.topnav a {
  /* float: right; */ /* Remove this line */
  display: inline-block;
  color: #f6f7f9;
  text-align: center;
  padding: 12px 24px;
  text-decoration: none;
  font-size: 18px;
  border-radius: 6px;
  margin: 0 6px;
  transition: background 0.4s, color 0.4s, box-shadow 0.4s;
  box-shadow: 0 0 8px #198fff40;
  position: relative;
}

.topnav a:hover {
  background: linear-gradient(90deg, #ff6ac1 0%, #198fff 100%);
  color: #fff;
  box-shadow: 0 0 16px #ff6ac1, 0 0 24px #198fff inset;
}

.topnav a.active {
  background: linear-gradient(90deg, #198fff 0%, #ff6ac1 100%);
  color: #fff;
  box-shadow: 0 0 20px #198fff, 0 0 32px #ff6ac1 inset;
}

.topnav a.active:hover {
  background: linear-gradient(90deg, #ff6ac1 0%, #198fff 100%);
  color: #fff;
  box-shadow: 0 0 32px #ff6ac1, 0 0 40px #198fff inset;
}

.secret-btn:hover, .secret-btn:focus {
color: #ff7dc9;
outline: none;
text-shadow: 0 0 32px #ff6ac1, 0 0 40px #198fff;
    }

      .secret-btn {
      background: none;
      border: none;
      color: #ff6ac1;
      font-size: inherit;
      font-family:'Fira Mono', 'Consolas', 'Monaco', monospace;
      cursor: pointer;
      padding: 0;
      margin: 0;
      text-shadow: 0 0 24px #ff6ac1, 0 0 32px #198fff;
      transition: color 0.3s;
    }

    #game-section {
      display: none;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      min-height: 70vh;
      animation: fadeIn 0.7s;
    }
    @keyframes fadeIn {
      from { opacity: 0; }
      to   { opacity: 1; }
    }

    .game-preview-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(90deg, #ff6ac1 0%, #198fff 100%);
  border: 2px solid #ff6ac1;
  border-radius: 12px;
  padding: 18px 28px;
  box-shadow: 0 0 16px #ff6ac1, 0 0 32px #198fff inset;
  cursor: pointer;
  transition: background 0.4s, box-shadow 0.4s;
  margin: 2rem 0;
}

.game-preview-btn:hover {
  background: linear-gradient(90deg, #198fff 0%, #ff6ac1 100%);
  box-shadow: 0 0 32px #198fff, 0 0 40px #ff6ac1 inset;
}

.game-preview-img {
  width: 180px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
  box-shadow: 0 0 12px #198fff80;
}

.game-preview-label {
  color: #fff;
  font-size: 1.2rem;
  font-family: 'Fira Mono', 'Consolas', 'Monaco', monospace;
  text-shadow: 0 0 8px #ff6ac1;
}

/* Synthwave (default) */

.theme-synthwave {
  color: #f6f7f9;
  background: linear-gradient(120deg, #2a2139 0%, #3a2d5d 50%, #2a2139 100%);
}

/* Light theme */

.theme-light {
  color: #222;
  background: linear-gradient(120deg, #f6f7f9 0%, #e0e7ef 100%);
}

.theme-light .topnav {
  background: #fff;
  box-shadow: 0 2px 16px #198fff40;
}
.theme-light .myButton,
.theme-light .game-preview-btn {
  background: linear-gradient(90deg, #e0e7ef 0%, #b3c6e0 100%);
  color: #222;
  border: 2px solid #198fff;
  box-shadow: 0 0 12px #198fff40, 0 0 24px #b3c6e080 inset;
}
.theme-light .myButton:hover,
.theme-light .game-preview-btn:hover {
  background: linear-gradient(90deg, #b3c6e0 0%, #e0e7ef 100%);
  color: #198fff;
}

/* Dark theme */

.theme-dark {
  color: #f6f7f9;
  background: linear-gradient(120deg, #181818 0%, #232526 100%);
}
.theme-dark .topnav {
  background: #232526;
  box-shadow: 0 2px 16px #000a;
}
.theme-dark .myButton,
.theme-dark .game-preview-btn {
  background: linear-gradient(90deg, #232526 0%, #181818 100%);
  color: #f6f7f9;
  border: 2px solid #444;
  box-shadow: 0 0 12px #000a, 0 0 }

/* Synthwave (default) */

.theme-synthwave {
  color: #f6f7f9;
  background: linear-gradient(120deg, #2a2139 0%, #3a2d5d 50%, #2a2139 100%);
}

.theme-synthwave .topnav {
  background: rgba(42, 33, 57, 0.95);
  box-shadow: 0 2px 16px #ff6ac1a0;
}

/* Light theme */

.theme-light {
  color: #222;
  background: linear-gradient(120deg, #f6f7f9 0%, #e0e7ef 100%);
}

.theme-light .topnav {
  background: #fff;
  box-shadow: 0 2px 16px #198fff40;
}

.theme-light .topnav a {
  color: #222;
  box-shadow: 0 0 8px #198fff20;
  background: none;
}

.theme-light .topnav a:hover,
.theme-light .topnav a.active {
  background: linear-gradient(90deg, #e0e7ef 0%, #b3c6e0 100%);
  color: #198fff;
  box-shadow: 0 0 16px #198fff40, 0 0 24px #b3c6e080 inset;
}

/* Dark theme */

.theme-dark {
  color: #f6f7f9;
  background: linear-gradient(120deg, #181818 0%, #232526 100%);
}

.theme-dark .topnav {
  background: #232526;
  box-shadow: 0 2px 16px #000a;
}

.theme-dark .topnav a {
  color: #f6f7f9;
  box-shadow: 0 0 8px #0008;
  background: none;
}

.theme-dark .topnav a:hover,
.theme-dark .topnav a.active {
  background: linear-gradient(90deg, #232526 0%, #181818 100%);
  color: #fff;
  box-shadow: 0 0 16px #000a, 0 0 24px #23252680 inset;
}

/* Blue Synthwave theme */

.theme-bluesynth {
  color: #e0f7fa;
  background: linear-gradient(120deg, #1a237e 0%, #0d47a1 50%, #1a237e 100%);
}

.theme-bluesynth .topnav {
  background: rgba(13, 71, 161, 0.95);
  box-shadow: 0 2px 16px #64b5f6a0;
}

.theme-bluesynth .topnav a {
  color: #e0f7fa;
  box-shadow: 0 0 8px #64b5f640;
  background: none;
}

.theme-bluesynth .topnav a:hover,
.theme-bluesynth .topnav a.active {
  background: linear-gradient(90deg, #64b5f6 0%, #00bcd4 100%);
  color: #fff;
  box-shadow: 0 0 16px #64b5f6, 0 0 24px #00bcd480 inset;
}

.theme-bluesynth .myButton,
.theme-bluesynth .game-preview-btn {
  background: linear-gradient(90deg, #64b5f6 0%, #00bcd4 100%);
  color: #e0f7fa;
  border: 2px solid #64b5f6;
  box-shadow: 0 0 12px #64b5f6, 0 0 24px #00bcd480 inset;
}

.theme-bluesynth .myButton:hover,
.theme-bluesynth .game-preview-btn:hover {
  background: linear-gradient(90deg, #00bcd4 0%, #64b5f6 100%);
  color: #fff;
  box-shadow: 0 0 24px #00bcd4, 0 0 32px #64b5f6 inset;
}

.theme-bluesynth .secret-btn {
  color: #64b5f6;
  text-shadow: 0 0 24px #64b5f6, 0 0 32px #00bcd4;
}

.theme-bluesynth .secret-btn:hover, 
.theme-bluesynth .secret-btn:focus {
  color: #00bcd4;
  text-shadow: 0 0 32px #64b5f6, 0 0 40px #00bcd4;
}

/* Midnight Theme */

.theme-midnight {
  color: #b3cfff;
  background: linear-gradient(120deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
}

.theme-midnight .topnav {
  background: rgba(15, 32, 39, 0.97);
  box-shadow: 0 2px 16px #00c6ff80;
}
.theme-midnight .topnav a {
  color: #b3cfff;
  background: none;
  box-shadow: 0 0 8px #00c6ff40;
}
.theme-midnight .topnav a:hover,
.theme-midnight .topnav a.active {
  background: linear-gradient(90deg, #232526 0%, #00c6ff 100%);
  color: #fff;
  box-shadow: 0 0 16px #00c6ff, 0 0 24px #23252680 inset;
}
.theme-midnight .myButton,
.theme-midnight .game-preview-btn {
  background: linear-gradient(90deg, #232526 0%, #00c6ff 100%);
  color: #b3cfff;
  border: 2px solid #00c6ff;
  box-shadow: 0 0 12px #00c6ff80, 0 0 24px #23252680 inset;
}
.theme-midnight .myButton:hover,
.theme-midnight .game-preview-btn:hover {
  background: linear-gradient(90deg, #00c6ff 0%, #232526 100%);
  color: #fff;
  box-shadow: 0 0 24px #00c6ff, 0 0 32px #232526 inset;
}
.theme-midnight .secret-btn {
  color: #00c6ff;
  text-shadow: 0 0 24px #00c6ff, 0 0 32px #232526;
}
.theme-midnight .secret-btn:hover, 
.theme-midnight .secret-btn:focus {
  color: #b3cfff;
  text-shadow: 0 0 32px #00c6ff, 0 0 40px #232526;
}

/* Neon Theme */

.theme-neon {
  color: #fff;
  background: linear-gradient(120deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
}

.theme-neon .topnav {
  background: rgba(48, 43, 99, 0.97);
  box-shadow: 0 2px 16px #39ff14a0;
}
.theme-neon .topnav a {
  color: #39ff14;
  background: none;
  text-shadow: 0 0 8px #39ff14, 0 0 16px #fff;
  box-shadow: 0 0 8px #39ff1440;
}
.theme-neon .topnav a:hover,
.theme-neon .topnav a.active {
  background: linear-gradient(90deg, #39ff14 0%, #00eaff 100%);
  color: #222;
  box-shadow: 0 0 16px #00eaff, 0 0 24px #39ff1480 inset;
}
.theme-neon .myButton,
.theme-neon .game-preview-btn {
  background: linear-gradient(90deg, #39ff14 0%, #00eaff 100%);
  color: #222;
  border: 2px solid #39ff14;
  box-shadow: 0 0 12px #39ff14, 0 0 24px #00eaff80 inset;
  text-shadow: 0 0 8px #fff;
}
.theme-neon .myButton:hover,
.theme-neon .game-preview-btn:hover {
  background: linear-gradient(90deg, #00eaff 0%, #39ff14 100%);
  color: #fff;
  box-shadow: 0 0 24px #00eaff, 0 0 32px #39ff14 inset;
}
.theme-neon .secret-btn {
  color: #39ff14;
  text-shadow: 0 0 24px #39ff14, 0 0 32px #00eaff;
}
.theme-neon .secret-btn:hover, 
.theme-neon .secret-btn:focus {
  color: #00eaff;
  text-shadow: 0 0 32px #39ff14, 0 0 40px #00eaff;
}

/* Night City Theme */

.theme-nightcity {
  color: #ffe082;
  background: linear-gradient(120deg, #232526 0%, #414345 50%, #232526 100%);
}

.theme-nightcity .topnav {
  background: rgba(35, 37, 38, 0.97);
  box-shadow: 0 2px 16px #ff4081a0;
}
.theme-nightcity .topnav a {
  color: #ffe082;
  background: none;
  text-shadow: 0 0 8px #ff4081, 0 0 16px #fff176;
  box-shadow: 0 0 8px #ff408140;
}
.theme-nightcity .topnav a:hover,
.theme-nightcity .topnav a.active {
  background: linear-gradient(90deg, #ff4081 0%, #ffe082 100%);
  color: #232526;
  box-shadow: 0 0 16px #ff4081, 0 0 24px #ffe08280 inset;
}
.theme-nightcity .myButton,
.theme-nightcity .game-preview-btn {
  background: linear-gradient(90deg, #ff4081 0%, #ffe082 100%);
  color: #232526;
  border: 2px solid #ff4081;
  box-shadow: 0 0 12px #ff4081, 0 0 24px #ffe08280 inset;
  text-shadow: 0 0 8px #fff176;
}
.theme-nightcity .myButton:hover,
.theme-nightcity .game-preview-btn:hover {
  background: linear-gradient(90deg, #ffe082 0%, #ff4081 100%);
  color: #ff4081;
  box-shadow: 0 0 24px #ffe082, 0 0 32px #ff4081 inset;
}
.theme-nightcity .secret-btn {
  color: #ff4081;
  text-shadow: 0 0 24px #ff4081, 0 0 32px #ffe082;
}
.theme-nightcity .secret-btn:hover, 
.theme-nightcity .secret-btn:focus {
  color: #ffe082;
  text-shadow: 0 0 32px #ff4081, 0 0 40px #ffe082;
}

/* Apps section styles */
.apps-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-top: 2rem;
}

.app-card {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  min-width: unset;
  max-width: unset;
  transition: transform 0.2s, box-shadow 0.3s;
  border-radius: 16px;
  cursor: pointer;
}

.app-card img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 0 16px #00eaff40;
  transition: box-shadow 0.3s, transform 0.2s;
  display: block;
}

.app-card:hover img,
.game-preview-btn:hover img {
  box-shadow: 0 0 32px #39ff14, 0 0 40px #00eaff inset;
  transform: scale(1.08);
}

/* Remove text label styling since there is no text now */
.app-card span,
.game-preview-label {
  display: none;
}

/* Game preview button as just an image */
.game-preview-btn {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.game-preview-img {
  width: 160px;
  height: 120px;
  object-fit: contain;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 0 16px #00eaff40;
  transition: box-shadow 0.3s, transform 0.2s;
  display: block;
}

/* --- THEME OVERRIDES --- */

/* Synthwave */
.theme-synthwave .app-card {
  background: linear-gradient(90deg, #ff6ac1 0%, #198fff 100%);
  color: #fff;
  box-shadow: 0 0 16px #ff6ac1, 0 0 32px #198fff80 inset;
}
.theme-synthwave .app-card:hover {
  background: linear-gradient(90deg, #198fff 0%, #ff6ac1 100%);
  color: #fff;
  box-shadow: 0 0 32px #198fff, 0 0 40px #ff6ac1 inset;
}

/* Blue Synthwave */
.theme-bluesynth .app-card {
  background: linear-gradient(90deg, #64b5f6 0%, #00bcd4 100%);
  color: #e0f7fa;
  box-shadow: 0 0 16px #64b5f6, 0 0 32px #00bcd480 inset;
}
.theme-bluesynth .app-card:hover {
  background: linear-gradient(90deg, #00bcd4 0%, #64b5f6 100%);
  color: #fff;
  box-shadow: 0 0 32px #00bcd4, 0 0 40px #64b5f6 inset;
}

/* Light */
.theme-light .app-card {
  background: linear-gradient(90deg, #e0e7ef 0%, #b3c6e0 100%);
  color: #222;
  box-shadow: 0 0 12px #198fff40, 0 0 24px #b3c6e080 inset;
}
.theme-light .app-card:hover {
  background: linear-gradient(90deg, #b3c6e0 0%, #e0e7ef 100%);
  color: #198fff;
  box-shadow: 0 0 32px #198fff, 0 0 40px #b3c6e0 inset;
}

/* Dark */
.theme-dark .app-card {
  background: linear-gradient(90deg, #232526 0%, #181818 100%);
  color: #f6f7f9;
  box-shadow: 0 0 12px #000a, 0 0 24px #23252680 inset;
}
.theme-dark .app-card:hover {
  background: linear-gradient(90deg, #181818 0%, #232526 100%);
  color: #fff;
  box-shadow: 0 0 32px #232526, 0 0 40px #181818 inset;
}

/* Midnight */
.theme-midnight .app-card {
  background: linear-gradient(90deg, #232526 0%, #00c6ff 100%);
  color: #b3cfff;
  box-shadow: 0 0 16px #00c6ff80, 0 0 32px #23252680 inset;
}
.theme-midnight .app-card:hover {
  background: linear-gradient(90deg, #00c6ff 0%, #232526 100%);
  color: #fff;
  box-shadow: 0 0 32px #00c6ff, 0 0 40px #232526 inset;
}

/* Night City */
.theme-nightcity .app-card {
  background: linear-gradient(90deg, #ff4081 0%, #ffe082 100%);
  color: #232526;
  box-shadow: 0 0 12px #ff4081, 0 0 24px #ffe08280 inset;
}
.theme-nightcity .app-card:hover {
  background: linear-gradient(90deg, #ffe082 0%, #ff4081 100%);
  color: #ff4081;
  box-shadow: 0 0 24px #ffe082, 0 0 32px #ff4081 inset;
}

/* Add to home.css */

#music-player-container {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

#music-toggle-btn {
  background: #232526cc;
  border: none;
  border-radius: 50%;
  padding: 8px;
  box-shadow: 0 0 8px #a259ff80;
  cursor: pointer;
  transition: background 0.2s;
}

#music-toggle-btn:hover {
  background: #a259ffcc;
}

#music-popup {
  margin-top: 10px;
  background: #292742ee;
  border-radius: 16px;
  box-shadow: 0 0 16px #a259ff80;
  padding: 18px 18px 14px 18px;
  min-width: 240px;
  max-width: 260px;
  color: #fff;
  font-family: 'Fira Mono', 'Consolas', 'Monaco', monospace;
  animation: fadeIn 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.music-progress-top {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  font-size: 0.95em;
}

#music-progress-bar {
  flex: 1;
  accent-color: #a259ff;
  height: 4px;
}

#music-cover {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 12px;
  box-shadow: 0 0 12px #a259ff80;
}

#music-title {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 2px;
  text-align: center;
}

#music-artist {
  font-size: 1rem;
  color: #b39ddb;
  margin-bottom: 12px;
  text-align: center;
}

.music-controls {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.music-controls button {
  background: #a259ff;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 6px 14px;
  font-family: inherit;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.2s;
}

.music-controls button:hover {
  background: #7c43bd;
}

#music-volume-bar {
  width: 100%;
  accent-color: #a259ff;
  margin-top: 4px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px);}
  to { opacity: 1; transform: translateY(0);}
}

/* End of theme styles */