body {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: Arial, sans-serif;
    height: calc(100vh - 16px);
    width: 100%;
    margin: 0;
    padding: 0;
}

#search-wrapper {
    z-index: 1;
}

.preview {
    width: 90%;
    z-index: 150000;
    max-width: 350px;
    object-fit: cover;
    align-self: center;
    visibility: hidden;
}

#preview-wrapper {
    position: relative;
    height: 100%;
    width: 30%;
    /* max-width:380px; */
    overflow: hidden;
    justify-content: center;
    /* border-color: #000000;
    border-width: 2px;
    border: solid; */
    min-width: 250px;
}

#preview-image {
    visibility: visible;
    z-index: 99999;
    padding: 4px;
    border: 3px black;
    border-radius: 20px;
    box-shadow: 0 0 25px 10px #ffe2ff;
}

#preview-image:hover {
    opacity: 0.7;
}

#preview-overlay {
    position: absolute;
    opacity: 0;
    background-color: rgba(0, 0, 0, 0.3);
    color: white;
    font-size: 24px;
    transition: opacity 0.3s;
    justify-content: center;
    align-items: center;
    display: flex;
}

#preview-wrapper:hover #preview-overlay {
    opacity: 1;
}

#search-button {
    margin: 2px;
    padding: 8px 12px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    background-color: #7c0005;
    color: white;
    cursor: pointer;
}

.select2-container {
    display: None !important;
}

#search-button:hover {
    opacity: 0.9;
}

#logo-image {
    height:45px;
    margin-right: 20px;
    justify-self: right;
}

#logo-image:hover {
    cursor: pointer;
}

#button-wrapper {
    display: flex;
    align-items: center;
}

/* #card-row {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    width: 85%;
    height: 90%;
} */
.ui-autocomplete {
    position: absolute;
    z-index: 1001;
    cursor: default;
    padding: 0;
    list-style: none;
    background-color: #ffffff;
    border: 1px solid #ccc;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-size: 16px;
}

.ui-autocomplete>li {
    padding: 8px 12px;
    cursor: pointer;
}

.ui-autocomplete>li:hover {
    background-color: #f1f1f1;
}

.wrapper {
    display: flex;
    height: 100%;
    width: 100%;
    box-sizing: border-box;
}

.centered-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 80%;
    text-align: center;
}

#search-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* margin-right: 20px; */
    width: 100%;
    /* margin-left: auto; */
    justify-content: center;
}

#results-wrapper {
    flex-direction: column;
    height: 90%;
    background-color: #dbe5eb;
    /* visibility: hidden; */
    text-align: center;
    align-items: center;
    align-self: center;
    overflow-y: auto;
    padding: 5px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    max-width: 900px;
    min-width: 300px;
}

.tagify {
    --tag--max-width: 250px;
    width: 80%;
    max-width: 600px;
    min-width: 250px;
    direction: ltr;
    text-align: left;
    border: solid rgba(0, 0, 0, 0.6) 2px;
    border-radius: 24px;
}

/* enables text trim */
.tagify .tagify__tag-text {
    white-space: nowrap;
}

#search-bar-wrapper {
    margin-top: 20px;
    /* margin-left: 30px; */
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    height: 10%;
    width: 100%;
}

#search-bar-and-button {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: left;
    height: 100%;
    width: 70%;
}

.result-item {
    padding: 10px;
    padding-bottom: 15px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    margin-left: 12px;
    margin-right: 12px;
    /* max-width: 90%; */
}

.result-item:hover {
    opacity: 0.8;
    cursor: pointer;
}

.result-item h4 {
    font-size: 1.2em;
    line-height: 1.2;
}

.result-item p {
    margin: 0;
    color: #777777;
}


.rarity {
    padding: 2px 4px;
    border-radius: 4px;
    margin-right: 10px;
    color: white;
    font-weight: bold;
    font-size: small;
    min-width: 80px;
    text-align: center;
    align-self: center;
}

.rarity.common {
    background-color: rgb(226, 226, 226);
    color: rgb(0, 0, 0)
}

.rarity.uncommon {
    background-color: rgb(93, 93, 93);
    color: silver
}

.rarity.rare {
    background-color: gold;
}

.rarity.mythic {
    background-color: orange;
}

.power-toughness {
    /* margin-right: 10px; */
    font-weight: bold;
    /* box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); */
    position: absolute;
    bottom: 0px;
    right: 0px;
    z-index: 100;
    border: 2px solid #4d4c4c;
    border-radius: 5px;
    padding: 3px;
    background-color: #f4f3f3;
    align-items: center;
    align-self: center;
    /* padding-left: 10px; */
    min-width: 40px;
    text-align: center;
}

.oracle-text {
    font-style: italic;
    color: #030303;
}

.mana-icon {
    width: 16px;
    height: auto;
    /* Maintain the aspect ratio */
    vertical-align: middle;
}

.result-item-details {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin-top: 5px;
    margin-bottom: 5px;
}

.mana-cost {
    align-self: center;
    padding-left: 10px;
    margin-right: 10px;
}

.rarity {
    align-self: center;
}

.result-header {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    max-height: 30px;
}


.result-item.W {
    background-color: #ffffff;
}

.result-item.U {
    background-color: #cce6ff;
}

.result-item.B {
    background-color: #d6ccd6;
}

.result-item.R {
    background-color: #f8d6cc;
}

.result-item.G {
    background-color: #d6e6cc;
}

