* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #000;
    color: #fff;
    height: 100vh;
    overflow-y: auto;
    position: relative;
    -ms-overflow-style: none;
    scrollbar-width: none;
    scroll-behavior: smooth;
    overscroll-behavior: none;
}

/* Hide scrollbar for Chrome, Safari and Opera */
body::-webkit-scrollbar {
    display: none;
}

.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    padding-bottom: calc(200px + 3rem);
    z-index: 1;
}

.content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 3rem;
    position: relative;
    z-index: 1;
    min-height: min-content;
}

.description {
    font-size: 4.5rem;
    margin-bottom: 1rem;
    text-align: center;
    position: relative;
    z-index: 2;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(45deg, #fff, #ccc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
    width: 100%;
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    padding: 2rem 0;
    position: relative;
    z-index: 2;
    margin-bottom: 1rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    flex-wrap: wrap;
}

.social-links a {
    color: #fff;
    text-decoration: none;
    padding: 0.8rem 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    transition: all 0.3s ease;
    min-width: 120px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.social-links a i {
    margin-right: 0.5rem;
    font-size: 1.2em;
}

.social-links a:hover i {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

@media (max-width: 768px) {
    .description {
        font-size: 3rem;
    }

    .social-links {
        flex-wrap: wrap;
    }
}

.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    text-align: center;
    z-index: 3;
    background: linear-gradient(to top, rgb(0, 0, 0), rgba(0, 0, 0, 0.8));
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer .social-links {
    padding: 0;
    margin: 0;
    background: none;
}

.footer p {
    margin: 0;
    padding-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .footer {
        padding: 0.8rem;
    }

    .footer .social-links {
        gap: 0.8rem;
        padding: 0.5rem;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer .social-links a {
        padding: 0.8rem 1rem;
        font-size: 1rem;
        min-width: 110px;
        flex: 0 1 auto;
        max-width: none;
    }

    .footer .social-links a.modal-trigger {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

.typewriter-text {
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    color: var(--main-green);
    text-align: left;
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
    white-space: pre-wrap;
    line-height: 1.4;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
    margin-bottom: calc(2rem + 3vh);
    transition: all 0.3s ease;
}

@media (max-width: 1124px) {
    .typewriter-text {
        padding: 0 2rem;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem calc(180px + 5rem);
    }

    .content {
        padding-top: 1rem;
    }

    .typewriter-text {
        font-size: 0.9rem;
        padding: 0 0.5rem;
        line-height: 1.3;
        margin-bottom: calc(2rem + 5vh);
    }

    .social-links {
        flex-wrap: wrap;
        padding: 1rem 0;
        margin-bottom: 0.5rem;
    }
}

.slogan {
    font-size: 1.8rem;
    color: rgba(255, 255, 255, 0.95);
    margin: 1rem auto 3rem auto;
    max-width: 800px;
    text-align: center;
    font-weight: 400;
    letter-spacing: 1px;
    line-height: 1.4;
    font-style: italic;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 1rem;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .description {
        font-size: 3rem;
        letter-spacing: 1px;
    }

    .slogan {
        font-size: 1.4rem;
        margin: 0.8rem auto 2rem auto;
        padding: 0 1rem;
    }
}

/* Modal styles */
.modal {
    opacity: 0;
    visibility: hidden;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    z-index: 9999;
}

.modal.modal-visible,
.modal:target {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #000;
    padding: 20px;
    border: 1px solid var(--main-green);
    width: 90%;
    max-width: 570px;
    z-index: 10000;
}

/* Close button styles */
.close-modal {
    position: absolute;
    right: 20px;
    top: 10px;
    color: var(--main-green);
    text-decoration: none;
    font-size: 24px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.close-modal:hover {
    color: #fff;
    transform: scale(1.1);
}

.modal h3 {
    margin: 0 0 20px 0;
    color: var(--main-green);
    font-size: 1.5rem;
}

.disclaimer-link {
    color: var(--main-green);
    text-decoration: none;
    transition: all 0.3s ease;
}

.disclaimer-link:hover {
    color: #fff;
    text-shadow: 0 0 10px var(--glow-green);
}

.disclaimer-content {
    font-family: 'Courier New', monospace;
    color: var(--main-green);
    line-height: 1.6;
}

.disclaimer-content p {
    margin-bottom: 1rem;
}

.contract-input-container {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.contract-input-container input {
    flex: 1;
    padding: 10px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: var(--main-green);
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    width: 100%;
}

.contract-input-container button {
    padding: 10px 20px;
    background: linear-gradient(45deg, var(--main-green), var(--dim-green));
    border: none;
    border-radius: 4px;
    color: #000;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.contract-input-container button:hover {
    background: linear-gradient(45deg, var(--dim-green), var(--main-green));
    transform: translateY(-1px);
}

/* Copy success animation */
@keyframes copySuccess {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.copy-success {
    animation: copySuccess 0.3s ease;
}

.contract-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1rem;
    color: var(--main-green);
    margin: 1rem auto;
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 16px;
    border-radius: 4px;
    border: 1px solid rgba(15, 255, 15, 0.2);
    max-width: 570px;
    width: 100%;
    overflow-x: hidden;
}

.ca-label {
    color: var(--main-green);
    font-weight: bold;
    white-space: nowrap;
}

.contract-text {
    color: var(--main-green);
    font-family: 'Courier New', monospace;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex: 1;
    min-width: 0;
}

.contract-text::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

.copy-btn {
    background: linear-gradient(45deg, var(--main-green), var(--dim-green));
    border: none;
    border-radius: 4px;
    color: #000;
    cursor: pointer;
    font-weight: bold;
    padding: 4px 12px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: linear-gradient(45deg, var(--dim-green), var(--main-green));
    transform: translateY(-1px);
}

.copy-success {
    animation: copySuccess 0.3s ease;
}

/* Toast notification styles */
.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(0, 255, 0, 0.2);
    color: var(--main-green);
    padding: 12px 24px;
    border-radius: 4px;
    border: 1px solid var(--main-green);
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    z-index: 1000001;
    opacity: 0;
    transition: all 0.3s ease;
}

.toast.error {
    background: rgba(255, 0, 0, 0.2);
    color: #ff0000;
    border-color: #ff0000;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Enhanced copy success animation */
@keyframes copySuccess {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

/* Prevent text selection during copy */
.copy-btn {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

@media (max-width: 768px) {
    .contract-display {
        font-size: 0.9rem;
        padding: 6px 12px;
        width: 100%;
    }
}

@keyframes glitch {
    0% {
        text-shadow: 0.05em 0 0 #00fffc, -0.03em -0.04em 0 #fc00ff,
            0.025em 0.04em 0 #fffc00;
    }

    15% {
        text-shadow: 0.05em 0 0 #00fffc, -0.03em -0.04em 0 #fc00ff,
            0.025em 0.04em 0 #fffc00;
    }

    16% {
        text-shadow: -0.05em -0.025em 0 #00fffc, 0.025em 0.035em 0 #fc00ff,
            -0.05em -0.05em 0 #fffc00;
    }

    49% {
        text-shadow: -0.05em -0.025em 0 #00fffc, 0.025em 0.035em 0 #fc00ff,
            -0.05em -0.05em 0 #fffc00;
    }

    50% {
        text-shadow: 0.05em 0.035em 0 #00fffc, 0.03em 0 0 #fc00ff,
            0 -0.04em 0 #fffc00;
    }

    99% {
        text-shadow: 0.05em 0.035em 0 #00fffc, 0.03em 0 0 #fc00ff,
            0 -0.04em 0 #fffc00;
    }

    100% {
        text-shadow: -0.05em 0 0 #00fffc, -0.025em -0.04em 0 #fc00ff,
            -0.04em -0.025em 0 #fffc00;
    }
}

.typewriter-text.glitch {
    animation: glitch 500ms infinite;
    position: relative;
}

.typewriter-text.glitch::before,
.typewriter-text.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.typewriter-text.glitch::before {
    left: 2px;
    text-shadow: -2px 0 #ff00c1;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.typewriter-text.glitch::after {
    left: -2px;
    text-shadow: -2px 0 #00fff9, 2px 2px #ff00c1;
    animation: glitch-anim2 1s infinite linear alternate-reverse;
}

.initiation-text {
    font-family: 'Courier New', monospace;
    color: var(--main-green);
    font-size: 2rem;
    text-align: center;
    margin: 0 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    font-weight: bold;
    text-shadow: 0 0 15px var(--glow-green);
    letter-spacing: 2px;
}

.initiation-text.show {
    opacity: 1;
    transform: translateY(0);
}

.initiation-text.glitch {
    animation: glitch 200ms infinite;
}

@media (max-width: 768px) {
    .initiation-text {
        font-size: 1.5rem;
        margin: 0 0;
    }
}

.typewriter-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    margin: 0.5rem 0;
    order: -1;
}

.control-btn {
    background: linear-gradient(45deg, var(--main-green), var(--dim-green));
    border: none;
    border-radius: 4px;
    color: #000;
    cursor: pointer;
    font-weight: bold;
    padding: 8px 16px;
    transition: all 0.3s ease;
}

.control-btn:hover {
    background: linear-gradient(45deg, var(--dim-green), var(--main-green));
    transform: translateY(-1px);
}

.quick-load-label {
    color: var(--main-green);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.quick-load-label input {
    cursor: pointer;
}

/* Add active state for better touch feedback */
.social-links a:active,
.copy-btn:active,
.control-btn:active {
    transform: scale(0.95);
    transition: transform 0.1s ease;
}

:root {
    --main-green: #00cc00; /* Softer primary green */
    --dim-green: #009900;  /* Darker green for gradients */
    --glow-green: rgba(0, 204, 0, 0.7); /* For text shadows and glows */
}