@import url('https://fonts.googleapis.com/css2?family=M+PLUS+Rounded+1c&display=swap');


.card,
body {
  padding: 20px;
}
.card,
canvas {
  background: #fff;
  border-radius: 12px;
}
#realtime,
.card,
h1 {
  text-align: center;
}
body {
  font-family: Arial;
  background: #f5f5f5;
  margin: 0;
}
h1 {
  margin-bottom: 10px;
}
.cards {
display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    flex-direction: row;
    justify-content: center;
}
.card {
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  width: 15%;
  transition: background 0.3s;
}
.good {
  background: #c8f7c5;
}
.moderate {
  background: #fff9c4;
}
.bad {
  background: #ffcdd2;
}
#charts {
  /*display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));*/
  display: flex;
  gap: 30px;
  max-width: 1200px;
  width: 100%;
  margin: auto;
}
canvas {
  padding: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
  max-width: 100%;
}
@media (max-width: 768px) {
  .cards .card {
      width: calc(50% - 65px);
              font-size: 11px;


  }
  #charts {
    grid-template-columns: 1fr;
  }

  canvas {
  }
}



* {
  padding: 0;
  margin:0;
}


  body {
    background: rgba(42, 42, 42, 1);
    padding: 0;
  }
  nav {
    box-sizing: border-box;
    border: 1px solid rgba(56, 56, 56, 1);
    border-radius: 0px 70px 70px 0px;
    background: rgba(56, 56, 56, 1);
    position: fixed;
    left: 0;
    bottom: 50%;
    display: flex;
    flex-direction: column;
    gap: 40px;
    transform: translateY(50%);
    padding: 60px 17px;

    a {
      text-decoration: none;
    }
    li {
      list-style: none;
    }
  }

  .cards {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-direction: row;
    gap: 30px;
    max-width: 1200px;
    width: 100%;
    justify-content: space-between;
    flex-wrap: nowrap;
    margin: auto;
    margin-bottom: 20px;
    
    margin-top: 43px;
  }

  .card {
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    background-color: rgba(126, 211, 33, 0.23);
    border-radius: 12px;
    height: 106px;
    padding: 20px;
    color: rgba(255, 255, 255, 1);

    font-family: "M PLUS Rounded 1c";
    font-size: 20px;
    font-weight: 500;
    line-height: 24px;
    letter-spacing: 0px;
    text-align: center;
    width: 100%;


      background: linear-gradient(138deg, rgb(64 64 64) 47.41%, rgb(43 102 129 / 55%) 79.65%);
    display: flex;
  > div {
        display: flex;

    gap: 35px;
    align-items: center;
    margin: auto;

    .values {
        color: rgba(255, 255, 255, 0.5);
        font-family: "M PLUS Rounded 1c";
        font-size: 14px;
        font-weight: 300;
        line-height: 100%;
        letter-spacing: 0px;
        text-align: center;

        span {
          color: rgba(255, 255, 255, 1);
            font-family: "M PLUS Rounded 1c";
            font-size: 20px;
            font-weight: 500;
            line-height: 24px;
            letter-spacing: 0px;
            margin-top: 13px;
            display: inline-block;
        }
    }


  }

  }



.card#card-temp {
  background: linear-gradient(138deg, rgb(64 64 64) 47.41%, #6b5993ab 79.65%);
}

.card#card-hum {
  background: linear-gradient(138deg, rgb(64 64 64) 47.41%, #91913f70 79.65%);
}

.card#card-pm25 {
  background: linear-gradient(138deg, rgb(64 64 64) 47.41%, #917a4a85 79.65%);
}

.card#card-pm10 {
  background: linear-gradient(138deg, rgb(64 64 64) 47.41%, #4b918878 79.65%);
}




  canvas {
    background: #ffffff1c;
  }

  .top-title {
    box-sizing: border-box;
    border: 1px solid rgba(56, 56, 56, 1);

    color: rgba(255, 255, 255, 1);

  font-weight: 250;
  letter-spacing: 0px;
  text-align: left;
  padding: 18px;

  background: rgba(255, 255, 255, 0.1);
  }

  
   nav a li img {
    height: 29px;
    margin: auto;
    display: block;
   }

      nav a li .logo-index{ 
  height:36px;
   }

   .logo-header {
        display: block;
      margin: auto;
   }


   .aeras {
          width: 370px;
        border-radius: 20px;
        backdrop-filter: blur(10px);
        background: rgba(255, 255, 255, 0.1);
        display: block;
        margin: 0;
        padding: 50px 0;
        background: linear-gradient(147deg, rgb(64 64 64) 40.41%, rgb(118 151 63) 98.65%);
   }

   .bottom-row {
    display: flex;
    gap: 30px;
    width: 100%;
    max-width: 1200px;
    margin: auto;

   }

   .diktis-title {

        box-sizing: border-box;
      border-radius: 20px;
      backdrop-filter: blur(10px);
      background: rgba(0, 0, 0, 0.05);
      opacity: 0.86;
        color: rgba(255, 255, 255, 1);

        font-family: "M PLUS Rounded 1c";
        font-size: 24px;
        font-weight: 300;
        line-height: 35px;
        letter-spacing: 0px;
        text-align: left;
        padding: 30px;
        max-width: 90%;
        margin: auto;
            margin-top: 20px;

   }

   .spacer {
        margin-top: 40px;
   }


   #mainChart {
    width: 100%;
   }
   
   
   #predict {
       
    width: 100%;
    display: flex;
    background: linear-gradient(138deg, rgb(64 64 64) 47.41%, #7d98564f 79.65%);
    border-radius: 12px;
    max-height: 447px;
    overflow: auto;
    position: relative;
    scrollbar-color: #2a2a2a #40404000;

   }
   
   #predict_output {
       padding: 30px;
        margin: auto;
        color: white;
        color: rgb(255 255 255 / 71%);
        font-family: "M PLUS Rounded 1c";
        max-height: calc(100% - 60px);
        
   }
   
   
   .loader {
    border: 6px solid #f3f3f3;
    border-top: 6px solid #7d9856;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    animation: spin 0.8s linear infinite;
    margin-top: 10px;
    position: absolute;
    position: absolute;
    top: 50%;
    left: 50%;
    top: calc(50% - 35px);
    left: calc(50% - 35px);
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


   
   
   
   @media( max-width: 768px )
   {
       
       .cards {
        flex-direction: column;
        justify-content:  center;
        align-items: center;
       }
       
       
       nav {
       
       
       justify-content: center;
    width: 100%;

    border-radius: 40px 40px 0px 0px;
    bottom: 35px;
    flex-direction: row;
    padding: 30px 17px;
    z-index: 1000;

    gap: 0;
    justify-content: space-between;


       }
       
   .cards .card {
        width: calc(100% - 70px);
        
    }
    #predict {
        max-height: unset;
            margin-bottom: 120px;
    }
    
    
    .bottom-row {
            display: flex;
            width: 100%;
            flex-direction: column;
            width: calc( 100% - 30px);
        }
        
        .aeras {
                width: 100%;
        }
         
        #charts {
            padding-bottom: 200px;
            height: 70vh;
              position: relative;
              

      
        }
        
       
   }