@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&family=Noto+Sans+SC:wght@400;700&display=swap');

/* Root variables */
:root {
    --big-font-size: 1.5rem;
    --font-size: 1.25rem;
    --small-font-size: 1rem;
    --smaller-font-size: 0.8rem;
    --transition-duration: 0.5s;
}

/* Global settings */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Colors and buttons for light and dark themes */
[data-theme="light"] {
    --background-color: #ffffff;
    --text-color: #333;
    --link-color: #007BFF;
    --border-color: #ddd;

    --btn-bg: #f8f9fa;
    --btn-border: #ccc;
    --btn-hover-bg: #e2e6ea;
}

[data-theme="dark"] {
    --background-color: #121212;
    --text-color: #e0e0e0;
    --link-color: #26C6DA;
    --border-color: #333;

    --btn-bg: #2f2f2f;
    --btn-border: #444;
    --btn-hover-bg: #3f3f3f;
}

/* General styles */
html, body {
    height: 100%;
    width: 100%;
    margin: 0;
    scroll-behavior: smooth;
}

html {
    overflow-y: auto;
}

body {
    display: flex;
    flex-direction: column;
    padding-top: 80px;
    font-family: 'Roboto', 'Noto Sans SC', 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', 'SimSun', sans-serif;
    line-height: 1.8;
    background-color: var(--background-color);
    color: var(--text-color);
    transition: background-color var(--transition-duration) ease, color var(--transition-duration) ease;
    visibility: hidden;
}

/* Section container */
.section-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 1400px;
    margin: 2rem auto;
    padding: 1rem;
}

/* Section styles */
section {
    scroll-margin-top: 120px;
    margin: 0 auto;
    box-sizing: border-box;
}

section h1 {
    font-size: 2rem;
    font-weight: bold;
    margin: 0;
    padding: 0;
}

