<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">/* Global Styles */







body {
  font-family: Arial, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  background: linear-gradient(135deg, #0d1b2a, #1b263b);
  color: #e6e6ff;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('img/axlebox_logo.jpg') repeat;
  opacity: 0.1;
  animation: starry 18s linear infinite;
  z-index: -1;
}

@keyframes starry {
  0% { background-position: 0 0; }
  100% { background-position: 150px 150px; }
}

/* Header Section */
#menu-area {
  width: 100%;
height: 90px;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('img/menu.jpg');
  background-size: cover;
  background-position: center;
  padding: 5px;
  box-shadow: 0 0 15px #00ffcc;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  position: relative;

 margin-bottom: 0px;
}

#scroller {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  margin: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 5;
  display: none;
  pointer-events: none;
}

#header-row {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 90%;
}

#score-timer {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

#score-highscore, #level-timer {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

#score-highscore {
  padding-left: 10px;
}

#level-timer {
  padding-right: 10px;
  align-items: flex-end;
}

#score, #timer, #highscore, #level {
  font-size: 0.8em;
  text-shadow: 0 0 8px #fff;
  margin: 2px 0;
}

#button-row {
  display: flex;
  gap: 5px;
  justify-content: center;
  flex-wrap: wrap;



 
}

button {


font-size: 0.8em;
  padding: 6px 12px;
  background: #00ffcc;
  border: none;
  border-radius: 6px;
  color: #1b263b;
color: navy;

  cursor: pointer;
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s, text-shadow 0.3s;
}

button:hover {
  background: #ff3366;
  transform: scale(1.05);
  box-shadow: 0 0 10px #ff3366;
  text-shadow: 0 0 5px #fff;
color: white;
}

#sound-btn {
  padding: 6px;
  font-size: 1em;
  width: 40px;
  text-align: center;
 
}

/* Game Container and Puzzle Grid */
#game-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 0px;
  position: relative;
  z-index: 1;

}

#puzzle-grid {
  display: grid;
  gap: 4px;
  border: 4px solid #00ffcc;
  background: rgba(0, 0, 0, 0.8);
  box-shadow: 0 0 25px rgba(0, 255, 204, 0.6);
  border-radius: 10px;
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
}

#puzzle-grid.puzzle-complete {
  
  box-shadow: 0 0 0px rgba(255, 255, 255, 0.3);
  animation: reveal 1s ease-in-out;
}

#puzzle-grid::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Puzzle Pieces */
.puzzle-piece {
  background-size: cover;
  position: absolute;
  cursor: grab;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.2s ease;
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
  user-select: none;
  border: 2px solid #ffffff33;
  z-index: 1;
  will-change: transform, left, top, opacity;
}

.puzzle-piece:hover, .puzzle-piece.active {
  transform: scale(1.08);
  box-shadow: 0 0 15px rgba(0, 255, 204, 0.8);
  border: 2px solid #ffffff;
}

.puzzle-piece:not(.active) {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.2s ease;
}

.puzzle-piece:focus {
  outline: 2px solid #00ffcc;
  outline-offset: 2px;
}

.puzzle-piece.correct {
  border: 3px solid #00ff00;
  box-shadow: 0 0 20px #00ff00;
  transform: scale(1);
  cursor: default;
}

.puzzle-complete .puzzle-piece.correct {
  border: 2px solid #ffffff33;
  box-shadow: none;
}

.puzzle-piece.correct-position {
  border: 3px solid #ffff00;
  box-shadow: 0 0 20px #ffff00;
  transform: scale(1);
  cursor: pointer;
}

.puzzle-piece.incorrect.in-grid {
  border: 3px solid #ff3366;
  box-shadow: 0 0 15px #ff3366;
}

.puzzle-piece::after {
  content: '';
  position: absolute;
  top: 10px;
  right: 10px;
  width: 8px;
  height: 8px;
  background: #ff3366;
  border-radius: 50%;
  display: none;
}

.puzzle-piece:not([data-rotated="0"]):not(.correct)::after {
  display: block;
}

/* Rotation Indicator */
.rotate-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 32px;
  height: 32px;
  background: url('data:image/svg+xml;utf8,&lt;svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23ffffff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"&gt;&lt;path d="M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8"/&gt;&lt;path d="M21 3v5h-5"/&gt;&lt;path d="M12 21a9 9 0 0 1-9-9"/&gt;&lt;/svg&gt;') no-repeat center;
  background-size: contain;
  transform: translate(-50%, -50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.puzzle-piece:hover .rotate-indicator, .puzzle-piece.active .rotate-indicator {
  opacity: 0.7;
}

/* Popups */
#instructions-popup, #highscore-popup, #difficulty-warning-popup, #popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.95);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 0 30px #00ffcc;
  text-align: center;
  z-index: 10;
  max-width: 90%;
  animation: popupFanfare 0.5s ease;
}

#instructions-popup p, #difficulty-warning-popup p {
  margin: 0 0 15px;
  font-size: 1em;
  opacity: 0.9;
  text-shadow: 0 0 5px #fff;
}

#highscore-popup h2 {
  margin: 0 0 15px;
  font-size: 1.2em;
  text-shadow: 0 0 10px #00ffcc;
}

#highscore-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 15px;
}

