* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', 'Inter', sans-serif;
}

:root {
    font-family: 'Outfit', 'Inter', sans-serif;
}

body {
    background: #010101;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
}

main {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-bottom: 80px;
    overflow: visible;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 20px;
    margin-top: 32vh;
}

/*
.square {
    width: 500px;
    max-width: 90%;
    padding: 30px 20px 25px;
    text-align: center;
    border: 1px solid rgba(128, 128, 128, 0.067);
    border-radius: 10px;
    box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.26);
    overflow: hidden;
}
*/

.details {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;      
    max-width: 999px;
}

.details h1 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #a0a0a0;
    font-family: 'Outfit', 'Inter', sans-serif;
    font-size: 80px;
    font-weight: 700;
    margin: 25px 0;
    line-height: 1;
    word-wrap: break-word;
    overflow-wrap: break-word;
    pointer-events: auto;
    cursor: text;
    user-select: none;    
    height: 1em;   
    min-width: 0;       
}

.details p {
    color: #808080;
    font-family: 'Outfit', 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 600;
    margin-top: 24px;
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
    pointer-events: auto;
    cursor: text;
    user-select: none;    
}

.links {
    font-family: 'Satoshi', 'Outfit', 'Inter', sans-serif;
    margin-top: 24px;
    text-align: center;
    color: #606060;
    font-size: 17px;
    pointer-events: auto;
    user-select: none;    
}

.links a {
    color: #606060;
    text-decoration: none;
    transition: color 0.2s ease;
}

.links a:hover {
    text-decoration: underline;
    color: #a0a0a0;
}

.copyright-link {
    display: inline-block;
    position: relative;
    color: inherit;
    text-decoration: none;
    transition: background-color 0.15s ease-in-out,
                color 0.15s ease-in-out;
}

.copyright-link:hover {
    background-color: #a0a0a0;
    color: #010101 !important;
    border-radius: 2px;
}

.footer-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.3em;
    margin-top: 28px;
    padding-top: 0;
}

.footer-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: transform 0.5s ease-out, opacity 1s ease-out;
    pointer-events: auto;
    user-select: none;
    draggable: false;
}

.footer-icon::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 130%;
    left: 50%;
    background: #262626;
    color: #a0a0a0;
    font-size: 13px;
    padding: 7px 12px;
    border-radius: 8px;
    white-space: nowrap;
    border: 1px solid hsla(0, 0%, 50%, 0.07);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 1);
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(4px);
    transition: opacity 0.2s ease-in-out,
                transform 0.2s ease-in-out;
    z-index: 10;
}

.footer-icon:hover::before {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

.footer-icon img {
    width: 35px;
    height: 35px;
    cursor: pointer;
    filter: brightness(0) saturate(100%) invert(39%);
    transition: filter 0.1s ease-in-out,
                transform 0.3s ease-in-out;
}

.footer-icon:hover img {
    filter: brightness(0) saturate(100%) invert(65%);
}

#typedText {
    display: inline-block;
    min-width: 1px; 
    vertical-align: bottom;
}

.cursor {
    display: inline-block;
    color: #a0a0a0;
    animation: fadeCur 1s infinite ease-in-out;
}

@keyframes fadeCur {
    0%   { opacity: 0; }
    50%  { opacity: 1; }
    100% { opacity: 0; }
}

.ascii-bg {
    position: absolute;
    top: clamp(50px, 9vh, 100px);
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
    padding: 0.5rem 1rem;
    pointer-events: none;
    user-select: none;
}

.ascii-bg:first-child {
    padding-top: 0;
    padding-bottom: 0;
}

.ascii-bg:nth-child(2) {
    padding-top: 0;
    padding-bottom: 0.5rem;
}

.ascii-art {
    font-family: 'Geist Mono', 'Outfit', 'Inter', monospace, sans-serif;
    letter-spacing: -0.065em;
    font-weight: 400;
    font-size: clamp(6px, 2.2vw, 16px);
    line-height: 1.25;
    display: block;
    margin: 0 auto;
    text-align: left;
    white-space: pre;
    background: linear-gradient(
        90deg,
        #ff80ca  0%,
        #ff9ec4  10%,
        #797979  20%,
        #656565  30%,
        #525252  40%,
        #2f3cbe  50%,
        #2f3cbe  70%,
        #ff9ec4  82%,
        #ff80ca  92%,
        #ff80ca  100%
    );
    background-size: 200% 100%;
    animation: gradient-scroll 13s linear infinite;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transform-origin: top center;
}

@keyframes gradient-scroll {
    0%   { background-position: 0 0; }
    100% { background-position: -200% 0; }
}

@media (min-width: 768px) {
    .ascii-bg {
        top: 70px;
    }
}

@media (max-width: 767px) {
    .ascii-bg {
        top: 100px;
    }
}

@media (max-width: 600px) {
    .container {
        margin-top: 20vh;
        padding: 12px;
    }

    .details {
        max-width: 100%;
    }

    .details h1 {
        font-size: 72px;
    }

    .details p {
        font-size: 15px;
    }

    .links {
        font-size: 14px;
        margin-top: 14px;
        max-width: 100%;
    }

    .footer-icons {
        gap: 1.2em;
        margin-top: 18px;
        padding-top: 0;
    }

    .footer-icon img {
        width: 28px;
        height: 28px;
    }

    .footer-icon::before {
        font-size: 12px;
        padding: 6px 9px;
        bottom: 120%;
    }

    .ascii-bg {
        top: 100px;
    }
}

@media (max-width: 400px) {
    .container {
        margin-top: 17vh;
        padding: 10px;
    }

    .details h1 {
        font-size: 60px;
    }

    .details p {
        font-size: 13px;
    }

    .links {
        font-size: 12px;
        margin-top: 12px;
    }

    .footer-icons {
        gap: 1em;
        margin-top: 16px;
        padding-top: 0;
    }

    .footer-icon img {
        width: 25px;
        height: 25px;
    }

    .footer-icon::before {
        font-size: 11px;
        padding: 5px 8px;
        bottom: 120%;
    }

    .ascii-bg {
        top: 105px;
    }
}