
#key-container{
	width: 360px;
  height: 65px;
  background-color: rgba(20, 20, 40, 0.85);
  padding-top: 5px;
  border-radius: 8px;
  padding-left: 10px;
  padding-right: 10px;
  padding-bottom: 7px;
}
#key-title{
  display: flex;
  align-items: center;
  color: white;
  padding-left: 5px;
  margin-bottom: 5px;
  padding-top: 5px;
  flex-wrap: nowrap;
  gap: 3px;
}
.key-toggle-switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 20px;
  margin-left: auto;
  flex-shrink: 0;
}
.key-toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.key-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #555;
  transition: .3s;
  border-radius: 20px;
}
.key-toggle-slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}
input:checked + .key-toggle-slider {
  background-color: #4CAF50;
}
input:checked + .key-toggle-slider:before {
  transform: translateX(20px);
}
.key-title-element{
  border: none;
  background-color: none;
  color: #D5D8D9;
  border-radius: 8px;
  padding-left: 4px;
  padding-right: 4px;
  cursor: pointer;
  white-space: nowrap;
  font-size: 11px;
  flex-shrink: 1;
}
.key-title-element:hover{
  background-color: #D5D8D9;
  color: rgba(20, 20, 40, 0.85);
}
.key-title-element-selected{
  background-color: #D5D8D9;
  color: rgba(20, 20, 40, 0.85);
}

#key-gradients{
	display: flex;
    width: calc(100% - 20px);
    margin-left: 10px;
    margin-right: 10px;
    height:20px;
}
#key-labels{
	display: flex;
  width: calc(100% - 20px);
  border: none;
  color: white;
  margin-left: 10px;
  margin-right: 10px;
  height:20px;  
}


/*
 * Temperature key elements
 */
#key-temp-grad-1 {
  width: 33%;
  height: 20px;
  background-color: white; /* For browsers that do not support gradients */
  background-image: linear-gradient(to right, rgb(0, 0, 255) , rgb(255,255,255));
}
#key-temp-grad-2 {
  width: 33%;
  height: 20px;
  background-color: white; /* For browsers that do not support gradients */
  background-image: linear-gradient(to right, rgb(255,255,255) , orange);
 
 }
#key-temp-grad-3 {
  width: 34%;
  height: 20px;
  background-color: white; /* For browsers that do not support gradients */
  background-image: linear-gradient(to right, orange , red);
 } 


 #key-item-temp-0 {
  text-align: left;
  width: 10%;
}
#key-item-temp-1 {
  text-align: center;
  width: 20%;
}
#key-item-temp-2 {
  text-align: center;
  width: 20%;
}
#key-item-temp-3 {
  text-align: center;
  width: 20%;
}
#key-item-temp-4 {
  text-align: center;
  width: 20%;
}
#key-item-temp-5 {
  text-align: right;
  width: 10%;
}


/*
 * Rainfall key elements
 */
 #key-rain-grad-1 {
  width: 100%;
  height: 20px;
  background-color: white; /* For browsers that do not support gradients */
  background-image: linear-gradient(to right, rgb(200, 215, 230) , rgb(10, 75, 150));
}
#key-item-rain-0 {
  text-align: left;
  width: 16.5%;
}
#key-item-rain-1 {
  text-align: center;
  width: 33%;
}
#key-item-rain-2 {
  text-align: center;
  width: 33%;
}
#key-item-rain-3 {
  text-align: right;
  width: 16.5%;
}


/*
 * Windspeed key elements
 */
#key-wind-grad-1 {
  width: 100%;
  height: 20px;
  background-color: white; /* For browsers that do not support gradients */
  /*background-image: linear-gradient(to right, rgb(140, 140, 140) , rgb(0, 140, 0));*/
  background-image: linear-gradient(to right, rgb(150, 220, 150) , rgb(5, 65, 5));
}
#key-item-wind-0 {
  text-align: left;
  width: 16.5%;
}
#key-item-wind-1 {
  text-align: center;
  width: 33%;
}
#key-item-wind-2 {
  text-align: center;
  width: 33%;
}
#key-item-wind-3 {
  text-align: right;
  width: 16.5%;
}