@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@100;400;500;600;700;800&display=swap");

body {
  font-family: "Poppins", sans-serif;
  text-align: center;
  background-image: url("imagen.png/fondo1.jpg");
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  margin: 0;
  padding: 20px;
}
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgb(1, 1, 1, 0.7);
  padding: 0px 10%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
}
.logo {
  font-size: 25px;
  text-transform: uppercase;
  color: #ffffff;
  font-weight: 700;
}
.navigation ul {
  list-style: none;
}
.header .navigation ul li {
  float: left;
  position: relative;
}
.header .navigation ul li a {
  font-size: 18px;
  color: #ffffff;
  text-decoration: none;
  padding: 20px;
  display: block;
  transition: all 0.2s ease;
}
.header .navigation ul li a:hover {
  background-color: #fe615c;
}
.header .navigation ul li ul {
  position: absolute;
  right: 0;
  width: 300px;
  background-color: rgba(1, 1, 1, 0.7);
  display: none;
}

.header .navigation ul li ul li a {
  font-size: 15px;
  text-transform: capitalize;
}
.header .navigation ul li ul li ul {
  position: absolute;
  top: 0;
  right: 300px;
}
.header .navigation ul li ul li {
  width: 100%;
}
.header .navigation ul li:hover > ul {
  display: initial;
}
#toggle,
.header label {
  display: none;
  cursor: pointer;
}
.menu {
  width: 45px;
  height: 35px;
}
@media (max-width: 950px) {
  .header label {
    display: initial;
  }
  .header {
    padding: 20px 10%;
  }
  .header .navigation {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: rgba(1, 1, 1, 0.7);
    display: none;
  }
  .header .navigation ul li {
    width: 100%;
  }
  .header .navigation ul li a {
    padding: 8px 30px 8px 10%;
  }
  .header .navigation ul li ul {
    position: relative;
    width: 100%;
    left: 0;
  }
  .header .navigation ul li ul li {
    background-color: rgba(197, 193, 193, 0.7);
  }
  .header .navigation ul li ul li ul {
    position: relative;
    width: 100%;
    left: 0;
  }
  #toggle:checked ~ .navigation {
    display: block;
  }
}
.container {
  max-width: 1200px;
  margin: 0 auto;
}

h1 {
  color: #333;
  background-color: rgba(255, 255, 255, 0.8);
  padding: 10px;
  border-radius: 8px;
  display: inline-block;
  margin-bottom: 20px;
  margin-top: 100px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.user-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 10px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#user-name {
  font-weight: bold;
  color: #4caf50;
}

.btn-logout {
  background-color: #f44336;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s;
}

.btn-logout:hover {
  background-color: #d32f2f;
}

#crossword {
  display: grid;
  grid-template-columns: repeat(15, 40px);
  grid-template-rows: repeat(15, 40px);
  gap: 2px;
  margin: 20px auto;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  max-width: 95%;
  overflow-x: auto;
}

.cell-container {
  width: 40px;
  height: 40px;
  position: relative;
}

.cell {
  width: 100%;
  height: 100%;
  text-align: center;
  font-size: 22px;
  font-weight: bold;
  border: 1px solid #000;
  background-color: #fff;
  box-sizing: border-box;
  position: relative;
  text-transform: uppercase;
}

.cell:focus {
  outline: none;
  background-color: #e0f7fa;
  border: 2px solid #0077cc;
}

.clue-number {
  position: absolute;
  top: 2px;
  left: 2px;
  font-size: 10px;
  color: #555;
  font-weight: bold;
}

.cell.highlight {
  background-color: #ffeb3b;
}

button#check-answers,
button#reset-crossword {
  margin-top: 20px;
  padding: 12px 25px;
  font-size: 18px;
  background-color: #4caf50;
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  margin-right: 10px;
  margin-left: 10px;
}

button#reset-crossword {
  background-color: #2196f3;
}

button#check-answers:hover {
  background-color: #12c71c;
  transform: scale(1.05);
}

button#reset-crossword:hover {
  background-color: #33d5eb;
  transform: scale(1.05);
}

#result {
  margin-top: 20px;
  font-size: 18px;
  color: #333;
  background-color: rgba(255, 255, 255, 0.8);
  padding: 10px 20px;
  border-radius: 5px;
  display: inline-block;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#clues {
  display: flex;
  justify-content: space-around;
  margin-top: 20px;
  flex-wrap: wrap;
}

.clues-column {
  width: 45%;
  min-width: 300px;
  text-align: left;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  margin-bottom: 15px;
}

.clues-column h2 {
  color: #4caf50;
  border-bottom: 2px solid #4caf50;
  padding-bottom: 5px;
}

.clues-column p {
  font-size: 16px;
  margin: 8px 0;
}

.progress-panel {
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  padding: 15px;
  margin-top: 30px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.progress-panel h3 {
  color: #4caf50;
  margin-top: 0;
  border-bottom: 1px solid #ddd;
  padding-bottom: 10px;
}

#user-stats {
  text-align: left;
  padding: 10px;
}

.timer-container {
  background-color: rgba(255, 255, 255, 0.9);
  padding: 15px;
  border-radius: 5px;
  margin-bottom: 20px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  #crossword {
    grid-template-columns: repeat(15, 30px);
    grid-template-rows: repeat(15, 30px);
    padding: 10px;
  }

  .cell-container {
    width: 30px;
    height: 30px;
  }

  .cell {
    font-size: 16px;
  }

  .clue-number {
    font-size: 8px;
  }

  .clues-column {
    width: 100%;
    margin: 10px 0;
  }
}

@media (min-width: 1200px) {
  #crossword {
    grid-template-columns: repeat(15, 45px);
    grid-template-rows: repeat(15, 45px);
  }

  .cell-container {
    width: 45px;
    height: 45px;
  }

  .cell {
    font-size: 24px;
  }

  .clue-number {
    font-size: 12px;
  }
}
