:root {
  --mainColor: rgb(58, 42, 42);
  --secondaryColor: rgb(0, 0, 0);
  --startColor: green;

  --fewWordsColor: red;
  --goodNumberColor: rgb(223, 194, 140);

  --htmlColor: #e13d3d;
  --cssColor: blue;
  --jsColor: yellow;
  --bootstrapColor: purple;
  --sassColor: rgb(224, 120, 137);
  --reactColor: cyan;
  --gitColor: orange;
  --npmColor: rgb(163, 92, 5);
}
* {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  touch-action: manipulation;
}

@keyframes startButtonShadowAnimation {
  0% {
    box-shadow: 0px 0px 15px -3px var(--startColor);
  }
  25% {
    box-shadow: 0px 0px 15px 1px var(--startColor);
  }
  50% {
    box-shadow: 0px 0px 15px -3px var(--startColor);
  }
  75% {
    box-shadow: 0px 0px 15px 1px var(--startColor);
  }
  100% {
    box-shadow: 0px 0px 15px -3px var(--startColor);
  }
}

@keyframes restartButtonShadowAnimation {
  0% {
    box-shadow: 0px 0px 15px -3px var(--secondaryColor);
  }
  25% {
    box-shadow: 0px 0px 15px 1px var(--secondaryColor);
  }
  50% {
    box-shadow: 0px 0px 15px -3px var(--secondaryColor);
  }
  75% {
    box-shadow: 0px 0px 15px 1px var(--secondaryColor);
  }
  100% {
    box-shadow: 0px 0px 15px -3px var(--secondaryColor);
  }
}

