body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #e8e5da;
  color: #304c89;
  display: flex;
  flex-direction: column;
  align-items: center;
}

nav {
  width: 100%;
  background-color: #648de5;
  color: #fff;
  padding: 15px 0;
  margin-bottom: 30px;
  display: flex;
  justify-content: center;
  gap: 30px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

nav a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
}

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

/* CENTERED CONTENT WRAPPER */
.main-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 20px 40px 20px;
  width: 100%;
  max-width: 1200px;
}

/* DIFFICULTY BOX STYLING */
.difficulty-box {
  margin: 10px;
  padding: 15px;
  background: #eee;
  border-radius: 8px;
  text-align: center;
  border: 1px solid #ccc;
}

h1 {
  font-family: fantasy;
  color: #304c89;
  text-align: center;
  font-size: 50px;
  margin-bottom: 5px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

h2 {
  color: #648de5;
  border-bottom: 2px solid #cdc392;
  padding-bottom: 5px;
  margin-top: 25px;
}

.bingo-board {
  display: grid;
  grid-template-columns: repeat(5, 60px);
  grid-template-rows: repeat(5, 60px);
  gap: 5px;
  margin-bottom: 20px;
  border: 4px solid #304c89;
  padding: 8px;
  background-color: #fff;
  box-shadow: 0 6px 12px rgba(48, 76, 137, 0.2);
  border-radius: 4px;
}

.bingo-cell {
  width: 60px;
  height: 60px;
  background: #fff;
  border: 1px solid #9eb7e5;
  color: #304c89;
  font-size: 20px;
  font-weight: 600;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.current-number {
  font-size: 48px;
  font-weight: bold;
  margin: 15px auto;
  padding: 10px 30px;
  background-color: #304c89;
  color: #e8e5da;
  border-radius: 12px;
  min-width: 100px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

button {
  background-color: #648de5;
  border: none;
  color: white;
  padding: 12px 24px;
  text-align: center;
  font-size: 16px;
  font-weight: bold;
  margin: 5px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s;
}

button:hover:not(:disabled) {
  background-color: #304c89;
}

button:disabled {
  background-color: #b8c1d6;
  cursor: not-allowed;
}

.highlighted {
  background-color: #9eb7e5;
  color: #304c89;
  border: 2px solid #648de5;
}

.marked {
  background-color: #304c89;
  color: #fff;
  font-weight: bold;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);
}

.free-space {
  background-color: #cdc392 !important;
  color: #304c89 !important;
  font-weight: bold;
  border: 2px solid #304c89;
}

.winner {
  animation: pop 0.6s ease;
  background-color: #648de5;
  color: white;
  box-shadow: 0 0 20px #9eb7e5;
  border: 3px solid #304c89;
  z-index: 10;
}

@keyframes pop {
  0% {
    transform: scale(0.9);
  }
  60% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.status {
  font-weight: bold;
  margin-bottom: 10px;
  font-size: 1.2em;
}

.drawn-list {
  border: 2px solid #cdc392;
  padding: 10px;
  border-radius: 8px;
  max-height: 80px;
  overflow-y: auto;
  background-color: #fff;
  margin-bottom: 15px;
  color: #648de5;
  width: 300px;
}

.status-container {
  display: flex;
  justify-content: space-between;
  width: 320px;
  align-items: center;
}

.timer-display {
  font-weight: bold;
  font-family: "Courier New", Courier, monospace;
  font-size: 1.2rem;
  background: #fff;
  padding: 2px 8px;
  border-radius: 4px;
}

.shake {
  animation: shake 0.3s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes shake {
  10%,
  90% {
    transform: translate3d(-1px, 0, 0);
  }
  20%,
  80% {
    transform: translate3d(2px, 0, 0);
  }
  30%,
  50%,
  70% {
    transform: translate3d(-4px, 0, 0);
  }
  40%,
  60% {
    transform: translate3d(4px, 0, 0);
  }
}

.instructions-card {
  background-color: #fff;
  padding: 30px;
  border-radius: 12px;
  border: 2px solid #cdc392;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  max-width: 700px;
  text-align: left;
  line-height: 1.6;
}

.instructions-card h3 {
  color: #304c89;
  margin-top: 20px;
  border-left: 4px solid #648de5;
  padding-left: 10px;
}

.instructions-card ul {
  padding-left: 20px;
}

.button-link {
  background-color: #648de5;
  color: white;
  padding: 15px 30px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 6px;
  transition: background 0.3s;
  display: inline-block;
}

.button-link:hover {
  background-color: #304c89;
}

footer {
  margin-top: 50px;
  font-size: 0.9rem;
  color: #666;
}

footer a {
  color: #648de5;
  text-decoration: none;
}
