body {
  font-family: 'Poppins', sans-serif;
  background-color: #FF8E25;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

#popup {
  display: none;
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  z-index: 9999;  
}

.popup-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  padding: 20px;
  border: none; 
  animation: fadeInFromBottom 0.2s; /* Add this line to apply the animation */
}

#helpmepopup {
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    z-index: 9999;
    justify-content: center; /* centers children on the x-axis */
    align-items: center; /* centers children on the y-axis */
    background-color: #22a6a856; /* Optional: add a semi-transparent background */
  }
  
  
  #help-me-image {
    max-width: 75%; /* adjust as needed */
    max-height: 75%; /* adjust as needed */
    object-fit: contain; /* preserves aspect ratio */
    animation: fadeInFromBottomMenu 0.3s;
  }

  #trophypopup {
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    z-index: 9999;
    justify-content: center; /* centers children on the x-axis */
    align-items: center; /* centers children on the y-axis */
    background-color: #22a6a856; /* Optional: add a semi-transparent background */
  }
  
  
  #trophypopupcontent {
    display: flex;
    border-radius: 10%;
    width: 1000px;
    height: 1000px;
    max-width: 75%; /* adjust as needed */
    max-height: 50%; /* adjust as needed */
    background-color: #168d8f;
    animation: fadeInFromBottomMenu 0.3s;
    justify-content: center; /* centers children on the x-axis */
    align-items: center; /* centers children on the y-axis */
    color: #ffffff;
    font-size: 2.0em;
  }

/* Add this block to define the animation */
@keyframes fadeInFromBottomMenu {
  0% {
      opacity: 0;
      transform: translate(0%, 20%);
  }
  100% {
      opacity: 1;
      transform: translate(0%, 0%);
  }
}


#victory-image {
  position: relative;
  width: 300px;
  height: 300px;
  object-fit: cover;
}

#close-button {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 10px;
  color: #ffddbdb0;
  opacity: 0.5;
  cursor: pointer;
}

/* Add this block to define the animation */
@keyframes fadeInFromBottom {
  0% {
      opacity: 0;
      transform: translate(-50%, -40%);
  }
  100% {
      opacity: 1;
      transform: translate(-50%, -50%);
  }
}

/* Add this block to define the fade-out animation */
@keyframes fadeOutToBottom {
  0% {
      opacity: 1;
      transform: translate(-50%, -50%);
  }
  100% {
      opacity: 0;
      transform: translate(-50%, -40%);
  }
}

.wrapper-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 10%;
  text-align: center;
}

.header-block {
  width: 100%;
  text-align: center;
  background-color: #FF8E25;
  color: white;
  line-height: 0;
}

.helpMe {
  width: 30px;
  height: 30px;
  font-size: 15px;
  color: #F8C537;
  border: 2px solid #F8C537;
  background-color: #FF8E25;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  padding: 0px;
  margin-right: 10px;
  margin-top: 10px;
  box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.2);
}

#helpMe:hover {
  transform: scale(1.05); /* Add a scaling effect on hover */
  box-shadow: 0px 3px 3px rgba(0, 0, 0, 0.2); /* Reduce box shadow on hover */
  cursor: pointer;
}

#helpMe:active {
  transform: scale(0.95); /* Add a scaling effect on click */
  box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.2); /* Further reduce box shadow on click */
}

.achievements {
  width: 30px;
  height: 30px;
  font-size: 15px;
  color: #F8C537;
  border: 2px solid #F8C537;
  background-color: #FF8E25;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  padding: 0px;
  margin-left: 10px ;
  margin-top: 10px;
  margin-bottom: 3px;
  box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.2);
}

#achievements:hover {
  transform: scale(1.05); /* Add a scaling effect on hover */
  box-shadow: 0px 3px 3px rgba(0, 0, 0, 0.2); /* Reduce box shadow on hover */
  cursor: pointer;
}

#achievements:active {
  transform: scale(0.95); /* Add a scaling effect on click */
  box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.2); /* Further reduce box shadow on click */
}

.difficulty-block {
  font-weight: 600;
  width: 75px;
  height: 30px;
  font-size: 15px;
  color: #ffe292;
  border: None;
  background-color: #FF8E25;
  justify-content: center;
  align-items: center;
  padding: 0px;
}

