* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

:root {
  --primary-color: #2041ff;
  --secondary-color: #6ea3ff;
  --accent-color: #ffffff;
  --light-color: #aff3ff;
  --text-color: #000000;
  --white: #ffffff;
  --error-color: #fe615c;
  --success-color: #66cc99;
  --card-bg: rgba(255, 255, 255, 0.9);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Header styles */
.header-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  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;
}

.header-menu:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.logo {
  font-size: 28px;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  color: var(--white);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
  letter-spacing: 1px;
}

.navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

.header-menu .navigation ul li {
  position: relative;
}

.header-menu .navigation ul li a {
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--white);
  text-decoration: none;
  padding: 22px 20px;
  display: block;
  transition: all 0.3s ease;
}

.header-menu .navigation ul li a:hover {
  background-color: rgba(255, 255, 255, 0.733);
  transform: translateY(-2px);
  color: var(--primary-color);
}

#toggle,
.header-menu label {
  display: none;
  cursor: pointer;
}

.menu {
  width: 28px;
  height: 28px;
  filter: brightness(0) invert(1);
}

@media (max-width: 950px) {
  .header-menu label {
    display: initial;
  }

  .header-menu {
    padding: 15px 10%;
  }

  .header-menu .navigation {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--primary-color);
    display: none;
    border-radius: 0 0 12px 12px;
  }

  .header-menu .navigation ul {
    flex-direction: column;
  }

  .header-menu .navigation ul li {
    width: 100%;
  }

  .header-menu .navigation ul li a {
    padding: 12px 20px;
  }

  #toggle:checked ~ .navigation {
    display: block;
    animation: slideDown 0.4s ease-out;
  }
}

/* Body styles */
body {
  font-family: "Poppins", sans-serif;
  background: linear-gradient(135deg, hsl(215, 100%, 86%), #3b97ff, #5c9bee);
  margin: 0;
  padding: 0;
  padding-top: 80px;
  min-height: 100vh;
  color: var(--text-color);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Game styles */
.game-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

h1 {
  color: var(--white);
  text-align: center;
  text-transform: uppercase;
  font-size: 2.5rem;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.instructions {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: var(--shadow);
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.6;
}

.container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 30px;
}

.column {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 20px;
  width: 45%;
  min-width: 300px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.column:hover {
  transform: translateY(-5px);
}

.column h2 {
  color: var(--primary-color);
  margin-bottom: 15px;
  text-align: center;
  font-size: 1.5rem;
  border-bottom: 2px solid var(--light-color);
  padding-bottom: 10px;
}

.situation,
.advice {
  padding: 12px 15px;
  margin: 10px 0;
  border-radius: 8px;
  cursor: grab;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.situation {
  background-color: #e3f2fd;
  border-left: 5px solid #2196f3;
}

.situation:hover {
  background-color: #bbdefb;
  transform: translateX(5px);
}

.advice {
  background-color: #fff8e1;
  border-left: 5px solid #ffc107;
}

.advice:hover {
  background-color: #ffecb3;
  transform: translateX(5px);
}

.matches {
  margin-top: 30px;
  background-color: var(--card-bg);
  padding: 20px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.matches h2 {
  color: var(--primary-color);
  margin-bottom: 15px;
  text-align: center;
  font-size: 1.5rem;
}

.match {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  margin: 8px 0;
  background-color: #e8f5e9;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.match:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.correct {
  background-color: #c8e6c9 !important;
  border-left: 5px solid var(--success-color);
}

.incorrect {
  background-color: #ffcdd2 !important;
  border-left: 5px solid var(--error-color);
}

.dragging {
  opacity: 0.5;
  transform: scale(0.98);
}

.button-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 30px 0;
}

button {
  padding: 12px 25px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

button:active {
  transform: translateY(1px);
}

#reset-btn {
  background: linear-gradient(135deg, #ff5252, #ff7675);
}

.result {
  text-align: center;
  font-weight: bold;
  margin-top: 20px;
  padding: 15px;
  border-radius: 8px;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.success-message {
  background-color: var(--success-color);
  color: white;
  padding: 20px;
  border-radius: 12px;
  margin-top: 20px;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 600;
  box-shadow: var(--shadow);
  display: none;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.confetti {
  position: fixed;
  width: 10px;
  height: 10px;
  background-color: #f00;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1000;
}

@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }

  .column {
    width: 100%;
  }

  h1 {
    font-size: 2rem;
  }
}
