/* Base setup */
body {
  font-family: "Roboto", sans-serif;
  background: url("images/Tavern.jpg") no-repeat center center fixed;
  background-size: cover;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  color: #f5f2e7;
  text-shadow: 1px 1px 2px #000;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45); /* dark overlay */
  z-index: 0;
}

/* Container */
.container {
  position: relative;
  z-index: 1;
  background: rgba(50, 30, 10, 0.95);
  padding: 1rem;
  border-radius: 1.5rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7);
  width: 90%;
  max-width: 700px;      /* wider for squares */
  max-height: 90vh;      /* container height */
  display: flex;
  flex-direction: column;
  overflow: hidden;      /* prevent full container scroll */
  border: 2px solid #a05e2c;
  text-align: center;
}

/* Headings */
h1 {
  font-family: "Roboto Slab", serif;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: #ffcb69;
  text-shadow: 2px 2px 4px #000;
}

.subtitle {
  color: #f5f2e7;
  font-weight: 500;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

/* Game box (input + button) */
.game-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  position: relative;
  width: 100%; /* ensures inner elements like input center properly */
}

/* Input */
input[type="text"] {
  padding: 0.8rem 1rem;
  border: 2px solid #a05e2c;
  border-radius: 0.5rem;
  width: 70%; /* adjust this percentage to fit nicely with heading */
  font-size: 1rem;
  outline: none;
  background: #fff7e6;
  font-weight: 500;
  transition: border-color 0.3s, box-shadow 0.3s;
  text-align: center; /* optional: center text */
}

input[type="text"]:focus {
  border-color: #ffcb69;
  box-shadow: 0 0 8px #ffcb69;
}

/* Button */
button {
  background: #ff8c00;
  color: #fff;
  border: 2px solid #a05e2c;
  padding: 0.8rem 1.5rem;
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: background 0.3s, transform 0.2s;
}

button:hover {
  background: #ffa733;
  transform: scale(1.05);
}

/* Dropdown */
.dropdown {
  border: 2px solid #a05e2c;
  max-height: 180px;
  overflow-y: auto;
  border-radius: 0.5rem;
  margin-top: 0.3rem;
  text-align: left;
  display: none;
  background: #fff7e6;
  position: absolute;
  top: 100%;
  width: 100%;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

.dropdown p {
  padding: 0.7rem 1rem;
  margin: 0;
  cursor: pointer;
  transition: background 0.2s;
  font-weight: 500;
}

.dropdown p:hover {
  background: #ffcb69;
  color: #000;
  font-weight: 700;
}

/* Results */
.results {
  flex: 1 1 auto;
  overflow-y: auto;      /* scroll when content grows */
  margin-top: 1rem;
  padding-right: 4px;    /* for scrollbar spacing */
}

.results p {
  background: #3e2a0c;
  color: #f5f2e7;
  padding: 0.7rem 1rem;
  border-radius: 0.5rem;
  margin: 0.5rem 0;
  text-align: left;
  border: 1px solid #a05e2c;
  font-weight: 500;
}

.results img {
  margin-top: 10px;
  border-radius: 0.5rem;
  width: 200px;
  border: 2px solid #a05e2c;
}

/* Squares */
.squares-row {
  display: flex;
  flex-wrap: nowrap;      /* all squares in one line */
  gap: 4px;
  margin-bottom: 10px;
  justify-content: space-between;
}

.square {
  flex: 1 1 0;
  min-width: 80px;
  height: 100px;
  border-radius: 8px;
  font-weight: bold;
  color: #fff;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.square-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.square img {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: contain;    /* show full image */
  background-color: #222;
  padding: 4px;
}

/* Beer cards (if used) */
.beer-card {
  display: flex;
  align-items: center;
  background: #222;
  color: #fff;
  padding: 10px;
  margin: 10px 0;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: transform 0.2s;
}

.beer-card:hover {
  transform: scale(1.02);
}

.beer-image {
  width: 100px;
  height: auto;
  border-radius: 8px;
  margin-right: 15px;
}

.beer-info p {
  margin: 3px 0;
}

.square-headline {
  font-size: 0.8rem;
  font-weight: bold;
  margin-bottom: 4px;
}

