:root {
    --primary-light: #2c3e50;
    --secondary-light: #34495e;
    --bg-light: #000000;
    --code-bg-light: #0a0a0a;
    --card-light: rgba(0, 0, 0, 0.9);
    --note-bg-light: #111;
    --primary-dark: #ecf0f1;
    --secondary-dark: #bdc3c7;
    --bg-dark: #000000;
    --code-bg-dark: #0a0a0a;
    --card-dark: rgba(0, 0, 0, 0.9);
    --note-bg-dark: #111;
    --accent: #0074d9;
    --card-bg: #ffffff;
    --text-color: #222;
    --note-bg: #fff8e1;
    --note-border: #ffa726;
    --note-text: #5d4037;
    --link-color: #0277bd;
}

@media (prefers-color-scheme: dark) {
    :root {
        --card-bg: #1e1e1e;
        --text-color: #f0f0f0;
        --note-bg: #2a2a2a;
        --note-border: #ffb74d;
        --note-text: #e0c097;
        --link-color: #4fc3f7;
    }
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    overflow-x: hidden;
    font-family: 'Montserrat';
    background-color: var(--bg-light);
    color: var(--primary-light);
}

main {
    min-height: 100vh;
    width: 100vw;
    padding: 5vh 5vw;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.card {
    background: rgba(20, 20, 20, 0.85);
    backdrop-filter: blur(16px);
    border-radius: 16px;
    padding: 2rem 2rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.03),
        0 8px 20px rgba(255, 255, 255, 0.05),
        0 16px 48px rgba(255, 255, 255, 0.05),
        inset 0 0 16px rgba(255, 255, 255, 0.015);
    margin-bottom: 2rem;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    color: white;
}

.card h2 {
    margin-top: 0;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.4rem;
    margin-top: 0;
    text-align: center;
}

h2 {
    font-size: 1.4rem;
    margin-top: 2rem;
    border-bottom: 1px solid #ccc;
    padding-bottom: 0.4rem;
}

ul {
    padding-left: 1.2rem;
    line-height: 1.6;
}

a {
    color: var(--accent);
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

@font-face {
  font-family: 'Montserrat';
  src: url('fonts/Montserrat/Montserrat-Medium.ttf') format('truetype');
}

@media (prefers-color-scheme: dark) {
    body {
        background-color: var(--bg-dark);
        color: var(--primary-dark);
    }

    .card {
        background: var(--card-dark);
    }

    h2 {
        border-color: #444;
    }
}

.hamburger-menu {
    position: absolute;
    top: 40px;
    left: 20px;
    width: 36px;
    height: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 8px;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    z-index: 20;
}

.hamburger-menu div {
    height: 3px;
    background: white;
    border-radius: 2px;
}

.side-menu {
    position: fixed;
    top: 0;
    left: -220px;
    width: 220px;
    height: 100vh;
    background: rgba(30, 30, 40, 0.92);
    backdrop-filter: blur(28px) brightness(1.09);
    box-shadow: 4px 0 32px rgba(255, 121, 198, 0.13), 0 8px 32px rgba(0,0,0,0.18);
    padding: 90px 24px 32px 24px;
    transition: left 0.32s cubic-bezier(.77,0,.18,1), opacity 0.22s;
    z-index: 15;
    display: flex;
    flex-direction: column;
    gap: 14px;
    border-top-right-radius: 32px;
    border-bottom-right-radius: 32px;
    pointer-events: none;
    opacity: 0;
}

.side-menu.open {
    left: 0;
    pointer-events: auto;
    opacity: 1;
}

.side-menu a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 13px 16px;
    color: #fff;
    text-decoration: none;
    border-radius: 12px;
    font-family: 'Montserrat';
    font-size: 17.5px;
    background: rgba(255,255,255,0.04);
    box-shadow: 0 2px 8px rgba(255,121,198,0.07);
    transition: all 0.18s;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.side-menu a:hover,
.side-menu a:focus {
    background: linear-gradient(90deg, rgba(255,121,198,0.22) 0%, rgba(121, 121, 255, 0.18) 100%);
    color: #ff79c6;
    transform: translateX(6px) scale(1.045);
    text-shadow: 0 2px 8px rgba(255,121,198,0.13);
    box-shadow: 0 4px 16px rgba(255,121,198,0.13);
}

.tsukika-card {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    padding: 2rem;
    margin-top: 2rem;
    border-radius: 12px;
    background-color: var(--card-bg);
    color: var(--text-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.tsukika-card h2 {
    margin-top: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.tsukika-card ul {
    padding-left: 1.5rem;
    margin: 1rem 0;
    line-height: 1.8;
}

.tsukika-note {
    margin-top: 1.5rem;
    padding: 1rem;
    border-left: 4px solid var(--note-border);
    background-color: var(--note-bg);
    border-radius: 6px;
    font-size: 0.95rem;
    color: var(--note-text);
    text-align: center;
}

.tsukika-note a {
    color: var(--link-color);
    text-decoration: none;
}
.tsukika-note a:hover {
    text-decoration: underline;
}