/* crypto\ coin/bg1.png */

/* General reset */
* {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box; /* Ensure padding and borders are included in element's total width and height */
}

body {
    background-image: url(crypto\ coin/bg1.png);
    height: 100%;
    width: 100%;
    background-size: cover;
    background-position: center;
    overflow-x: hidden;
    font-size: 16px;
}

/* Balance section */
.balance {
    margin-top: 10px;
    margin-left: 5px;
    margin-right: 5px;
    display: flex;
    justify-content: space-evenly;
    font-size: 1.25rem; /* Use rem for relative sizing */
    color: #fc0ed4;
    border-radius: 30px;
    align-items: center;
    text-align: center;
    padding: 2px;
    flex-wrap: wrap; /* Allows items to wrap on smaller screens */
}

/* Coin list */
.coin-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap; /* Allows coin items to wrap on smaller screens */
}

.coin {
    display: flex;
    align-items: center;
    font-size: 1rem;
    margin: 5px;
    color: #ff960b;
    padding: 5px 15px;
    border-radius: 8px;
    flex: 1 1 auto; /* Flexible width based on available space */
}

/* Coin title */
.ctitle {
    margin-left: 20px;
}

.ctitle p, h3 {
    font-size: 1.2rem; /* Use relative units */
}

/* Coin main card */
.coinmain {
    border: 1px solid rgb(159, 51, 51);
    border-radius: 20px;
    margin-right: 14px;
    padding: 10px;
    width: 100%;
    max-width: 280px;
    height: auto;
}

.cimgg {
    height: 50px;
}

/* Order form */
.order-form {
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    flex-wrap: wrap; /* Wrap form elements on small screens */
}

select, input {
    border: none;
    outline: none;
    background-color: transparent;
    color: hotpink;
}

/* Buttons */
button {
    background-color: transparent;
    border: none;
    border-radius: 30px;
}

/* Order history */
.order-history {
    height: 300px;
    width: 100%;
    overflow: auto; /* Scroll only when necessary */
}

/* Order history table */
#order-history-table {
    margin-top: 20px;
    width: 100%;
    border-collapse: collapse;
}

#order-history-table th {
    padding: 8px;
    text-align: center;
    background: blueviolet;
    color: #ff960b;
}

#order-history-table td {
    padding: 8px;
    text-align: center;
    color: aqua;
}

/* Media Queries for Responsive Design */

/* For tablets */
@media (max-width: 768px) {
    .coin {
        font-size: 0.9rem;
        padding: 5px 10px;
    }

    .coinmain {
        width: 80%;
        margin: 10px auto;
    }

    .balance {
        flex-direction: column;
        margin: 10px 0;
        padding: 10px;
    }

    .order-form {
        flex-direction: column;
        margin: 10px 0;
    }

    .order-history {
        height: auto;
    }
}

/* For mobile devices */
@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    .coin {
        font-size: 0.8rem;
        padding: 5px;
    }

    .coinmain {
        width: 100%;
        margin: 10px auto;
    }

    .balance {
        flex-direction: column;
        font-size: 1rem;
    }

    .ctitle p, h3 {
        font-size: 1rem;
    }

    .order-form {
        flex-direction: column;
        gap: 10px;
    }

    select, input {
        font-size: 1rem;
    }

    .order-history {
        height: auto;
    }

    #order-history-table th, #order-history-table td {
        padding: 6px;
        font-size: 0.8rem;
    }
}


.modal-dialog.modal-fullscreen {
    max-width: 100%;
    width: 100%;
    height: 100%;
    margin: 0;
}

.modal-content {
    height: 100%;
    border: none; /* Optional: Remove border */
    border-radius: 0; /* Optional: Remove border radius for full-screen look */
}