@keyframes showXuxes {
  0% {
    opacity: 1;
  }

  70% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

@keyframes startButton {
  50% {
    opacity: 0.4;
  }
}

html {
  font-family: "Numans", sans-serif;
}

body {
  background-image: url("cuadricula.png");
  background-size: 70px;

  /* background-color: var(--mainColor); */
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  margin: 0;
}

div.cabecera {
  height: 120px;
  width: 100%;
  background-image: url("title.png");
  background-repeat: no-repeat;
  background-size: 90%;
  background-color: #d0e6d9;
  background-position: center;
}

.imgsContainer {
  display: none;
  grid-template-columns: repeat(5, 1fr);
}

header.header {
  display: none;
}

img.menuStart {
  display: none;
  position: fixed;
  top: 0px;
  width: 100%;
}
img.imgPromo {
  display: none;
  position: fixed;
  top: 0px;
  width: 100%;
}
img.imgXuxes {
  display: none;
  animation: showXuxes 5s;
  animation-iteration-count: 1;
  position: fixed;
  top: 0px;
  width: 100%;
}

img.buttonStart {
  display: none;
  animation: startButton 3s ease-out infinite;
  position: fixed;
  width: 140px;
  bottom: 50px;
}

img.animation {
  display: none;
  position: fixed;
  top: 0px;
  width: 100%;
}

h1 {
  color: var(--secondaryColor);
  text-shadow: -1px 0px 3px var(--secondaryColor);
}

p {
  margin-top: 0;
}
p,
h1,
.spanWord,
.btnStartContainer {
  text-align: center;
}

button {
  cursor: pointer;
}

.d_inline {
  display: inline;
}

.d_none {
  display: none;
}

.countContainer {
  display: flex;
}

.initialTxt {
  color: var(--secondaryColor);
  font-size: 20px;
}

.fewWords {
  color: var(--fewWordsColor);
  text-shadow: -1px 0px 6px var(--fewWordsColor);
}

.goodNumberWords {
  color: var(--goodNumberColor);
  text-shadow: -1px 0px 6px var(--goodNumberColor);
}

.lotOfWords {
  color: var(--startColor);
  text-shadow: -1px 0px 6px var(--startColor);
}

.btnStart,
.btnRestart {
  background-color: white;
  border-radius: 15px;
  font-weight: bold;
  padding: 5px 15px 5px 15px;
  transition: all 0.3s;
}

.btnStart {
  animation: startButtonShadowAnimation 3s ease-out infinite;
  border: solid 2px var(--startColor);
  color: var(--startColor);
}

.btnRestart {
  animation: restartButtonShadowAnimation 3s ease-out infinite;
  border: solid 2px var(--secondaryColor);
  color: var(--secondaryColor);
}

.disabledBtnStart {
  color: var(--secondaryColor);
  border: solid 2px var(--secondaryColor);
}

.disabledBtn,
.disabledBtnStart {
  animation: none;
  opacity: 0.3;
  pointer-events: none;
}

.imgsContainer {
  margin-top: 15px;
}

.countContainer,
.imgsContainer,
.imgContainer {
  display: flex;
  justify-content: center;
  align-items: center;
}
.imgContainer {
  flex-direction: column;
  margin: 0 2px 0 2px;
}

.imgContainer img {
  margin-bottom: 5px;
  transition: all 0.3s;
}

.imgWordNotFound {
  opacity: 70%;
  filter: grayscale(100%) brightness(0);
}

.spanWord {
  color: var(--secondaryColor);
}

.wordSearch {
  display: none;
  border: solid;
  border-radius: 20px;
  padding: 20px;
  color: rgb(73, 73, 73);
  margin-top: 25px;
  margin-bottom: 20px;
  transition: all 1.5s;
}

.wordSearchDisabledWin {
  pointer-events: none;
}

.btnLetter {
  background-color: rgba(255, 255, 255, 0);
  border-radius: 5px;
  color: var(--secondaryColor);
  transition: all 0.3s;
}

.btnLetterClicked {
  background-color: rgb(212, 211, 211);
  color: var(--mainColor);
  font-weight: 600;
}

/* Completed word styles */
.txtImgHtml {
  color: var(--htmlColor);
  text-shadow: -1px 0px 1px var(--htmlColor);
}

.txtImgCss {
  color: var(--cssColor);
  text-shadow: -1px 0px 1px var(--cssColor);
}

.txtImgJs {
  color: var(--jsColor);
  text-shadow: -1px 0px 1px var(--jsColor);
}

.txtImgBootstrap {
  color: var(--bootstrapColor);
  text-shadow: -1px 0px 1px var(--bootstrapColor);
}

.txtImgSass {
  color: var(--sassColor);
  text-shadow: -1px 0px 1px var(--sassColor);
}

.txtImgReact {
  color: var(--reactColor);
  text-shadow: -1px 0px 1px var(--reactColor);
}

.txtImgGit {
  color: var(--gitColor);
  text-shadow: -1px 0px 1px var(--gitColor);
}

.txtImgNpm {
  color: var(--npmColor);
  text-shadow: -1px 0px 1px var(--npmColor);
}

.btnWordCompleteHtml,
.btnWordCompleteCss,
.btnWordCompleteJs,
.btnWordCompleteBootstrap,
.btnWordCompleteSass,
.btnWordCompleteReact,
.btnWordCompleteGit,
.btnWordCompleteNpm {
  color: var(--secondaryColor);
  font-weight: 700;
  pointer-events: none;
}

.btnWordCompleteHtml {
  background-color: var(--htmlColor);
  border: solid 2px var(--htmlColor) !important;
  box-shadow: 0px 0px 15px -3px var(--htmlColor);
}

.btnWordCompleteCss {
  background-color: var(--htmlColor);
  border: solid 2px var(--htmlColor) !important;
  box-shadow: 0px 0px 15px -3px var(--htmlColor);
}

.btnWordCompleteJs {
  background-color: var(--htmlColor);
  border: solid 2px var(--htmlColor) !important;
  box-shadow: 0px 0px 15px -3px var(--htmlColor);
}

.btnWordCompleteBootstrap {
  background-color: var(--htmlColor);
  border: solid 2px var(--htmlColor) !important;
  box-shadow: 0px 0px 15px -3px var(--htmlColor);
}

.btnWordCompleteSass {
  background-color: var(--htmlColor);
  border: solid 2px var(--htmlColor) !important;
  box-shadow: 0px 0px 15px -3px var(--htmlColor);
}

.btnWordCompleteReact {
  background-color: var(--reactColor);
  border: solid 2px var(--reactColor) !important;
  box-shadow: 0px 0px 15px -3px var(--reactColor);
}

.btnWordCompleteGit {
  background-color: var(--gitColor);
  border: solid 2px var(--gitColor) !important;
  box-shadow: 0px 0px 15px -3px var(--gitColor);
}

.btnWordCompleteNpm {
  background-color: var(--npmColor);
  border: solid 2px var(--npmColor) !important;
  box-shadow: 0px 0px 15px -3px var(--npmColor);
}

/* Media Queries */

@media (min-width: 280px) {
  h1 {
    font-size: 20px;
  }
  .initialTxt,
  .txtCount {
    font-size: 12px;
  }
  .btnStart,
  .btnRestart {
    font-size: 12px;
  }

  .imgsContainer {
    display: none;
    grid-template-columns: repeat(5, 1fr);
  }

  .imgContainer img {
    width: 45px;
    height: 45px;
  }

  .spanWord {
    font-size: 10px;
  }

  .btnLetter {
    border: none;
    font-size: 14px;
    margin: 0 0.5px 5px 0.5px;
    padding: 0;
    width: 20px;
    height: 20px;
  }
}

@media (min-width: 350px) {
  .btnLetter {
    border: none;
    font-size: 20px;
    margin: 0 2px 5px 2px;
    width: 26px;
    height: 26px;
  }
  .imgContainer img {
    width: 60px;
    height: 60px;
  }
}

@media (min-width: 400px) {
  .btnLetter {
    border: none;
    font-size: 25px;
    margin: 0 2px 5px 2px;
    width: 35px;
    height: 35px;
  }
  .imgContainer img {
    width: 75px;
    height: 75px;
  }
}

@media (min-width: 430px) {
  .btnLetter {
    border: none;
    font-size: 25px;
    margin: 0 2px 5px 2px;
    width: 35px;
    height: 35px;
  }
  img.menuStart {
    position: fixed;
    top: 0px;
    width: 400px;
  }
  img.imgPromo {
    position: fixed;
    top: 0px;
    width: 400px;
  }

  img.imgXuxes {
    animation: showXuxes 3s;
    animation-iteration-count: 1;
    position: fixed;
    top: 0px;
    width: 400px;
  }
}

@media (min-width: 768px) {
  h1 {
    font-size: 32px;
  }
  .initialTxt,
  .txtCount {
    font-size: 20px;
  }

  .btnStart,
  .btnRestart {
    font-size: 16px;
  }

  .imgsContainer {
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: 1fr;
    grid-row-gap: 0px;
  }

  .imgContainer img {
    width: 100px;
    height: 100px;
  }

  .spanWord {
    font-size: 13px;
  }

  .btnLetter {
    border: none;
    font-size: 25px;
    margin: 0 2px 5px 2px;
    width: 48px;
    height: 48px;
  }

  img.menuStart {
    position: fixed;
    top: 0px;
    width: 450px;
  }
  img.imgPromo {
    position: fixed;
    top: 0px;
    width: 450px;
  }

  img.imgXuxes {
    animation: showXuxes 3s;
    animation-iteration-count: 1;
    position: fixed;
    top: 0px;
    width: 450px;
  }

  div.cabecera {
    height: 120px;
    width: 100%;
    background-image: url("title.png");
    background-repeat: no-repeat;
    background-size: 500px;
    background-color: #d0e6d9;
    background-position: center;
  }
}

@media (min-width: 992px) {
  .btnStart:hover {
    background-color: var(--startColor);
    box-shadow: 0px 0px 15px -3px var(--startColor);
  }
  .btnRestart:hover {
    background-color: var(--secondaryColor);
    box-shadow: 0px 0px 15px -3px var(--startColor);
  }

  .btnStart:hover,
  .btnRestart:hover {
    animation: none;
    color: var(--secondaryColor);
  }

  .btnLetter:hover {
    background-color: rgb(218, 218, 218);
    box-shadow: 0px 0px 15px 1px var(--secondaryColor);
  }

  .btnLetterClicked:hover {
    background-color: rgb(231, 229, 229);
  }
  img.menuStart {
    position: fixed;
    top: -60px;
    width: 500px;
  }
  img.imgPromo {
    position: fixed;
    top: -60px;
    width: 500px;
  }
  img.imgXuxes {
    animation: showXuxes 3s;
    animation-iteration-count: 1;
    position: fixed;
    top: -60px;
    width: 500px;
  }
}
