.search-box {
    max-width: 400px;
}

.search-box-stats {
    max-width: 125px;
}

.search-box,
.search-box-stats {
    display: inline-block;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    height: 35px;
    box-sizing: border-box;
    font-size: 16px;
}

.index-content {
    text-align: center;
}

/* Override Bootstrap margin on p element inside .header */
.header p {
    margin-bottom: 0; 
  }

.header {
    margin-bottom: 1rem;
    /* margin-top: 1rem; */
    background-color: lightgrey;
    padding: 10px;
    font-size: 18px;
}
  

.card-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-gap: 10px;
    max-width: 100%;
    margin: 20px 0 15px 0;
    padding: 0 2.5%;
    justify-content: center;
}

.card-grid img {
    max-width: 275px;
}

/* .card-image-controls-item { */
    /* border-bottom: 2px solid #ccc; Add bottom border to the button container */
    /* padding-bottom: 10px;  */
 /* }   */

.card-grid-container {
    justify-content: center;
}

.card-set-item {
    padding: .75rem;
}

.card-set-title {
    font-weight: bold;
}


.sort-container {
    display: flex;
    justify-content: center;
    padding: 5px 15px 20px 15px;
}

.sort-section {
    margin-right: 5px;
}

.sort-order-section {
    margin-left: 5px;
}

.sort-section,
.sort-order-section {
    display: inline-block;
    vertical-align: middle;
}

body {
    padding-top: 65px;
    padding-bottom: 65px;
    min-height: 100vh;
    background: linear-gradient(to bottom, #e6f0ff, #b3d9ff);
}

.result-string {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    flex-direction: column;
}

p {
    /* font-size: 18px; */
    margin-left: 2px;
    margin-right: 2px;
}

.submit-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
}

.homepage-search {
    font-size: 24px;
    margin-top: 20px;
}

.homepage {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-row:hover .hover-card-image {
    display: block;
}


.hover-card-image {
    position: absolute;
    display: none;
    pointer-events: none;
    z-index: 9999;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hover-card-image img {
    max-width: 300px;
    max-height: 400px;
}

.table-container {
    width: 100%;
    overflow-x: auto;
    align-items: center;
    justify-content: center;
    display: flex;
}

/* #cardTable tr > *:nth-child(1) {
    display: none;
} */

.table-container table {
    display: inline-table;
    width: auto;
}

/* .dataTables_wrapper table {
    display: inline-table;
    width: auto;
} */

/* Sets page table spacing and layout */
#setsTable {
    width: 100% !important;
    table-layout: auto;
}

#setsTable th,
#setsTable td {
    padding: 10px 14px; /* More breathing room */
    vertical-align: middle;
}

@media (min-width: 992px) {
    #setsTable th,
    #setsTable td {
        padding: 12px 18px;
    }
}

.table-cell {
    text-align: left;
    padding: 5px;
}

.checklist-table tbody tr:nth-child(even) {
    background-color: #f2f2f2dc;
}

#cardTable th.sortable {
    cursor: pointer;
}

.card-img {
    justify-content: center;
    align-items: center;
    position: relative;
    display: inline-block;
    /* padding-top: 35px; */
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.display-price {
    text-align: center;
    padding-top: 10px;
}

.variant-img {
    display: flex;
}

.variants-container {
    margin-top: 50px;
}

.toggle-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: 50px;
    /* Adjust the size of the button */
    height: 50px;
    /* Adjust the size of the button */
    border-radius: 50%;
    /* Make the button circular */
    background-color: rgba(255, 255, 255, 0.3);
    /* Adjust the opacity as needed */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease;
    /* Add any other styling for the toggle button */
}

.toggle-button::after {
    content: "\2192";
    /* Unicode arrow character */
    font-size: 24px;
    /* Adjust the size of the arrow */
    top: 10px;
    position: absolute;
    /* Add any other styling for the arrow */
}

.toggle-button::before {
    content: "\2190";
    /* Unicode arrow character pointing to the left */
    font-size: 24px;
    /* Adjust the size of the arrow */
    position: absolute;
    top: 0px;
    left: 50%;
    transform: translateX(-50%);
    /* Add any other styling for the arrow */
}


