.card {
    height: 100%;
}

#ip-terminal {
    display: inline-flex;
    align-items: center;
    background-color: #111;
    border: 2px solid #00ffd580;
    border-radius: 12px;
    padding: 1em 1.5em;
    box-shadow: 0 0 24px rgba(0, 255, 213, 0.35);
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.8rem;
    color: #00ffe0;
    white-space: nowrap;
    overflow: auto;
}

.ip-text {
    background: linear-gradient(90deg, #00ffe0, #00bfff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    letter-spacing: 2px;
}

#ip-cursor {
    margin-left: 2px;
    animation: blink 1s steps(2, start) infinite;
    color: #00ffe0;
}

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

#ip-addressing, #ip-routing, #ip-packets {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#ip-addressing:hover,
#ip-routing:hover,
#ip-packets:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.card-content p.title {
    color: #2e2e2e;
    font-weight: 600;
}

.dns-step {
    background-color: #fafafa;
    border: 1px solid rgba(0, 200, 170, 0.3);
    border-left: 4px solid #00ffe0;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 0 16px rgba(0, 255, 213, 0.08);
    display: flex;
    align-items: center;
    overflow: auto;
}

.dns-step-num {
    background: linear-gradient(45deg, #00ffe0, #00bfff);
    color: #0e0e0e;
    font-weight: 700;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1rem;
    flex-shrink: 0;
    box-shadow: 0 0 6px rgba(0, 255, 213, 0.4);
}

.dns-note {
    padding: 1.25rem;
    font-style: italic;
}

code {
    font-family: 'Courier New', Courier, monospace;
    background-color: #111;
    color: #00ffd5;
    padding: 0.25em 0.5em;
    border-radius: 4px;
    margin: 0 0.3em;
    font-size: 0.95em;
}
