﻿.d1-title {
    text-align: left;
}

.d1-container {
    display: flex;
    flex-flow: space-evenly;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    margin: 0px;
    padding: 0px;
}

.d1-element {
    margin: 0.7% 0.5%;
    width: 32%;
    height: 440px;
    border-radius: 10px;
    background-color: #2a2a2a;
    background-size: 110%;
    padding: 15px 20px;
    color: white;
    border: solid 1px #3a3a3a;
    -webkit-box-shadow: 0px 0px 5px 0px rgba(89,108,120,0.9);
    -moz-box-shadow: 0px 0px 5px 0px rgba(89,108,120,0.9);
    box-shadow: 0px 0px 5px 0px rgba(89,108,120,0.9);
    transition: 0.5s;
    background-repeat: no-repeat;
    background-size: 100% 100%;
}

.d1-element:nth-child(1) {
    background-image: url("../solar.png") !important;
}

.d1-element:nth-child(2) {
    background-image: url("../system.png") !important;
}

.d1-element:nth-child(3) {
    background-image: url("../batteries.png") !important;
}

.d1-element:nth-child(4) {
    background-image: url("../supercap.png") !important;
}

.d1-element:nth-child(5) {
    background-image: url("../generator.png") !important;
}
    
.d1-element:nth-child(6) {
    background-image: url("../consumer.png") !important;
}

.d1-element:nth-child(7) {
    background-image: url("../servers.png") !important;
}

.d1-element:hover {
    -webkit-box-shadow: 0px 0px 20px 0px rgba(168,220,255,0.9);
    -moz-box-shadow: 0px 0px 20px 0px rgba(168,220,255,0.9);
    box-shadow: 0px 0px 20px 0px rgba(168,220,255,0.9);
    transition: 0.5s;
}

.d1-element-refresh {
    -webkit-box-shadow: 0px 0px 7px 0px rgba(80, 192, 132, 0.9);
    -moz-box-shadow: 0px 0px 7px 0px rgba(80, 192, 132, 0.9);
    box-shadow: 0px 0px 7px 0px rgba(80, 192, 132, 0.9);
    transition: 0.5s;
}

.d1-element h4 {
    margin-left: 0px;
    text-align: left;
    color: white;
    width: fit-content;
    border-bottom: 1px solid #0083e0;
}

.d1-element-split {
    display: flex;
    flex-flow: space-evenly;
    flex-wrap: wrap;
    justify-content: left;
    width: 100%;
    margin-bottom: 20px;
    padding: 0px;
}

.d1-element-split-element {
    justify-content: center;
    width: 48%;
    margin: 1%;
    padding: 5px;
}

.d1-element-split2-element1 {
    justify-content: center;
    width: 33%;
    margin: 1%;
    padding: 5px;
}

.d1-element-split2-element2 {
    justify-content: center;
    width: 63%;
    margin: 1%;
    padding: 5px;
}

.d1-output {
    margin-top: -5px;
    margin-bottom: 15px !important;
    font-size: 1.5rem;
}

    .d1-output b {
        font-size: 2rem;
    }

.d1-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #0083e0 !important;
}

.d1-chart1 {
    margin-top: -40px;
    width: 380px;
}

.d1-chart2 {
    margin-top: -20px;
    width: min(90%, 280px);
    opacity: 60%;
}

.d1-chart2-labelcontainer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: min(90%, 280px);
}

.d1-chart2-label {
    font-size: 0.7rem;
    width: fit-content;
    color: black;
    padding: 5px 10px;
    margin: -5px 10px 0px 10px;
    border-radius: 20px;
    opacity: 60%;
}

.d1-chart1-container {
    width: 100%;
}

.d1-element-3split {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    width: 100%;
    padding: 5px;
    margin-bottom: 20px;
    padding-bottom: -20px;
    border-bottom: solid 1px white;
}

.d1-element-3split-element {
    justify-content: center;
    margin-right: 5%;
    padding: 5px;
}

.d1-gray {
    color: #666 !important;
}

.d1-element-status {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    justify-content: flex-start;
    padding: 15px 15px 0px 15px;
    border-bottom: solid 1px #666;
}

    .d1-element-status:last-child {
        border-bottom: solid 0px #666;
    }

.d1-element-status-part1 {
    width: 50%;
}

.d1-element-status-part2 {
    margin-top: -6px;
    width: 50%;
}

.d1-status-ok {
    font-size: 1.5rem;
    color: green;
}

.d1-status-active {
    font-size: 1.5rem;
    color: dodgerblue;
}

.d1-status-error {
    font-size: 1.5rem;
    color: orangered !important;
}

.d1-status-warning {
    font-size: 1.5rem;
    color: orange;
}





@media screen and (max-width: 1500px) {
    .d1-element {
        margin: 1% 0.5%;
        width: 49%;
    }

    .d1-chart1 {
        width: 350px;
    }

    .d1-chart1-container {
        display: flex;
        justify-content: center;
    }
}


@media screen and (max-width: 1000px) {
    .d1-element {
        margin: 2% 1%;
        width: 98%;
    }

    .d1-chart1 {
        width: 350px;
    }

    .d1-chart1-container {
        justify-content: left;
    }
}


@media screen and (max-width: 641px) {
    .d1-title {
        text-align: center;
    }

    .d1-element {
        margin: 3% 1%;
        width: 98%;
        height: fit-content;
    }

    .d1-chart1 {
        margin: -15px;
        width: 120%;
    }

    .d1-chart1-container {
        justify-content: center;
    }

    .d1-element-split2-element1 {
        justify-content: center;
        width: 38%;
        margin: 1%;
        padding: 0px;
    }

    .d1-element-split2-element2 {
        justify-content: center;
        width: 58%;
        margin: 1%;
        padding: 0px;
    }

    .d1-element-status-part1 {
        width: 70%;
    }

    .d1-element-status-part2 {
        width: 30%;
    }
}