#highscore-table th, #highscore-table td {
  padding: 5px;
  border: 1px solid #00ffcc;
  font-size: 0.9em;
  text-shadow: 0 0 5px #fff;
}

#highscore-table th {
  background: rgba(0, 255, 204, 0.2);
}

#popup button, #instructions-popup button, #highscore-popup button, #difficulty-warning-popup button {
  margin: 10px 5px;
}



/* Animations */
@keyframes glow {
  from { text-shadow: 0 0 10px #00ffcc; }
  to { text-shadow: 0 0 20px #00ffcc, 0 0 30px #ff3366; }
}

@keyframes popupFanfare {
  0% { opacity: 0; transform: translate(-50%, -60%) scale(0.9); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}


@keyframes reveal {
  0% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes scrollText {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}





/* Tab Navigation */
.tab-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 15px;
}

.tab-btn {
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.8);
  border: 2px solid #00ffcc;
  border-radius: 6px;
  color: #e6e6ff;
  font-size: 0.9em;
  cursor: pointer;
  transition: background 0.3s, border 0.3s, transform 0.2s, box-shadow 0.3s, text-shadow 0.3s;
}

.tab-btn:hover {
  background: #ff3366;
  border-color: #ff3366;
  transform: scale(1.05);
  box-shadow: 0 0 10px #ff3366;
  text-shadow: 0 0 5px #fff;
  color: #fff;
}

.tab-btn.active {
  background: #00ffcc;
  border-color: #ffffff;
  color: #1b263b;
  box-shadow: 0 0 15px #00ffcc;
  transform: scale(1);
}

.tab-btn:focus {
  outline: 2px solid #00ffcc;
  outline-offset: 2px;
}

/* High Score Table Adjustments */
#highscore-table th, #highscore-table td {
  padding: 5px;
  border: 1px solid #00ffcc;
  font-size: 0.9em;
  text-shadow: 0 0 5px #fff;
  min-width: 60px; /* Ensure columns don't collapse */
}

#highscore-table th {
  background: rgba(0, 255, 204, 0.2);
}

/* Mobile Adjustments */
@media (pointer: coarse) {
  .tab-btn {
    padding: 8px 14px;
    font-size: 0.85em;
    touch-action: manipulation;
  }
}

@media (min-aspect-ratio: 1/2) {
  .tab-btn {
    padding: 5px 10px;
    font-size: 0.8em;
  }
  #highscore-table th, #highscore-table td {
    padding: 3px;
    font-size: 0.8em;
  }
}

@media (max-aspect-ratio: 2/1) {
  .tab-btn {
    padding: 6px 12px;
    font-size: 0.85em;
  }
  #highscore-table th, #highscore-table td {
    padding: 4px;
    font-size: 0.85em;
  }
}





/* Desktop-Specific Styles */
@media (min-width: 769px) {
  #menu-area {
    padding: 5px 10px;
  }
  #header-row {
    max-width: 900px;
  }
  #score, #timer, #highscore, #level {
    font-size: 0.9em;
  }
  button {
    padding: 8px 16px;
    font-size: 0.9em;
  }
  #sound-btn {
    padding: 8px;
    width: 50px;
  }
  #game-container {
    flex-direction: row;
    gap: 20px;
    align-items: flex-start;
  }
}




/* Tab Navigation */
.tab-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 15px;
}

.tab-btn {
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.8);
  border: 2px solid #00ffcc;
  border-radius: 6px;
  color: #e6e6ff;
  font-size: 0.9em;
  cursor: pointer;
  transition: background 0.3s, border 0.3s, transform 0.2s, box-shadow 0.3s, text-shadow 0.3s;
}

.tab-btn:hover {
  background: #ff3366;
  border-color: #ff3366;
  transform: scale(1.05);
  box-shadow: 0 0 10px #ff3366;
  text-shadow: 0 0 5px #fff;
  color: #fff;
}

.tab-btn.active {
  background: #00ffcc;
  border-color: #ffffff;
  color: #1b263b;
  box-shadow: 0 0 15px #00ffcc;
  transform: scale(1);
}

.tab-btn:focus {
  outline: 2px solid #00ffcc;
  outline-offset: 2px;
}

/* High Score Table Adjustments */
#highscore-table th, #highscore-table td {
  padding: 5px;
  border: 1px solid #00ffcc;
  font-size: 0.9em;
  text-shadow: 0 0 5px #fff;
  min-width: 60px; /* Ensure columns don't collapse */
}

#highscore-table th {
  background: rgba(0, 255, 204, 0.2);
}

/* Mobile Adjustments */
@media (pointer: coarse) {
  .tab-btn {
    padding: 8px 14px;
    font-size: 0.85em;
    touch-action: manipulation;
  }
}

@media (min-aspect-ratio: 1/2) {
  .tab-btn {
    padding: 5px 10px;
    font-size: 0.8em;
  }
  #highscore-table th, #highscore-table td {
    padding: 3px;
    font-size: 0.8em;
  }
}

@media (max-aspect-ratio: 2/1) {
  .tab-btn {
    padding: 6px 12px;
    font-size: 0.85em;
  }
  #highscore-table th, #highscore-table td {
    padding: 4px;
    font-size: 0.85em;
  }
}</pre></body></html>