/* Universal Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', sans-serif;
}

/* Body Styling */
body {
  background: linear-gradient(to bottom right, #ffecb3, #ffe0b2);
  color: #333;
  padding: 1rem;
}

/* Header Styling */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.branding {
  display: flex;
  align-items: center;
}

.logo {
  width: 40px;
  height: auto;
  margin-right: 0.5rem;
}

.name {
  font-weight: bold;
  font-size: 1rem;
  color: #444;
}

.nav-button {
  background-color: #0077cc;
  color: #fff;
  padding: 0.4rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
}

/* Main Heading Styling */
h1 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  text-align: center;
}

/* Button Styling */
button {
  padding: 0.6rem 1rem;
  font-weight: bold;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  background: #00b894;
  color: white;
  transition: background 0.3s;
}

button:hover {
  background: #019374;
}

/* Score Styling */
#score {
  font-weight: bold;
}

/* Match Container */
.match-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
}

/* Column Styling */
.column {
  flex: 1;
  min-width: 45%;
  padding: 1rem;
}

/* Word/Definition Box Styling */
.word-box, .definition-box {
  background: #ffeaa7;
  padding: 0.8rem;
  margin: 0.5rem 0;
  border-radius: 12px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: all 0.2s ease;
}

.word-box:hover, .definition-box:hover {
  background: #fdcb6e;
}

/* Selected and Correct Styles */
.selected {
  background-color: #81ecec !important;
}

.correct {
  background-color: #55efc4 !important;
  pointer-events: none;
}

/* Status Message */
#status {
  text-align: center;
  margin-top: 1rem;
  font-weight: bold;
}

/* Timer Styling */
#timer {
  font-weight: bold;
  color: #333;
}

/* Win Message Styling */
#status.win {
  color: green;
  font-size: 1.2rem;
  margin-top: 1.5rem;
}

@media (max-width: 768px) {
  .match-container {
    flex-direction: column;
    align-items: center;
  }

  .column {
    min-width: 90%;
    padding: 0.5rem;
  }

  .word-box,
  .definition-box {
    font-size: 1rem;
    padding: 1rem;
  }

  header {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .nav-button {
    margin-top: 0.5rem;
  }

  button {
    width: 100%;
    max-width: 300px;
  }
}
