body {
    touch-action: none;
    margin: 0;
    border: 0 none;
    padding: 0;
    text-align: center;
    background-color: black;
    overflow: hidden;
}

#canvas {
    display: block;
    margin: 0;
    color: white;
}

#canvas:focus {
    outline: none;
}

.godot {
    font-family: 'Noto Sans', 'Droid Sans', Arial, sans-serif;
    color: #e0e0e0;
    background-color: #004d8a;
    background-image: linear-gradient(to bottom, #004d8a, #004d8a);
    border: 1px solid #004d8a;
    box-shadow: 0 0 1px 1px #004d8a;
}

#logo-align,
#logo-text,
#status-progress,
#status-progress-inner {
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

/* Logo alignment
*/

#logo-align {
    position: absolute;
    display: block;
}

#logo-wrapper {
    height: 200px;
    width: 200px;
}

#logo-wrapper svg{
    width: 200px;
    height: 200px;
}

/* Logo Text
*/

#logo-text {
    color: gray;
    /* Sets the text color to gray */
    letter-spacing: 6px;
    /* Adds space between letters */
    text-align: center;
    /* Centers the text horizontally */
    position: relative;
    font-size: 14px;
    /* Adjust as needed */
    font-family: 'Noto Sans', 'Droid Sans', Arial, sans-serif;
}

/* Status display
 * ============== */

#status {
    position: absolute;
    left: 0;
    right: 0;

    bottom: 160px;
    display: flex;
    justify-content: center;
    align-items: center;
    /* don't consume click events - make children visible explicitly */
    /* visibility: hidden; */
}

#status-progress {
    width: 366px;
    height: 7px;
    background-color: #333333;
    border: 0px solid #ed1651;
    padding: 1px;
    box-shadow: 0 0 2px 1px #004d8a;
    border-radius: 12px;
    visibility: visible;
    pointer-events: none;
}

@media only screen and (orientation:portrait) {
    #status-progress {
        width: 61.8%;
    }
}

#status-progress-inner {
    height: 100%;
    width: 0;
    box-sizing: border-box;
    transition: width 0.5s linear;
    background-image: linear-gradient(to right, #ed1651, #ed1651);
    border: 0px solid #ed1651;
    box-shadow: 0 0 1px 1px #004d8a;
    border-radius: 3px;
    pointer-events: none;
}

#status-indeterminate {
    height: 42px;
    visibility: visible;
    position: relative;
    pointer-events: none;
}

#status-indeterminate>div {
    width: 4.5px;
    height: 0;
    border-style: solid;
    border-width: 9px 3px 0 3px;
    border-color: #004d8a transparent transparent transparent;
    transform-origin: center 21px;
    position: absolute;
}

#status-indeterminate>div:nth-child(1) {
    transform: rotate(22.5deg);
}

#status-indeterminate>div:nth-child(2) {
    transform: rotate(67.5deg);
}

#status-indeterminate>div:nth-child(3) {
    transform: rotate(112.5deg);
}

#status-indeterminate>div:nth-child(4) {
    transform: rotate(157.5deg);
}

#status-indeterminate>div:nth-child(5) {
    transform: rotate(202.5deg);
}

#status-indeterminate>div:nth-child(6) {
    transform: rotate(247.5deg);
}

#status-indeterminate>div:nth-child(7) {
    transform: rotate(292.5deg);
}

#status-indeterminate>div:nth-child(8) {
    transform: rotate(337.5deg);
}

#status-notice {
    margin: 0 100px;
    line-height: 1.3;
    visibility: visible;
    padding: 4px 6px;
    visibility: visible;
}

#login-ui {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    font-family: 'Noto Sans', sans-serif;
}

.bkg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

.crc {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0;
    transition: opacity 5s ease-out, transform 0.5s ease-out;
    pointer-events: none;
}

.c1 {
    width: 40vw;
    height: 40vw;
    max-width: 400px;
    max-height: 400px;
    background-color: #004d8a;
}

.c2 {
    width: 30vw;
    height: 30vw;
    max-width: 300px;
    max-height: 300px;
    background-color: #ed1651;
}

.login-container,
.signup-container {
    display: none;
    border-radius: 10px;
    padding: 40px;
    width: 400px;
    /* z-index: 1; */
}

.signup-container {
    display: none;
}

.welcome-title {
    font-family: 'Archivo', sans-serif;
    font-weight: 600;
    text-align: center;
    color: white;
    margin-bottom: 20px;
}

.create-account,
.already-have-account {
    text-align: center;
    margin-bottom: 20px;
    color: #cccccc;
    font-size: 0.8rem;
}

.create-account a,
.already-have-account a {
    color: #ed1651;
    text-decoration: none;
}

.input-group {
    position: relative;
    margin-bottom: 15px;
}

