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

.egg-img {
    width: 96px;
    height: 96px;
}

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

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

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

.memento-icon-price {
    width: 32px;
    height: 32px;
}

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

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

.sleeping-axie {
    width: 250px;
    height: 250px;
    margin: 40px;
}

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

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

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

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

/* -------------------------------- PRICES CONTAINER BEGIN --------------------------------*/

.prices-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
    gap: 10px;
    justify-content: center;
    margin: 10px auto;
    align-items: center;
    justify-items: center;
    font-size: 14px; 
    background-color: rgba(198, 206, 255, 0); 
    padding: 1px; 
    border: 1px solid #ccc; 
    border-radius: 8px; 
}

.prices-container > *:hover {
    transform: scale(1.1);
}

.prices-container:hover {
    background-color: rgba(198, 206, 255, 0.2); 
    border-color: #888; 
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); 
}

.hidden {
    display: none;
}

#togglePricesBtn, #toggleFilterBtn {
    display: block;
    margin: 20px auto;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
}

/* -------------------------------- BUTTON CONTAINER BEGIN --------------------------------*/
.button-container {
    display: flex;
    border: 2px solid #555; 
    border-radius: 8px;
    overflow: hidden; 
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    align-content: center;
}

.button {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 25px;
    border-radius: 1px;
    background-color: #222429; 
    color: #fff;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.3s, transform 0.3s;
    flex: 1; 
    font-size: 22px;
}

.button:not(:first-child) {
    border-left: 1px solid #444;
}

.button:hover {
    background-color: #777; 
    transform: translateY(-2px); 
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
}

.button:active {
    background-color: #999;
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.charts_buttons {
    display: flex;
    overflow: hidden; 
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    align-content: center;
}

.chart_button {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 25px;
    border: #01626b;
    border-radius: 4px;
    background-color: #828bdf; 
    color: #fff;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.3s, transform 0.3s;
    font-size: 18px;
    max-width: 300px; /* set your desired max width */
    width: 100%;      /* optional, so it expands up to max-width */
    margin: 0 auto;   /* optional, to center the button */
    margin-top: 10px;
}

.chart_button:hover {
    background-color: #6f75d8; /* Slightly darker shade for hover */
    transform: translateY(-2px); 
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
}

.chart_button:active {
    background-color: #5c62c2; /* Even darker shade for active state */
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}
/* -------------------------------- FILTER/FORM CONTAINER BEGIN --------------------------------*/
.filter-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(40px, 1fr));
    gap: 8px; 
    width: 100%; 
    background-color: rgba(198, 206, 255, 0); 
    margin-bottom: 5px; 
    align-items: center; 
    text-align: center; 
    margin: 10px auto;
}


.filter-container > * {
    border-radius: 5px; 
    padding: 10px; 
    background-color:rgba(198, 206, 255, 0); 
}

.filter-container > *:hover {
    background-color: rgba(198, 206, 255, 0.2); 
    border-color: #888; 
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); 
}

.form-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px; 
    border-radius: 5px; 
    width: 100%; 
    background-color: rgba(198, 206, 255, 0); 
    margin: 10px auto 5px; 
    align-items: center; 
    text-align: center; 
}


.form-container > * {
    padding: 10px; 
    background-color:rgba(198, 206, 255, 0); 
}

.form-container > *:hover {
    background-color: rgba(198, 206, 255, 0.2); 
    border-color: #888; 
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); 
}

.remove-all-button {
    background-color: #ff4d4d;
    color: white;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 4px;
}
.remove-all-button:hover {
    background-color: #e60000;
}

