/* General Styles */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    color: #333;
}

.container {
    width: 80%;
    margin: 0 auto;
    padding: 20px 0;
}

.section {
    margin-top: 5px;
    margin-bottom: 30px;
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Website Title */
.website-title {
	margin-top: 1px;
    text-align: center;
    color: #2c3e50;
    font-size: 2.0em;
    margin: 0;
    padding: 10px 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

/* Menu Styles */
.menu {
    display: flex;
    justify-content: center;
    background-color: #3498db;
    border-radius: 5px;
    margin-top: 1px;
    padding: 2px 0;
}

.menu a {
    color: white;
    text-decoration: none;
    padding: 10px 10px;
    margin: 0 5px;
    border-radius: 3px;
    transition: background-color 0.3s;
}

.menu a:hover {
    background-color: #2980b9;
}

/* Ad Banner */
.ad-banner {
    text-align: center;
    padding: 15px;
    background-color: #ecf0f1;
    border-radius: 5px;
}

.ad-placeholder {
    padding: 20px;
    background-color: #bdc3c7;
    color: #7f8c8d;
    border-radius: 3px;
}

.banner-image {
    width: 100%;
    border-radius: 5px;
    display: block;
}

/* Calculator Styles */
.calculator-container {
    padding: 5px;
}

.calculator-title {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 10px;
    margin-top: 2px;
}

/* Appliances List */
.appliances-list {
    margin-bottom: 20px;
}

.list-header {
    display: flex;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 10px;
    border-radius: 5px 5px 0 0;
    font-weight: bold;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.2);
    box-shadow: 0 2px 3px rgba(0,0,0,0.1);
}

.appliance-name {
    flex: 3;
}

.appliance-watts, .appliance-qty, .appliance-total {
    flex: 1;
    text-align: center;
}

.appliance-item {
    display: flex;
    padding: 10px;
    border-bottom: 1px solid #eee;
    align-items: center;
}

.appliance-item:nth-child(even) {
    background-color: #f9f9f9;
}

.appliance-item:last-child {
    border-bottom: none;
}

.appliance-item-name {
    flex: 3;
}

.appliance-item-watts {
    flex: 1;
    text-align: center;
}

.appliance-item-qty {
    flex: 1;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.appliance-item-total {
    flex: 1;
    text-align: center;
    font-weight: bold;
}

.qty-btn {
    width: 25px;
    height: 25px;
    margin: 0 5px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-weight: bold;
}

.qty-btn:hover {
    background-color: #2980b9;
}

.qty-value {
    min-width: 20px;
    text-align: center;
}

.total-watts {
    text-align: center;
    padding: 15px;
    background-color: #ecf0f1;
    border-radius: 0 0 5px 5px;
    margin-top: -10px;
}

.total-watts h3 {
    margin: 0;
    color: #2c3e50;
}

/* Backup Hours Slider */
.backup-hours {
    margin: 20px 0;
    text-align: center;
}

.backup-hours label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: #2c3e50;
}

.slider {
    width: 80%;
    height: 15px;
    -webkit-appearance: none;
    background: linear-gradient(90deg, #3498db, #9b59b6);
    border-radius: 10px;
    outline: none;
    margin: 10px 0;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #2c3e50;
    cursor: pointer;
}

.slider::-moz-range-thumb {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #2c3e50;
    cursor: pointer;
}

#backup-hours-value {
    font-weight: bold;
    color: #3498db;
}

/* Buttons Container */
.buttons-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
}

.calculate-button button, .reset-button button {
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
    width: 250px;
}

.calculate-button button {
    background-color: #2ecc71;
    color: white;
}

.calculate-button button:hover {
    background-color: #27ae60;
}

.reset-button button {
    background-color: #e74c3c;
    color: white;
}

.reset-button button:hover {
    background-color: #c0392b;
}

/* Results Container */
.results-container {
    display: none;
    margin-top: 20px;
}

.result-box {
    background-color: #f8f9fa;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.result-box h3 {
    margin-top: 0;
    color: #2c3e50;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.result-box p {
    margin: 10px 0;
    font-size: 16px;
}

.battery-results {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.battery-result-item {
    background-color: #f8f9fa;
    border-radius: 5px;
    padding: 10px 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
}

.or-text {
    font-weight: bold;
    text-align: center;
    margin: 5px 0;
    color: #2c3e50;
}

/* Footer Styles */
.footer {
    padding: 20px;
}

.about-text {
    margin-top: 10px;
    line-height: 1.6;
	font-size: 15px;
}

.about-text h3 {
    color: #2c3e50;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.developer-text {
    font-style: italic;
    margin-top: 20px;
    color: #7f8c8d;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        width: 95%;
    }
    
    .menu {
        flex-direction: column;
        align-items: center;
    }
    
    .menu a {
        margin: 5px 0;
        width: 80%;
        text-align: center;
    }
    
    .list-header {
        font-size: 12px;
    }
    
    .appliance-item-name, .appliance-item-watts, .appliance-item-qty, .appliance-item-total {
        font-size: 12px;
    }
    
    .buttons-container {
        width: 100%;
    }
    
    .calculate-button button, .reset-button button {
        width: 100%;
    }
}