
*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Georgia, serif;
    background-color: #FEFAE0;
    color: #3a2e1e;
}

/* Headers */
header {
    background-color: #CCD5AE;
    border-bottom: 4px solid #D4A373;
    padding: 20px 40px;
    text-align: center;
}

header h1 {
  font-size: 2.7rem;
  letter-spacing: 1px;
}

header p {
  font-size: 1.1rem;
  color: #5a4a30;
  margin-top: 6px;
}


/* Navigation */

nav {
  background-color: #D4A373;
  padding: 0 40px;
  display: flex;
  gap: 2px;
}

nav a {
  display: inline-block;
  color: #FEFAE0;
  text-decoration: none;
  padding: 10px 18px;
  font-size: 0.95rem;
  font-family: Arial, sans-serif;
}

nav a:hover {
  background-color: #b8895a;
}

nav a.active {
  background-color: #9a7044;
}

/* Main */

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 36px 24px;
}
  
/* section block */
.block {
    margin-bottom: 44px;
}

.block h2 {
  font-size: 1.5rem;
  color: #5a3e1b;
  margin-bottom: 14px;
  border-bottom: 2px solid #E9EDC9;
  padding-bottom: 6px;
}

.block h3 {
  font-size: 1.2rem;
  color: #5a3e1b;
  margin-bottom: 10px;
}

.block p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #4a3b27;
}

/* --- displayboard --- */

.displayboard {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  
}

.displayboard img {
  width: 200px;
  object-fit: cover;
  display: block;
  border: 2px solid #D4A373;
  flex-shrink: 0;
}

.displayboardInfo h2 {
  font-size: 1.9rem;
  margin-bottom: 8px;
  color: #5a3e1b;
  border: none;
  padding: 0;
}

.meta {
  font-family: Arial, sans-serif;
  font-size: 0.85rem;
  color: #6a5840;
  margin-bottom: 14px;
}

.meta span {
  margin-right: 14px;
}

.scoreBadge {
  display: inline-block;
  background-color: #D4A373;
  color: #FEFAE0;
  font-size: 1.4rem;
  font-weight: bold;
  padding: 7px 18px;
  margin-bottom: 14px;
  font-family: Arial, sans-serif;
}

.displayboardInfo p {
  line-height: 1.7;
  font-size: 0.95rem;
  color: #4a3b27;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  background-color: #FAEDCD;
}

th {
  background-color: #CCD5AE;
  font-family: Arial, sans-serif;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 10px 14px;
  border: 1px solid #D4A373;
  text-align: center;

}
td {
  padding: 10px 14px;
  border: 1px solid #D4A373;
  font-size: 0.92rem;
  vertical-align: middle;
  text-align: center;
}

/* col color hints via colgroup classes */
col.colorRank   { background-color: #E9EDC9; }
col.colorTitle  { background-color: #FEFAE0; }
col.colorYear   { background-color: #E9EDC9; }
col.colorRating { background-color: #f5e4bc; }
col.colorLink   { background-color: #FAEDCD; }

/* stat label cells */
td.labelCell {
  font-family: Arial, sans-serif;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  background-color: #CCD5AE;
  width: 32%;
  color: #3a2e1e;
}

table a {
  color: #7a4f1e;
  text-decoration: none;
}

table a:hover {
  text-decoration: underline;
}

.score {
  font-size: 0.82rem;
  color: #6a5840;
}

/* trailer video */
.videoWrap {
  background-color: #E9EDC9;
  border: 2px solid #D4A373;
  padding: 16px;
  display: inline-block;
  width: 100%;
}

.videoWrap video {
  display: block;
  width: 100%;
  max-width: 640px;
  max-height: 640px;
  margin: 0 auto;
}

/* movie posters */

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

.card {
  background-color: #FAEDCD;
  border: 1px solid #D4A373;
  padding: 18px;
}

.card img {
  width: 100%;
  object-fit: cover;
  display: block;
}

.card h3 {
  margin-top: 12px;
  font-size: 1.05rem;
}

.badge {
  display: inline-block;
  background-color: #CCD5AE;
  color: #3a2e1e;
  padding: 2px 8px;
  font-size: 0.78rem;
  margin-top: 6px;
  font-family: Arial, sans-serif;
}


.cardLink {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.88rem;
  color: #7a4f1e;
  text-decoration: none;
  border-bottom: 1px solid #D4A373;
}

.cardLink:hover {
  color: #3a2e1e;
}

/* friends review comments*/

.reviewBox {
  background-color: #E9EDC9;
  border: 1px solid #D4A373;
  padding: 14px 16px;
  margin-bottom: 12px;
}

.reviewer {
  font-weight: bold;
  font-size: 0.9rem;
  font-family: Arial, sans-serif;
  margin-bottom: 6px;
  color: #5a3e1b;
}

.reviewBox [contenteditable="true"] {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #3a2e1e;
  outline: none;
  border-bottom: 1px dashed #D4A373;
  padding-bottom: 4px;
  min-height: 1.4em;
  display: block;
}

.reviewBox [contenteditable="true"]:focus {
  background-color: #fffdf4;
  border-bottom: 1px solid #b8895a;
}

/* Footer */
footer {
    background-color: #CCD5AE;
    border-top: 4px solid #D4A373;
    padding: 20px 40px;
    font-size: 0.95rem;
    text-align: center;
    color: #4a3b27;
    font-family: Arial, sans-serif;
}

footer a {
  color: #7a4f1e;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}