*{
    margin: 0;
    padding: 0;
}

html{
    height: 100%;
}

body{
    display: flex;
    flex-direction: column;
    margin: 0;
    max-width: 100%;
    height: 100%;
    font-family: "Poppins", sans-serif;
}

.container{
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    max-width: 100%;
    min-height: 100%;
}

.container .head{
    max-width: 100%;
    padding: 5px 0px 5px 0px;
    color: #f0f0f0;
    background-color: #01003a;
}

.container .logo{
    display: flex;
    align-items: center;
    font-size: 25px;
    text-align: center;
    justify-content: center;
}

.container .logo span {
    font-size: 30px;
    margin: 0px 5px;
}

.container .menu{
    background-color: #01003a;
    color: #f0f0f0;
}

.container .menu ul{
    display: flex;
    list-style: none;
    width: 100%;
    justify-content: space-around;
    padding: 5px 0px;
}

.container .menu ul li a{
    text-align: center;
    padding: 3px 10px;
    border-radius: 10px;
    color: #f0f0f0;
    text-decoration: none;
    font-size: 20px;
    display: flex;
    align-items: center;
}

.container .menu ul li a span {
    margin-right: 2px;
}

.container .menu ul li a:hover{
    color: #01003a;
    background-color: #f0f0f0;
}

.container .content {
    width: 100%;
    margin-bottom: auto;
    display: flex;
    justify-content: center;
}

.container .isi{
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
}

.container .judul{
    text-align: center;
    background-color: #bdbdbd;
    padding: 5px 0px;
}

.container .foot{
    color: #f0f0f0;
    margin-top: auto;
    background-color: #01003a;
    text-align: center;
    align-items: center;
    font-size: 15px;
    padding: 8px 0px;
}

@media screen and (min-width: 760px) {
    body{
        position: relative;
    }
    .container{
        position: relative;
    }
    .container .head{
        display: flex;
        flex-direction: row;
        justify-content: space-around;
    }
    .container .menu ul{
        display: flex;
        justify-content: space-between;
        margin: 0px 15px;
    }
    .container .isi{
        width: 80%;
    }
}

/* DASHBOARD */
.isiDashboard {
    display: flex;
    flex-direction: row;
    margin: 5px;
    max-width: 100%;
    box-sizing: border-box;
    flex-wrap: wrap;
    justify-content: space-evenly;
}

.kontrol{
    font-size: 20px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

.rowKet{
    width: 90%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    justify-content: space-between;
}

.rowKet .colKet{
    border: solid 0px #888888;
    width: auto;
    padding: 5px 10px;
    display: flex;
    justify-content: start;
}

.rowKet .colKet2 a {
    text-decoration: none;
    color: #f0f0f0;
    padding: 3px 8px;
    border-radius: 5px;
}

.rowKet .colBtn{
    border: solid 2px #b7b7b7;
    border-radius: 10px;
    width: 50%;
    padding: 5px 5;
    display: flex;
    justify-content: center;   
}

.rowKet .colBtn a {
    text-decoration: none;
    color: #001652;
    padding: 3px 8px;
    border-radius: 5px;
}

.rowKet .colKet2 a.mati {
    background-color: #960000;
}

.rowKet .colKet2 a.nyala {
    background-color: #008b2a;
}

.rowKet .colKet2 a.manual {
    background-color: #960000;
}

.rowKet .colKet2 a.auto {
    background-color: #008b2a;
}

.rowTime{
    display: flex;
    justify-content: space-evenly;
}

.colTime{
    width: 50%;
    text-align: center;
}

.rowTime table{
    height: 80%;
}

.card{
    border-radius: 10px;
    width: 90%;
    color: #e4e4e4;
    box-sizing: border-box;
    margin: 10px 0px;
    padding: 10px 15px;
}

.headCard{
    padding: 5px 5px;
    border-bottom: rgba(0, 0, 0, 0.4);
    border-bottom-style: solid;
    border-width: 5px;
    margin-bottom: 15px;
}

#volt{
    background-color: #004100;
}

#curr{
    background-color: #a88f00;
}

#suhu{
    background-color: #910000;
}

#water{
    background-color: #003c97;
}

@media screen and (min-width: 760px) {
    .isiDashboard{
        flex-direction: row;
    }
    .rowTime{
        font-size: 20px;
        margin: 10px 0px;
    }
    .rowKet{
        width: 30%;
    }
    .card{
        margin-top: 20px;
        width: 40%;
    }
}

/* HISTORY */

.col-btn{
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    margin: 10px 2px;
}

.btn-download{
    color: #f0f0f0;
    background-color: #008b2a;
    font-size: 15px;
    border: 1px solid #bdbdbd;
    border-radius: 10px;
    padding: 5px 2px;
}
.btn-download :hover {
    background-color: #02641f;
}

.history{
    width: 95%;
    align-self: center;
}

.history table {
    border-collapse: collapse;
    width: 100%;
    text-align: center;
    margin: 5px 0px;
    align-self: center;
}

.history table thead{
    font-size: 12px;
    font-weight: 500;
}

.history table thead tr{
    border-block: solid 2px #787878;
    border-radius: 10px;
}

.history table tbody tr{
    border-bottom: solid 1px #d9d9d9;
}

.history th, td {
    padding: 7px 0px;
}

.history tbody{
    font-size: 10px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.3);
  }
  
  .modal-content {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    margin: auto;
    border: 1px solid #888;
    border-radius: 10px;
    width: 90%;
  }
  
  .content-body {
    display: flex;
    padding-left: 10px;
    align-items: center;
    height: 70px;
  }
  
  .content-body #tanggal {
    padding: 1px 5px;
    font-size: 16px;
  }
  
  .content-body .btn {
    margin:5px;
    padding: 7px 10px;
    border: 1px solid #007d00;
    border-radius: 3px;
    color: #fff;
    font-size: 13px;
    background-color: #007d00;
  }
  
  .content-body .btn:hover {
    cursor: pointer;
    background-color: #005700;
  }
  
  .content-header {
      padding-left:10px;
    color: #fff;
    border-top: 1px solid #007d00;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
  }
  
  .content-footer {
    border-bottom: 1px solid #007d00;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
  }
  
  .content-header,
  .content-footer {
    justify-content: space-between;
    align-items: center;
    display: flex;
    height: 30px;
    background-color: #007d00;
  }
  
  .close {
    margin-right: 10px;
    color: #f0f0f0;
    font-size: 28px;
    font-weight: bold;
  }
  
  .close:hover,
  .close:focus {
    color: #888;
    text-decoration: none;
    cursor: pointer;
  }

@media screen and (min-width: 760px) {
    .history {
        width: 100%;
    }

    .history table tbody{
        font-size: 15px;
    }
    
    .history table thead{
        font-size: 17px;
    }

    .history table tbody tr:hover{
        background-color: #d7d7d7c6;
    }
    
     .modal-content {
        width: 50%;
      }
}