/* Base */
body {
  margin: 0 auto;
  background-color: #94ee9b;
  overflow-x: hidden;
  font-family: "Comic Sans MS", cursive, sans-serif;
  font-size: 1rem;
}

/* Navigation Bar */
nav {
  margin: 0 auto;
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 1rem 2rem;
  background-color: darkgreen;
  box-shadow: 0 0.125rem 0.375rem rgba(0, 0, 0, 0.3);
}

nav .logo {
  height: 5rem;
  box-shadow: 0.125rem 0.125rem 0.3125rem rgba(0, 0, 0, 0.5);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2.25rem;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  justify-content: center;
}

nav ul li a {
  font-family: "Comic Sans MS", cursive, sans-serif;
  color: #caf0a7;
  text-decoration: underline;
  font-size: 1.5rem;
  font-weight: 800;
  padding: 0.4rem 0.75rem;
  border-radius: 0.375rem;
  transition: background-color 0.3s ease, color 0.3s ease;
  text-shadow: 0.0625rem 0.0625rem 0.125rem rgba(0, 0, 0, 0.6);
}

nav ul li a:hover {
  color: #93c5fd;
  text-shadow: 0.0625rem 0.0625rem 0.125rem rgba(0, 0, 0, 0.8);
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #9acd32;
  padding: 0.5rem 0;
  min-width: 11.25rem;
  border-radius: 0.375rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.3);
  opacity: 0;
  pointer-events: none;
  transform: translateY(0.5rem);
  transition: all 0.3s ease;
}


/* Welcome Section */
.welcome-section {
  margin-top: -3rem;
  text-align: center;
  padding: 3rem 1rem; 
}

.welcome-section h1 {
  font-size: 3rem;
  color: forestgreen;
  font-weight: 900;
  margin-bottom: 0.75rem; 
}

/* Instructions */
.Instructions p{
  text-align: center;
  padding-left: 15%;
  padding-right: 15%;
  margin-top: -1rem; 
  color: darkgreen;
  font-size: 1.5rem;
  display: flex;
}

/* Game Grid */
.book-grid {
  margin: 0 auto;   
  display: grid;
  grid-template-columns: repeat(3, 0.2fr);
  gap: 1.5rem;
  padding: 2rem 4rem;
  justify-items: center;
  justify-content: center;
  margin-bottom: 3%;
}

.book-card {
  background-color: #b4e9bf;
  border-radius: 0.75rem;
  box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
  padding: 1rem;
  width: 100%;
  max-width: 18rem;
  max-height: 25rem;
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;      
  justify-content: center; 
  text-align: center;
  transition: transform 0.2s ease;
}

.book-card:hover {
  transform: scale(1.1); 
  z-index: 10;   
}

.book-card a {
  text-decoration: none;   
  color: inherit;         
}

.book-card h3 {
  padding-bottom: 2rem;
  color: darkgreen;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.book-card img {
  width: 10rem;
  height: 15rem;
  display: block;
  margin: 0.5rem auto 0;
  border-radius: 0.5rem;
}


/* Summary Box */
.summary-box {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 30rem;
  padding: 1.5rem;
  background: #caf0a7;
  border-radius: 1rem;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  transform: translate(-50%, -40%);
  text-align: center;
  z-index: 10000;
}

.summary-box p {
  margin-bottom: 1rem;
  color: #234d20;
  font-size: 1.5rem;
}

.summary-box button {
  background-color: forestgreen;
  border: none;
  color: white;
  padding: 0.5rem 1rem;
  margin: 0.25rem;
  border-radius: 0.5rem;
  font-size: 1.5rem;
  cursor: pointer;
  font-family: "Comic Sans MS", cursive, sans-serif;
}

.summary-box button:hover {
  background-color: #1a3a12;
}

@media (max-width: 1200px) {
 body {
  scale: 0.8;
 }
}