/* Header Styles */
:root {
    --primary-color: #77dd77;
    --secondary-color: #a8e6cf;
    --accent-color: #dcedc1;
    --light-color: #e8f5e9;
    --text-color: #2e7d32;
    --white: #ffffff;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg,#77dd77,  #a8e6cf);
  padding: 0 10%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-bottom: 2px solid #fff;
  transition: all 0.3s ease;
  height: 70px;
}

.header:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.logo {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
  letter-spacing: 1px;
}

.navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.header .navigation ul li {
  float: left;
  position: relative;
}

.header .navigation ul li a {
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  padding: 22px 20px;
  display: block;
  transition: all 0.3s ease;
}

.header .navigation ul li a:hover {
  background-color: rgba(255, 255, 255, 0.733);
  transform: translateY(-2px);
  color: #333;
}

#toggle,
.header label {
  display: none;
  cursor: pointer;
}

.menu {
  width: 28px;
  height: 28px;
  filter: brightness(0) invert(1);
}

@media (max-width: 950px) {
  .header label {
    display: initial;
  }

  .header {
    padding: 15px 10%;
  }

  .header .navigation {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #4a6fa5;
    display: none;
    border-radius: 0 0 12px 12px;
  }

  .header .navigation ul li {
    width: 100%;
  }

  .header .navigation ul li a {
    padding: 12px 20px;
  }

  #toggle:checked ~ .navigation {
    display: block;
    animation: slideDown 0.4s ease-out;
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* General styles */
body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 80px 20px 20px 20px;
  background-color: #f5f5f5;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

h1 {
  color: #166088;
  text-align: center;
  margin-bottom: 30px;
}

h3 {
  color: #4a6fa5;
  margin-top: 0;
}

/* Table styles */
.verb-tables {
  display: grid;
  gap: 30px;
  margin-bottom: 40px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

th, td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

th {
  background-color: #4a6fa5;
  color: white;
  font-weight: 600;
}

tr:hover {
  background-color: #f9f9f9;
}

/* Button styles */
.start-button {
  display: block;
  width: 200px;
  margin: 30px auto;
  padding: 15px;
  background-color: #4fc3a1;
  color: white;
  border: none;
  border-radius: 25px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.start-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(79, 195, 161, 0.4);
}

/* Instructions box */
.instructions {
  background: #e8f4fc;
  padding: 20px;
  border-radius: 10px;
  margin-top: 30px;
}

/* Game specific styles */
.game-container {
  max-width: 1200px;
  margin: 0 auto;
}

.game-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 20px;
}

.score-board {
  background: white;
  padding: 15px 25px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  font-size: 20px;
  font-weight: 600;
  color: #4a6fa5;
}

.tables-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.table-wrapper {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.blank {
  background-color: #f0f8ff;
  border: 2px dashed #4a6fa5;
  color: transparent;
  position: relative;
  min-height: 50px;
}

.blank:hover {
  background-color: #e6f2ff;
}

.answers-container {
  background: white;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  margin-bottom: 30px;
}

.answers-title {
  color: #166088;
  margin-top: 0;
  margin-bottom: 20px;
}

.answers-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.answer {
  padding: 12px 20px;
  background-color: #4fc3a1;
  color: white;
  border-radius: 25px;
  cursor: grab;
  user-select: none;
  font-weight: 600;
  transition: transform 0.2s ease;
}

.answer:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.answer:active {
  cursor: grabbing;
  transform: translateY(-1px);
}

.used {
  opacity: 0.5;
  cursor: not-allowed;
}

.used:hover {
  transform: none;
  box-shadow: none;
}

.check-button {
  display: block;
  width: 200px;
  margin: 30px auto;
  padding: 15px;
  background-color: #4a6fa5;
  color: white;
  border: none;
  border-radius: 25px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.check-button:hover {
  background-color: #166088;
}

.message {
  text-align: center;
  padding: 15px;
  background-color: #e8f4fc;
  border-radius: 10px;
  margin-top: 20px;
  font-weight: 600;
}

/* About page styles */
.about-container {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.about-content {
  line-height: 1.8;
}

.verb-list {
  background: #f0f8ff;
  padding: 20px;
  border-radius: 10px;
  margin: 20px 0;
}

.verb-list ul {
  columns: 2;
  list-style: none;
  padding: 0;
}

.verb-list li {
  padding: 5px 0;
  border-bottom: 1px dashed #ddd;
}

.back-button {
  text-align: center;
  margin-top: 30px;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: #4fc3a1;
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  transition: transform 0.3s ease;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(79, 195, 161, 0.4);
}