@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "JetBrains Mono", monospace;
    background: #232020;
    color: #FFEDE1;
    min-height: 100vh;
    position: relative;
    display: grid;
    place-items: center;
}

/* Link color (override where needed) */
a {
    color: #709BE9;
}

/* Sidebar and nav links specifically */
.nav-item a,
.side-item a {
    color: #709BE9;
}

/* Checkbox color (modern browsers) */
input[type="checkbox"] {
    accent-color: #709BE9;
}

/* For older browsers, give the label a colored indicator */
input[type="checkbox"] + label {
    color: inherit;
}

.name-text {
    position: absolute;
    top: 2.5rem;
    right: 1.25rem;
    font-size: 1rem;
    margin-right: 1.25rem;
    font-size: 3rem;
    transition: color 0.5s ease;
}

.center-image {
    width: min(720px, 90vw);
    aspect-ratio: 16 / 9;
    border: none;
    overflow: hidden;
    display: grid;
    place-items: center;
    color: #000000;
    font-size: 1rem;
    border-radius: 18px;
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.28);
    animation: floatImage 7s ease-in-out infinite;
}

.center-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    border-radius: 18px;
}

.center-wrap, .content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    margin-left: 0;
    padding-top: 2.5rem;
    animation: fadeInUp 800ms ease-out both;
}

.placeholder-small {
    size: 0.8rem;
    color: rgba(255, 237, 225, 0.332);
}

.navbar {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    padding: 0;
    z-index: 10;
}

.navbar-nav {
    width: 100%;
    background: #2d2929;
    border-bottom: 1px solid rgba(255, 237, 225, 0.12);
    border-radius: 0;
    padding: 0.1rem 0;
    box-shadow: none;
}

.nav-list {
    list-style: none;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 0;
    width: 100%;
}

.nav-item {
    flex: 1 1 0;
}

.nav-item a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 1.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 0;
    color: #FFEDE1;
    text-decoration: none;
    opacity: 1;
    transition: none;
    white-space: nowrap;
    font-size: 0.9rem;
    line-height: 1;
}

.nav-item a:hover,
.nav-item a:focus-visible {
    background: rgba(255, 237, 225, 0.06);
}

.token-gen, .pw-strength {
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.02));
    border: 1px solid rgba(255,237,225,0.06);
    padding: 0.8rem;
    border-radius: 10px;
    width: min(720px, 92vw);
    color: #FFEDE1;
}

.token-gen label, .pw-strength label {
    font-size: 0.9rem;
    color: #FFEDE1;
}

.token-gen button, .pw-strength button {
    background: transparent;
    color: #FFEDE1;
    border: 1px solid rgba(255,237,225,0.08);
    padding: 0.35rem 0.6rem;
    border-radius: 8px;
    cursor: pointer;
}

.token-gen input[type="number"], .token-gen input[readonly], .pw-strength input[type="password"] {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,237,225,0.06);
    color: #FFEDE1;
    padding: 0.3rem 0.5rem;
    border-radius: 6px;
}

.pw-meter {
    height: 8px;
    background: rgba(255,255,255,0.04);
    border-radius: 6px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.pw-meter > i {
    display: block;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ff6b6b, #ffd166, #8ecae6);
    transition: width 180ms ease;
}

.pw-feedback {
    margin-top: 0.4rem;
    font-size: 0.85rem;
    opacity: 0.9;
}

/* Side nav (vertical) */
.side-nav {
    position: relative;
}

.side-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin: 0;
    padding: 0;
    position: absolute;
    left: 1rem;
    top: calc(100% + 0.4rem);
}

.side-item a {
    display: block;
    padding: 0.35rem 0.6rem;
    border-radius: 8px;
    color: #FFEDE1;
    text-decoration: none;
    background: transparent;
}

.side-item a:hover,
.side-item a:focus-visible {
    background: rgba(255,237,225,0.04);
}

.sidebar {
    position: fixed;
    left: 2rem;
    top: 3rem;
    height: 100%;
    padding: 0;
    z-index: 10;
}

.side-item {
    flex: 1 1 0;
}

.side-item a {
    display: block;
    padding: 0.45rem 0.6rem;
    border-radius: 8px;
    color: #FFEDE1;
    text-decoration: none;
    font-size: 1rem;
}

.side-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin: 0;
    padding: 0.5rem 0;
    width: auto;
}

.sidebar-nav {
    background: #2d2929;
    border-bottom: 1px solid rgba(255, 237, 225, 0.12);
    border-radius: 0;
    padding: 0.1rem 0;
    box-shadow: none;
}

.side-item a:hover,
.side-item a:focus-visible {
    background: rgba(255, 237, 225, 0.02);
    transform: translateY(-0.1rem);
}

@media (max-width: 900px) {
    .navbar {
        position: static;
        width: auto;
        padding: 1rem 1rem 0;
        margin: 0;
    }

    .center-wrap {
        margin-left: 0;
        padding-top: 1.25rem;
    }

    .sidebar {
        width: 100%;
        border-radius: 0;
    }

    .nav-list {
        width: 100%;
    }

    .nav-item a {
        width: 100%;
        border-radius: 0;
    }
}

.github-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 2vh;
    color: #FFEDE1;
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 1;
    opacity: 0.82;
    transition: opacity 220ms ease, transform 220ms ease;
}

.github-link:hover,
.github-link:focus-visible {
    opacity: 1;
    transform: translateY(-1px);
}

.github-link svg {
    width: 1.2rem;
    height: 1.2rem;
    fill: currentColor;
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatImage {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
}

