@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;
  font-family: "Poppins", sans-serif;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  min-height: 100vh;
  background: #c6dff1;
}
body.dark {
  background: #686e6e; /* Dark mode background */
}

h1 {
  font-size: 24px;
  margin-bottom: 20px;
  padding: 10px 50px;
  color: #d434aa;
  background-color: white;
  border-radius: 50px; 
} 
footer {
  text-align: center;
  margin-top: 50px;
  color: rgb(10, 10, 10);
}

.container {
  text-align: center;
  padding: 25px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}
.container h2 {
  font-size: 20px;
  color: #3be6cf;
  font-weight: 500;
}

.container .guess {
  color: #36ed89;
  font-size: 18px;
  margin: 10px 0;
}

.container .chances {
  color: black;
  font-size: 16px;
  margin-top: 5px;
}

.container input {
  font-size: 20px;
  padding: 0 20px;
  text-align: center;
  width: 100%;
  height: 50px;
  margin: 10px 0;
  border: 3px solid #47f33b;
  border-radius: 5px;
}

input:disabled {
  cursor: not-allowed;
}

/* To remove the controls in the input field */
/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
/* Firefox */
input[type="number"] {
--moz-appearance: textfield;
}

.checkBtn {
  font-size: 18px;
  margin: 10px 0;
  padding: 10px 40px;
  color: white;
  background: #89f52c;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.checkBtn:active {
  transform: scale(0.95);
}

.checkBtn:hover{
  background: #3be6cf;
}
* 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 */
}

.toggle-button .fa-sun {
  opacity: 0; /* Sun hidden by default */
}

body.dark .toggle-button {
  background-color: #9dd9fb; /* 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 */
}
body.dark .container {
  background: #293447; /* Dark mode container background */
  color: white; /* Dark mode text color */
}

body.dark .container input {
  background-color: #293447; /* Dark mode input field background */
  color: white; /* Dark mode input field text color */
  border: 3px solid #47f33b; /* Keep border color same or modify as needed */
}

body.dark .container .guess {
  color: white; /* Change guess text color to white in dark mode */
}

body.dark h1{
  background-color: #293447;
}