:root {
    --text-color: #333;
    --text-color-inverted: #ccc;
    --background-color: #f0f0f0;
    --background-color-dark: #333;
}

body, html {
    font-family: 'Arial', sans-serif;
    color: var(--text-color);
    background: var(--background-color);
    margin: 0;
    padding: 0;
    text-align: left;
}

body.dark {
    background-color: var(--background-color-dark);
    color: var(--text-color-inverted);
}

.about-me {
    padding: 20px;
    text-align: center;
}

.profile-image {
    margin-bottom: 100px;
    display: flex;
    justify-content: center;
}

.profile-image img {
    width: 50%; /* Adjust as necessary */
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.text-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.typewriter h1 {
    overflow: hidden;
    border-right: 0.15em solid orange;
    white-space: nowrap;
    animation: typing 4s steps(40, end), blink-caret 0.75s step-end infinite;
    font-size: 24px;
    margin: 0;
    padding: 0;
}

@keyframes typing {
    from { width: 0; }
    to { width: 70%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    80% { border-color: orange; }
}

h1, h2 {
    font-weight: bold;
}

h2 {
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 24px;
}

p {
    font-size: 18px;
    margin: 16px 0;
}

footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    background: transparent;
    border-top: 1px solid #ccc;
}

footer p {
    font-size: 16px;
    color: #666;
}

/* 添加媒体查询以适应不同屏幕尺寸 */
@media (max-width: 768px) {
    .profile-image img {
        width: 90%; /* 小屏幕上图片占更大比例 */
    }

    .typewriter h1 {
        font-size: 20px; /* 在小屏幕上减小标题字体大小 */
    }

    h1, h2 {
        font-size: 18px; /* 小屏幕上减小所有标题的字体大小 */
    }

    p, footer p {
        font-size: 16px; /* 小屏幕上减小段落和页脚文字的字体大小 */
    }
}

@media (max-width: 480px) {
    .profile-image img {
        width: 100%; /* 在最小屏幕上图片全宽显示 */
    }
}
