/* NIFTY-Serve エミュレータ - レトロスタイル */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #000;
    font-family: 'Courier New', 'Consolas', monospace;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

#container {
    width: 80vw;
    max-width: 1000px;
    height: 90vh;
    max-height: 700px;
    background-color: #000;
    border: 2px solid #0f0;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
    display: flex;
    flex-direction: column;
}

#screen {
    flex: 1;
    background-color: #000;
    color: #0f0;
    padding: 20px;
    overflow-y: auto;
    position: relative;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.05em;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
}

/* スクロールバーのスタイル */
#screen::-webkit-scrollbar {
    width: 10px;
}

#screen::-webkit-scrollbar-track {
    background: #000;
}

#screen::-webkit-scrollbar-thumb {
    background: #0f0;
    border: 1px solid #000;
}

#content {
    white-space: pre-wrap;
    word-wrap: break-word;
}

#cursor {
    display: inline-block;
    animation: blink 1s infinite;
    color: #0f0;
    font-weight: bold;
}

@keyframes blink {
    0%, 49% {
        opacity: 1;
    }
    50%, 100% {
        opacity: 0;
    }
}

#status-bar {
    background-color: #0f0;
    color: #000;
    padding: 5px 20px;
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    font-size: 14px;
}

/* 入力フィールド用のスタイル */
.input-line {
    color: #ff0;
    font-weight: bold;
}

/* メニュー項目のスタイル */
.menu-item {
    cursor: pointer;
    padding: 2px 0;
}

.menu-item:hover {
    background-color: #0f0;
    color: #000;
}

.menu-item.selected {
    background-color: #0f0;
    color: #000;
}

/* ヘッダー・タイトルのスタイル */
.header {
    text-align: center;
    border-bottom: 1px solid #0f0;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.title {
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 0.2em;
}

/* セパレーター */
.separator {
    border-top: 1px solid #0f0;
    margin: 10px 0;
}

/* 投稿表示用 */
.post {
    margin: 10px 0;
    padding: 10px;
    border: 1px solid #0f0;
}

.post-header {
    color: #ff0;
    margin-bottom: 5px;
}

.post-body {
    margin-left: 10px;
}

/* アニメーション効果 */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* CRTスキャンライン効果 */
#screen::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15),
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
}

/* CRTグロー効果 */
#screen::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    pointer-events: none;
}

/* Made with Bob */