/* -------------------------------- MEMENTOS CARD STRUCTURE BEGIN --------------------------------*/
.card-container{
    display: grid;
    grid-template-columns: repeat(auto-fit, 300px);
    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 ,
.floor-ch.aquatic{
    background: linear-gradient(to top, #222429 0%, #0f4c58 99.5%, #35c2de 100%);
    border-color: #35c2de;
}

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

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

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

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

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

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

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

.card.dusk ,
.floor-ch.aquatic{
    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;
}

.row-1 {
    display: grid;
    grid-template-columns: 50px 40px 115px 1fr;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-bottom: 5px ;
}

.row-1 .col {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px; 
}

.row-2 {
    display: grid;
    grid-template-columns: 120px 1fr;
    align-items: center;
    justify-content: center;
}

.row-2 .col:nth-child(1) {
    align-items: flex-start; 
    margin-left: -15px; 
}

.row-2 .col:nth-child(2) {
    display: grid;
    grid-template-rows: auto repeat(3, 1fr); 
    grid-template-columns: repeat(3, 1fr); 
    grid-auto-flow: row; 
    padding-top: 3px;
    padding-bottom: 3px;
}

.row-2 .col:nth-child(2) > *:first-child {
    grid-column: 1 / -1; 
}

.row-2 .col:nth-child(2) .title {
    grid-row: 1; 
    grid-column: 1 / -1; 
    text-align: center; 
    font-size: 12px;
    font-weight: bold;
}

.row-3 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #c8d7f3;  
    border-radius: 5px; 
    padding-top: 3px;
    padding-bottom: 3px;
    font-size: 14px;
}

.row-3 .col {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px; 
}

.row-4, .row-usd {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 3px;
    padding-bottom: 3px;
    font-size: 12px;
}

.row-4 .col {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    border: 1px solid #c8d7f3; 
    border-radius: 5px;
}
.error {
    color: red;
    margin-bottom: 20px;
}
.success {
    color: green;
    margin-bottom: 20px;
}
.axie-list {
    list-style-type: none;
    padding: 0;
}

select, button, input {
    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;
}

select:hover, button:hover, input:hover {
    background-color: rgba(0, 0, 0, 0.3);
}

select:focus, button:focus, input:hover {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.5);
}

.remove-button {
    background-color: #ff4d4d;
    color: white;
    border: none;
    padding: 2px 2px;
    cursor: pointer;
    border-radius: 4px;
    top: 10px;
    right: 10px;
}

.remove-button:hover {
    background-color: #e60000;
}

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

  .col.locked {
    position: relative;
    opacity: 0.5; 
}

.lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; 
    align-items: center;
    text-align: center;
    background-color: rgba(54, 54, 54, 0.7);
    transition: background-color 0.3s ease; 
    z-index: 1000;
}

.lock-overlay:hover {
    background-color: rgba(83, 83, 83, 0.7); 
}

.lock-overlay i {
    font-size: 36px;
    color: #ffffff;
    margin-bottom: auto; 
}

.lock-overlay p {
    margin: 5px 0; 
    color: #ff1100;
}

.lock-overlay a {
    color: #ff1100;
    text-decoration: underline;
}

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

.lock-market {
    font-size: 22px
}
/* -------------------------------- CHARTS STRUCTURE --------------------------------*/

.floor-ch-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, 650px);
    gap: 15px;
    justify-content: center;
    margin-bottom: 50px;
    margin-top: 25px;
}

.floor-ch {
    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;
}

.floor-ch-canvas {
    width: 600px;      
    height: 300px;
    margin-bottom: 40px;
    position: relative;
}

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

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

  .up{
    color: rgb(12, 226, 12);
  }

  .down{
    color: rgb(243, 73, 73);
  }

@media (max-width: 780px) {
    .filter-container, .form-container {
        grid-template-columns: 1fr; 
    }

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

    .prices-container {
        grid-template-columns: repeat(5, 1fr);
    }
    .button {
        font-size: 16px;
    }
    .floor-ch-container {
        grid-template-columns: repeat(auto-fit, 320px);
    }
    .floor-ch-canvas {
        width: 300px;      
        height: 300px;
    }
    .chart_button {
        font-size: 16px;
        max-width: 150px; /* set your desired max width */
    }
    .column-1, .column-3 {
        visibility: hidden;
        height: 0;
    }
}

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