/* Terminal-like font */
@import url('https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@400;700&display=swap');

body {
    font-family: 'Source Code Pro', monospace;
    margin: 0;
    padding: 20px;
    background-color: #0a0a0a;
    color: #00ff00;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    box-sizing: border-box;
    background-image: 
        radial-gradient(rgba(0, 255, 0, 0.1) 1px, transparent 1px),
        radial-gradient(rgba(0, 255, 0, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    background-position: 0 0, 15px 15px;
}

main {
    background-color: #1a1a1a;
    border: 1px solid #00ff00;
    border-radius: 0;
    padding: 1.5rem;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
    max-width: 800px;
    width: 95%;
    text-align: left;
    position: relative;
    overflow: hidden;
}

main::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00ff00, transparent);
    animation: scanline 6s linear infinite;
}

@keyframes scanline {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(100vh);
    }
}

/* Terminal header */
main::after {
    content: "> cekinet - internet connection checker";
    display: block;
    color: #00ff00;
    padding: 5px 0;
    border-bottom: 1px solid #00ff00;
    margin-bottom: 20px;
    font-weight: bold;
}

h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #00ff00;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.7);
    text-transform: uppercase;
}

#status-text {
    transition: color 0.3s ease;
    font-size: 1.5rem;
    margin: 10px 0;
}

#status-text.status-online {
    color: #00ff00;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.7);
}

#status-text.status-slow {
    color: #ffff00;
    text-shadow: 0 0 5px rgba(255, 255, 0, 0.7);
}

#status-text.status-offline {
    color: #ff0000;
    text-shadow: 0 0 5px rgba(255, 0, 0, 0.7);
}

#status-text.status-checking {
    color: #00ffff;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.7);
}

p {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: #00cc00;
}

.controls {
    margin: 20px 0;
    padding: 10px;
    background-color: #0a0a0a;
    border: 1px solid #00ff00;
}

.controls label {
    margin-right: 0.5rem;
    font-weight: bold;
    color: #00ff00;
}

.controls select {
    padding: 0.3rem;
    border: 1px solid #00ff00;
    background-color: #1a1a1a;
    color: #00ff00;
    font-family: 'Source Code Pro', monospace;
    font-size: 0.9rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.info-item {
    background-color: #0a0a0a;
    padding: 1rem;
    border: 1px solid #00ff00;
    position: relative;
}

.info-item h3 {
    margin-top: 0;
    font-size: 1rem;
    color: #00ff00;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid #00ff00;
    padding-bottom: 5px;
}

.info-item p {
    margin-bottom: 0;
    font-size: 1rem;
    font-weight: normal;
    color: #00cc00;
}

/* Terminal prompt styling */
.info-item::before {
    content: "> ";
    color: #00ff00;
}

/* Blinking cursor effect */
#status-text::after {
    content: "";
    display: inline-block;
    width: 8px;
    height: 1.2rem;
    background-color: #00ff00;
    margin-left: 5px;
    animation: blink 1s infinite;
    vertical-align: middle;
}

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

footer {
    margin-top: 30px;
    padding-top: 10px;
    border-top: 1px solid #00ff00;
    text-align: center;
    color: #00cc00;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    h1 {
        font-size: 1.5rem;
    }
    
    main {
        padding: 1rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    main::after {
        font-size: 0.9rem;
    }
    
    footer {
        font-size: 0.8rem;
    }
}