body {
  font-family: 'Roboto Mono', monospace;
}

.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.page-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.page-body {
  flex: 1;
}
.station-container {
  margin-bottom: 30px; /* Add some spacing between stations */
}

.station-name {
  font-size: 25pt;
  font-weight: bold;
  margin: 0;
  padding: 10px 0; /* Adjust padding as needed */
  color: #1c1c1c; /* Adjust color as needed */
  width: 100%;
  box-sizing: border-box;
}
.station-description{
  font-size: 15pt;
}

.station-graph-title{
  font-size: 15pt;
  font-weight: bold;
}
.station-box {
  display: flex;
  border: 3px solid #a4a4a4;
  border-radius: 10px;
  margin-top: 10px; /* Add some spacing between the title and the box */
  overflow: hidden;
  box-shadow: 0px 0px 5px 0px #bdbdbd;
  animation: fadeIn 0.5s ease-in-out;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.station-rd {
  border-bottom: 5px solid orange;
  border-top: 5px solid orange;
}

.station-left {
  flex: 7;
  padding: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.station-right {
  flex: 3;
  padding: 20px;
  border-left: 3px solid #a4a4a4;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: rgba(255, 255, 255, 0.9);
  background-blend-mode: overlay;
  background-size: cover;
}

.battery-box {
  width: calc(33.33% - 20px);
  margin: 10px;
  height: 150px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease-in-out;
  border: 1px solid #aaa;
  background-color: #eee;
  animation: slideIn 0.5s ease-in-out;
}

@keyframes slideIn {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.battery-box-title {
  display: block;
  font-size: 15px;
  font-weight: bold;
}

.battery-box.charging {
  border: 3px solid;
  animation: border-pulse-green 1s linear infinite;
  background-color: #f1fff1;
}

.battery-box.discharging {
  border: 3px solid;
  animation: border-pulse-red 1s linear infinite;
  background-color: #fff1f1;
}

@keyframes border-pulse-red {
  0% { border-color: #aaa; }
  50% { border-color: red; }
  100% { border-color: #aaa; }
}

@keyframes border-pulse-green {
  0% { border-color: #aaa; }
  50% { border-color: green; }
  100% { border-color: #aaa; }
}

.battery-box:hover {
  transform: scale(1.05);
}

.battery-box .soc-text {
  font-size: 2rem;
  color: #1c1c1c;
  z-index: 1;
}

.battery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
  font-size: 50pt;
  z-index: 10;
}

.battery-box:hover .battery-overlay {
  opacity: 1;
}

.battery-overlay i {
  font-size: 2rem;
  color: white;
}

.battery-box.empty {
  background-color: #eee;
  color: #aaa;
  border: 1px solid #aaa;
}

.rd {
  color: orange;
}

.soc-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 10px;
  display: flex;
  justify-content: space-between;
  background-color: #ddd;
}

.soc-progress-box {
  flex: 1;
  height: 100%;
  background-color: #ccc;
  margin: 0 1px;
}

.soc-progress-box.active {
  background-color: green;
}
@keyframes Pulsate {
  from { opacity: 1; }
  50% { opacity: 0; }
  to { opacity: 1; }
}
.soc-progress-box.last{
  background-color: lightgreen;
  animation: Pulsate 0.75s ease-in-out infinite;
}




.portrait-overlay {
  display: none;
  opacity: 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  transition: 1s all;
}

.portrait-overlay-content {
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
}

.portrait-overlay-content p {
  margin-bottom: 20px;
}

@media (orientation: portrait) {
  .portrait-overlay {
    display: flex;
    opacity: 1;
    transition: 1s all;
  }
}