@import url("https://fonts.googleapis.com/css2?family=VT323&display=swap");

@font-face {
    font-family: "Web437 IBM EGA 8x14";
    src: url("public/fonts/Web437IBMEGA8x14.woff") format("woff");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
    -webkit-font-smoothing: none;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: #fff;
    color: #333;
    font-family:
        "VT323",
        "Web437 IBM EGA 8x14",
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        Liberation Mono,
        Courier New,
        monospace;
    margin: 0;
    padding: 0;
    line-height: 1.2;
    font-size: 1.4rem;
}

.music-player {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
}

.music-toggle {
    background-color: #fff;
    border: 2px solid #ccc;
    border-radius: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background-color 0.2s;
}

.music-toggle:hover {
    background-color: #f0f0f0;
}

.music-toggle svg {
    fill: #333;
    width: 18px;
    height: 18px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border: 2px solid #ccc;
    padding: 8px;
    position: relative;
}

.header-section {
    li {
        padding: 1px;
    }
    display: block;
    padding: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
    border: 2px solid #ccc;
    border-radius: 0;
    background-color: #fff;
    position: relative;
}

.image-box {
    border-radius: 0;
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: #fff;
    max-width: 85%;
}

.image {
    width: 70px;
    height: 70px;
    object-fit: cover;
    display: block;
    image-rendering: pixelated;
}

.name-intro {
    margin-top: 10px;
}

.name {
    font-size: 34px;
    margin: 0;
    padding: 0;
    font-weight: normal;
    color: #333;
}

.intro-text {
    flex: 1;
}

.content-section {
    padding: 20px;
    border: 2px solid #ccc;
    border-radius: 0;

    background-color: #fff;
}

.activity-section {
    padding: 20px;
    border: 2px solid #ccc;
    background-color: #fff;
    margin-top: 20px;
}

.activity-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.lastfm-track {
    margin-top: 10px;
}

.track-info {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    flex-wrap: nowrap;
}

.album-cover {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 0;
    flex-shrink: 0;
    image-rendering: pixelated;
}

.track-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    overflow: hidden;
}

.track-name {
    font-weight: bold;
    font-size: 22px;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.artist-name {
    font-size: 20px;
    color: #666;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.album-name {
    font-size: 20px;
    color: #666;
    font-style: italic;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.play-date {
    font-size: 16px;
    color: #999;
    margin-top: 3px;
}

.loading,
.error {
    padding: 20px;
    text-align: center;
    color: #666;
    font-style: italic;
}

.error {
    color: #d73a49;
}

li {
    padding: 5px 0;
}

.github-commit {
    margin-top: 10px;
}

.commit-info {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.commit-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.commit-message {
    font-weight: bold;
    font-size: 22px;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.commit-repo {
    font-size: 20px;
    color: #666;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.commit-date {
    font-size: 16px;
    color: #999;
    margin-top: 8px;
}

.monkeytype-test {
    margin-top: 10px;
}

.test-info {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.test-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.test-wpm {
    font-weight: bold;
    font-size: 22px;
    line-height: 1.3;
}

.test-accuracy {
    font-size: 20px;
    color: #666;
}

.test-mode {
    font-size: 20px;
    color: #666;
    font-style: italic;
}

.test-date {
    font-size: 16px;
    color: #999;
    margin-top: 8px;
}

.bright-date {
    color: #555 !important;
    font-weight: 500;
}

.page-header {
    text-align: center;
    border: 2px solid #ccc;
    background-color: #fff;
}

.page-title {
    font-size: 72px;
    margin: 0;
    font-weight: normal;
    color: #333;
}

.error-message {
    font-size: 24px;
    color: #666;
    margin-top: 10px;
}

.home-link {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    border: 2px solid #ccc;
    background-color: #fff;
    color: #333;
    text-decoration: none;
    font-size: 20px;
}

.home-link:hover {
    background-color: #f0f0f0;
}

.blog-post-item {
    margin-bottom: 15px;
}

.blog-post-item a {
    font-size: 22px;
    color: #333;
    text-decoration: none;
}

.blog-post-item a:hover {
    text-decoration: underline;
}

.blog-post-date {
    font-size: 16px;
    color: #999;
    margin-left: 10px;
}
