/* General Styles for Captcha Wrapper */
.catcha {
  border: 1px solid #ccc;
  padding: 10px;
  max-width: 380px;
  background-color: #f1f1f1;
  border-radius: 5px;
  box-sizing: border-box;
  margin: 0 auto;
}

/* Positioning the Captcha Container */
.CaptchaWrap {
  position: relative;
  margin: -6px 0 0 0;
}

/* Text Field Styling */
.CaptchaTxtField {
  border-radius: 5px;
  border: 1px solid #ccc;
  display: block;
  box-sizing: border-box;
}

/* User Captcha Code Styling */
#UserCaptchaCode {
  padding: 3px 8px;
  outline: none;
  font-size: 12px;
  font-weight: normal;
  width: 88%;
  margin-left: 0;
  box-sizing: border-box;
}

/* Captcha Image Styling */
#CaptchaImageCode {
  text-align: center;
  margin-top: 15px;
  padding: 0;
  width: 88%;
  overflow: hidden;
}

/* Captcha Code Text Styling */
.capcode {
  font-size: 46px;
  display: block;
  user-select: none;
  cursor: default;
  letter-spacing: 1px;
  color: #ccc;
  font-family: 'Roboto Slab', serif;
  font-weight: 100;
  font-style: italic;
  width: 300px;
  height: 42px;
}

/* Reload Button Styling */
.ReloadBtn {
    background: url(../images/captcha_refresh.png) left top no-repeat;
    background-size: 100%;
    width: 30px;
    height: 30px;
    border: 0px;
    position: absolute;
    bottom: 5px;
    left: 90%;
    outline: none;
    cursor: pointer;
    margin-bottom: 35px;
}

/* Error Message Styling */
.error {
  color: red;
  font-size: 12px;
  /* Display will be controlled via JS */
}

/* Image Styling */
img {
  width: 100%;
  max-width: 100%;
}

/* Mobile Responsiveness */
@media (max-width: 575.98px) {
  .catcha {
    padding: 8px;
    max-width: 100%;
    width: 90%;
  }

  #UserCaptchaCode {
    width: 90%;
    padding: 5px 10px;
  }

  #CaptchaImageCode {
    width: 90%;
  }

  .ReloadBtn {
    width: 28px;
    height: 28px;
    left: 92%;
    margin-bottom: 10px;
  }

  .capcode {
    font-size: 36px;
    width: 280px;
    height: 36px;
  }
}

/* Tablet Responsiveness */
@media (min-width: 576px) and (max-width: 767.98px) {
  .catcha {
    padding: 10px;
    max-width: 100%;
  }

  #UserCaptchaCode {
    width: 90%;
  }

  #CaptchaImageCode {
    width: 90%;
  }

  .ReloadBtn {
    width: 26px;
    height: 30px;
    left: 90%;
    margin-bottom: 10px;
  }

  .capcode {
    font-size: 40px;
    width: 280px;
    height: 40px;
  }
}

/* Tablet Landscape or Small Desktop Responsiveness */
@media (min-width: 768px) and (max-width: 991.98px) {
  .catcha {
    max-width: 100%;
    padding: 10px;
  }

  #UserCaptchaCode {
    width: 90%;
  }

  #CaptchaImageCode {
    width: 90%;
  }

  .ReloadBtn {
    width: 28px;
    height: 28px;
    left: 92%;
    margin-bottom: 15px;
  }

  .capcode {
    font-size: 42px;
    width: 280px;
    height: 40px;
  }
}

/* Desktop Responsiveness */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .catcha {
    padding: 15px;
    max-width: 380px;
  }

  #UserCaptchaCode {
    width: 90%;
  }

  #CaptchaImageCode {
    width: 90%;
  }

  .ReloadBtn {
    width: 28px;
    height: 30px;
    left: 90%;
    margin-bottom: 20px;
  }

  .capcode {
    font-size: 46px;
    width: 300px;
    height: 42px;
  }
}

/* Large Desktop Responsiveness */
@media (min-width: 1200px) {
  .catcha {
    padding: 15px;
    max-width: 380px;
  }

  #UserCaptchaCode {
    width: 88%;
  }

  #CaptchaImageCode {
    width: 88%;
  }

  .ReloadBtn {
    width: 28px;
    height: 30px;
    left: 90%;
    margin-bottom: 15px;
  }

  .capcode {
    font-size: 46px;
    width: 300px;
    height: 42px;
  }
}