.input-group input {
    width: 100%;
    padding: 10px 30px 10px 10px;
    border: 1px solid rgb(255 255 255 / 17%);
    border-radius: 10px;
    background: rgb(255 255 255 / 0%);
    color: #ffffffc7;
    font-size: 15px;
    box-sizing: border-box;
    transition: all 0.3s;
}

.input-group label {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #cccccc;
    transition: all 0.3s;
    pointer-events: none;
    font-size: 14px;
    background-color: #57333300;
    padding: 0 5px;
}

.input-group input:focus+label,
.input-group input:not(:placeholder-shown)+label {
    top: 18px;
    font-size: 12px;
    background-color: #ff000000;
}

.input-group input:focus,
.input-group input:not(:placeholder-shown) {
    border: 0px inset #ed1651;
    outline: 1px solid #ed1651;
    background-color: #9b92928c;
}

.email input:focus,
.email input:not(:placeholder-shown) {
    padding-left: 70px;
}

.pass input:focus,
.pass input:not(:placeholder-shown) {
    padding-left: 90px;
}

.vertical-bar {
    position: absolute;
    top: 25%;
    background-color: #ed1651;
    width: 1px;
    height: 50%;
    opacity: 0;
    transition: opacity 0.4s;
    z-index: 99;
    pointer-events: none;
}

.email .vertical-bar {
    left: 57px;
}

.pass .vertical-bar {
    left: 80px;
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    width: 24px;
    height: 24px;
}

.password-toggle svg {
    width: 100%;
    height: 100%;
}

.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    color: #cccccc;
    font-size: 0.8rem;
}

.remember-forgot a {
    color: #ed1651;
    text-decoration: none;
}

.remember-forgot input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border: 1px solid #ffffff;
    border-radius: 3px;
    outline: none;
    cursor: pointer;
    margin-right: 5px;
    vertical-align: middle;
}

.remember-forgot input[type="checkbox"]:checked {
    background-color: transparent;
    position: relative;
}

.remember-forgot input[type="checkbox"]:checked::before {
    content: 'âœ"';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ed1651;
    font-size: 12px;
}

.divider {
    text-align: center;
    margin: 20px 0;
    color: #cccccc80;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #cccccc73;
}

.divider span {
    padding: 0 10px;
}

.login-button,
.signup-button {
    width: 100%;
    padding: 10px;
    background-color: #ed1651;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
}

.signup-button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.google-login,
.google-signup {
    width: 100%;
    padding: 10px;
    background-color: #ffffff00;
    color: #ffffff;
    border: 1px solid #cccccc73;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    gap: 10px;
    align-items: center;
    font-weight: 700;
    justify-content: center;
}

.google-login img,
.google-signup img {
    margin-right: 10px;
}

.terms {
    text-align: center;
    margin-top: 20px;
    color: #cccccc;
    font-size: 0.8rem;
}

.terms a {
    color: #ed1651;
    text-decoration: none;
}

.password-strength-checker {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px 10px 0 0;
    padding: 10px;
    margin-top: 10px;
    font-size: 0.8rem;
    margin-bottom: -5px;
    transition: height 0.5s ease, opacity 0.5s ease;
    height: 0;
    opacity: 0;
    overflow: hidden;
    text-align: left;
}

.pass-active {
    height: 140px;
    /* Adjust this value based on your content's height */
    opacity: 1;
}

.password-strength-checker p {
    margin: 0 0 5px 0;
    color: #cccccc;
}

.password-strength-checker ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.password-strength-checker li {
    margin-bottom: 5px;
    color: #cccccc;
}

.password-strength-checker .icon {
    display: inline-block;
    width: 16px;
    text-align: center;
    margin-right: 5px;
}

.password-strength-checker .valid {
    color: #004d8a;
}

.password-strength-checker .invalid {
    color: #ed1651;
}

@media (max-width: 480px) {

    .login-container,
    .signup-container {
        padding: 20px;
        max-width: 90%;
        min-width: 166px;
    }

    .input-group input {
        font-size: 14px;
    }

    .input-group label {
        font-size: 14px;
    }

    .remember-forgot {
        flex-direction: column;
        align-items: flex-start;
    }

    .remember-forgot label {
        margin-bottom: 10px;
    }
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #2c2c2c inset !important;
    /* Adjust the color here */
    -webkit-text-fill-color: #ffffff !important;
    /* Text color inside the input */
    border: 0px solid #004d8a;
    /* Adjust border color if needed */
    transition: background-color 5000s ease-in-out 0s;
}


input {
    caret-color: #ffffff;
}

#loading-logout {
    color: white;
}

#login-bg {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    align-items: center;
    justify-content: center;
    z-index: 9998;
}

.error-message {
    padding: 0px 0px 15px 0;
    opacity: 0;
    transition: all 1s;
    height: 0px;
    color: #ed1651;
}

