.body_day, .body_night {
 background-position: center center;
 background-repeat: no-repeat; 
 background-attachment: fixed; 
 background-size: cover; 
 }

.div_main{
background-color: transparent;
width: 200px;
height: 540px;
position: fixed;
overflow: hidden;
top: 50%;
left: 50%;
transform: translate(-50%,-50%);
}

.graph_parent {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  padding: 20px;
}

.p_loading {
  font-size: 24px;
  color:#8433ff;
  text-align: center;
  animation-name: loading;
  animation-duration: 1s;
  animation-iteration-count: infinite;
}

@keyframes loading {
  from {
  color:#8433ff;
  }
  to {
  color:red;
  }
}
.graph_container{
  width: 70vw;
  } 

.graph_forbutton {
    display: flex;
    flex-direction:column;
    justify-content: space-around;
    width: 20vw;
    padding: 20px;
}
.graph_btn_h, .graph_btn_t, .graph_btn_to, .graph_btn_p {
  display: inline-block;
  position: relative;
  color: white;
  left: 50%;
  transform: translateX(-55%);
  font-size: 24px;
  margin: 10px; 
  text-decoration: none;
  padding: .5em 2em;
  outline: none;
  border-width: 2px 0;
  border-style: solid none;
  border-radius: 6px;
  transition: 0.2s;
  cursor: pointer;
}
.graph_btn_h {
  border-color: #8663ff #000 #8463ff;
  background: linear-gradient(#8463ff, #8433ff) #8433ff;
}
.graph_btn_t {
  border-color: #ff6384 #000 #fc6384;
  background: linear-gradient(#ff6384, #ff3384) #ff3384;
}
.graph_btn_to {
  border-color: #3296fa #000 #3096fa;
  background: linear-gradient(#3296fa, #3266fa) #3266fa;
}
.graph_btn_p {
  border-color: #63ff84 #000 #61ff84;
  background: linear-gradient(#63ff84, #63cf84) #63cf84;
}

.graph_btn_h:hover { background: linear-gradient(#8663ff, #8653ff) #8653ff; }
.graph_btn_h:active { background: linear-gradient(#8653ff, #8663ff) #8653ff; }

.graph_btn_t:hover { background: linear-gradient(#ff6384, #ff5384) #ff5384; }
.graph_btn_t:active { background: linear-gradient(#ff5384, #ff6384) #ff5384; }

.graph_btn_to:hover { background: linear-gradient(#3296fa, #3286fa) #3286fa; }
.graph_btn_to:active { background: linear-gradient(#3286fa, #3296fa) #3286fa; }

.graph_btn_p:hover { background: linear-gradient(#63ff84, #63df84) #63df84; }
.graph_btn_p:active { background: linear-gradient(#63df84, #63ff84) #63df84; }

.div_donut_Temp
{
  background-color: transparent;
  width: 200px;
  height: 200px;
  position: absolute;
  overflow: hidden;

}
.Temp_day, .Temp_night {
  background-color: transparent;
  display: none;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 200px;
  top: 0px;
  position: absolute;
  font-size: 40pt;
}
.donut {
  display: none;
  border: 16px solid rgba(0, 0, 0, 0.1);
  border-left-color: green;
  border-radius: 50%;
  width: 168px;
  height: 168px;
  top: 0px;
  position: absolute;
  animation: donut-spin 1.2s linear infinite;
}

.div_Button1, .div_Button2, .div_Button3, .div_Button4, .div_Button5
{
  background-color: transparent;
  width: 200px;
  height: 100px;
  position: absolute;
  overflow: hidden;
}


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

.button_night, .button_day  {
background-color: transparent;
font-size: 20px;
padding: 20px 10px;
transition-duration: 0.4s;
width: 200px;
height: 100px;
position: absolute;
overflow: hidden;
cursor: pointer;
color: #FFFFFF;
border: 1px solid #A66100;
}

.button_night:after, .button_day:after {
  content: "";
  background: #f1f1f1;
  display: block;
  position: absolute;
  padding-top: 300%;
  padding-left: 350%;
  margin-left: -20px !important;
  margin-top: -120%;
  opacity: 0;
  transition: all 0.8s
}

.button_night:active:after, .button_day:active:after {
    padding: 0;
    margin: 0;
    opacity: 1;
    transition: 0s    
  }

  .body_day {   
    background-image: url(Sky.jpg);  
    background-color: #52a356;}

  .body_night {   
    background-image: url(Sunset.jpg);    
    background-color: #c9870c;}
  
    
@media (max-width: 575.99px)
{ 
  .div_main
  {
    width: 200px;
    height: 540px;
  }
  .div_donut_Temp
  {
    top: 0px;
  }
  .div_Button1
  {
    top: 200px;
  }
 .div_Button2
  {
    top: 320px;
  }
 .div_Button3
  {
    top: 100px;
  } 
  .div_Button4
  {
    top: 220px;
  }
 .div_Button5
  {
    top: 340px;
  }
  .Temp_day {
    color: white;
  } 
  .Temp_night {
    color: black;
  } 

}

@media (min-width: 576px) and (max-width: 991.99px) 
{
  .div_main
  {
    width: 600px;
    height: 360px;
  } 
 
  .div_donut_Temp
  {
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    
  }

  .div_Button1
  {
    top: 50%;
    left: 0%;
    transform: translate(0%,-50%);
    
  }

  .div_Button2
  {
    top: 50%;
    left: 100%;
    transform: translate(-90%,-50%);
  }

  .div_Button3
  {
    top: 50%;
    left: 0%;
    transform: translate(0%,-50%);
    
  } 
  .div_Button4
  {
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    
  }
 .div_Button5
  {
    top: 50%;
    left: 100%;
    transform: translate(-100%,-50%);
    
  }

  .button_night, .button_day
  {
    width: 180px;
  }
  .Temp_day, .Temp_night 
  {
    color: white;
  }
}



@media (min-width: 992px) 
{
  .div_main
  {
    width: 660px;
    height: 360px;
  } 
  
  .div_donut_Temp
  {
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    
  }

  .div_Button1
  {
    top: 50%;
    left: 0%;
    transform: translate(0%,-50%);
    
  }

  .div_Button2
  {
    top: 50%;
    left: 100%;
    transform: translate(-100%,-50%);
  }

  .div_Button3
  {
    top: 50%;
    left: 0%;
    transform: translate(0%,-50%);
    
  } 
  .div_Button4
  {
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    
  }
 .div_Button5
  {
    top: 50%;
    left: 100%;
    transform: translate(-100%,-50%);
    
  }
  .Temp_day, .Temp_night 
  {
    color: white;
  }

}

@media (orientation: landscape) {
  .graph_parent {
    flex-direction: row;
  }
  .graph_container 
  {
    width: 70vw;
  }
  .graph_forbutton {
    
    width: 20vw;
  } 
  .graph_btn_h, .graph_btn_t, .graph_btn_to, .graph_btn_p
  {
   width: 90%;
   height: 10vw;
  }
  .p_loading 
  {
    font-size: 24px;
  }
}

@media (orientation: portrait) {
  .graph_parent {
    flex-direction:column;    
  }
  .graph_container
  {
    width: 90vw;
    padding: 20px;
  }
  .graph_forbutton
   {
    width: 90vw;
    height: 50vh;
    }
    .graph_btn_h, .graph_btn_t, .graph_btn_to, .graph_btn_p
    {
     width: 50vw;
     height: 10vh;
     font-size: 48px;
     margin-top: 100px;
     top: 5vh;
     border-radius: 20px;
    }
    .p_loading 
    {
      font-size: 48px;
    }
}