.toggle-button:hover {
    background-color: white;
}

.aspect-icons {
    display: flex;
    gap: 10px;
    /* Adjust the desired spacing between aspect icons */
    align-items: center;
}

#card-title-aspects {
    gap: 0px;
}

.card-type-span {
    padding-left: 5px;
    font-weight: bold;
}

.card-text,
.card-back-text {
    border-left: 1px solid black;
    margin-left: 10px;
    padding-left: 5px;
}

.card-traits {
    padding-left: 5px;
    font-weight: bold;
    font-style: italic;
}

.card-stats {
    padding-left: 5px;
    border-bottom: 1px black dotted;
}

.card-artist {
    padding-left: 5px;
}

.card-set {
    display: flex;
    padding-left: 5px;
    padding-right: 5px;
    justify-content: space-between;
}

.card-rarity {
    text-align: right;
    padding-right: 5px;
}

.card-epic-action {
    padding-left: 5px;
}

.card-power {
    color: crimson;
    font-weight: bold;
    font-size: x-large;
    padding-right: 2px;
}

.card-hp {
    color: darkcyan;
    font-weight: bold;
    font-size: x-large;
    padding-left: 2px;
}

.aspect-icon img {
    /* Adjust the desired width and height */
    width: 30px;
    height: 30px;
    justify-content: center;
}

#card-title img {
    /* Adjust the desired width and height */
    width: 40px;
    height: 40px;
}

.parameter-input label img {
    width: 30px;
    height: 30px;
    justify-content: center;
}

.card-image {
    flex: 0 0 auto;
    margin-right: 20px;
    max-width: 336px;
    max-height: 468px;
}

.card-image img {
    max-width: 336px;
    max-height: 468px;
}

.card-info {
    flex: 1 1 auto;
    border: 1px solid black;
    justify-content: left;
    max-width: 600px;
}

.card-info div p {
    text-align: left;
}

