body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #000;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
}

#loading-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.loading-text {
    width: 95%;
    text-align: center;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeInText 2s ease-in-out forwards;
    animation-delay: 1s;
    line-height: 1;
}

.loading-text h1 {
    font-size: clamp(2.5rem, 8vw, 10rem);
    letter-spacing: 0.01em;
    margin: 0;
    font-weight: 700;
}

.loading-text p {
    font-size: clamp(3rem, 2vw, 1.2rem);
    letter-spacing: 0.05em;
    margin-top: 10px;
    opacity: 0.8;
    font-weight: 300;
}

#battery-container {
    position: absolute;
    bottom: 10%;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    animation: fadeInText 2s ease-in-out forwards;
    animation-delay: 1.5s;
}

.battery-body {
    width: 150px;
    height: 80px;
    border: 4px solid #fff;
    border-radius: 8px;
    position: relative;
    background-color: #333;
}

#battery-acid {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%; /* Starts empty */
    background-color: #CC0000; /* Red theme */
    border-radius: 4px;
    transition: height 0.5s ease-in-out;
}

.battery-terminal {
    width: 20px;
    height: 10px;
    background-color: #fff;
    position: relative;
    top: 4px; /* To connect with the border */
}

#battery-container .battery-terminal:first-child {
    left: -40px;
}

#battery-container .battery-terminal:nth-child(2) {
    left: 40px;
    top: -6px; /* Adjust for flex layout */
}

body::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: inset 0 0 150px rgba(0,0,0,0.9);
    z-index: 3;
    pointer-events: none;
}

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

