/* -------------------------------- Page Background -------------------------------- */

*{
    margin: 0;
    padding: 0;
}

html {
    color: #ffffff; 
    text-align: center;
}

body {
    background-color: #000000; 
}

h1, h2, h3 {
    color: #ffffff; 
    margin: 10px 0;
}

h4 {
    color: #ffffff; 
    margin: 5px 0;
}

.small-text {
    font-size: 0.75em; 
    line-height: 1.2; 
    color: inherit; 
}

.small-text-2 {
    font-size: 0.56em; 
    line-height: 1.2; 
    color: inherit; 
}

.link {
    text-decoration: none; 
    color: inherit; 
    outline: none; 
}
/* -------------------------------- IMAGES --------------------------------*/

.axie-img {
    width: 148px;
    height: 108px;
}


.title-icon {
    width: 18px;
    height: 18px;
    padding-left: 4px;
}

.class-icon {
    width: 24px;
    height: 24px;
    padding-right: 3px;
}

.parts-icon {
    width: 12px;
    height: 12px;
    padding-right: 4px;
}

.eth-icon {
    width: 12px;
    height: 20px;
    padding-right: 4px;
}


/* -------------------------------- MAIN CONTAINER BEGIN --------------------------------*/
.main-container {
    font-family: 'Poppins', sans-serif;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 5px; 
    width: 100%;
    max-width: 100%;
}

.column-1, .column-3 {
        grid-column: span 2; 
    }

.column-2 {
        grid-column: span 8; 
}

/*.column-1 ins.adsbygoogle, .column-3 ins.adsbygoogle {
    width: 100% !important;
    height: auto !important;
    max-width: 100%;
}*/

.box {
    width: 100%;
    height: 1px;
    background-color: #f0f0f0; 
    border: 2px solid #333; 
    border-radius: 10px; 
    padding: 10px; 
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1); 
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #333;
    text-align: center;
    box-sizing: border-box; 
}
  
/* -------------------------------- FILTER CONTAINER BEGIN --------------------------------*/
.filter-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr); 
    gap: 8px; 
    border: 1px solid rgb(75,82,92);
    border-radius: 10px;
    width: 100%;
    margin-bottom: 5px;
}
/* -------------------------------- PARTS CONTAINER BEGIN --------------------------------*/
.parts-container {
    display: grid;
    grid-template-columns: repeat(9, 1fr); 
    gap: 15px; 
    border: 1px solid rgb(75,82,92);
    border-radius: 10px;
    width: 100%;
    margin-bottom: 5px;
}
/* -------------------------------- SUB-FILTER CONTAINER BEGIN --------------------------------*/
.subfilter-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 15px; 
    border: 1px solid rgb(75,82,92);
    border-radius: 10px;
    width: 100%;
    margin-bottom: 5px;
}
/* -------------------------------- SELECTION FILTER CONTAINER BEGIN --------------------------------*/
.selection-filter-container {
    display: flex; 
    flex-wrap: wrap; 
    gap: 15px; 
    border: 1px solid rgb(75,82,92);
    border-radius: 10px;
    width: 100%;
    margin-bottom: 5px;
    text-align: left;
}

.selected-filter {
    display: flex;
    align-items: center; 
    padding: 5px 10px;
    border-radius: 4px;
}

.clear-button {
    display: block;
    background-color: #f44336;
    color: white;
    padding: 5px;
    margin-bottom: 10px;
    border: none;
    cursor: pointer;
    text-align: center;
    width: 100%;
}

.clearButton:hover {
    background-color: #d32f2f;
}

.clearAllButton {
    display: block;
    background-color: #f44336;
    color: white;
    border: none;
    cursor: pointer;
    text-align: center;
    width: 108px;
    height: 28px;
    margin-top: 1px;
    margin-bottom: 1px;
    margin-left: 5px;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(198, 206, 255, 0.5);
    color: #ffffff;
    padding: 8px 12px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
}

.dropdown-toggle:hover {
    background-color: #3b3b3b;
}

.dropdown-menu {
    display: none;
    position: absolute;
    background-color: rgb(41, 40, 40);
    min-width: 160px;
    max-height: 250px;
    overflow-y: auto;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color:#ffffff;
}

#searchInput {
    width: 100%;
    padding: 5px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    box-sizing: border-box;
}

.dropdown-menu .dropdown-item {
    display: block;
    margin-bottom: 5px;
}

.dropdown.show .dropdown-menu {
    display: block;
}

