/*@import url('https://fonts.googleapis.com/css?family=Montserrat:600,800,900');*/
/*@import url('https://fonts.googleapis.com/css?family=Bree+Serif');*/

:root {
    --color-dark-blue: #2b353f;
    --color-mustard-yellow: #005a9c;
    --color-purple: #786ebe;
    --color-dark-purple: #4e477f;
    --color-green: #3f8ea3;
    --color-pale-green: #41b8b1;
    --color-pale-pink: #dddddd;
    --box-shadow: 0 0.25rem 1.25rem -.25rem rgba(0,0,0,.35);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

img {
    height: 100%;
}



.wrapper {
    position: relative;
    background: #dddddd;
    background: linear-gradient(to bottom, #41b8b1, #3f8ea3, #786ebe, #4e477f);
    background-size: 8%;
    width: 100%;
    padding: 1rem;
    height: 85vh;
    max-height: 85vh;
    min-height: 70vh;
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    align-content: center;
    align-items: center;
}

.card {
    position: relative;
    display: inline-block;
    background: #ffffff;
    width: 100%;
    max-width: 35vw;
    max-height: 70vh;
    margin: 1.25rem 1rem;

    border-radius: 1rem 1rem 2rem 1rem;
    overflow-y: auto; /* Add vertical scrollbar */
    box-shadow: var(--box-shadow);
    z-index: 100;
}

.card__header {
    position: relative;
    display: block;
    background-color: var(--color-dark-purple);
    background-size: cover;
    height: 10vh;
    width: 100%;
}

.card__user__image {
    position: absolute;
    display: inline-block;
    left: 0;
    right: 0;
    margin: 0 auto;
    bottom: -4.5rem; /* -45px / 16px = -2.8125rem */
    height: 9rem; /* 90px / 16px = 5.625rem */
    width: 9rem; /* 90px / 16px = 5.625rem */
    padding: 0.625rem; /* 10px / 16px = 0.625rem */
    background: #fff;
    border-radius: 50%;
    overflow: hidden;
}

.card__user__avatar {
    background: url('../../logos/tif.png');
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.card__text__container {
    padding: 2.5rem 1.25rem;
    text-align: center;
}

.card__text__name {
    margin: 0;
    padding-top: 1.5rem;
    font-size: 190%;
    text-align: center;
    font-weight: 900;
    color: var(--color-dark-blue);
}
.card__text__title {
    margin: 0;
    padding-top: 1rem;
    font-size: 120%;
    text-align: center;
    font-weight: 900;
    text-transform: uppercase;
    color: gray;
    height: 2rem;
    vertical-align: middle;
    text-align: right;
    padding-right:1rem;

}
.card__text__db {
    margin: 0;
    color: #4e477f;
    padding-top: 1rem;
    font-size: 120%;
    text-align: center;
    font-weight: 900;
    text-transform: none;
    vertical-align: middle;
    text-align: left;
}
.card__text__block{
    display: grid;
    grid-template-columns: 1fr 1fr;
    position:relative;

}
.card__text__sensor,
.card__text__datasize,
.card__text__time,
.card__text__team,
.card__text__tags,
.card__text__status,
.card__text__job {
    display: inline-block;
    margin: 0;
    padding-top: .25rem;
    font-size: 120%;
    text-align: center;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--color-purple);
}

.card__text__about {
    margin: 0;
    padding: 1.5rem .75rem;
    font-size: 100%;
    line-height: 150%;
    text-align: center;
    font-weight: 500;
    color: rgba(0,0,0,.45);
}

.card__text__dirtree {
    margin: 0;
    padding: 1.5rem .75rem;
    font-size: 100%;
    line-height: 150%;
    text-align: left;
    font-weight: 500;
    color: rgba(0,0,0,.45);
}
@media screen and (max-width: 1200px) {
    .wrapper {
        height: auto;
        padding: 1rem;
    }

    .card {
        width: 100%;
        margin: 1rem 0;
    }
}

@media screen and (max-width: 768px) {
    .wrapper {
        flex-flow: column wrap;
        height: auto;
        padding: 1rem;
    }

    .card {

        max-height: 70vh;
        min-width: 80%;
        max-width: 80%;
        margin: .625 rem auto;
    }
}

@media screen and (max-width: 960px) {
    .wrapper {
        flex-flow: column wrap;
        height: auto;
        padding: 1rem;
    }

    .card {

        max-height: 70vh;
        min-width: 80%;
        max-width: 80%;
        margin: .625 rem auto;
    }
}

@media screen and (max-width: 576px) {
    .card__text__name {
        font-size: 150%;
    }

    .card__text__sensor,
    .card__text__datasize,
    .card__text__time,
    .card__text__team,
    .card__text__tags,
    .card__text__status,
    .card__text__job {
        font-size: 100%;
    }

    .card__text__about {
        font-size: 110%;
    }
    .card {

        max-height: 70vh;
        min-width: 80%;
        max-width: 80%;
        margin: .625 rem auto;
    }
}

@media screen and (max-width: 350px) {
    .wrapper {
        padding: 1rem;
    }

    .card {
        min-width: 100%;
        max-width: 100%;
        max-height:  100%;
    }

}


#loader {
    position: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-dark-purple);
    z-index: 999;
}

#preloader {
    position: relative;
    width: 125px;
    height: 125px;
    background: var(--color-purple);
    border-radius: 50%;
    animation-iteration-count: infinite;
    animation-duration: 700ms;
    animation-fill-mode: both;
    animation-name: scale-up-down-half;
}

@keyframes scale-up-down-half {
    0% {
        opacity: 1;
        transform: scale3d(0.25, 0.25, 0.25);
    }
    100% {
        opacity: 0;
        transform: scale3d(1, 1, 1);
    }
}

/*#COllapsable div*/
    /* Style the button that is used to open and close the collapsible content */
.collapsible {
    cursor: pointer;
    background: #FFFFFF;
    border: 0;
}

.info_datacard{
    vertical-align: sub;
    float: right;
    font-weight: 700;
    padding-left: 1.5rem;
}

/* Add a background color to the button if it is clicked on (add the .active class with JS), and when you move the mouse over it (hover) */
.active, .collapsible:hover {
    background-color: var(--color-purple);
    color: #fff;
    padding-left: 2rem;
    padding-right: 2rem;
    padding-bottom: 2rem;
    text-align: center;
    border-radius: 0.5rem;
}

/* Style the collapsible content. Note: hidden by default */
.collapse_content {
    padding: 0 18px;
    display: none;
    overflow: hidden;
    background-color: #FFFFFF;
    border-color: #4e477f;

}