/* Estilos gerais */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  height: 100%;
}

body {
  background-color: #000;
  color: #fff;
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  overflow: hidden; /* evita scroll em totem */
  user-select: none; /* evita seleção de texto na tela touch */
  /* cursor: none; */ /* descomente se quiser esconder o cursor no totem */
}

.app-container {
  width: 100%;
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

/* Telas (galeria / vídeo) */
.screen {
  width: 100%;
  height: 100%;
  display: none;
  flex-direction: column;
}

.screen.active {
  display: flex;
}

/* Cabeçalho */
.app-header {
  padding: 0px 0px 0px; /* um pouco menor pra sobrar mais área vertical */
}

.app-header h1 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.app-header p {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 300;
  opacity: 0.8;
}

/* Centralizar título e subtítulo */
.header-center {
  text-align: center;
}

/* Área principal */
.app-main {
  flex: 1;
  padding: 8px 10px 10px; /* reduzido pra caber melhor as 3 linhas */
  display: flex;
}

/* Grid de galeria: 12 colunas x 3 linhas */
.gallery-grid {
  width: 100%;
  height: 95%;
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: 4px; /* gap menor pra ganhar espaço útil */
}

/* Botão com a foto do presidente */
.president-card {
  background: #111;
  border-radius: 12px;
  padding: 0px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  border: 1px solid #222;
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out,
    border-color 0.15s ease-out;
  width: 100%;
  height: 95%;
  overflow: hidden;            /* impede que conteúdo "estoure" a linha */
}

.president-card:active {
  transform: scale(0.97);
  box-shadow: 0 0 0 2px #fff;
  border-color: #fff;
}

/* Foto ocupa o espaço disponível do card */
.president-image-wrapper {
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #222;
  display: flex;
  align-items: center;
  justify-content: center;
}

.president-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Texto abaixo da foto */
.president-label {
  padding-top: 2px;
  text-align: center;
  line-height: 1.1;
  flex: 0 0 auto;
}

/* fontes menores e responsivas pra caber bem nas 3 linhas x 12 colunas */
.president-year {
  font-size: 3px;  /* em 1920px ≈ 14–15px */
  font-weight: 400;
  color: #fff;
  white-space: nowrap;
}

.president-name {
  font-size: 3px;
  font-weight: 400;
  color: #fff;
  white-space: nowrap;
}

/* Tela de vídeo */
.video-header h1 {
  font-size: 12px;
  font-weight: 300;
}

/* Área do vídeo */
.video-main {
  align-items: center;
  justify-content: center;
}

.video-wrapper {
  width: 100%;
  max-width: 880px;
  background: #111;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #222;
  display: flex;
  flex-direction: column;
}

.video-player {
  width: 100%;
  height: 100%;
}

/* Controles abaixo do vídeo */
.video-controls {
  width: 100%;
  padding: 4px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between; /* esquerda e direita */
  gap: 4px;
  background-color: #111;
  border-top: 1px solid #222;
}

.nav-btn {
  background: #111;
  border-radius: 999px;
  border: 1px solid #444;
  color: #fff;
  font-size: 8px;
  font-weight: 150;
  padding: 4px 12px;
  cursor: pointer;
  min-width: 60px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: transform 0.1s ease-out, box-shadow 0.1s ease-out,
    border-color 0.1s ease-out;
}

.video-info {
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.video-buttons {
  display: flex;
  gap: 4px;
}

.nav-btn:active {
  transform: scale(0.8);
  border-color: #fff;
  box-shadow: 0 0 0 2px #fff;
}


