/* ASCII Art Styling */
.ascii-art {
    font-family: 'Courier New', monospace;
    white-space: pre;
    line-height: 1.2;
    font-size: 10px;
    color: #00ff41;
    text-shadow: 0 0 5px #00ff41, 0 0 10px #00ff41;
    margin: 20px auto;
    display: block;
    text-align: center;
}

.ascii-header {
    font-size: 12px;
    margin-bottom: 30px;
}

.ascii-logo {
    margin: 20px auto;
    animation: pulse 2s infinite;
}

.ascii-divider {
    margin: 15px 0;
    opacity: 0.7;
}

/* ASCII animations */
@keyframes pulse {
    0% { opacity: 0.7; }
    50% { opacity: 1; }
    100% { opacity: 0.7; }
}

.ascii-container {
    position: relative;
    overflow: hidden;
    margin: 20px 0;
    padding: 10px;
    border: 1px solid #00ff41;
    background-color: rgba(0, 15, 3, 0.6);
}

.blink {
    animation: blink-animation 1s steps(5, start) infinite;
}

@keyframes blink-animation {
    to {
        visibility: hidden;
    }
}

.glitch-text {
    position: relative;
    animation: glitch 3s infinite;
}

@keyframes glitch {
    0% { text-shadow: 0.05em 0 0 #00ffff, -0.05em -0.025em 0 #ff00ff; }
    14% { text-shadow: 0.05em 0 0 #00ffff, -0.05em -0.025em 0 #ff00ff; }
    15% { text-shadow: -0.05em -0.025em 0 #00ffff, 0.025em 0.025em 0 #ff00ff; }
    49% { text-shadow: -0.05em -0.025em 0 #00ffff, 0.025em 0.025em 0 #ff00ff; }
    50% { text-shadow: 0.025em 0.05em 0 #00ffff, 0.05em 0 0 #ff00ff; }
    99% { text-shadow: 0.025em 0.05em 0 #00ffff, 0.05em 0 0 #ff00ff; }
    100% { text-shadow: -0.025em 0 0 #00ffff, -0.025em -0.025em 0 #ff00ff; }
}

/* Visitor counter styling */
.visitor-counter {
    font-family: 'VT323', monospace;
    background-color: #000;
    color: #00ff41;
    border: 1px solid #00ff41;
    display: inline-block;
    padding: 5px 10px;
    margin: 10px 0;
    box-shadow: 0 0 10px #00ff41;
}

.visitor-counter span {
    font-weight: bold;
    letter-spacing: 2px;
}

/* Under construction elements */
.under-construction {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 15px 0;
    padding: 5px;
    background-color: #000;
    border: 1px dashed #ffff00;
}

.under-construction img {
    height: 30px;
    margin-right: 10px;
}

.under-construction span {
    color: #ffff00;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: blink-animation 1s steps(5, start) infinite;
}

/* Matrix digital rain container */
.matrix-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.15;
    pointer-events: none;
}

/* Blockchain visualization */
.blockchain-visual {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: 20px 0;
    gap: 5px;
}

.block {
    width: 60px;
    height: 60px;
    background-color: #000;
    border: 1px solid #00ff41;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Courier New', monospace;
    font-size: 10px;
    color: #00ff41;
    position: relative;
    box-shadow: 0 0 5px #00ff41;
    transition: all 0.3s ease;
}

.block:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px #00ff41;
    z-index: 1;
}

.block::before {
    content: "";
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 1px dashed rgba(0, 255, 65, 0.5);
    pointer-events: none;
}

.block::after {
    content: attr(data-block);
    position: absolute;
    bottom: 3px;
    right: 3px;
    font-size: 8px;
    opacity: 0.7;
}

.block-connection {
    height: 2px;
    width: 20px;
    background-color: #00ff41;
    align-self: center;
    position: relative;
}

.block-connection::after {
    content: "→";
    position: absolute;
    top: -8px;
    left: 5px;
    color: #00ff41;
}

/* Scanlines effect */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.03) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    background-size: 100% 4px;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.2;
}

/* CRT effect */
.crt-effect {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        ellipse at center,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.2) 80%,
        rgba(0, 0, 0, 0.4) 100%
    );
    z-index: 9998;
    pointer-events: none;
}

/* Responsive adjustments for ASCII divider on mobile */
@media (max-width: 768px) {
    .ascii-divider {
        font-size: 8px; /* Optional: reduce font size for smaller screens */
        overflow-x: auto; /* Enable horizontal scrolling if content overflows */
        text-align: left; /* Align content to the left within the scrollable area */
        /* Ensure the pre block itself doesn't cause layout issues */
        max-width: 100%; 
        box-sizing: border-box;
    }
}
