/* 1. Font Face */
@font-face {
  font-family: "Zen Dots";
  src: url("./fonts/ZenDots-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

/* 2. Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-image: url("img/outer-space.png");
  background-color: black;
  background-repeat: no-repeat;
  background-position: center center;
  background-attachment: fixed;
  background-size: cover;
  overflow: hidden;
}

/* 3. Main layout */
#hugeContainer {
  height: 90vh;
  display: flex;
  justify-content: center;
  justify-content: space;
  align-items: center;
  flex-direction: column;
  padding-bottom: 58px;
}

.container {
  display: flex;
}

.main {
  height: 25vh;
  width: 50vw;
  flex-direction: column;
  gap: 4vh;
}

.uiMove {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  gap: 2vw;
  width: 50vw;
  height: 25vh;
}

.uiMove > button {
  background: transparent;
  border: none;
  margin: 0;
  padding: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.score {
  justify-content: space-around;
  font-family: "Zen Dots", sans-serif;
  font-size: 1.3em;
  color: black;
}

.result {
  flex-direction: column;
  justify-content: space-around;
  font-family: "Zen Dots", sans-serif;
  font-size: 1.2em;
  gap: 1em;
  width: 50vw;
  height: 25vh;
}

.result .winTxt {
  color: cyan;
  text-shadow: 0 0 5px white, 0 0 10px blue, 0 0 15px darkcyan, 0 0 20px teal, 0 0 25px black;
}

.tryAgain button {
  font-family: "Zen Dots", sans-serif;
  color: black;
  font-size: 2rem;
  padding: 3px 6px;
  border-radius: 5em;
  border: 5px solid black;
  animation: fade-inout 2s infinite alternate;
  transition: 0.4s;
  margin-bottom: 2vh;
}

.tryAgain {
  display: flex;
  color: black;
  justify-content: center;
}

.tryAgain > button {
  background-color: lightblue;
  text-shadow: 0 0 5px white, 0 0 10px blue, 0 0 15px darkblue, 0 0 20px darkblue, 0 0 25px black;
}

.tryAgain > button:hover {
  cursor: pointer;
  font-size: 3rem;
}

.resultGame,
.gameEnd {
  font-size: 1.6em;
  text-align: center;
  text-shadow: 0 0 5px white, 0 0 10px blue, 0 0 15px blue, 0 0 20px darkblue, 0 0 25px black;
}

@keyframes fade-inout {
  0% { opacity: 1; }
  100% { opacity: 0.1; }
}

.makeMove {
  animation: fade-inout 3s infinite alternate;
  font-family: "Zen Dots", sans-serif;
  font-size: 4em;
  text-shadow: 0 0 5px white, 0 0 10px darkmagenta, 0 0 15px darkmagenta;
  text-align: center;
  color: black;
}

.resultGame{
  text-shadow: 0 0 5px white, 0 0 10px darkorange, 0 0 15px darkorange, 0 0 20px darkorange, 0 0 25px darkorange;
}

.gameEnd {
  text-shadow: 0 5px white, 0 0 10px #66ffe0, 0 0 15px #33ffe6, 0 0 20px #00ffd0, 0 0 25px #00ffd0;
}

.score,
footer {
  text-shadow: 0 0 5px white, 0 0 10px darkmagenta, 0 0 15px darkmagenta, 0 0 20px darkmagenta, 0 0 25px darkmagenta;
}

img {
  height: 25vh;
  filter: drop-shadow(0 0 0.75rem yellow) drop-shadow(0 0 0.75em darkblue);
  transition: 0.3s;
}

img:hover {
  cursor: pointer;
  height: 27vh;
  filter: drop-shadow(0 0 0.9rem blue) drop-shadow(0 0 0.9em darkblue);
}

/* 4. Footer */
footer {
  font-family: "Zen Dots", Arial, sans-serif;
  font-size: 1em;
  position: fixed;
  left: 0;
  width: 100%;
  height: 10vh;
  bottom: 12px;
  text-align: center;
}

a:link,
a:visited,
a:hover,
a:active {
  color: darkmagenta;
  font-weight: bold;
}

/* 5. Music Button */
#toggle-music {
  display: flex;
  position: fixed;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  bottom: 2vh;
  right: 2vw;
  width: 60px;
  height: 60px;
  margin: 0.5em;
  background-color: #222;
  color: white;
  border-radius: 50%;
  transition: background-color 0.3s ease;
  z-index: 1000;
}

#toggle-music:hover {
  cursor: pointer;
  transform: scale(1.5);
  filter: drop-shadow(0 0 0.75rem darkorange) drop-shadow(0 0 0.75em darkblue);
  transition: 0.3s;
}

/* Adjustment for small screens */
@media (max-width: 700px) {
  #hugeContainer, .main, .result, .uiMove {
    width: 98vw;
    min-width: 0;
    height: auto;
    padding: 0;
    flex-direction: column;
    gap: 1em;
  }

  img {
    height: 12vh;
    max-width: 90vw;
  }

  .makeMove {
    font-size: 2em;
  }

  footer {
    position: static;
    height: auto;
    padding: 1em 0 2em 0;
    font-size: 0.9em;
  }

  #toggle-music {
    position: static;
    margin: 1em auto;
    display: block;
  }
}