@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;700&display=swap');

@font-face {
    font-family: "minecraft enchantment Regular";
    src: url("https://db.onlinewebfonts.com/t/82724711928097a9b800297e88bbfeb1.woff2") format("woff2");
}

body {
    font-family: 'IBM Plex Mono', monospace;
    background-color: #1a1a1a;
    color: #e0e0e0;
    margin: 3rem;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 2s cubic-bezier(0.46, 0.04, 1, 0.63);
    font-size: 0.9rem;
}

.container {
    background: #1a1a1a;
    padding: 1.5rem;
    max-width: 380px;
    box-shadow: none;
    border: 1px solid #444;
    width: 100%;
    text-align: center;
}

h1 {
    text-align: center;
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
    text-align: center;
}

label {
    display: block;
    margin-bottom: 0.3rem;
    color: #e0e0e0;
    font-weight: 400;
    text-transform: uppercase;
    font-size: 0.8rem;
}

input[type="text"], input[type="password"] {
    width: 100%;
    padding: 0.5rem 0.8rem;
    background: #1a1a1a;
    border: 1px solid #444;
    border-radius: 0;
    box-sizing: border-box;
    color: #ffffff;
    font-size: 0.9rem;
    font-family: 'IBM Plex Mono', monospace;
}

input[type="text"]:focus, input[type="password"]:focus {
    outline: 1px solid #e94560;
    border-color: #e94560;
}

button, a.button {
    width: 100%;
    padding: 0.5rem 0.8rem;
    background: #e94560;
    border: none;
    border-radius: 0;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s;
    box-sizing: border-box;
    text-transform: uppercase;
}

button:hover, a.button:hover {
    background-color: #ff5777;
}

.message {
    text-align: center;
    padding: 0.8rem;
    margin-top: 0.8rem;
    border-radius: 0;
    border: 1px solid;
}

.message.success {
    background-color: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
    border-color: #2ecc71;
}

.client-downloads {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #444;
    text-align: center;
}

.client-downloads h2 {
    margin-bottom: 10px;
    color: #eee;
    text-transform: uppercase;
}

.button-group {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-download {
    display: inline-block;
    transition: none;
}

.btn-download img {
    max-height: 30px;
    width: auto;
    display: block;
}

.btn-download:hover {
    transform: none;
}

.g-recaptcha {
    display: flex;
    align-items: center;
    justify-content: center;
}

.message.error {
    background-color: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border-color: #e74c3c;
}

.success-message h2 {
    color: #fff;
    text-transform: uppercase;
    font-size: 1.2rem;
}

.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.toggle-password {
    position: absolute;
    right: 10px;
    cursor: pointer;
    opacity: 0.7;
}

.success-message .info-group {
    margin-bottom: 1rem;
}

.success-message label {
    font-weight: 700;
    color: #fff;
    font-size: 0.9rem;
}

.copyable {
    background-color: #1a1a1a;
    padding: 0.5rem 0.8rem;
    border-radius: 0;
    cursor: pointer;
    font-family: 'IBM Plex Mono', monospace;
    display: inline-block;
    transition: background-color 0.2s;
    word-break: break-all;
    border: 1px solid #444;
}

.copyable:hover {
    background-color: #333;
}

.success-message small {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #bdc3c7;
    font-weight: 400;
}

#copy-tooltip {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #2ecc71;
    color: #fff;
    padding: 10px 20px;
    border-radius: 0;
    z-index: 10001; /* Higher than animation container */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    font-family: 'IBM Plex Mono', monospace;
}

#copy-tooltip.show {
    opacity: 1;
    visibility: visible;
}

.donation-link {
    margin-top: 2rem;
    text-align: center;
}

.donation-link a {
    color: #e94560;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s;
    text-transform: uppercase;
}

.donation-link a:hover {
    color: #ff5777;
    text-decoration: underline;
}

#obfuscated-token {
    display: flex; /* Use flexbox for character alignment */
    flex-wrap: wrap;
    width: 100%;
    padding: 0.8rem 1rem;
    background: #1a1a1a;
    border: 1px solid #444;
    box-sizing: border-box;
    color: #e94560; /* Hacker-style color */
    font-size: 1.2rem; /* Increase font size for better readability of runes */
    font-family: 'minecraft enchantment Regular', monospace;
    min-height: calc(1.6rem + 2px + 1rem); /* Match input height */
    word-break: break-all;
    user-select: none; /* Prevent selection */
}

#obfuscated-token.token-success {
    color: #2ecc71;
    border-color: #2ecc71;
}

#animation-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

#background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    display: none; /* Initially hidden */
}

body.animation-active {
    background-color: #080505;
}

.token-char {
    position: fixed; /* Start as fixed to be placed anywhere on screen */
    font-family: 'minecraft enchantment Regular', monospace;
    color: #2ecc71;
    font-size: 1.5rem;
    transition: transform 1s ease-in-out, opacity 0.5s ease-in;
    opacity: 1;
    z-index: 10000;
}

#obfuscated-token .token-char-final {
    opacity: 1;
    position: relative; /* Final position in the flex container */
    transform: none !important; /* Override any transform */
}




/* Recaptcha Scaling and Centering */
#recaptcha-widget {
    transform-origin: 0 0;
    -webkit-transform-origin: 0 0;
}

.g-recaptcha-bubble-arrow {
    display: none !important;
}

.g-recaptcha-bubble-arrow + div {
    position: fixed !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    -webkit-transform: translate(-50%, -50%) !important;
}

@media (max-width: 600px) {
    body {
        height: auto;
        padding: 1rem 0;
    }

    .container {
        padding: 1.5rem;
        max-width: 90%;
        border: none;
    }

    h1 {
        font-size: 1.8rem;
    }

    .subtitle {
        font-size: 0.85rem;
    }

    .btn-download img {
        max-height: 35px;
    }
}