.card-details {
    padding-top: 50px;
    padding-left: 15px;
    padding-right: 15px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.card-details-container {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-content: center;
}

.tooltip-inner {
    text-align: left !important;
}

/* Media query for smaller screens, adjust the max-width as needed */
@media (max-width: 768px) {
    .card-details {
        flex-direction: column; /* Stack items vertically on smaller screens */
    }

    .card-iterator-container {
        flex-direction: column;
    }

    .card-image {
        margin-right: 0; /* Remove margin for better spacing on smaller screens */
        
    }

    .card-details>.card-image {
        margin-bottom: 60px;
    }
    .prev-link {
        margin-bottom: 20px;
    }

    .next-link {
        margin-top: 20px;
    }
}

.card-link {
    color: #106bc5;
    cursor: pointer;
}

.keyword-text {
    color: maroon;
}

.red-text {
    font-weight: bolder;
    font-size: larger;
    color: white;
    text-shadow: -1px -1px 0 maroon, 1px -1px 0 maroon, -1px 1px 0 maroon, 1px 1px 0 maroon;
    margin-right: 2px;
}

.blue-text {
    font-weight: bolder;
    font-size: larger;
    color: white;
    text-shadow: -1px -1px 0 darkcyan, 1px -1px 0 darkcyan, -1px 1px 0 darkcyan, 1px 1px 0 darkcyan;
    margin-left: 2px;
}

.cost-text {
    color: goldenrod;
    font-weight: bold;
    font-size: x-large;
}

.power-text {
    color: crimson;
    font-weight: bold;
}

.health-text {
    color: darkcyan;
    font-weight: bold;
}


.aspect-wrapper,
.math-search-wrapper,
.text-search-wrapper,
.main-content {
    /* display: flex; */
    justify-content: space-between;
    padding-top: 10px;
    padding-left: 15px;
    padding-right: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ccc;
}

.aspect-desc,
.aspect-examples,
.math-search-desc,
.text-search-desc {
    flex-basis: 48%;
    text-align: left;
    align-items: center;

}

.aspect-examples-wrapper,
.math-search-examples-wrapper,
.text-search-examples-wrapper {
    display: flex;
    align-items: center;
}

code {
    font-size: 16px;
}

.search-parameter {
    display: flex;
    /* align-items: center; */
    flex-wrap: wrap;
}

.parameter-label {
    margin-right: 10px;
}

.parameter-input {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.checkbox-wrapper {
    margin-right: 10px;
}

/* Increase checkbox size */
.checkbox-wrapper input[type="checkbox"] {
    transform: scale(1.75);
}

.parameter-input label input[type="checkbox"] {
    margin-left: 10px;
    transform: scale(1.75);
}

.aspect-icon-srch {
    margin-right: 2px;
}

.aspect-name {
    white-space: nowrap;
}



.aspect-icon-srch img {
    /* Adjust the desired width and height */
    width: 30px;
    height: 30px;
    /* justify-content: center; */
}

.label-space {
    display: inline-block;
    width: 10px;
    /* Adjust the width as desired */
}


.select-dropdown {
    margin-top: 5px;
    margin-bottom: 5px;
    width: 200px;
    /* Adjust the width as needed */
    height: 35px;
    -webkit-appearance: menulist-button;
}

.select-dropdown option {
    padding: 8px 12px;
    /* Adjust the padding as needed */
}

.select-dropdown-stats {
    width: 100px;
}

.form-container {
    max-width: 100%;
    /* Set the maximum width of the container */
    padding: 0 20px;
    /* Add some horizontal padding to prevent overflowing */
    margin: 0 auto;
    /* Center the container */
}

@media (min-width: 768px) {
    .form-container {
        max-width: 768px;
        /* Adjust the maximum width for larger screens */
    }

    .search-parameter {
        flex-wrap: nowrap;
    }

    .parameter-label {
        margin-bottom: 0;
        /* Remove the vertical spacing between parameters */
    }

    .parameter-input {
        flex-basis: 70%;
        /* Adjust the width of the input for larger screens */
    }

}

.parameter-input {
    flex-basis: 100%;
}

.form-container {
    max-width: 100%;
    /* Set the maximum width of the container */
    padding: 0 20px;
    /* Add some horizontal padding to prevent overflowing */
    margin: 0 auto;
    /* Center the container */
}

.search-parameter {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.parameter-label {
    margin-bottom: 10px;
    /* Add some vertical spacing between parameters */
}

.parameter-input {
    flex-basis: 100%;
}

.card-iterator-container {
    display: flex;
    justify-content: space-between;
    padding: 100px;
    align-items: center;
}

.button {
    padding: 10px 20px;
    text-decoration: none;
    color: white;
    background-color: #007bff; /* Adjust the background color as needed */
    border: 1px solid #007bff; /* Adjust the border color as needed */
    border-radius: 5px;
}

/* Adjust styles for each link as needed */
.prev-link {
    justify-self: flex-start;
}

.center-link {
    justify-self: center;
}

.next-link {
    justify-self: flex-end;
}

.prev-link::before {
    content: '← ';
    padding-right: 5px;
}

.next-link::after {
    content: ' →';
    padding-left: 5px;
}


#advanced-btn {
    align-items: left;
    margin-top: 20px;
    margin-bottom: 20px;
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#advanced-btn:hover   {
    background-color: #45a049;
}

.advanced-btn {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid #fff;
    border-radius: 4px;
    color: #fff;
    text-decoration: none;
    background-color: transparent;
    margin-left: 16px;
}

.home-btn {
    margin-right: 25px;
}

.advanced-btn:hover {
    background-color: #fff;
    color: #000;
}

.search-parameter {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
}

.parameter-label {
    flex-basis: 100%;
    max-width: 200px;
}

.aspect-explain {
    /* max-width: 600px; */
    font-style: italic;
    text-align: left;
}

.advanced-btn {
    margin: 5px;
}



.form-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.search-parameter {
    width: 100%;
    margin-bottom: 10px;
}

.parameter-label {
    text-align: left;
    font-weight: bold;
}

.parameter-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    /* Add this line */
}

.parameter-container .aspect-item {
    display: flex;
    align-items: center;
    margin-right: 10px;
}

.parameter-container .aspect-options,
.parameter-container .aspect-explain {
    flex-basis: 100%;
}

.parameter-container .aspect-options select {
    width: 100%;
    max-width: 300px;
    margin-top: 5px;
}

.search-parameter fieldset {
    width: fit-content;
    /* Add this line */
    margin: 0 auto;
    /* Add this line */
}




.submit-container {
    text-align: center;
    margin-top: 10px;
}


.parameter-input img {
    margin-left: 5px;
    margin-right: 2px;
}

.parameter-input label {
    display: flex;
    align-items: center;
}


.search-parameter {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
}

.search-parameter .parameter-label {
    flex: 0 0 150px;
}

.search-parameter .parameter-input {
    flex: 1;
}

.aspect-options {
    margin-top: 10px;
}

.aspect-explain {
    margin-top: 5px;
}

.search-parameter {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
}

.search-parameter .parameter-label {
    flex: 0 0 150px;
}

.search-parameter .parameter-input {
    flex: 1;
}

.aspect-container label {
    margin-right: 10px;
    display: flex;
    align-items: center;
}

.parameter-input {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

@media only screen and (max-width: 600px) {
    .search-parameter {
        display: flex;
        flex-direction: column;
    }

    .parameter-input {
        align-items: flex-start;
        /* Align content to the left */
    }

    .parameter-label {
        max-height: 25px;
    }

    .card-grid {
        grid-template-columns: repeat(2, 1fr);
        /* Adjust the number as per your requirement */
    }


    /* Adjust styles for smaller screens */
    .table-container {
        overflow-x: scroll;
        /* Enable horizontal scrolling */
    }

    .table-container table {
        display: block;
        /* Switch to block display for better mobile view */
        width: 100%;
        /* Occupy full width on smaller screens */
    }
}

.aspect-container {
    display: flex;
    flex-wrap: wrap;
    /* Add this line to allow contents to wrap */
    text-align: left;
}

.search-parameter {
    border-bottom: 1px solid #ccc;
    padding-bottom: 10px;
    /* Adjust the spacing as needed */
    margin-bottom: 10px;
    /* Adjust the spacing as needed */
}

.exclude-border {
    border-bottom: none;
}

.form-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.icon-aspect {
    background-image: url('/static/images/heroism.png');
    background-repeat: no-repeat;
    background-position: left center;
}


@media (max-width: 825px) {

    .search-box {
        display: inline-block;
        padding: 10px;
        border: 1px solid #ccc;
        border-radius: 5px;
        max-width: 150px;
        box-sizing: border-box;
        font-size: 16px;
    }

    .submit-btn {
        max-width: 75px;
        padding-left: 5px;
        padding-right: 5px;
    }
}

.rarity-text {
    padding-left: 5px;
}

.Cunning {
    background-color: yellow;
}

.Vigilance {
    background-color: lightblue;
}

.Aggression {
    background-color: lightcoral;
}

.Heroism {
    background-color: beige;
}

.Villainy {
    background-color: lavender;
}

.Aggression-Villainy {
    background-color: salmon;
}

/* Default styles */
#cardTable_wrapper {
    display: inline-table; /* Default display */
  }
  
  /* Styles for screen width less than 1600px */
  @media screen and (max-width: 1599px) {
    #cardTable_wrapper {
      display: block;
    }

    .table-container {
        display: block;
    }
  }
  


  /* Style the hover image */
