﻿/* Flex-related code */
.custom-card-flex {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    row-gap: 1rem;
    column-gap: 1rem;
    font: 1rem "Titillium Web", sans-serif;
}

    .custom-card-flex > div {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        flex: 1;
        min-width: 220px;
        max-width: 220px;
    }

        .custom-card-flex > div > p {
            flex-grow: 1;
            padding: 1em;
        }

/* This rule ist just because of the responsive images */
@media (max-width: 1600px) {
    .custom-card-flex > div {
        max-width: 220px;
    }
}
/* Basic styling for UI */
.card-image {
    width: 100%;
    height: 120px;
    display: table;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    background-size: cover;
}

.card-image-overlay {
    width: 100%;
    height: 120px;
    display: table;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    background: rgba(77, 77, 77, .9);
    opacity: 0;
    transition: all 0.5s;
}

.description {
    color: white;
    font-size: 10px;
    word-wrap: break-word;
    margin: 10px;
    text-align: left;
}

.card-image:hover .card-image-overlay {
    opacity: 1;
}

.half {
    font-size: 14px;
    margin-top: 5px;
    flex: 0 0 50%;
}

.custom-card-title {
    font-size: 16px;
    font-weight: 600;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 5px;
    padding-right: 5px;
    width: 100%;
    height: 100%;
}

.custom-card-description {
    font-size: 11px;
    margin-left: 10px;
    margin-right: 10px;
    height: 100%;
}

.custom-card-container {
    box-shadow: 7px 2px 20px -12px #ccc;
}

.custom-card-measure-value {
    font-size: 18px;
}

.custom-card-measure-name {
    font-size: 11px;
}

.custom-card-secondary-measure-name {
    font-size: 11px;
}

.custom-card-secondary-measure-value {
    font-size: 11px;
}

.block-with-text {
    overflow: hidden;
    position: relative;
    line-height: 1.2em;
    max-height: 2.4em; /* 2 lines (2 * 1.2) */
}
