@font-face {
    font-family: 'optima_nova';
    src: url('optimanovaltpro-regular.woff2') format('woff2'),
         url('optimanovaltpro-regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;

}

@font-face {
    font-family: 'equity_text';
    src: url('equity_text_b_regular.woff2') format('woff2'),
         url('equity_text_b_regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;

}

@font-face {
    font-family: 'bombonierehairline';
    src: url('bomboniere-hairline.woff2') format('woff2'),
         url('bomboniere-hairline.woff') format('woff');
    font-weight: normal;
    font-style: normal;

}

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

body {
    font-family: 'equity_text', serif;
    background-color: #000402;
    color: #ffffff;
    font-size: 24px;
}

h1 {
    font-size: 64px;
    font-family: 'bombonierehairline';
    font-style: normal;
    font-weight: normal;
    color: #ffffff;
    margin-bottom: 30px;
}


h3 {
    font-family: 'optima_nova';
    font-size: 2.2rem;
    font-style: normal;
    font-weight: 400;
    color: #ffffff;
    margin-bottom: 15px;
    line-height: 1;
}

h4 {
    font-family: sans-serif;
    font-size: 1.25rem;
    font-style: normal;
    color: #ffffff;
    line-height: 1;
}

.hidden {
    display: none !important;
}

/* Session Management Styles */
.session-manager {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000402;
    z-index: 1000;
}

.session-container {
    background-color: #111111;
    padding: 40px;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    text-align: center;
}

.session-container h1 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #ffffff;
}

.session-description {
    font-size: 18px;
    margin-bottom: 30px;
    color: #aaaaaa;
}

.session-actions {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.session-btn {
    background-color: #000402;
    color: white;
    border: 1px solid #333333;
    padding: 15px 30px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.session-btn:hover {
    background-color: #333333;
}

.session-divider {
    font-size: 16px;
    color: #666666;
    margin: 10px 0;
    position: relative;
}

.join-session {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.session-input {
    width: 100%;
    padding: 15px;
    border: 1px solid #333333;
    border-radius: 0;
    font-size: 18px;
    background-color: #000402;
    color: #ffffff;
}

.session-error {
    color: #ff4444;
    margin-top: 20px;
    font-size: 16px;
    min-height: 20px;
}

/* Connection Status Indicator */
.connection-status {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 8px 15px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 100;
    font-size: 14px;
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.status-indicator.online {
    background-color: #4CAF50;
}

.status-indicator.offline {
    background-color: #F44336;
}

.status-indicator.connecting {
    background-color: #FFC107;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

/* Session Info in Sidebar */
.sidebar-header {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 30px;
}

.session-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #aaaaaa;
    background-color: #111111;
    padding: 8px 12px;
    border-radius: 4px;
}

.session-expiration {
    font-size: 12px;
    color: #888888;
    font-style: italic;
}

.copy-btn {
    background: none;
    border: none;
    color: #666666;
    cursor: pointer;
    font-size: 14px;
    transition: color 0.2s;
}

.copy-btn:hover {
    color: #ffffff;
}

/* Main Application Styles */
.container {
    display: flex;
    height: 100vh;
}

.sidebar {
    width: 450px;
    background-color: #000402;
    padding: 30px;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    gap: 30px;
}


.search-container input {
    width: 100%;
    padding: 15px;
    border: 1px solid #333333;
    border-radius: 0;
    font-size: 21px;
    background-color: #000402;
    color: #ffffff;
}

.search-container input::placeholder {
    color: #666666;
}

.card-list {
    flex: 1;
    overflow-y: auto;
}

.card-item {
    padding: 12px 15px;
    margin: 8px 0;
    background-color: #000402;
    color: #ffffff;
    border-radius: 0;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 24px;
}

.card-item span {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Style for active (open) omens in the sidebar */
.card-item.active {
    background-color: #222222;
    border-left: 3px solid #ffffff;
}

.card-item.active:hover {
    background-color: #333333;
}

.card-controls {
    display: flex;
    gap: 8px;
    margin-left: 10px;
}

.edit-btn,
.delete-btn {
    background: none;
    border: none;
    color: #666666;
    cursor: pointer;
    padding: 6px;
    font-size: 24px;
    transition: color 0.2s;
}

.edit-btn:hover {
    color: #ffffff;
}

.delete-btn:hover {
    color: #ff4444;
}

.card-item:hover {
    background-color: #333333;
}

.add-card-form {
    padding-top: 20px;
}

.add-card-form h2 {
    font-size: 27px;
    margin-bottom: 15px;
    color: #ffffff;
}

#newCardContent {
    width: 100%;
    height: 150px;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #333333;
    border-radius: 0;
    resize: vertical;
    background-color: #000402;
    color: #ffffff;
    font-size: 24px;
}

#newCardContent::placeholder {
    color: #666666;
}

#addCardBtn {
    width: 100%;
    padding: 15px;
    background-color: #000402;
    color: white;
    border: 1px solid #333333;
    border-radius: 0;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 24px;
}

#addCardBtn:hover {
    background-color: #333333;
}

.display-area {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
    position: relative;
    background-color: #000402;
    padding-right: 320px;
}

/* Responsive grid layout for omens container */
.omens-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(375px, 1fr));
    gap: 30px;
    padding-bottom: 100px; /* Add padding at the bottom to prevent coin flip container from obscuring omens */
}

