/* Custom styles */
.page {
    display: none;
}
.page.active {
    display: block;
}
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 50;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}
.solar-panel-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}
.progress-glow {
    animation: glow 1.5s infinite alternate;
}
@keyframes glow {
    from {
        box-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
    }
    to {
        box-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
    }
}
.sun-rotate {
    animation: rotate 20s linear infinite;
}
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}
/* Achievement badges animation */
.badge-pop {
    animation: pop 0.5s ease-out;
}
@keyframes pop {
    0% {
        transform: scale(0);
    }
    70% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

/* Modal improvements for scrollable content */
.modal-content {
    margin: 2rem auto;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

/* Responsive modal adjustments */
@media (max-width: 768px) {
    .modal-content {
        margin: 1rem;
        max-height: calc(100vh - 2rem);
        max-width: calc(100vw - 2rem);
    }
}

/* Ensure modal content doesn't get cut off */
.modal .modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Toggle switches styles */
#toggle1:checked + .block, 
#toggle2:checked + .block,
#toggle3:checked + .block,
#toggle4:checked + .block,
#toggle5:checked + .block {
    background-color: #4CAF50;
}
#toggle1:checked ~ .dot,
#toggle2:checked ~ .dot,
#toggle3:checked ~ .dot,
#toggle4:checked ~ .dot,
#toggle5:checked ~ .dot {
    transform: translateX(6px);
    background-color: white;
} 