body {
    margin: 0;
    padding: 10px;
    font-family: 'MS Gothic', monospace;
    background: linear-gradient(45deg, #ff00ff, #00ffff, #ffff00, #ff0000);
    background-size: 400% 400%;
    animation: rainbow 10s ease infinite;
    color: #000;
    overflow-x: auto;
    cursor: url('https://cur.cursors-4u.net/symbols/sym-1/sym46.cur'), auto;
}

@keyframes rainbow {
    0% { background-position: 0% 50% }
    50% { background-position: 100% 50% }
    100% { background-position: 0% 50% }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.9);
    border: 5px solid #ff0000;
    box-shadow: 0 0 20px #ff00ff, inset 0 0 15px rgba(0,0,255,0.5);
    animation: container-border-pulse 2s infinite alternate;
}

@keyframes container-border-pulse {
    from { border-color: #ff0000; }
    to { border-color: #0000ff; }
}

.header {
    text-align: center;
    padding: 20px;
    background: linear-gradient(90deg, #ff0000, #00ff00, #0000ff);
    border-bottom: 5px dashed #ffff00;
}

.title {
    font-size: 32px;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 3px 3px 0 #000000;
    animation: pulse 1.5s infinite;
    margin: 0;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); }
    100% { transform: scale(1); }
}

.blink { animation: blink 0.8s infinite; }
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

.rainbow-text { animation: rainbow-text-animation 5s linear infinite; }
@keyframes rainbow-text-animation {
    0%,100%{color:#ff0000;} 16%{color:#ff7f00;} 33%{color:#ffff00;}
    50%{color:#00ff00;} 66%{color:#0000ff;} 83%{color:#8b00ff;}
}

.content-table { width: 100%; border-spacing: 10px; }
.sidebar { width: 200px; background: #ffff00; border: 3px solid #ff00ff; padding: 10px; vertical-align: top; }
.main { background: #00ffff; border: 3px solid #ff0000; padding: 20px; vertical-align: top; }

.menu-item {
    display: block; margin: 5px 0; padding: 5px; background: #0000ff; color: #ffffff;
    text-decoration: none; border: 2px outset #0000aa; text-align: center;
    font-weight: bold; transition: all 0.2s;
}
.menu-item:hover { background: #ffff00; color: #0000ff; border-style: inset; transform: scale(1.1) rotate(3deg); }

.visitor-counter {
    position: fixed; top: 10px; right: 10px; background: #000000; color: #00ff00;
    padding: 10px; border: 2px solid #ff0000; font-family: 'Courier New', monospace; z-index: 1000;
}
.marquee { background: #ff0000; color: #ffffff; font-weight: bold; border: 2px solid #000000; margin: 10px 0; }

.footer {
    background: #000000; color: #00ff00; text-align: center; padding: 10px 20px;
    font-family: 'Courier New', monospace; display: flex; justify-content: space-between; align-items: center;
}
#realtime-clock { font-size: 18px; }

.feature-box { background: #ffffff; border: 3px double #0000ff; padding: 15px; margin-top: 25px; }

.daily-features { display: flex; gap: 15px; text-align: center; margin-bottom: 20px; }
.daily-box { flex: 1; padding: 10px; border: 2px dashed #ff00ff; background: #fff0ff; }
#omikuji-button { font-weight: bold; cursor: pointer; padding: 5px 10px; }
#omikuji-result { margin-top: 5px; font-weight: bold; font-size: 18px; }
#omikuji-quote { font-size: 12px; margin-top: 5px; color: #333; height: 3em; }

.bbs-container { background-color: #efefef; padding: 10px; border: 1px solid #ccc; }
.bbs-posts {
    margin-top: 15px; font-size: 14px; max-height: 300px; overflow-y: auto;
    background-color: #fff; padding: 5px; border: 1px inset #888;
}
.post { margin-bottom: 10px; }
.post-header .name { color: #008000; }
.post-header .mail { color: #0000ff; }
.post-header .date, .post-header .id { color: #808080; }
.post-message { padding-left: 1em; line-height: 1.4; word-wrap: break-word; }

.gadget { margin-top: 20px; padding: 10px; border: 2px dashed #0000ff; }
.gadget-title { font-weight: bold; text-align: center; margin: 0 0 10px 0; }
#stopwatch-display {
    font-size: 18px; text-align: center; background: #000; color: #00ff00;
    padding: 5px; margin-bottom: 5px; font-family: 'Courier New', monospace;
}
.stopwatch-buttons button { width: 48%; font-size: 12px; }

.modal {
    position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); display: none;
    background: linear-gradient(45deg, #ffddff, #ddffff); border: 5px outset #ccc;
    padding: 15px; z-index: 4000; box-shadow: 10px 10px 5px rgba(0,0,0,0.5); text-align: center;
}
.modal-header { text-align: right; }
.close-button {
    display: inline-block; cursor: pointer; background: #ff0000; color: #fff;
    border: 2px outset #ff8888; padding: 0 8px; font-weight: bold; margin-bottom: 10px;
}
#game-canvas { background: #000; border: 2px inset #888; }
.star {
    position: fixed; pointer-events: none; width: 10px; height: 10px;
    background: yellow; border-radius: 50%; z-index: 9999; transition: transform 0.1s;
}

#calculator-display {
    width: 95%; height: 30px; text-align: right; font-size: 20px; background: #fff;
    border: 2px inset #888; margin-bottom: 10px; padding: 0 5px;
}
.calculator-keys { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.calculator-keys button {
    font-size: 18px; border: 2px outset #fff; background: #e0e0e0;
    cursor: pointer; font-family: 'MS Gothic', monospace;
}
.calculator-keys button:active { border-style: inset; }

#chatbot-toggle {
    position: fixed; bottom: 20px; right: 20px;
    width: 80px; height: 80px; background: #800080; color: white;
    border: 3px outset #ff00ff; border-radius: 50%;
    cursor: pointer; z-index: 5000;
    font-size: 12px; font-weight: bold; text-align: center;
    display: flex; align-items: center; justify-content: center;
    animation: pulse 2s infinite;
}
#chatbot-window {
    position: fixed; bottom: 110px; right: 20px;
    width: 350px; background: #f0f0f0; border: 5px outset #ccc;
    z-index: 4999; display: none; box-shadow: -10px 10px 5px rgba(0,0,0,0.5);
}
#chatbot-header {
    padding: 5px; background: linear-gradient(90deg, #000080, #1084d0);
    color: #fff; font-weight: bold; text-align: left;
}
#chatbot-log {
    height: 250px; background: #000; color: #00ff00; font-family: 'Courier New', monospace;
    padding: 10px; overflow-y: auto; text-align: left; border: 2px inset #888; margin: 5px;
}
#chatbot-input-container { display: flex; padding: 5px; }
#chatbot-input { flex: 1; font-family: 'MS Gothic', monospace; }
