/* This file controls how the site LOOKS: colors, sizes, spacing. */

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #101820;
  color: #eeeeee;
}

header {
  background: #1b5e20;      /* Godzilla green! Try changing this color. */
  text-align: center;
  padding: 24px 16px;
}

header h1 { margin: 0; font-size: 2.2rem; }

main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 16px;
}

#search {
  width: 100%;
  box-sizing: border-box;
  padding: 12px;
  font-size: 1.1rem;
  border-radius: 8px;
  border: none;
}

.era-title {
  margin: 32px 0 12px;
  padding-bottom: 6px;
  border-bottom: 4px solid;
}
.era-title small { color: #aaaaaa; font-weight: normal; font-size: 0.6em; margin-left: 8px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.card {
  background: #1f2d3a;
  border-top: 6px solid;
  border-radius: 8px;
  padding: 12px;
}

.card h3 { margin: 10px 0 4px; font-size: 1.1rem; color: #81c784; }
.year { color: #aaaaaa; margin-top: 0; }

/* Posters */
.poster {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 6px;
  object-fit: cover;
  display: block;
}
.poster.fake {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  padding: 14px;
  text-align: center;
}
.big-year { font-size: 2.4rem; font-weight: bold; opacity: 0.85; }
.big-emoji { font-size: 4rem; }
.poster-title { font-size: 1.2rem; font-weight: bold; text-transform: uppercase; }

footer { text-align: center; padding: 24px; color: #888888; }

/* Votes and facts */
.vote { margin-top: 8px; padding: 8px 12px; font-size: 1rem; border: none; border-radius: 6px; cursor: pointer; }
.card h4 { margin: 12px 0 4px; }
.facts ul { padding-left: 18px; margin: 4px 0 8px; font-size: 0.9rem; }
.facts input { width: 60%; padding: 6px; border-radius: 6px; border: none; }
.facts button { padding: 6px 10px; border: none; border-radius: 6px; cursor: pointer; }
#favorites h2 { margin-bottom: 4px; color: #ff8a80; }

/* Links and the Sizes page */
header a { color: #ffffff; font-weight: bold; }
.sort-buttons { margin-bottom: 16px; }
.sort-buttons button { padding: 8px 12px; margin: 4px 4px 4px 0; border: none; border-radius: 6px; cursor: pointer; font-size: 1rem; }
.size-row { margin-bottom: 10px; }
.size-label { font-size: 0.9rem; margin-bottom: 2px; }
.size-track { background: #1f2d3a; border-radius: 6px; }
.size-bar { min-width: 60px; padding: 4px 8px; box-sizing: border-box; border-radius: 6px; font-weight: bold; font-size: 0.9rem; }
.note { color: #aaaaaa; margin-top: 24px; }

/* Cards link to the detail page */
.card-link { color: inherit; text-decoration: none; display: block; }
.card-link:hover h3 { text-decoration: underline; }

/* Movie detail page */
.detail-top { display: flex; gap: 24px; flex-wrap: wrap; margin-bottom: 16px; }
.detail-poster { width: 240px; max-width: 100%; }
.detail-info { flex: 1; min-width: 240px; }
.detail-title { margin-top: 0; color: #81c784; font-size: 1.8rem; }
.detail-box { background: #1f2d3a; border-radius: 8px; padding: 12px 16px; margin-bottom: 16px; }
.detail-box h2 { margin-top: 0; }
.monster-list { padding-left: 20px; }
.cast-table { width: 100%; border-collapse: collapse; }
.cast-table th, .cast-table td { text-align: left; padding: 6px 8px; border-bottom: 1px solid #33444f; }

/* Main page banner: picture behind the title */
header.banner {
  background:
    linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)),
    #b01c22 url("images/header-banner.webp") no-repeat 70% 35% / cover;
  padding: 48px 16px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
}
