/* 
---------------------------------------------
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: 99999; /* Higher z-index to ensure it's above all elements */
        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: 100001; /* Ensure text is on top */
  }
  
  /* Additional Fix for Checkmark */
  .success-animation .checkmark {
    z-index: 100002; /* 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: 1000;
  }

  .success-animation {
    text-align: center;
    color: #fff;
    z-index: 10001; /* Ensure it's above the shadow */
  }

  .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;
    }
  }