@font-face {
    font-family: MyHeebo;
    src: url(fonts/Heebo-VariableFont_wght.ttf);
}
@font-face {
    font-family: MyV;
    src: url(fonts/Vazir-FD.ttf);
}

* {
    box-sizing: border-box;
}
html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: MyHeebo;
    background-color: #2a2a2a;
}

body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-size: 16px;
    font-family: MyHeebo;
}

.body {
    position: relative;
    height: 100%;
    padding-top: 60px;
}

header {
    background: #002829;
    display: flex;
    width: 100%;
    align-items: center;
    z-index: 2;
    position: fixed;
    top: 0;
}

input {
    border: 2px solid #002829;
    border-radius: 6px;
    background: #333;
    color: #eeeeee;
    padding: 3px 12px;
    font-family: MyV;
    max-width: 100%;
}

button {
    background: #103d3e;
    color: #eee;
    padding: 3px 12px;
    font-family: MyV;
    border-radius: 6px;
    border: 1px solid #002829;
}

button:hover  {
    background-color: #00838f;
}

input::placeholder {
    color: #bbb;
}
input:focus {
    outline: none;
}

.title {
    margin: 12px auto;
    color: #eeeeee;
    font-size: 24px;
    text-align: center;
}
.bor {
    border: 1px solid #1de9b6;
}
a.logout {
    color: #ddd;
    text-decoration: none;
    display: flex;
    padding: 6px;
}

a.logout:hover {
    background-color: #00838f;
}

.nava {
    font-size: 16px;
    padding: 4px;
    display: block;
    width: 100%;
    color: #eee;
    text-decoration: none;
}
.nava:hover {
    background-color: #1d5051;
    cursor: pointer;
}
.navas {
    font-size: 15px;
    color: #18ffff;
    padding: 2px;
    display: block;
    width: 100%;
    text-decoration: none;
}
.navas:hover {
    background-color: #1d5051;
    cursor: pointer;
}
li {
    padding: 0px;
    color: #eeeeee;
    display: inline;
}

.container {
    width: 100%;
    height: 100%;
}

.nav {
     /* 100% Full-height */ /* 0 width - change this with JavaScript */ /* Stay in place */ /* Stay on top */
    background: #103d3e;
    width: 100%;
    margin: 0;
    padding: 0;
    padding-left: 16px;
    font-size: 16px;
    display: flex;
    flex-direction: column;
    list-style-type: circle;
    overflow: hidden;
    height: 0px;
    transition: 0.4s;
}
.nav2 {
     /* 100% Full-height */ /* 0 width - change this with JavaScript */ /* Stay in place */ /* Stay on top */
    background: #103d3e;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    padding-left: 8px;
    display: flex;
    flex-direction: column;
    list-style-type: none;
}

.list {
    width: 200px;
    position: fixed;
    left: -200px;
    top: 60px;
    transition: 0.5s;
    height: 100vh;
    z-index: 10;
}

div.main {
    width: 100%;
    height: auto;
    padding: 12px;
    gap: 12px;
    grid-template-columns: auto;
    grid-template-rows: repeat(8, auto);
    /*grid-template-rows: max-content max-content max-content max-content max-content max-content max-content max-content max-content max-content max-content;
    */
}

div.main_gauge {
    border: 2px solid #123;
    border-radius: 3px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#gauges {
    display: grid;
    grid-template-columns: auto;
    gap: 5px;
    margin-top: 5px;
    width: 100%;
}

span {
    color: #eee;
}

#logo {
    display: none;
}

@media only screen and (min-width: 512px) {
    
    .main {
        grid-template-columns: auto auto !important;
    }
    .c2 {
        grid-column: auto / span 2 !important;
    }
    .c3 {
        grid-column: auto / span 2 !important;
    }
    .c4 {
        grid-column: auto / span 2 !important;
    }
    .c5 {
        grid-column: auto / span 2 !important;
    }
}

@media only screen and (min-width: 768px) {
    /* For mobile phones: */
    .main {
        grid-template-columns: auto auto auto !important;
    }
    td {
        font-size: 12px;
    }
    .c3 {
        grid-column: auto / span 3 !important;
    }
    .c5 {
        grid-column: auto / span 3 !important;
    }
    #logo {
        display: flex;
    }
}