.hover-image {
    position: absolute;
    pointer-events: none; /* Ensures the image doesn't interfere with mouse events */
    /* Add any additional styling for the image */
  }
  
  #image-container img {
    max-width: 300px;
    max-height: 400px;
  }

  .card-row img {
    max-width: 300px;
    max-height: 400px;
  }

  .back-image {
    max-width: 400px;
    max-height: 500px;
  }

  .my-modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 900; /* Sit on top */
    left: 50%;
    top: 50%;
    right: 0;
    max-width: 600px;
    width: 100%;
    transform: translate(-50%, -50%);
    float: left;
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /*Black w/ opacity */
    border: 1px solid #ccc; /* Border */
    border-radius: 5px; /* Border radius */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Box shadow */
  }
  
  .my-modal-header {
    background-color: #fff;
    border-bottom: 1px solid #e3e3e3;
    border-top-left-radius: .375rem;
    border-top-right-radius: .375rem;
    flex-shrink: 0;
    padding: 1.125rem 1.25rem;
  }

  .my-modal-title {
    color: #24292e;
    display: block;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
    text-transform: none;
  }

  .my-modal-body {
    background-color: #fff;
    overflow-y: auto;
    padding: 1.25rem;
  }
  
  /* The Close Button */
  .close {
    color: #aaaaaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
  }
  
  .close:hover,
  .close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
  }

  #card-price-details-modal-entries, .card-price-details-modal-entry {
    display: block;
  }
  
  .card-price-details-modal-entry-card-variant-type-name-container {
    display: block;
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: .375rem;
    padding-left: 1.5rem;
    position: relative;
  }

  .card-price-details-modal-entry-prices {
    column-gap: 1rem;
    display: grid;
    grid-template-columns: repeat(4,1fr);
    margin-bottom: 1.5rem;
  }

  .card-price-details-modal-entry-price-label {
    font-size: .875rem;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: .125rem;
    text-transform: uppercase;
  }

  .my-modal-footer {
    align-items: center;
    background-color: #fff;
    border-bottom-left-radius: .375rem;
    border-bottom-right-radius: .375rem;
    border-top: 1px solid #e3e3e3;
    display: flex;
    flex-shrink: 0;
    flex-wrap: wrap;
    padding: .4375rem 1.25rem;
  }

  .card-price-details-modal-entry-price-label, .card-price-details-modal-entry-price-value {
    display: block;
  }

  .modal-footer-buttons {
    margin-left: auto;
  }

  .card-price-details-modal-entry-vendor-button.button {
    margin-top: .5rem;
  }

  .button-plain, .button-plain.disabled, .button-plain:disabled {
    background-color: #fff;
    border-color: #cfcfcf;
    color: #24292e;
  }

  .button-small {
    border-width: 1px;
    font-size: .875rem;
    font-weight: 400;
    line-height: 1.5;
    min-width: 75px;
    padding: .25rem .5rem;
  }

  .tcgplayer-button {
    border-radius: .25rem;
    border-style: solid;
    display: inline-block;
    overflow: hidden;
    text-align: center;
    text-overflow: ellipsis;
    -webkit-user-select: none;
    user-select: none;
    vertical-align: middle;
    white-space: nowrap;
  }

  .myBtn {
    text-align: center;
    color: #106bc5;
    font-weight: 600;

  }

  .card-image-controls-item {
    display: flex;
  }

  .card-image-controls-item-price {
    margin: 0 auto;
  }