.alert-container {
    border-radius: 10px;
    padding: 40px;
    width: 344px;
    display: none;
}

.anitya-logo {
    text-align: left;
    color: white;
}

.welcome-alert-title {
    font-family: 'Archivo', sans-serif;
    font-weight: 100;
    color: white;
    text-align: left;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.alert-content {
    text-align: left;
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #cccccc;
    line-height: 1.6;
}

.join-discord {
    width: 191px;
    padding: 10px;
    background-color: #004d8a;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    font-weight: 100;
    margin: 50px auto 0 auto;
    text-align: center;
    transition: background-color 0.3s ease;
}

.main-anitya-logo svg {
    width: 100%;
}

.main-anitya-logo {
    position: absolute;
    left: -20px;
    top: 2%;
    max-width: 150px;
}

#loading-container {
    display: grid;
    place-items: center;
    height: 100%;
    width: 100%;
    grid-gap: 20%;
    margin-top: 10%;
}

#load_container {
    width: 240px;
    position: relative;
    margin-bottom: 16px;
}

.loading-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}
.progress {
    position: absolute;
    height: 100%;
    background: #004d8a;
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
    overflow: hidden;
}
.ribbon {
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background-image: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 6px,
        #ed1651 6px,
        #ed1651 12px
    );
    background-size: 17px 8px;
    animation: moveRibbon 0.7s linear infinite;
}
@keyframes moveRibbon {
    0% {
        transform: translateX(-17px);
    }
    100% {
        transform: translateX(0);
    }
}
.loading-text {
    position: absolute;
    left: 0;
    bottom: -24px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 0.1%;
    font-family: 'Noto Sans', sans-serif;
    font-weight: 500;
}
.percentage {
    position: absolute;
    right: 0;
    bottom: -24px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    line-height: 16px;
    font-family: 'Noto Sans', sans-serif;
    font-weight: 500;
}

.load_layer {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    will-change: transform;
}
.spiral-segment {
    position: absolute;
    border: 5px solid;
    border-radius: 50%;
    border-bottom-color: transparent;
    border-left-color: transparent;
    transform: rotate(45deg);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 45px;
    width: 45px;
    backface-visibility: hidden;
    box-shadow: inset 0px 0px 0px 20px #004d8a;
}
.percentage-display {
    position: absolute;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    transform: rotate(-45deg);
    text-shadow: 0 0 5px rgba(0,0,0,0.5);
    font-family: 'Noto Sans', sans-serif;
    color: #004d8a;
    user-select: none;
}
#fade {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000000;
    opacity: 0;
    transition: opacity 0.5s ease-in;
    z-index: 5;
    pointer-events: none;
}

.fade-out {
    opacity: 0;
    transition: opacity 1.5s ease-out;
    pointer-events: none;
}

#email-verification {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    display: none;
    width: 400px;
    text-align: right;
    font-family: "Noto Sans", sans-serif;
}

.email-verification-container {
    padding: 24px;
    border-radius: 12px;
}

.back-button {
    display: flex;
    gap: 9px;
    line-height: 16px;
    border-radius: 6px;
    padding: 4px 8px 4px 4px;
    font-size: 14px;
    border-width: 0;
    background-color: transparent;
    color: rgba(255, 255, 255, 0.7);
    transition: 0.3s;
    align-items: center;
    cursor: pointer;
    margin-bottom: 10px;
}

.back-button:hover {
    color: rgba(255, 255, 255, 1);
}

.check-email-title {
    color: white;
    font-size: 1.4em;
    font-weight: 500;
    margin: 0 0 16px 0;
    font-family: 'Noto Sans', sans-serif;
    text-align: left;
}

.email-verify-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.6;
    white-space: normal;
    display: block;
    margin-bottom: 32px;
    margin-top: 0;
    text-align: left;
}

#verification-email-target {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.email-verification-form .input-group {
    margin-bottom: 15px;
}

.email-verification-form .input-group input {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-family: 'Noto Sans', sans-serif;
    font-size: 14px;
    padding: 16px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.email-verification-form .input-group input:focus {
    border-color: #ed1651;
    outline: none;
    background-color: rgba(255, 255, 255, 0.1);
}

.email-verification-form .input-group input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

#send-verification-code {
    width: 100%;
    padding: 16px;
    background-color: #ed1651;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 24px;
    transition: 0.3s;
}

#send-verification-code:hover {
    background-color: #ed1651;
}

#send-verification-code:disabled {
    background-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.3);
    cursor: not-allowed;
}

.resend-link {
    color: #ed1651;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
}

.resend-link:hover {
    text-decoration: underline;
}

#email-verification-error-message {
    color: #ed1651;
    text-align: left;
    margin-top: 8px;
    font-size: 14px;
}