/* ジャンプアクションゲームのスタイルシート */

/* 全体のリセットとベーススタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
    color: #ffffff;
    overflow: hidden;
    height: 100vh;
}

/* ゲームコンテナ */
#gameContainer {
    width: 100vw;
    height: 100vh;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 画面共通スタイル */
.screen {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hidden {
    display: none !important;
}

/* スタート画面 */
#startScreen {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    position: relative;
}

#startScreen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.start-content {
    text-align: center;
    z-index: 1;
    position: relative;
}

.start-content h1 {
    font-size: 3rem;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    color: #e94560;
}

.start-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #a8a8a8;
}

.game-preview {
    width: 400px;
    height: 200px;
    border: 2px solid #e94560;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.3);
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
}

/* ゲーム画面 */
#gameScreen {
    background: #0f0f23;
    position: relative;
}

#gameCanvas {
    border: 2px solid #e94560;
    border-radius: 5px;
    background: linear-gradient(to bottom, #1a1a2e 0%, #16213e 100%);
}



/* モーダルスタイル */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid #e94560;
    text-align: center;
    min-width: 300px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.modal-content h2 {
    color: #e94560;
    margin-bottom: 1rem;
    font-size: 2rem;
}

#finalScore {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #ffffff;
}

.modal-content p {
    color: #a8a8a8;
    font-size: 1.1rem;
    margin-top: 1rem;
}

/* ゲームクリアモーダルの明るいスタイル */
.clear-modal {
    background: linear-gradient(135deg, #4a90e2, #7b68ee, #9370db);
    border: 2px solid #ffffff;
    box-shadow: 0 10px 30px rgba(74, 144, 226, 0.5);
}

.clear-modal h2 {
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.clear-modal #clearFinalScore {
    color: #ffffff;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .start-content h1 {
        font-size: 2rem;
    }
    
    .start-content p {
        font-size: 1.2rem;
    }
    
    .game-preview {
        width: 300px;
        height: 150px;
    }
    
    #gameInfo {
        flex-direction: column;
        gap: 10px;
    }
} 