html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background-color: #333;
  overflow: auto; 
}

#main {
  display: flex;
  flex-direction: row;
  height: 100vh;
  overflow: hidden;
  gap: 10px;
  box-sizing: border-box;
  padding: 10px;
}

#left, #right {
  padding: 16px;
  border-radius: 8px;
  box-sizing: border-box;
  overflow-y: auto;
}

#left {
  flex: 3;
  display: flex;
  flex-direction: column;
  background-color: #555;
  padding: 20px;
  border-radius: 8px;
  min-width: 300px;
  max-height: 100%;
}

#right {
  flex: 1;
  display: flex;
  flex-direction: column;
  background-color: #555;
  padding: 20px;
  border-radius: 8px;
  max-height: 100%;
}


main {
  display: flex;
  flex-direction: row;
  gap: 20px;
  padding: 0 20px;
  flex: 1;
}

#container {
  height: auto;
  min-height: 300px;
  flex: 2;
  background-color: #ccc;
  border-radius: 8px;
  
}


button {
  background-color: #4a90e2;
  height: 40px;
  color: #333;
  border-radius: 6px;
  border: none;
  font-weight: bold;
  font-size: large;
  cursor: pointer;
}

#select-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  width: 100%;
  margin: 40px auto;
}



#select-container label, #autoContainer label {

  flex: 1 1 15%;
  min-width: 120px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  background-color: #444;
  border: 2px solid #4a90e2;
  border-radius: 8px;
  color: #ccc;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.3s ease, transform 0.2s ease, color 0.2s ease;
  user-select: none;
  cursor: pointer;
  transition: color 0.3s ease, transform 0.3s ease;
  text-align: center;
}

#select-container label:hover, #autoContainer label:hover {
  background-color: #555;
}
#auto:checked + label, #maxv:checked + label, #avgv:checked + label {
  background-color: #4a90e2;
  color: #fff;
}

#select-container input[type="checkbox"], #autoContainer input[type="checkbox"] {
  display: none;
}

#select-container label.active, #autoContainer label.active {
  background-color: #4a90e2;
  color: #fff;
}

#buttons-container {
  flex:1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}


#date-range {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
}

#range-container {
  flex: 1.5;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
  align-items: center;
}

p{
  font-size: 16px;
  color: #ccc;
  font-weight: 600;
  margin-bottom: 10px;
  text-align: center;
}

#maxAvgContainer{
  display: flex;
  flex-direction: row;
  gap: 20px;
  justify-content: center;
  align-items: center;
}

#data-display {
  background-color: #444;
  border-radius: 15px;
  flex: 1.5;
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: center;
  align-items: center;
  width: 70%;
  margin: auto;
  margin-top: 10px;
  min-height: 150px;
  padding: 20;
}

#alert{
  text-align: center;
  margin-bottom: 1%;
  color: #4d9efb;
}

#data-display label{
  font-weight: 900;
  font-size: calc(0.9vh + 0.9vw);
}

#data-range {
  flex:1;
  display: flex;
  flex-direction: row;
  gap: 20px;
  justify-content: center;
}
input {
  background-color: #333;
  color: #ccc;
  border-radius: 6px;
  border: 2px solid #4a90e2;
  padding: 8px 12px;
  width: 100%;
  max-width: 300px;
}

label {
  font-size: 16px;
  color: #ccc;
  font-weight: 600;

}

label:hover {
  color: #4a90e2;
  transform: scale(1.02);
}

input[name="Antena"]:checked + label {
  color: #4a90e2;
}

svg {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  #main {
    flex-direction: column;
    height: 100vh;
  }

  #left, #right {
    flex: 1;
    max-height: 50%;
    overflow-y: auto;
  }

  #data-display label{
    font-weight: 900;
    font-size: 20px;
  }
}