@media only screen and (min-width: 1024px){
    .main {
        grid-template-columns: auto auto auto auto !important;
        grid-template-rows: auto auto auto auto !important;
    }
    td {
        font-size: 14px;
    }
    .c5 {
        grid-column: auto / span 4 !important;
    }
}

@media only screen and (min-width: 1280px) {
    .main {
        grid-template-columns: repeat(5, 1fr) !important;
        grid-template-rows: repeat(4, 1fr) !important;
        height: -webkit-fill-available !important;
    }
    body {
        height: 100%;
    }
    .c5 {
        grid-column: auto / span 5 !important;
    }
}

.card {
    border: 1px solid #0f0f0f;
    border-radius: 3px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #1f1f1f;
    /*background-image: linear-gradient(180deg, #002829dd, #000809dd);*/
    padding: 4px;
}

span.card-title {
    font-size: 20px;
    text-shadow: 0 0 2px ##64FFDA;
}

span.card-value {
    font-size: 22px;
    color: #18ffff;
    text-shadow: 0 0 2px #64FFDA;
}

.card-val {
    position: relative;
    text-align: center;
    width: 100%;
}

.card-yekan {
    font-size: 20px;
    text-shadow: 0 0 3px #FF5252;
    color: #64FFDA;
}

.chart {
    width: 100%;
    flex: 1;
}

.data {
    width: 100%;
    border-radius: 2px;
}
table {
    width: 100%;
}
td {
    padding: 0;
    color: #eee;
}
th {
    color: #1de9b6;
}

.inside {
    display: flex;
    flex-direction: column;
}

.mtitle {
    font-size: 15px;
    font-weight: bold;
    color: #678;
}

.mdata {
    font-size: 20px;
    color: #def;
}

.row {
    height: 100%;
    display: grid;
}

div.titlediv {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    padding: 0 8px;
}

div.s {
    width: 100%;
    padding: 0 4px;
}

.s-n {
    text-align: left;
    width: 100%;
}

.s-v {
    text-align: left;
    color: #18ffff;
}

.s-y {
    text-align: left;
}

.s-i {
    text-align: right;
}

.road {
    position: relative;
    width: 100%;
    height: 100px;
    display: flex;
    align-items: flex-start;
}

.rtop {
    position: absolute;
    top: 0;
    left: calc(100% / 6 * 2.5);
    width: calc(100% / 6);
}

.rc {
    margin-top: 50px;
    width: calc(100% / 6);
}

.rc2 {
    margin-top: 65px;
    width: calc(100% / 6);
}

.rc3 {
    margin-top: 74px;
    width: calc(100% / 12);
}

.ca {
    grid-column:  auto / span 2;
}

.c1 {
    grid-column: auto / span 1;
}

.c2 {
    grid-column: auto / span 1;
}

.c3 {
    grid-column: auto / span 1;
}

.c4 {
    grid-column: auto / span 1;
}

.c5 {
    grid-column: auto / span 1;
}

.r2 {
    grid-row: auto / span 2;
}
#me {
    position: fixed;
    z-index: 20;
    top: 14px;
    left: 7px;
}
#me:hover {
    cursor: pointer;
}
.chat-box {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.chat-send {
    position: fixed;
    bottom: 0;
    display: flex;
    padding: 8px;
    width: inherit;
    align-items: center;
}
.chat-msgs {
    width: -webkit-fill-available;
    flex: 1;
    display: flex;
    flex-direction: column-reverse;
    overflow: auto;
    padding: 0;
}
.chat-send-input {
    overflow-wrap: break-word;
    overflow: auto;
    flex: 1;
    margin-left: 8px;
    font-size: large;
    text-align: right;
}
.chat-msg {
    color: #eee;
    padding: 2px 8px;
    border-radius: 6px;
    margin: 4px;
    display: flex;
    flex-direction: column;
}
.chat-msg-other {
    margin-right: auto;
    background: #006064;
}
.chat-msg-mine {
    margin-left: auto;
    background: #004d40;
}
.chat-p{
    margin: 0;
    text-align: right;
    font-family: MyV;
}
.chat-t {
    color: #18ffff;
    float: right;
    font-size: small;
    font-family: MyV;
}.chat-d{
    color: #1de9b6;
    float: left;
    font-size: small;
    font-family: MyV;
}