/* Web 1.0 Style CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #000080;
    color: #00ff00;
    font-family: "MS Gothic", "ヒラギノ角ゴ Pro W6", "Hiragino Kaku Gothic Pro", "メイリオ", "Meiryo", "Osaka", "MS PGothic", sans-serif;
    font-weight: bold;
    font-size: 14px;
    margin: 0;
    padding: 10px;
    line-height: 1.2;
}

body.stars-loaded {
    background: #000080 url('images/stars.jpg') repeat;
}

header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
}

h1 {
    color: #00ff00;
    font-size: 16px;
    margin: 0;
    text-decoration: underline;
    font-weight: normal;
}

h2 {
    color: #00ff00;
    font-size: 16px;
    margin: 20px 0;
    font-weight: 900;
}

main {
    max-width: 800px;
    margin: 0 auto;
}

.post {
    margin-bottom: 30px;
    padding: 0;
    width: 80%;
    margin: 0 auto 30px auto;
    text-align: center;
}

.post-date {
    color: #888888;
    font-size: 10px;
    margin-bottom: 10px;
}

.post-image {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    vertical-align: top;
    line-height: 0;
}

.post-text {
    color: #cccccc;
    margin-top: 10px;
    white-space: pre-wrap;
    font-family: "MS Gothic", "ヒラギノ角ゴ Pro W6", "Hiragino Kaku Gothic Pro", "メイリオ", "Meiryo", "Osaka", "MS PGothic", sans-serif;
    font-weight: normal;
    font-size: 11px;
    line-height: 1.2;
}

.post-text img {
    margin: 0;
    display: block;
    margin-left: auto;
    margin-right: auto;
    vertical-align: top;
}


#pagination {
    text-align: center;
    margin: 30px 0;
    color: #00ff00;
}

#pagination button {
    background: none;
    border: none;
    color: #ffffff;
    font-family: "MS Gothic", "ヒラギノ角ゴ Pro W6", "Hiragino Kaku Gothic Pro", "メイリオ", "Meiryo", "Osaka", "MS PGothic", sans-serif;
    font-size: 16px;
    font-weight: bold;
    text-decoration: underline;
    padding: 5px 10px;
    margin: 0 auto;
    cursor: pointer;
    display: block;
}

#pagination button:hover:not(:disabled) {
    background-color: #00ff00;
    color: #000000;
}

#pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#page-info {
    margin: 0 10px;
    font-size: 16px;
    font-family: "Comic Sans MS", "Chalkboard SE", "Bradley Hand", cursive;
}

footer {
    margin-top: 40px;
    margin-bottom: 50px;
    padding-top: 20px;
    text-align: center;
}

.browser-text {
    color: #ffffff;
    font-size: 10px;
    margin: 10px 0;
    text-align: center;
}

.japanese-text {
    color: #ffffff;
    font-size: 10px;
    margin: 10px 0;
    text-align: center;
}


.banners {
    margin-bottom: 10px;
}

.banners img {
    margin: 0 5px;
    vertical-align: middle;
}

.links {
    margin-bottom: 10px;
}

.links a {
    color: #00ffff;
    text-decoration: underline;
    font-size: 11px;
}

.links a:visited {
    color: #ff00ff;
}

.links a:hover {
    color: #ffff00;
    background-color: #333333;
}

.contact-text {
    font-size: 14px;
    margin: 15px 0;
    font-family: "Comic Sans MS", "Chalkboard SE", "Bradley Hand", cursive;
    background: linear-gradient(45deg, #ff0000, #ff8000, #ffff00, #00ff00, #0080ff, #8000ff, #ff0080);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: rainbow 3s ease-in-out infinite;
}

@keyframes rainbow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hosted-text {
    color: #ffffff;
    font-size: 10px;
    margin-top: 50px;
    margin-bottom: 5px;
}

.bottom-banner {
    margin-top: 0;
}

/* Mobile responsive adjustments */
@media (max-width: 600px) {
    body {
        padding: 5px;
        font-size: 10px;
    }
    
    h1 {
        font-size: 12px;
    }
    
    h2 {
        font-size: 10px;
    }
    
    .post-text {
        font-size: 9px;
    }
    
    .post {
        padding: 0;
        margin-bottom: 20px;
    }
    
    .banners img {
        max-width: 80px;
        height: auto;
    }
}

/* Very small screens */
@media (max-width: 320px) {
    body {
        font-size: 9px;
    }
    
    h1 {
        font-size: 12px;
        word-break: break-all;
    }
    
    .post {
        padding: 0;
    }
}