body {
  font-family: 'Poppins', sans-serif;
  text-align: center;
  padding: 20px 10px;
  background: #121212;
  color: #f9f9f9;
  transition: background-color 0.5s ease, color 0.5s ease;
  min-width: 1200px; /* Ensure minimum width for desktop layout */
}

.main-container {
  display: grid;
  grid-template-columns: 200px 1fr 200px;
  gap: 20px;
  max-width: 1600px;
  margin: 0 auto;
}

.center-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.logo-container {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 15px auto 20px;
}

.logo-container img {
  width: 100%;
  height: auto;
  max-width: 800px;
  display: block;
  margin: 0 auto;  /* Center the image */
}

#categories {
  text-align: left;
  width: 85%;
  margin: 20px auto;
  background: rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 15px;
}

#categories li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-family: 'Righteous', cursive;
  font-size: 1.4em;
  letter-spacing: 0.8px;
  text-shadow: 2px 2px 0px rgba(0,0,0,0.2);
  transition: transform 0.2s ease, text-shadow 0.2s ease;
  -webkit-font-smoothing: antialiased;
  color: #ffffff;
}

#categories li:hover {
  transform: translateX(10px);
  text-shadow: 3px 3px 0px rgba(0,0,0,0.3);
  color: #4df0ff;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

#categories li {
  animation: slideIn 0.3s ease forwards;
  animation-delay: calc(var(--item-index) * 0.1s);
}

.dice-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  padding-top: 400px;  /* Decreased from 420px */
}

.right-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.controls-wrapper {
  padding-top: 400px;  /* Decreased from 420px */
}

#controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

#timer {
  font-size: 4.5em;
  margin: 0;
  font-family: 'Righteous', cursive;
  line-height: 1;
  width: 230px;
  height: 230px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  box-shadow: 0 0 25px #0008;
  text-shadow: 2px 2px 0px rgba(0,0,0,0.2);
  position: relative;
  overflow: hidden;
}

.start-button {
  padding: 15px 40px;
  font-size: 1.4em;
  margin: 0;
}

#timerSettings {
  background: rgba(255,255,255,0.05);
  padding: 15px;
  border-radius: 8px;
  margin: 10px auto;
  max-width: 400px;
  display: none;
}

#timerSettings label {
  margin-right: 10px;
}

#maxTimeInput {
  width: 60px;
  padding: 4px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px;
  color: inherit;
  font-family: inherit;
}

.settings-toggle {
  font-size: 0.9em;
  color: #ccc;
  cursor: pointer;
  margin-top: 5px;
}

.settings-toggle:hover {
  color: white;
}

.logo-animated { 
  animation: logoFadeInZoom 1.2s ease-out forwards; 
  transform-origin: center; 
}

.logo-glow { 
  animation: logoGlowPulse 2.8s ease-in-out infinite; 
}

@keyframes logoFadeInZoom {
  0% { opacity: 0; transform: scale(0.7) rotate(-10deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

@keyframes logoGlowPulse {
  0%, 100% { filter: drop-shadow(0 0 6px #fff) brightness(1.1); transform: scale(1); }
  50%      { filter: drop-shadow(0 0 12px #0ff) brightness(1.3); transform: scale(1.03); }
}

#rulesHint { 
  font-size: 0.9em; 
  margin-top: 10px; 
  color: #ccc; 
  cursor: pointer; 
}

#fullRules {
  max-width: 700px;
  margin: 20px auto;
  background: rgba(255,255,255,0.07);
  padding: 20px;
  border-radius: 12px;
  display: none;
  text-align: left;
}

#endPopup {
  display: none;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  color: #fff;
  font-size: 1.2em;
  text-align: center;
  padding-top: 100px;
  z-index: 1000;
}

#endPopupContent {
  max-width: 400px;
  margin: auto;
  background: #222;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 15px #000;
}

.letter-score {
  background: rgba(255,255,255,0.1);
  padding: 12px 20px;
  border-radius: 8px;
  margin: 8px 0;
  text-align: left;
}

.letter-score strong {
  color: #4CAF50;
}

#continueButton {
  background: #28a745;
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  margin-top: 20px;
  font-size: 1.1em;
}

#continueButton:hover {
  background: #218838;
}

.bottom-row {
  display: flex;
  justify-content: space-between;
  width: 85%;
  margin: 10px auto;
  color: #ccc;
  font-size: 0.9em;
  cursor: pointer;
}

#gameCounter {
  color: #ccc;
  cursor: default;
}

#musicInfo {
  width: 230px;
  padding: 8px;
  margin-top: 15px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  font-size: 0.8em;
  text-align: left;
}

#musicInfo .info-label {
  font-size: 0.75em;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.6;
  margin-bottom: 4px;
  text-align: center;
}

#musicInfo .track-info-item {
  margin-bottom: 8px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

#musicInfo .track-info-label {
  font-size: 0.7em;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.5;
  width: 40px;
  flex-shrink: 0;
}

#musicInfo .song-title {
  font-weight: bold;
  font-size: 0.95em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-grow: 1;
}

#musicInfo .artist-name {
  color: #4df0ff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.85em;
  flex-grow: 1;
}

#musicInfo .album-name {
  font-style: italic;
  opacity: 0.8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.85em;
  flex-grow: 1;
}

#musicInfo .track-time {
  font-size: 0.75em;
  opacity: 0.9;
  font-family: monospace;
  flex-grow: 1;
} 