.card-image-controls {
    margin-top: .5rem;
    width: 100%;
    padding-bottom: 25px;
  }

  .card-price-details-modal-entry+.card-price-details-modal-entry {
    border-top: 1px solid #e3e3e3;
    margin-top: .75rem;
    padding-top: .75rem;
  }

.pilot-text {
    border-style: double;
    display: block;
    padding: 5px;
    border-radius: 7.5px;
    border-color: blue;
    margin-top: 10px;
}

.epic-action-text {
    border-style: double;
    display: block;
    padding: 5px;
    border-radius: 7.5px;
    border-color: orange;
    margin-top: 10px;
}

.sentinel-text {
    border-style: double;
    display: block;
    padding: 5px;
    border-radius: 7.5px;
    border-color: red;
    margin-top: 10px;
}

.unique-title-link {
    text-decoration: none;
}

.card-stats-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Ensures 3 equal columns */
    gap: 10px;
    width: 100%;
    border-top: 1px black dotted;
}

.card-set {
    display: contents;
}

.card-set-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Ensures headers have the same height */
.card-set-title {
    min-height: 2.5em; /* Adjust as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: bold;
}

/* Ensures values are aligned properly */
.card-set-text {
    min-height: 3.5em; /* Ensures text fields remain aligned */
    display: flex;
    align-items: center;
    justify-content: center;
}

.trait-link {
    color: black;
}
