/* Styles for the Murder Mystery game */

/* Crime scene styling */
.story-intro {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border-left: 4px solid var(--primary-color);
}

.case-file {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.case-file h3 {
    color: #d9534f;
    margin-top: 0;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

.detective-notes {
    background-color: #fffaf0;
    border-left: 4px solid var(--accent-color);
    padding: 1.5rem;
    border-radius: 4px;
    margin: 1.5rem 0;
}

/* Clue navigation */
.clue-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: #f0f4f8;
    border-radius: 8px;
}

#clueCounter {
    font-weight: 600;
    color: var(--primary-color);
}

/* Clue container styling */
.clue-container {
    position: relative;
    min-height: 500px;
}

.clue {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.clue.active {
    display: block;
    opacity: 1;
}

.crime-scene {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.crime-scene h3 {
    color: var(--primary-color);
    margin-top: 0;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

.encrypted-message {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
    margin: 1rem 0;
    border-left: 4px solid var(--primary-color);
    font-family: monospace;
    overflow-x: auto;
}

.evidence-note {
    font-style: italic;
    color: #666;
}

/* Decryption panel styling */
.decryption-panel {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
}

.panel-header {
    margin-bottom: 1rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

.panel-header h4 {
    margin: 0;
    color: var(--primary-color);
}

.cipher-selector, .cipher-controls, .solution-input {
    margin-bottom: 1.5rem;
}

.cipher-control {
    display: none;
    margin-top: 1rem;
}

.cipher-control.active {
    display: block;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.result-display {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
    min-height: 50px;
}

.result-display.correct {
    background-color: rgba(92, 184, 92, 0.2);
    color: #5cb85c;
}

.result-display.incorrect {
    background-color: rgba(217, 83, 79, 0.2);
    color: #d9534f;
}

/* Evidence summary */
.evidence-summary {
    background-color: #f8f9fa;
    border-radius: 6px;
    padding: 1rem;
    margin: 1.5rem 0;
}

.evidence-item {
    padding: 0.5rem 0;
    border-bottom: 1px dashed #ddd;
}

.evidence-item:last-child {
    border-bottom: none;
}

.solved-message {
    font-style: italic;
    color: #999;
}

.solved-message.revealed {
    font-style: normal;
    color: var(--dark-color);
    font-weight: 500;
}

/* Solution panel */
.solution-panel {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.solution-panel h4 {
    margin-top: 0;
    color: var(--primary-color);
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.suspect-selection {
    margin-bottom: 1.5rem;
}

.suspect-selection select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-main);
}

/* Modal styling */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow: auto;
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    max-width: 600px;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-actions {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .clue-navigation {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 0.5rem;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .modal-content {
        margin: 20% auto;
        padding: 1.5rem;
        width: 90%;
    }
    
    .modal-actions {
        flex-direction: column;
    }
}

/* Access code modal */
.access-code-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.access-code-container {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    text-align: center;
}

.access-code-container h2 {
    color: var(--primary-color);
    margin-top: 0;
}

.access-code-container .input-group {
    margin: 1.5rem 0;
}

.access-code-container input {
    text-align: center;
    font-size: 1.2rem;
    letter-spacing: 0.2rem;
    padding: 0.8rem;
}

.access-error {
    color: #d9534f;
    margin-bottom: 1rem;
    min-height: 1.5rem;
}