.displayed-card {
    background-color: #000402;
    color: #ffffff;
    padding: 23px;
    border-radius: 0;
    box-shadow: none;
    position: relative;
    height: 240px;
    overflow: hidden;
}

.omen-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.omen-title {
font-family: 'optima_nova';
    font-size: 24px;
    margin-bottom: 15px;
    padding-right: 30px;
}

.omen-elements {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    font-size: 21px;
    overflow-y: auto;
    padding-right: 6px;
}

.omen-element {
    padding: 6px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 39px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    color: #666666;
    cursor: pointer;
    transition: color 0.2s;
}

.close-btn:hover {
    color: #ff4444;
}

.special-chars {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.char-btn {
    background: none;
    border: 1px solid #333333;
    color: #ffffff;
    width: 40px;
    height: 40px;
    font-size: 21px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.char-btn:hover {
    background-color: #333333;
}

.save-load-buttons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.save-load-buttons button {
    flex: 1;
    padding: 12px;
    background-color: #000402;
    color: white;
    border: 1px solid #333333;
    border-radius: 0;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 21px;
}

.save-load-buttons button:hover {
    background-color: #333333;
}

/* Coin flip container styling - positioned at the bottom with z-index to ensure it doesn't obscure omens */
.coin-flip-container {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 4, 2, 0.9);
    padding: 15px 30px;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
}

.coin-flip-btn {
    background-color: #000402;
    color: white;
    border: 1px solid #333333;
    padding: 12px 30px;
    font-size: 21px;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-bottom: 10px;
}

.coin-flip-btn:hover {
    background-color: #333333;
}

.coin-history {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 500px;
}

.history-item {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: transform 0.3s, opacity 0.3s;
}

/* 3D Interface Styles - Updated */


#threeDCanvas {
    width: 100%;
    height: 300px;
    background-color: #000402;
    border-radius: 5px;
    margin-bottom: 10px;
    overflow: hidden;
}

.shape-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.shape-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.shape-btn {
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 3px;
    padding: 5px 10px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.shape-btn:hover {
    background-color: #444;
}

.shape-btn.active {
    background-color: #ff4444;
}

.color-picker {
    display: flex;
    align-items: center;
    gap: 10px;
}

.color-picker label {
    color: #ccc;
}

.color-picker input[type="color"] {
    width: 25px;
    height: 25px;
    border: none;
    border-radius: 3px;
    background: none;
    cursor: pointer;
}

.shape-instructions {
    display: flex;
    flex-direction: column;
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

/* Edit Modal Styles */
.edit-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background-color: #000402;
    padding: 30px;
    border-radius: 0;
    width: 80%;
    max-width: 600px;
}

.modal-content h2 {
    font-size: 27px;
    margin-bottom: 15px;
    color: #ffffff;
}

#editContent {
    width: 100%;
    height: 200px;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #333333;
    border-radius: 0;
    resize: vertical;
    background-color: #000402;
    color: #ffffff;
    font-size: 24px;
}

.modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.modal-buttons button {
    padding: 12px 30px;
    background-color: #000402;
    color: white;
    border: 1px solid #333333;
    border-radius: 0;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 21px;
}

.modal-buttons button:hover {
    background-color: #333333;
}

/* Panel layout */
.right-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 350px;
    height: 100vh;
    background-color: #000402;
    padding: 5px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.right-panel h3 {
    margin-bottom: 15px;
    color: #ffffff;
    font-size: 24px;
}

/* Error and status message styles */
.save-error, .data-fetch-error, .status-message {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 0;
    font-size: 18px;
    z-index: 10;
}

.save-error {
    background-color: rgba(255, 68, 68, 0.8);
    color: white;
    border-left: 4px solid #ff0000;
}

.data-fetch-error {
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    border: 1px solid #ff4444;
    padding: 30px;
    text-align: center;
}

.data-fetch-error h3 {
    color: #ff4444;
    margin-bottom: 15px;
}

.data-fetch-error button {
    background-color: #333333;
    color: white;
    border: none;
    padding: 10px 20px;
    margin-top: 20px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.data-fetch-error button:hover {
    background-color: #555555;
}

.status-message {
    background-color: rgba(0, 0, 0, 0.8);
    color: #ffffff;
    border-left: 4px solid #4CAF50;
}

.status-message.saving {
    border-left-color: #FFC107;
}

/* Add styles for the 3D interface button */
.open-3d-btn {
    background-color: #000402;
    color: white;
    border: 1px solid #333333;
    padding: 12px 30px;
    font-size: 21px;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-bottom: 10px;
}

.open-3d-btn:hover {
    background-color: #444;
    color: #fff;
}

.open-3d-btn:active {
    background-color: #2a2a2a;
}

/* Ensure coin flip container has proper spacing */
.coin-flip-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
}

/* Update existing styles as needed */
