@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border: none;
  font-family: "Poppins", sans-serif;
}

body {
  width: 100vw;
  height: 100vh;
  background-color: rgb(158, 194, 201);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

h1 {
  color: white;
  font-size: 32px;
  padding: 5px 50px;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 3px;
  word-spacing: 3px;
}
body.dark {
  background: #686e6e; /* Dark mode background */
}

.container {
  display: grid;
  grid-template-columns: repeat(3, auto);
  border: 2px solid black;
}

footer {
  text-align: center;
  margin-top: 50px;
  color: rgb(10, 10, 10);
}

.box {
  width: 120px;
  height: 120px;
  border: 2px solid black;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-size: 25px;
}

.box img {
  width: 75px;
}

.status {
  margin: 20px 0;
  padding: 10px 40px;
  border-radius: 50px;
  font-size: 20px;
  font-weight: 500;
  background-color: white;
  color: black;
}

button {
  padding: 10px 20px;
  font-size: 20px;
  font-weight: 500;
  color: white;
  background-color: black;
  border-radius: 5px;
  cursor: pointer;
}

button:active {
  transform: scale(0.9);
}

.win {
  animation: winAnim ease-in-out 1s infinite;
}

@keyframes winAnim {
  0% {
    background-color: green;
  }
  100% {
    background-color: lightgreen;
  }
}

* Dark mode styling */
body {
  position: relative; /* Ensures that the positioning context is set for the page */
  min-height: 100vh; /* Make sure body takes up at least the height of the viewport */
  margin: 0; /* Remove default margin */
}

.toggle-button {
  position: fixed; /* Use fixed to keep it in view even on scroll */
  top: 10px;  /* Adjust this value to change the vertical position */
  right: 10px; /* Adjust this value to change the horizontal position */
  width: 50px;  /* Set the width of the button */
  height: 50px; /* Set the height of the button */
  background-color: #fff; /* Light mode background color */
  border-radius: 50%; /* Makes it circular */
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2); /* Optional: Adds shadow for better visibility */
  transition: background-color 0.3s;
}

.toggle-button i {
  position: absolute;
  transition: opacity 0.3s;
}

.toggle-button .fa-moon {
  opacity: 1; /* Moon visible by default */
  color: #293447;
}

.toggle-button .fa-sun {
  opacity: 0; /* Sun hidden by default */
}

body.dark .toggle-button {
  background-color: #0d0d0d; /* Dark mode background color */
}

body.dark .toggle-button .fa-moon {
  opacity: 0; /* Hide moon in dark mode */
}

body.dark .toggle-button .fa-sun {
  opacity: 1; /* Show sun in dark mode */
}
/* Light mode styles (default) */

footer {
  color: #293447; /* Dark color for light mode */
}

body.dark footer {
  color: #10f3ba; /* Light color for dark mode */
}
