@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;
}

.container {
    display: flex;
    height: 100vh;
}

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

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;
}

.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;
}

/* 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 {
    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;
}

