@import url('https://fonts.googleapis.com/css2?family=Mukta:wght@500;600;700&display=swap');

.api-coins {
    background: #fdfdfe;
    border: 1px solid rgba(36, 36, 36, .05);
    border-radius: 16px;
    box-shadow: 0px 8px 56px 0px hsla(210, 8%, 62%, .15);
    padding: 24px;
}

.coin {
    display: flex;
    border-radius: 8px;
    margin: 18px 0;
    font-family: 'Mukta', sans-serif;
}

.coin-image {
    width: 100px;
    height: 100px;
    display: grid;
    place-items: center;

}

.coin-image img {
    width: 70%;
    height: 70%;
} 

.coin-name {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.coin-name h3 {
    /* color: #fff; */
    /* font-size: 20px; */
    text-transform: uppercase;
}

.coin-name span {
    color: #aaa;
    font-size: 14px;
    font-weight: 500;
    margin: 6px 0 0 2px;
}

.coin-price {
    display: grid;
    align-items: center;
    margin-left: auto;
    padding: 8px 22px  0 0;
    text-align: right;
}

.price {
    font-size: 26px;
    font-weight: 700;
    margin-top: -6px;
}

.change {
    color: #aaa;
    font-size: 16px;
    font-weight: 600;
    margin-top: -30px;
}

.light-mode .coin.rising {
    background: linear-gradient(90deg, #fff, #4eb64510) !important;
}

.dark-mode .coin.rising {
    background: linear-gradient(90deg, #000, #4eb64510);
}

.coin.rising .price {
    color: #30ff20;

}

.light-mode .coin.falling {
    background: linear-gradient(90deg, #fff, #aa444425) !important;
}

.dark-mode .coin.falling {
    background: linear-gradient(90deg, #000, #aa444425) ;
}

.coin.falling .price {
    color: #ff4040;

}

@media screen and (min-width: 1px ) and (max-width: 500px) {

    .price {
        font-size: 16px;
    }

    .coin-image img {
        width: auto;
        height: 50%;
    }

}