#logo {
  width: 100%;
  margin-top: 10px;
  margin-bottom: 10px;
  text-align: center;
  background-color: #FF8E25;
  color: white;
  line-height: 0;
}

.dedication-block {
  margin-top: 10px;
  margin-bottom: 0px;
  padding: 5px;
  width: 50%;
  text-align: center;
  box-sizing: border-box;
  background-color: #ce3030;
  box-shadow: 0px 10px 15px #b32929;
  border-radius: 0%;
  color: #ffffff;
  text-shadow: 0px 0px 10px #ffffff; 
}

.completed-block {
  display: none;
  font-size: 0.6em;
  margin-top: 0px;
  margin-bottom: 5px;
  padding: 0;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
  color: #7ae864;  /* change the text color */
  text-shadow: 0px 0px 3px #72be0e;  /* add a glowing effect */
}

.progress-block {
  border-radius: 5px;
  display: block;
  font-size: 0.6em;
  padding: 2px;
  margin: 5px;
  margin-top: 20px;
  width: 10%;
  text-align: center;
  color: #ffffff;
  text-shadow: 0px 0px 3px #ffffff;
  box-shadow: 0px 0px 5px 0.5px #ffffff;
}

#progress-block.checkin {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
  color: #ffffff;  /* change the text color */
  font-size: clamp(1em, 4vw, 1.3em);
  animation: pulse 3.0s infinite;  /* add a pulsing animation */
  width: 40%;
  white-space: nowrap;
}

#header-image {
  margin: 0;
  max-width: 100%;
  height: 175px;
}

#logo-image {
  margin: 0;
  max-width: 100%;
  height: 50px;
}

h1 {
  color: #A97440;
  font-size: 2.5em;
}

p {
  color: #A97440;
  font-size: 1.2em;
}

#number-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
  transition: all 0.3s ease; /* Add transition for smooth movement */
}

.number {
  background-color: #22a6a8;
  color: white;
  border: none; 
  border-radius: 25%; /* Adjust border-radius */
  padding: 10px;
  margin: 10px;
  font-size: 2.0em;
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.3s ease, transform 0.3s ease, all 0.2s ease;
  cursor: pointer; /* Change cursor on hover */
  box-shadow: 0px 10px 10px rgba(0, 0, 0, 0.2); /* Add a box shadow for 3D effect */
}

.number:hover {
  transform: scale(1.1); /* Add a scaling effect on hover */
  box-shadow: 0px 12px 12px rgba(0, 0, 0, 0.2); /* Reduce box shadow on hover */
}

.number:active {
  transform: scale(0.9); /* Add a scaling effect on click */
  box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.2); /* Further reduce box shadow on click */
}

.number:disabled {
  cursor: not-allowed;
  background-color: grey;
  border: none; /* Add a border */
}

#operator-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
  transition: all 0.3s ease; /* Add transition for smooth movement */
  margin-bottom: 10px;
}

.operator {
  display: flex;
  flex-direction: row;
  background-color: #168d8f;
  color: white;
  border: none; 
  border-radius: 25%; /* Adjust border-radius */
  padding: 10px;
  margin: 10px;
  font-size: 1.5em;
  width: 45px;
  height: 45px;
  justify-content: center;
  align-items: center;
  transition: background-color 0.3s ease, transform 0.3s ease; /* Add transform to transition */
  cursor: pointer; /* Change cursor on hover */
  box-shadow: 0px 5px 5px rgba(0, 0, 0, 0.2); /* Add a box shadow for 3D effect */
  transition: all 0.2s ease;
}

.operator:hover {
  transform: scale(1.1); /* Add a scaling effect on hover */
  box-shadow: 0px 5px 5px rgba(0, 0, 0, 0.2); /* Reduce box shadow on hover */
}

.operator:active {
  transform: scale(0.9); /* Add a scaling effect on click */
  box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.2); /* Further reduce box shadow on click */
}

.operator:disabled {
  cursor: not-allowed;
  background-color: grey;
  border: none; /* Add a border */
  animation: none !important;
  transition: none !important;
}

