/* 
---------------------------------------------
Register popups Section
--------------------------------------------- 
*/
.gender-button {
  width: 130px; /* Adjusted width for better appearance */
  padding: 15px;
  font-size: 1.1em;
  margin: 15px 0; /* Center-align and add vertical spacing */
  border: none;
  border-radius: 10px;
  cursor: pointer;
  color: #fff;
  transition: background-color 0.3s ease;
  display: inline-block; /* Helps center buttons */
}

.boy-btn {
  background-color: #4d91c6;
}

.boy-btn:hover {
  background-color: #3a6e94;
}

.girl-btn {
  background-color: #f083c4;
}

.girl-btn:hover {
  background-color: #d06aa4;
}

.register-btn {
  width: 100%;
  padding: 12px;
  font-size: 1.1em;
  background-color: #5a9a71;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 15px;
}

.register-btn:hover {
  background-color: #4e825f;
}

/* Registration Success Animation */
@keyframes successFadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
    transform: translateY(-20px);
  }
}
  /* Registration Success Animation */
  #success-animation {
      display: flex;
      position: fixed;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      z-index: 1999; /* Highest, always above all popups */
      background-color: #4caf50;
      color: white;
      padding: 20px 30px;
      border-radius: 12px;
      text-align: center;
      flex-direction: column;
      align-items: center;
      animation: successFadeOut 2s ease forwards;
      box-shadow: 0 0 15px rgba(0, 0, 0, 0.5); /* Add some emphasis */
  }

#success-animation p {
  font-size: 1.5em; /* Make text more prominent */
  margin-top: 15px; /* Space between tick and text */
  z-index: 1999;
}

/* Additional Fix for Checkmark */
.success-animation .checkmark {
  z-index: 1999; /* Ensure the tick stays on top */
}

#success-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.5s;
  z-index: 1999;
}

.success-animation {
  text-align: center;
  color: #fff;
  z-index: 1999; /* Highest, always above all popups */
}

.checkmark {
  width: 80px; /* Circle size */
  height: 80px;
  border: 5px solid #4caf50; /* Green border for the circle */
  border-radius: 50%; /* Circle shape */
  display: inline-block;
  position: relative;
  background-color: transparent;
}

/* Correct Tick Shape */
.check-stem {
  position: absolute;
  width: 4px; /* Width of the stem */
  height: 25px; /* Length of the stem */
  background-color: #fff; /* White color */
  left: 43%; /* Horizontal position */
  top: 28%; /* Vertical position */
  transform-origin: bottom left;
  transform: rotate(45deg) scale(0); /* Start hidden */
  animation: check-stem 0.3s ease-in-out forwards;
}

.check-kick {
  position: absolute;
  width: 4px; /* Width of the kick */
  height: 10px; /* Length of the kick */
  background-color: #fff; /* White color */
  left: 40%; /* Horizontal position */
  top: 48%; /* Vertical position */
  transform-origin: bottom left;
  transform: rotate(-45deg) scale(0); /* Start hidden */
  animation: check-kick 0.3s 0.2s ease-in-out forwards;
}

@keyframes check-stem {
  0% {
    transform: rotate(45deg) scale(0);
  }
  100% {
    transform: rotate(45deg) scale(1);
  }
}

@keyframes check-kick {
  0% {
    transform: rotate(-45deg) scale(0);
  }
  100% {
    transform: rotate(-45deg) scale(1);
  }
}

@keyframes circle-scale {
  100% {
    transform: scale(1);
  }
}

.success-animation .tick {
  transform: rotate(0deg); /* Ensure no rotation or flipping */
  animation: tick-appear 0.5s ease forwards;
}

@keyframes tick-appear {
  0% {
    stroke-dashoffset: 100;
  }
  100% {
    stroke-dashoffset: 0;
  }
}




.account-info-flex {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background-color: #ffe6f0;
  border-radius: 12px;
}

.account-text-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

#account-avatar-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}



/* Account Popup Buttons */
.account-popup button {
  display: inline-block;
  margin: 8px 5px;
  padding: 10px 20px;
  font-size: 1em;
  z-index: 1001; /* Slightly above overlay */
  background-color: #4d91c6; /* Calm blue like in gender button */
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.account-popup button:hover {
  background-color: #3a6e94; /* Darker blue on hover */
}

/* Optional: For specific buttons you can add variations */
#account-change-username {
  background-color: #6c63ff; /* Light purple */
}

#account-change-username:hover {
  background-color: #554bd4;
}

#account-change-avatar {
  background-color: #f083c4; /* Pink like girl-btn */
}

#account-change-avatar:hover {
  background-color: #d06aa4;
}

#logout-button button {
  background-color: #e53935; /* Red for logout */
}

#logout-button button:hover {
  background-color: #c62828;
}

#login-redirect button {
  background-color: #5a9a71; /* Green, like Register */
}

#login-redirect button:hover {
  background-color: #4e825f;
}



/* Change username popup */
.overlay-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.popup-small {
  background: #fff;
  padding: 20px 30px;
  border-radius: 12px;
  width: 300px;
  box-shadow: 0 0 15px rgba(0,0,0,0.3);
  text-align: center;
}

.popup-small h3 {
  margin-bottom: 15px;
}

.popup-small input[type="text"] {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border-radius: 6px;
  border: 1px solid #ccc;
  margin-bottom: 20px;
}

.popup-buttons {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.confirm-btn, .cancel-btn {
  flex: 1;
  padding: 8px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  border: none;
  transition: 0.2s ease;
}

.confirm-btn {
  background-color: #28a745;
  color: white;
}

.cancel-btn {
  background-color: #dc3545;
  color: white;
}

.confirm-btn:hover {
  background-color: #218838;
}

.cancel-btn:hover {
  background-color: #c82333;
}

#change-username-popup {
  z-index: 1099; /* Highest among general popups */
}

#change-avatar-popup {
  z-index: 1099; /* Highest among general popups */
}