/* ===========================
   GLOBAL PAGE STYLING
   =========================== */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #FFFFFF;
    font-size: 12px;
    margin: 0;
    padding: 0;
}

/* ===========================
   MENU
   =========================== */
#menu { z-index: 2; }

#menu-bar {
    width: 45px;
    height: 40px;
    margin: 30px 0 20px 20px;
    cursor: pointer;
}

.bar {
    height: 5px;
    width: 100%;
    background-color: #04AA6D;
    display: block;
    border-radius: 5px;
    transition: 0.3s ease;
}

#bar1 { transform: translateY(-4px); }
#bar3 { transform: translateY(4px); }

.nav { transition: 0.3s ease; display: none; }
.nav ul { padding: 0 18px; }
.nav li { list-style: none; padding: 6px 0; }
.nav li a {
    color: white;
    font-size: 18px;
    text-decoration: none;
}
.nav li a:hover { font-weight: bold; }

.menu-bg, #menu {
    top: 0;
    left: 0;
    position: absolute;
}

.menu-bg {
    z-index: 1;
    width: 0;
    height: 0;
    margin: 30px 0 20px 20px;
    background: radial-gradient(circle, #04AA6D, #04AA6D);
    border-radius: 50%;
    transition: 0.3s ease;
}

.change { display: block; }
.change .bar { background-color: white; }
.change #bar1 { transform: translateY(4px) rotateZ(-45deg); }
.change #bar2 { opacity: 0; }
.change #bar3 { transform: translateY(-6px) rotateZ(45deg); }

.change-bg {
    width: 500px;
    height: var(--menu-height);
    transform: translate(-60%, -30%);
}

/* ===========================
   PAGE TITLE
   =========================== */
.pageTitle {
    margin-top: 50px;
    text-align: center;
    color: #04AA6D;
    font-family: Helvetica, sans-serif;
    line-height: 2;
    font-size: 2.5rem;
    font-weight: bold;
}

/* ===========================
   GRID LAYOUT
   =========================== */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
    background-color: #04AA6D;
    padding: 10px;
    max-width: 1100px;
    margin: 20px auto 40px auto;
}

/* ===========================
   STATION CARD
   =========================== */
.station-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #333;
    border-radius: 6px;
    padding: 10px;
    text-align: center;
    max-width: 260px;
    margin: 0 auto;
}

.station-title {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 8px;
    color: #04AA6D;
}

.station-widget {
    margin: 0 auto;
    width: 100%;
}

.station-links {
    margin-top: 8px;
    display: flex;
    justify-content: space-around;
    font-size: 0.9rem;
}

.station-links a {
    color: #04AA6D;
    text-decoration: none;
}

.station-links a:hover { font-weight: bold; }

/* ===========================
   BATTERY
   =========================== */
.station-battery { margin-top: 10px; }

.batteryContainer {
    display: flex;
    justify-content: center;
    flex-direction: row;
    align-items: center;
    margin-top: 5px;
}

.batteryOuter {
    border-radius: 6px;
    border: 3px solid #444;
    padding: 1px;
    width: 100px;
    height: 20px;
}

.batteryBump {
    border-radius: 5px;
    background-color: #444;
    margin: 0px;
    width: 5px;
    height: 16px;
}

.batteryLevel {
    border-radius: 2px;
    background-color: #73AD21;
    width: 95px;
    height: 20px;
}

/* ===========================
   TOOLTIP
   =========================== */
.tooltip { position: relative; display: inline-block; justify-content: center; }

.tooltip .tooltiptext {
    font-size: 0.8rem;
    visibility: hidden;
    width: 120px;
    color: black;
    text-align: center;
    position: absolute;
    z-index: 1;
    top: 35%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 500ms;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}