/* styles/main.css */
:root {
  --font-family: 'Segoe UI', sans-serif;
  --font-base: 1rem;
  --font-lg: 1.25rem;
  --font-xl: 1.75rem;
  --spacing-xs: .5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --color-bg: #fff;
  --color-text: #333;
  --color-border: #ccc;
  --color-primary: #007bff;
  --color-secondary: #fff;
  --header-height: 3.5rem;
}

* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-base);
  color: var(--color-text);
  background: #fdfdfd;
  margin: 0;
  padding-top: var(--header-height);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* Topbar */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--color-secondary);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  height: var(--header-height);
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  
}

/* Branding */
.branding {
  text-decoration: none;
  font-size: var(--font-xl);
  font-weight: 700;
  line-height: var(--header-height);
  color: var(--color-text);
}

/* Page-level navigation (tabs) */
.page-tabs {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
  
}

.page-tabs .tab {
  font-size: var(--font-base);
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  padding: 0 var(--spacing-sm);
  position: relative;
  transition: color .2s;
}

.page-tabs .tab:hover {
  color: #3c3c3c;
}

.page-tabs .tab::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 10%;
  width: 80%;
  height: 3px;
  background: transparent;
  transition: background .2s;
}

.page-tabs .tab.active {
  color: #000;
}

.page-tabs .tab.active::after {
  
    background: #6e6e6e;

}
/* small instructional hint below the tabs */
.page-hint {
    text-align: center;
    font-size: 0.9rem;
    color: #535353;
    /* opacity: 0.7; */
    margin: var(--spacing-sm) 0;
    font-family: Arial, sans-serif;
    background: #f2f2f2;
    padding: 1rem;
    border-radius: 15px;
}

/* Container */
.container {
  max-width: 600px;
  margin: 0 auto;
  padding: var(--spacing-md) var(--spacing-sm);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

/* Quick messages grid */
.quick-messages.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-md);
}

/* Lists */
.icebreaker-list,
.answer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--spacing-sm);
}

.icebreaker-list li button,
.answer-list li button {
  width: 100%;
  padding: var(--spacing-sm);
  background: var(--color-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--spacing-xs);
  font-size: var(--font-base);
  cursor: pointer;
  text-align: center;
  transition: background .2s;
}

.icebreaker-list li button:hover,
.answer-list li button:hover {
  
  color: #000;
  border-color: #000;
  /* Add shadow + lift */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
  transition: box-shadow .2s, transform .1s, background .2s, color .2s, border-color .2s;
}


/* Message input */
.message-input {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

#userInput {
  width: 100%;
  padding: var(--spacing-sm);
  font-size: var(--font-base);
  border: 1px solid var(--color-border);
  border-radius: var(--spacing-xs);
}

#charCount {
  text-align: right;
  font-size: 0.8rem;
  color: var(--color-text);
}

/* Primary button */
.btn-primary {
    background: #121212;
    color: var(--color-secondary);
    /* padding: var(--spacing-sm) var(--spacing-lg); */
    padding: 0.25rem;
    width: 100%;
    /* max-width: 280px; */
    border: none;
    margin-top: 0.5rem;
    border-radius: var(--spacing-xs);
    /* font-size: var(--font-lg); */
    font-size: 1rem;
    transition: background .2s;
}

.btn-primary:hover {
  background: #545454;
}

/* Overlay */
.overlay {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--color-secondary);
  z-index: 999;
  padding: var(--spacing-lg);
}

.overlay.active {
  display: flex;
}

.overlay-back {
  position: absolute;
  top: var(--spacing-sm);
  left: var(--spacing-sm);
  background: var(--color-secondary);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.font-controls {
  position: absolute;
  top: var(--spacing-sm);
  right: var(--spacing-sm);
  display: flex;
  gap: var(--spacing-xs);
}

.font-btn {
  background: var(--color-secondary);
  color: var(--color-text);
  padding: var(--spacing-xs);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  width: 2.75rem;
  height: 2.75rem;
  font-size: var(--font-lg);
}

.font-btn.hint {
  opacity: 0.5;
}

#fullscreenTextWrapper {
  padding: var(--spacing-md);
  text-align: center;
}

#fullscreenText {
  font-family: 'Segoe UI', 'Arial Black';
  font-weight: 900;
  line-height: 1.2;
  font-size: 4rem;
}
/* Game cards */
.game-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.game-list li {
  margin: 1rem 0;
}
.game-link {
  display: block;
  padding: 1rem 1.5rem;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: .5rem;
  text-decoration: none;
  color: inherit;
  font-size: 1.125rem;
  transition: box-shadow .2s, transform .1s;
}
.game-link:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}



/* Responsive */
@media (max-width: 600px) {
  .tab {
    font-size: var(--font-base);
    padding: 0 var(--spacing-sm);
    line-height: 2;
  }
  .branding {
    font-size: var(--font-lg);
  }
  .quick-messages.two-col {
    grid-template-columns: 1fr;
  }
  #fullscreenText {
    font-size: 3rem;
  }
}
