:root {
    --primary-color: #00ff00;
    --secondary-color: #00cc00;
    --bg-color: #181818;
    --text-color: #e5e5e5;
    --console-cursor: #00ff00;
}

body {
    font-family: 'Fira Mono', 'Consolas', 'Menlo', 'Monaco', monospace;
    background: var(--bg-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    overflow: hidden;
}

.content {
    background: rgba(0,0,0,0.85);
    border-radius: 8px;
    box-shadow: 0 0 24px #000a;
    padding: 0 2rem 2rem 2rem; /* Remove top padding */
    min-width: 400px;
    max-width: 90vw;
    border: 2px solid #222;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    overflow: hidden; /* Ensures rounded corners for bar */
}

/*@keyframes windowOpen {
    to {
        opacity: 1;
        transform: scale(1);
    }
}*/

@media (max-width: 500px) {
    .content {
        padding: 1.2rem 0.5rem 1.5rem 0.5rem;
        min-width: 250px;
        max-width: 98vw;
        border-radius: 4px;
    }
    .name-animation {
        font-size: 1.1rem;
    }
    .linkedin-button {
        font-size: 1rem;
    }
}

.name-animation {
    font-size: 1.5rem;
    font-weight: normal;
    color: var(--primary-color);
    background: none;
    border: none;
    display: block;
    width: 100%;
    white-space: pre;
    overflow: hidden;
    font-family: inherit;
    border-right: .15em solid var(--console-cursor);
    animation: 
        typing 2.5s steps(30, end),
        blink-caret .75s step-end infinite;
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
    box-sizing: border-box;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--console-cursor); }
}

.linkedin-button {
    display: inline-block;
    background: none;
    color: var(--text-color);
    border: none;
    font-family: inherit;
    font-size: 1.1rem;
    padding: 0;
    margin: 0;
    margin-top: 0.5rem;
    text-decoration: underline dotted var(--primary-color);
    cursor: pointer;
    opacity: 1;
    transition: opacity 0.8s, transform 0.8s;
    box-shadow: none;
    border-radius: 0;
    transform: none;
    outline: none;
    position: relative;
}

.linkedin-button::before {
    content: "$ ";
    color: var(--primary-color);
    font-weight: bold;
}

.linkedin-button:hover {
    color: var(--primary-color);
    text-decoration: underline solid var(--primary-color);
    background: none;
    box-shadow: none;
    transform: none;
}

.linkedin-button.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
}

.transition-slide {
    transform: none;
    transition: none;
    opacity: 1;
}

html.is-animating .transition-slide {
    opacity: 0;
}

html.is-leaving .transition-slide {
    transform: translateX(100px);
}

.window-bar {
    width: calc(100% + 4rem);
    margin-left: -2rem;
    margin-right: -2rem;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    height: 2rem;
    padding-left: 0.7rem;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border-bottom: 1px solid #ccc;
    user-select: none;
    margin-bottom: 1.2rem;
    box-sizing: border-box;
}

.window-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 0.3rem;
    border: 1px solid #2226;
    box-shadow: 0 1px 2px #0004;
}

.window-btn.close {
    background: #ff5f56;
    border-color: #e0443e;
}

.window-btn.minimize {
    background: #ffbd2e;
    border-color: #dea123;
}

.window-btn.fullscreen {
    background: #27c93f;
    border-color: #13a10e;
}

@media (max-width: 500px) {
    .content {
        padding: 0 0.5rem 1.5rem 0.5rem;
        min-width: 250px;
        max-width: 98vw;
        border-radius: 4px;
    }
    .window-bar {
        width: calc(100% + 1rem);
        margin-left: -0.5rem;
        margin-right: -0.5rem;
        height: 1.1rem;
        padding-left: 0.2rem;
        border-top-left-radius: 4px;
        border-top-right-radius: 4px;
        margin-bottom: 0.7rem;
    }
    .window-btn {
        width: 9px;
        height: 9px;
        margin-right: 0.18rem;
    }
}