.class-selection {
    grid-template-columns: repeat(5, 1fr);
    display: grid;
    flex-wrap: wrap;
    gap: 10px;
}

.class-selection a img {
    width: 20px; 
    height: 20px;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}

.class-selection a img:hover {
    transform: scale(1.1);
}

.class-filter.selected img {
    border: 2px solid blue; 
}


/* -------------------------------- SALES CARD STRUCTURE BEGIN --------------------------------*/
.card-container{
    display: grid;
    grid-template-columns: repeat(auto-fit, 280px);
    gap: 15px;
    justify-content: center;
}

.card {
    padding: 0.5em;
    border: 1px solid rgb(75,82,92);
    border-radius: 10px;
    background-color: #222429;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: background-color 0.1s ease-in-out, box-shadow 0.1s ease-in-out, transform 0.1s ease-in-out;
}

.card:hover {
    background-color: #2a2c33;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    transform: scale(1.2);
    z-index: 10; 
}

.card.aquatic {
    background: linear-gradient(to top, #222429 0%, #0f4c58 99.5%, #35c2de 100%);
    border-color: #35c2de;
}

.card.beast {
    background: linear-gradient(to top, #222429 0%, #684209 99.5%, #f59b14 100%);
    border-color: #f59b14;
}

.card.plant {
    background: linear-gradient(to top, #222429 0%, #4b543c 99.5%, #96cb00 100%);
    border-color: #96cb00;
}

.card.bug {
    background: linear-gradient(to top, #222429 0%, #962824 99.5%, #ff433e 100%);
    border-color: #ff433e;
}

.card.bird {
    background: linear-gradient(to top, #222429 0%, #9c3763 99.5%, #fa59a0 100%);
    border-color: #fa59a0;
}

.card.reptile {
    background: linear-gradient(to top, #222429 0%, #5d3f99 99.5%, #9967fb 100%);
    border-color: #9967fb;
}

.card.dawn {
    background: linear-gradient(to top, #222429 0%, #01626b 99.5%, #029fae 100%);
    border-color: #029fae;
}

.card.mech {
    background: linear-gradient(to top, #222429 0%, #333e41 99.5%, #71898e 100%);
    border-color: #71898e;
}

.card.dusk {
    background: linear-gradient(to top, #222429 0%, #454f88 99.5%, #7183e3 100%);
    border-color: #7183e3;
}

.row {
    padding-bottom: 4px;
    padding-top: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.first-row {
    display: grid;
    grid-template-columns: 20px 40px 120px 40px 20px;
}

.circle {
    width: 100%; 
    height: 100%; 
    border-radius: 50%; 
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px; 
    border: 2px solid rgb(83, 87, 92); 
    background-color: rgb(75,82,92); 
    color: white; 
}

.second-row {
    display: grid;
    grid-template-columns: 108px 1fr; 
}

.second-row .col:nth-child(2) {
    display: grid; 
    grid-template-rows: repeat(6, 1fr); 
    gap: 2px; 
}

.second-row .col:nth-child(2) div {
    padding: 1px;
    border-radius: 1px;
    text-align: start;
    color: white; 
}


.first-row .col, .second-row .col {
    display: flex;
    align-items: center;
    justify-content: center;
}

.row:last-child {
    border-bottom: none; 
}

.pagination {
    display: inline-block;
    padding-top: 2rem;
  }
  
  .pagination a {
    width: 120px;
    color: white;
    float: left;
    padding: 8px 16px;
    text-decoration: none;
    transition: background-color 0.3s;
    margin: 4px;
    background-color: #222429;
    border-radius: 4px;
  }
  
  .pagination a:hover {
    background-color: #555;
  }
  
  .pagination a.active {
    background-color: #f4511e;
    color: white;
  }
  
  .pagination a.prev, .pagination a.next {
    background-color: #444;
  }

  .promo {
    color: white;
    border-radius: 25px;
    width: 12vw;
    height: 400px;
    float: right;
    padding: 10px;
  }
  .promo_mobile {
    color: white;
    border-radius: 10px;
    width: 65vw;
    height: 380px;
    padding: 10px;
  }
/* Media query for mobile screens */
@media (max-width: 768px) {
    .filter-container, .parts-container, .subfilter-container {
        grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); 
    }
    .column-1, .column-3 {
        visibility: hidden;
        height: 0;
    }
}

@media (min-width: 769px) {
    .promo_mobile {
        display: none;
    }
}