#user-input {
  width: 50%;
  font-size: 3.0em;
  font-weight: bold;
  margin-top: 15px;
  margin-bottom: 20px;
  padding-bottom: 5px;
  text-shadow: 0px 0px 2px #ffffff;  /* add a glowing effect */
  text-align: center;
  background-color: #FF8E25; /* Change to a more vibrant color */
  color: #ffffff; /* Change to a contrasting color */
  -webkit-text-fill-color: #ffffff;
  border: none;
  border-bottom: 2px solid #ffffff; /* Add a contrasting border */
  box-shadow: 0 10px 15px -15px rgba(0, 0, 0, 0.5); /* Increase the box shadow */
  transition: transform 0.3s ease-in-out, width 0.3s ease-in-out;; /* Add transition for box shadow */
}

#user-input:hover {
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2); /* Reduce the box shadow on hover */
}

#user-input:read-only {
  pointer-events: none;
  outline: none;
  user-select: none;
}

#user-input.win {
  padding: 0px;
  padding-top: 5px;
  width: 20%;
  background-color: #72be0e;
  border-radius: 5px;
  text-shadow: 0px 0px 5px #72be0e;  /* add a glowing effect */
  border-bottom: 5px solid #72be0e; /* Add a contrasting border */
  -webkit-text-fill-color: #ffffff;  /* change the text color */
  box-shadow: 0px 2px 2px #345804;  /* add a glowing effect */
  animation: tinypulse 0.5s infinite;
}

#user-input.lose {
  padding-bottom: 0px;
  color: #d85858;
  text-shadow: 0px 0px 5px #d85858;  /* add a glowing effect */
  border-bottom: 5px solid #d85858; /* Add a contrasting border */
  -webkit-text-fill-color: #d85858;  /* change the text color */
}  

#user-input:disabled {
  color: white;
  -webkit-text-fill-color: white;
  background-color: #A97440;
  border: none;  /* remove default border */
}

@keyframes pulse {
  0% { font-size: 3.0em; }
  50% { font-size: 3.5em; }
  100% { font-size: 3.0em; }
}

@keyframes tinypulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.04);
  }
  100% {
    transform: scale(1);
  }
}

#reset-btn {
  background-color: #F8C537;
  border: 2px solid #F8C537;
  color: white;
  border-radius: 5px;
  padding: 10px 20px;
  margin: 5px;
  font-size: 1.2em;
  box-shadow: 0px 5px 5px rgba(0, 0, 0, 0.2); 
  transition: background-color 0.3s ease, transform 0.3s ease, all 0.2s ease;
}

#reset-btn:hover {
  transform: scale(1.05); /* Add a scaling effect on hover */
  box-shadow: 0px 7px 7px rgba(0, 0, 0, 0.2); /* Reduce box shadow on hover */
  cursor: pointer;
}

#reset-btn:active {
  transform: scale(0.95); /* Add a scaling effect on click */
  box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.2); /* Further reduce box shadow on click */
}

.difficulty-button {
  font-weight: bold;
  margin: 1.5px;
  margin-top: 20px;
  background-color: #ff881900;
  border:0px;
  border-top: 1px solid #f7c53c;
  border-bottom: 1px solid #f7c53c;
  color: #f7c53c;
  border-radius: 2px;
  padding: 4px 8px;
  font-size: 0.9em;
  box-shadow: 0px 1px 5px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease, transform 0.3s ease, all 0.2s ease;
}

.difficulty-button:hover {
  transform: scale(1.05); /* Add a scaling effect on hover */
  box-shadow: 0px 3px 3px rgba(0, 0, 0, 0.2); /* Reduce box shadow on hover */
  cursor: pointer;
}

.difficulty-button:active {
  transform: scale(0.95); /* Add a scaling effect on click */
  box-shadow: 0px 0.5px 0.5px rgba(0, 0, 0, 0.2); /* Further reduce box shadow on click */
}

#try-btn {
  background-color: #ff8819;
  color: #F8C537;
  border: 2px solid #F8C537;
  border-radius: 5px;
  padding: 10px 20px;
  margin: 5px;
  font-size: 1.2em;
  transition: background-color 0.3s ease;
  box-shadow: 0px 5px 5px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease, transform 0.3s ease, all 0.2s ease;
}

#try-btn:hover {
  transform: scale(1.05); /* Add a scaling effect on hover */
  box-shadow: 0px 7px 7px rgba(0, 0, 0, 0.2); /* Reduce box shadow on hover */
  cursor: pointer;
}

#try-btn:active {
  transform: scale(0.95); /* Add a scaling effect on click */
  box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.2); /* Further reduce box shadow on click */
}