:root {
    --bg: #2b3339;
    --card: #3a454a;
    --nav-bg: rgba(47, 56, 61, 0.75);
    --text-main: #d3c6aa;
    --text-sub: #a7c080;
    --link-color: #637d60;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg);
}

.nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--nav-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 999px;
    padding: 12px 22px;
    display: flex;
    gap: 22px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
    z-index: 10;
}

.nav a img {
    width: 22px;
    height: 22px;
    cursor: pointer;
    opacity: 0.9;
    transition: opacity 0.15s ease, transform 0.15s ease, filter 0.15s ease;
    /* make the icons default mask color */
    filter: brightness(0) saturate(100%) invert(80%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
}

.nav a img:hover {
    opacity: 1;
    transform: translateY(-2px);
}

/* Card default size for index.html and resources.html */
.card {
    width: 420px;
    height: 300px;
    background-color: var(--card);
    border-radius: 20px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
    padding: 20px;
}

/* Bigger card for settings.html */
.card.settings-card {
    width: 520px;
    height: 360px;
}

.card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    position: relative;
}

.logo {
    width: 96px;
    margin-bottom: 16px;
}

.card-text {
    text-align: center;
}

.card-text .title {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-main);
}

.card-text .subtitle {
    font-size: 14px;
    margin-top: 4px;
    color: var(--text-sub);
    letter-spacing: 0.5px;
}

.card-left {
    position: absolute;
    top: 60px;
    left: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    font-size: 14px;
    color: var(--text-sub);
}

.theme-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.theme-label {
    font-weight: 600;
    color: var(--text-main);
}

.theme-select {
    background-color: var(--card);
    color: var(--text-sub);
    border: 1px solid rgba(211, 198, 170, 0.3);
    border-radius: 6px;
    padding: 2px 6px;
    font-size: 14px;
    cursor: pointer;
}

.theme-item a {
    margin-left: 6px;
    text-decoration: underline;
    color: var(--link-color);
}

.credits-inline {
    font-weight: 600;
    color: var(--text-main);
}

.card-title {
    position: absolute;
    top: 20px;
    width: 100%;
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    color: var(--text-main);
}

.credits-inline {
    font-weight: 600;
    color: var(--text-main);
}

.credits-inline .technoalpha {
    color: var(--text-sub); /* now matches the secondary green */
    font-weight: 600;
    margin-top: 2px;
}
/*resources*/

body {
    margin: 0;
    min-height: 100vh;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: var(--bg);
}

/* Navbar stays fixed at top */
.nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--nav-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 999px;
    padding: 12px 22px;
    display: flex;
    gap: 22px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
    z-index: 10;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* always 3 columns */
    gap: 16px;
    padding: 100px 20px 20px 20px; /* leave space for navbar */
}

.resource-box {
    background-color: var(--card);
    border-radius: 12px;
    padding: 14px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 4px;
}

.resource-box:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 28px rgba(0,0,0,0.35);
}

.resource-title {
    font-weight: 600;
    color: var(--text-main);
    font-size: 14px;
    margin: 0;
}

.resource-description {
    font-size: 12px;
    color: var(--text-sub);
    margin: 0;
}

.resource-link {
    font-size: 12px;
    color: var(--link-color);
    text-decoration: none;
    margin: 0;
    width: fit-content;
}

/*navbars*/
.navbars-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 boxes per row */
    gap: 16px;
    padding: 100px 20px 20px 20px; /* top padding for navbar */
}

.resources-grid .resource-box:hover {
    transform: none;
    box-shadow: none;
}

.resource-link:hover {
    text-decoration: underline;
}

.nav a {
    display: inline-block;
    transition: transform 0.5s ease, opacity 0.5s ease;
    transform: translateY(0);
    opacity: 1;
}

/* Only animate on homepage */
body.homepage .nav a {
    transform: translateY(-50px);
    opacity: 0;
}

body.homepage .nav a.show {
    transform: translateY(0);
    opacity: 1;
}
