@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@100;400;500;600;700;800&display=swap");


body {
  background-color: gray;
  background-image: url(imagen.png/is.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
  font-family: "Poppins", sans-serif;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: #ffe6e6ba(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;
  }
}

h1 {
  text-align: center;
  color: #fff;
  text-shadow: 2px 2px 4px #000;
  margin-bottom: 40px;
  margin-top: 100px;
}

#instructions {
  background-color: rgba(255, 255, 255, 0.8);
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 20px;
}

#instructions h2 {
  margin-top: 0;
  color: #333;
}

#instructions ol {
  padding-left: 20px;
}

#instructions li {
  margin-bottom: 8px;
}

#wordSearchContainer {
  display: grid;
  grid-template-columns: repeat(30px, 25px);
  gap: 2px;
  max-width: 540px;
  margin: 0 auto;
  padding: 10px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 10px;
}

#wordSearchContainer div {
  width: 25px;
  height: 25px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f0f0f0;
  cursor: pointer;
  border: 1px solid black;
  font-weight: bold;
}

#wordsList {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin: 40px auto;
  padding: 10px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 10px;
  max-width: 600px;
}

#wordsList div {
  padding: 5px 10px;
  background-color: #f0f0f0;
  border-radius: 5px;
  font-weight: bold;
}

#generateNew {
  display: block;
  margin: 20px auto;
  padding: 10px 20px;
  background-color: #3777ee;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s ease, transform 0.2s;
}

#generateNew:hover {
  background-color: #508ee0;
  transform: scale(1.1);
}

.selected {
  background-color: rgb(181, 255, 159) !important;
}

.found {
  background-color: green !important;
  color: white !important;
}

#wordsList div.found {
  text-decoration: line-through;
  opacity: 0.7;
}
