/* ============================================================================
   GLOBAL STYLES - LetMeIn
   ============================================================================ */

body {
    background-color: #171717;
}


/* ============================================================================
   LAYOUT STYLES
   ============================================================================ */

.baseLay {
    height: 100%;
    padding: 4%;
    background-color: #40a9ff;
    justify-content: center;
}

.content {
    padding-left: 14%;
    padding-right: 14%;
}


/* ============================================================================
   TYPOGRAPHY STYLES
   ============================================================================ */

.title {
    font-family: "Cinzel", "Libre Baskerville", Georgia, serif;
    font-size: 2em;
    text-align: center;
}

/* ============================================================================
   CARD COMPONENT STYLES
   ============================================================================ */

.card {
    background-color: rgba(50, 50, 50, 0.4);
    backdrop-filter: blur(6px);
    border-radius: 6px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    padding: 4%;
}

.card-title {
    color: white;
    text-align: center;
    font-family: "Cinzel", "Libre Baskerville", Georgia, serif;
    font-size: 2em;
}

.card-text {
    color: white;
    font-size: 1.4em;
    white-space: pre-line;
}

.button-container {
    display: flex;
    justify-content: space-between;
    padding-top: 4px;
}

/* ============================================================================
   PAGE - INTRODUCTION-WIZARD STYLES
   ============================================================================ */

.preload {
    display: none;
}

/* ============================================================================
   PAGE - GAME STYLES
   ============================================================================ */

.chat-container {
    display: flex;
    flex-direction: column;
    height: 500px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    background-color: white;
}

.chat-input-area {
    background-color: #fafafa;
    padding: 16px;
    border-top: 1px solid #f0f0f0;
}

.chat-input-wrapper {
    display: flex;
    gap: 12px;
    align-items: center;
}

.chat-input {
    flex: 1;
}

.chat-send-button {
    flex-shrink: 0;
    min-width: 80px;
}

.message {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.message-player {
    justify-content: flex-end;
}

    .message-player .message-content {
        background-color: #1890ff;
        color: #ffffff;
        border: 1px solid #1890ff;
        border-radius: 12px;
        padding: 10px 14px;
        max-width: 70%;
        word-wrap: break-word;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    }

.message-ai {
    justify-content: flex-start;
}

    .message-ai .message-avatar {
        font-size: 24px;
        flex-shrink: 0;
    }

    .message-ai .message-content {
        background-color: #f0f2f5;
        color: #000000d9;
        border-radius: 12px;
        padding: 10px 14px;
        max-width: 70%;
        word-wrap: break-word;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    }

/* ============================================================================
   MODAL
   ============================================================================ */

.info-button-container {
    display: flex;
    align-items: center;
}

.modal-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -40%);
    /* background: white; */
    border-radius: 6px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    width: 95vw;
    height: 80vh;
    max-width: 95vw;
    max-height: 80vh;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: cadetblue;
    position: sticky;
    top: 0;
    z-index: 10;
    flex-shrink: 0;
}

    .modal-header h2 {
        margin: 0;
        font-size: 1.25rem;
        font-weight: 600;
    }

.modal-header-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.modal-under-header {
    background-color: cadetblue;
    display: flex;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.modal-menu {
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 9;
    overflow-y: auto;
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    text-align: left;
    margin: 0 2% 2% 2%;
    min-height: 0;
}

/*
.modal-body p {
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}
*/

.info-content {
    text-align: left;
    margin-bottom: 1rem;
    color: black;
    font-size: 1em;
    white-space: pre-line;
}

/* ============================================================================
   MARKDOWN
   ============================================================================ */

.markdown-content {
}

    .markdown-content h1 {
        border-bottom: 2px solid #3498db;
    }

    .markdown-content blockquote {
        border-left: 4px solid #3498db;
        font-style: italic;
    }

    .markdown-content code {
        background: #ecf0f1;
        padding: 2px 6px;
        border-radius: 3px;
        font-family: 'Courier New', monospace;
    }

    .markdown-content pre {
        background: #2c3e50;
        border-radius: 5px;
        overflow-x: auto;
    }

    .markdown-content table {
        border-collapse: collapse;
        width: 100%;
    }

    .markdown-content th, .markdown-content td {
        border: 1px solid #bdc3c7;
    }

    .markdown-content th {
        background: #3498db;
    }

/* ============================================================================
   DEBUGGER
   ============================================================================ */

.debug {
    background-color: cornflowerblue;
    color: black;
    display: flex;
    gap: 1%;
    margin: 0 auto;
    padding: 1%;
}

.debug-box {
    height: 100%;
    border: 1px solid;
    background-color: ghostwhite;
    color: black;
    padding: 1%;

}
.debug-box:hover {
    background-color: darkgray;
}

.debug-box-button {
    border: 1px solid;
    background-color: ghostwhite;
    color: black;
    padding: 1%;
}