.result-item.multi-color {
    background-color: #fbdc61fb;
}

.result-item.colorless {
    background-color: #e6e5e5fb;
}

.type_line.W {
    background-color: #fffdf4eb;
    border: 2px solid #030303;
}

.type_line.U {
    background-color: #caddfc;
    border: 2px solid #194782;
}

.type_line.B {
    background-color: #eee7fd;
    border: 2px solid #bfb1b1;
}

.type_line.R {
    background-color: #fee8e8;
    border: 2px solid #c02222;
}

.type_line.G {
    background-color: #ecfff1;
    border: 2px solid #0d4507;
}

.type_line.multi-color {
    background-color: #fcfae9;
    border: 2px solid #5f5401;
}

.type_line.colorless {
    background-color: #ffffff;
    border: 2px solid #b2b1a8;
}

.similarity-bar {
    position: relative;
    display: flex;
    align-self: end;
    margin-left: 17px;
    justify-content: left;
    align-content: center;
    flex-direction: row;
    width: 90%;
    bottom: 18px;
}

.similarity-text {
    position: relative;
    z-index: 100;
    font-size: 12px;
    font-weight: bold;
    font-style: italic;
    opacity: 0.3;
    text-align: left;
    align-self: center;
    margin-left: 4px;
}
 .similarity-fill {
    position: relative;
    height: 3px;
    max-height: 3px;
    background-color: rgba(0, 0, 0, 0.2);
    z-index: 99999;
    align-self: center;
}

.similarity-wrapper{
    width: 100%; 
    justify-content: center;
    justify-self: center;
    height: 100%;
}


#chat-container {
    /* display: none; */
    /* margin: 1em 0; */
    margin-left: 5%;
    margin-right: 5%;
    padding: 1em;
    /* border: 1px solid #ccc; */
    /* border-radius: 5px; */
    background-color: #f9f9f9;
    /* width: 40%; */

    max-width: 800px;
    justify-self: center;
    /* justify-content: center; */
}

.chat-message {
    display: flex;
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 5px;
    width: 90%;
    max-width: 700px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

.chat-message p {
    margin: 0;
    color: rgb(3, 0, 0);
    text-align: left;
}

.chat-message.left {
    align-self: flex-start;
}

.chat-message.right {
    align-self: flex-end;
}

.chat-message.light {
    background-color: #e0d8ff;
}

.chat-message.dark {
    background-color: #ffdede;
}
.message-row {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    align-content: center;
    margin-bottom: 10px;
}

.sender {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80px;
    padding: 10px;
    margin-right: 10px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    background-color: rgba(176, 176, 176, 0.497);
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.3);
}

.sender.user {
    color: #ffffff;
    font-weight: bold;
    background-color: #7755ff;
}

.sender.assistant {
    color: #ffffff;
    font-weight: bold;
    background-color: #c44646;
}

@media only screen and (max-width: 585px) {
    #preview-wrapper {
        display: none;
    }
    .concept-box {
        width: 70px !important;
    }
    .concept-label {
        display: None;
    }
}

@media only screen and (max-width: 585px) {
    .result-header {
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        max-height: 45px;
    }
    #logo-image {
        margin-right: 0px;
    }
}

@media only screen and (max-width: 385px) {
    .similarity-fill {
        display: none;
    }
    .select2-container {
        display: None !important;
    }
    .concept-box {
        padding: 1px !important;
    }
    .result-item {
        margin-right: 3px;
    }
    .concept-tooltip {
        width: 200px !important;
    }
}

@media only screen and (max-width: 745px) {
    #search-bar-wrapper {
        flex-direction: column;
        margin-left: 0px;
    }
    #search-bar-and-button {
        margin-left: 5px;
        justify-content: center;
        width: 90%;
    }
}

.concept-wrapper{
    width: 100%; 
    justify-content: center;
    justify-self: center;
    height: 100%;
    flex-direction: row;
    display: flex;
}

.concept-box {
    width: 100px;
    /* border: 1px solid #ccc; */
    /* border-radius: 8px; */
    /* background-color: #ffffff; */
    padding: 4px;
    /* align-content: center; */
    /* overflow-y: scroll; */
  }
  
.concept-item {
    position: relative;
    width: 100%;
    height: 18px;
    line-height: 18px;
    border-radius: 8px;
    color: #000000;
    font-weight: bold;
    margin-bottom: 3px;
    text-align: center;
    background-color: #f5f5f5;
    /* opacity: 0.7; */
}
.concept-item:hover {
    opacity: 1;
    color: #030303;
    cursor: pointer;
}

.concept-fill {
    position: absolute;
    height: 100%;
    border-radius: 8px;
    background-color: #5f61ed;
    opacity: 0.6;
}

.concept-item span {
    position: relative;
    z-index: 1;
    opacity: 0.6;
}

.concept-item:last-child {
    margin-bottom: 0;
}

.concept-tooltip {
    visibility: hidden;
    background-color: #555;
    color: #fff;
    text-align: left;
    border-radius: 6px;
    padding: 10px;
    position: absolute;
    z-index: 9999999;
    top: 0%;
    left: 0%;
    transform: translateX(-100%); /* Center the tooltip horizontally */
    opacity: 0;
    transition: opacity 0.3s;
    width: 300px; /* Set a fixed width for the tooltip */
    box-sizing: border-box;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-size: smaller;
}
  
.concept-item:hover .concept-tooltip {
    visibility: visible;
    opacity: 1;
}
  
  
  