.popup-overlay {
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100vh;
    z-index: 1001;
    background: rgb(255, 255, 255, 0.6);
    display: none;
}

.popup-form {
    position: absolute;
    top: -120%;
    left: 50%;
    transform: translate(-50%, -20%) scale(1.15);
    width: 350px;
    height: 520px;
    background: #ffffff;
    z-index: 1002;
    opacity: 0;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.2);
    transition: transform 300ms ease-in-out, opacity 300ms ease-in-out;
}

body.showRegisterForm .popup-overlay {
    display: block;
}

body.showRegisterForm .popup-form {
    top: 20%;
    opacity: 1;
    transform: translate(-50%, -20%) scale(1);
}

.popup-form .popup-close {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 40px;
    height: 40px;
    text-align: center;
    background: #555;
    color: #f5f5f5;
    font-size: 25px;
    font-weight: 600;
    border-radius: 50%;
    cursor: pointer;
}

.popup-form .popup-head {
    margin: 20px 0px 0px 0px;
    text-align: center;
}

.popup-form .popup-head img {
    width: 120px;
}

.popup-form .regisform,
.popup-form .otpform,
.popup-form .thankform {
    background: rgb(149, 223, 171);
    background: linear-gradient(0deg, rgba(149, 223, 171, 1) 0%, rgba(149, 223, 171, 1) 22%, rgba(149, 223, 171, 1) 43%, rgba(224, 248, 163, 1) 100%);
}

.popup-form .otpform,
.popup-form .thankform {
    display: none;
}

.popup-form .regisform .form-wavetop,
.popup-form .otpform .form-wavetop,
.popup-form .thankform .form-wavetop {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.popup-form .regisform .form-wavebottom,
.popup-form .otpform .form-wavebottom,
.popup-form .thankform .form-wavebottom {
    position: relative;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.popup-form .regisform .form-img,
.popup-form .otpform .form-img {
    margin: 30px 0px 20px;
    text-align: center;
}

.popup-form .regisform .form-img img,
.popup-form .otpform .form-img img {
    width: 150px;
    background-color: #fff;
    padding: 5px;
    border-radius: 16px;
}

.popup-form .regisform .form-header,
.popup-form .otpform .form-header {
    text-align: center;
    font-size: 35px;
    font-weight: 400;
    color: #222;
    padding-top: 10px;
    line-height: 20px;
}

.popup-form .thankform .form-header {
    text-align: center;
    font-size: 22px;
    font-weight: 400;
    color: #222;
    padding-top: 0px;
    line-height: 30px;
}

.popup-form .thankform .ref-content {
    text-align: center;
    font-size: 12px;
    font-weight: 200;
    color: #222;
    padding-top: 10px;
}

.popup-form .regisform .form-content,
.popup-form .otpform .form-content {
    text-align: center;
    font-size: 20px;
    font-weight: 400;
    color: #222;
    padding-top: 10px;
    padding-bottom: 20px;
}

.popup-form .thankform .form-content {
    text-align: center;
    font-size: 15px;
    font-weight: 300;
    color: #222;
    padding-top: 10px;
    padding-left: 2rem;
    padding-right: 2rem;
}

.popup-form .regisform .form-element,
.popup-form .otpform .form-element,
.popup-form .thankform .form-element {
    text-align: center;
    padding: 8px 20px;
    z-index: 1003;
}

.popup-form .regisform .form-element input,
.popup-form .otpform .form-element input {
    width: 100%;
    padding: 8px 10px;
    outline: none;
    border: 1px solid #aaa;
    background: #ddd;
    border-radius: 5px;
    box-sizing: border-box;
}

.popup-form .regisform .form-element .alert-msg,
.popup-form .otpform .form-element .alert-msg {
    color: orangered;
}

.linkbox {
    border-radius: 16px;
    background-color: rgba(255, 255, 255, 0.849);
    padding: 20px;
    position: relative;
    z-index: 3;
    margin: 5px;
    word-wrap: break-word;
}

.linkbox span {
    font-size: 16px;
}

.linkbox i {
    position: absolute;
    bottom: 10px;
    right: 10px;
}

.copyMsg {
    width: 150px;
    height: auto;
    position: fixed;
    z-index: 1005;
    /* Make sure its above other items. */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.15);
    background-color: #383838;
    color: #F0F0F0;
    font-size: 15px;
    padding: 8px;
    text-align: center;
    border-radius: 5px;
    -webkit-box-shadow: 0px 0px 24px -1px rgba(56, 56, 56, 1);
    -moz-box-shadow: 0px 0px 24px -1px rgba(56, 56, 56, 1);
    box-shadow: 0px 0px 24px -1px rgba(56, 56, 56, 1);
}

.copyMsgBtn {
    cursor: pointer;
}

.loading-overlay {
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1999;
    background: rgba(255, 255, 255, 0.5) url("../img/loading.gif") center no-repeat;
}


/* Turn off scrollbar when body element has the loading class */

body.loading-overlay {
    overflow: hidden;
}


/* Make spinner image visible when body element has the loading class */

body.showLoading .loading-overlay {
    display: block;
}
