﻿/********** Module card **********/

.module-container {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    flex: 0 0 calc(100% / 4);
    max-width: calc(100% / 4);
    -ms-flex: calc(100% / 4);
}

.module-card {
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    margin: 15px 0px;
    transition: all 0.3s;
}

.module-card:hover {
    border-color: lightgray;
}

.module-card-body {
    display: flex !important;
    padding: 16px;
    text-align: left;
    white-space: nowrap;
    text-decoration: none !important;
}

.module-card-cover {
    display: flex;
    width: 130px;
    height: 130px;
    min-width: 130px;
    min-height: 130px;
    border-radius: 10px;
}

.fridge-cover {
    background: url(/img/fridge-cover.png) no-repeat center;
    background-size: contain;
}

.tomoro-cover {
    background: url() no-repeat center;
    background-size: contain;
}

.shop-cover {
    background: url(/img/shop-cover.png) no-repeat center;
    background-size: contain;
}

.kawa-cover {
    background: url(/img/coffee-machine-cover.png) no-repeat center;
    background-size: contain;
}

.module-card-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    margin: 0px 16px;
    white-space: normal;
    color: #212529;
}

.module-card-info > p {
    text-align: center;
    margin: 0px;
}

.module-card-info-tag-container {
    display: flex;
    align-items: center;
}

.module-card-info-tag {
    display: flex;
    align-items: center;
    background-color: #F3F4F6;
    padding: 4px 8px;
    border-radius: 8px;
    color: #374151;
    font-size: 14px;
    line-height: 20px;
}
    .module-card-info-tag > svg {
        fill: #374151;
        width: 16px;
        height: 16px;
    }

    .module-card-info-tag > p {
        margin: 0px 0px 0px 4px;
        font-weight: 400;
    }

.module-card-options {
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 1px solid #E5E7EB;
}

.module-card-options > a {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    padding: 10px 0px 10px 0px;
    transition: background-color 0.3s;
}

    .module-card-options > a:hover {
        background-color: rgba(0, 0, 0, .05);
    }

    .module-card-options > a > svg {
        fill: rgba(0,0,0, 0.5);
    }


@media screen and (max-width: 1280px) {
    .module-container {
        flex: 0 0 calc(100% / 3);
        max-width: calc(100% / 3);
        -ms-flex: calc(100% / 3);
    }
}

@media screen and (max-width: 1024px) {
    .module-container {
        flex: 0 0 calc(100% / 2);
        max-width: calc(100% / 2);
        -ms-flex: calc(100% / 2);
    }
}

@media screen and (max-width: 768px) {
    .module-container {
        flex: 0 0 100%;
        max-width: 100%;
        -ms-flex: 100%;
    }
}

@media screen and (max-width: 640px) {
}

@media screen and (max-width: 425px) {
}
