/* Review header flex layout */
#review-section .review-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 32px;
    margin-bottom: 8px;
}
#overall-rating {
    font-size: 0.8rem;
    color: #f5b301;
    padding: 4px 8px;
    text-align: left;
}
/* Reviews List Title */
#reviews-list-title {
    margin-top: 24px;
    text-align: left;
    font-size: 1.1rem;
    color: #34495e;
    font-weight: bold;
}
/* Reviews Section Styles */
#reviews-section {
    position: relative;
    margin: 32px auto;
    max-width: 600px;
    padding: 16px;
    border-top: 2px solid #eee;
    background: #fafafa;
}
#reviews-section h2 {
    display: inline-block;
}
#overall-rating {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 1.2rem;
    color: #f5b301;
    padding: 4px 8px;
}
#star-rating {
    display: flex;
    gap: 4px;
}
/* Visitor Counter Styles */
#visitor-counter {
    text-align: center;
    margin: 24px 0;
    font-size: 1rem;
    color: #444;
}
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 12px;
}
.brand-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin-right: 8px;
}
/* Visitor Counter Styles */


/* Global Reset and Spacing Adjustments */
body, h1, h2, h3, p, ul, li {
    margin: 0;
    padding: 0;
}

/* Adjust padding on the main content container */
.container {
    padding: 10px; /* Adjust this value as needed to reduce space around the entire content */
}

/* Reduce vertical space between table rows */
.appliance-row {
    margin: 0;
    padding: 5px 0; /* Adjust this value to control the space between rows */
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 10px; /* Reduced body padding */
    background-color: #f4f4f9;
    color: #333;
    line-height: 1.5; /* Tighter line spacing */

    
}
/* Advertisement section */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    align-items: center;
}

.main-layout {
    display: flex;
    justify-content: center;
    max-width: 1200px; /* Adjust this to your liking to give space for the ad */
    margin: 0 auto;
    gap: 20px; /* Adds a gap between the main content and the ad */
}

.container {
    flex-grow: 1;
}

.ad-container {
    /* We'll add more styles here later */
    width: 200px; /* Adjust this to the width you want for the ad */
    border: 2px solid lightgray;
}

.creator-info {
    margin-top: auto;
}


/* Advertisement section */






.container {
    max-width: 900px;
    margin: 10px auto; /* Reduced container margin */
    padding: 15px; /* Reduced container padding */
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

h1, h2 {
    color: #34495e;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 5px; /* Reduced title padding */
    margin-bottom: 10px; /* Reduced title margin */
    text-align: center;
}

.lang-switcher {
    display: flex; /* This turns the div into a flexible container */
    justify-content: space-between; /* This pushes the items to opposite ends of the container */
    align-items: center; /* This centers the items vertically */
    padding: 10px; /* Add some padding to create space around the items */
}

.brand-icon {
    height:  40px; width: auto; border-radius: 15%; /* Adjust the size of the icon */
    width: auto;
}


#langButton {
    padding: 6px 10px; /* Reduced button padding */
    border: none;
    border-radius: 5px;
    background-color: #3498db;
    color: white;
    cursor: pointer;
    font-size: 0.9em; /* Smaller font size */
}

#langButton:hover {
    background-color: #2980b9;
}

.form-section {
    margin-bottom: 15px; /* Reduced margin */
    padding: 10px; /* Reduced padding */
    border: 1px solid #ddd;
    border-radius: 5px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px; /* Reduced gap */
}

.input-group {
    display: flex;
    flex-direction: column;
}

.input-group label {
    margin-bottom: 3px; /* Reduced margin */
    font-weight: bold;
}

.input-group input, .input-group select {
    padding: 8px; /* Reduced padding */
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
}

.category-selector {
    display: flex;
    justify-content: center;
    gap: 15px; /* Reduced gap */
    margin: 15px 0; /* Reduced margin */
}

.category-selector label {
    padding: 8px 15px; /* Reduced padding */
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
    background-color: #f9f9f9;
    transition: background-color 0.3s, box-shadow 0.3s;
    font-size: 0.9em;
}

.category-selector input[type="radio"] {
    display: none;
}

.category-selector input[type="radio"]:checked + label {
    background-color: #3498db;
    color: white;
    border-color: #3498db;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.calculation-table-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 40px;
    gap: 8px; /* Reduced gap */
    font-weight: bold;
    background-color: #ecf0f1;
    padding: 8px; /* Reduced padding */
    border-radius: 5px;
    margin-top: 10px;
}

.appliance-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 40px;
    gap: 8px; /* Reduced gap */
    margin-bottom: 8px; /* Reduced margin */
    align-items: center;
}

.appliance-row input, .appliance-row select {
    width: 100%;
    box-sizing: border-box;
    padding: 6px; /* Reduced padding */
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.9em;
}

.calculated-load-output {
    padding: 6px; /* Reduced padding */
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-align: right;
    font-weight: bold;
    font-size: 0.9em;
}

.remove-row-btn {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 6px;
    cursor: pointer;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.9em;
}

.remove-row-btn:hover {
    background-color: #c0392b;
}

.add-row-btn, .calculate-btn, .print-button, .save-pdf-button, .share-button ,.reset-domestic-btn,
.reset-commercial-btn {
    padding: 8px 12px; /* Reduced button padding */
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
    margin-top: 8px;
    margin-right: 8px;

}
.reset-domestic-btn,
.reset-commercial-btn {
    background-color: #6c757d; /* A gray background color */
    color: #fff; /* White text color */
    border: 1px solid #6c757d; /* A solid border */
    text-align: center;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.reset-domestic-btn:hover,
.reset-commercial-btn:hover {
    background-color: #5a6268; /* A slightly darker gray on hover */
    border-color: #545b62;
}


.button-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px; /* Adds some space above the buttons */
}

.add-row-btn {
    background-color: #2ecc71;
    color: white;
}

.add-row-btn:hover {
    background-color: #27ae60;
}

.calculate-btn {
    background-color: #3498db;
    color: white;
}

.calculate-btn:hover {
    background-color: #2980b9;
}

.print-button {
    background-color: #9b59b6;
    color: white;
}

.print-button:hover {
    background-color: #8e44ad;
}

.save-pdf-button {
    background-color: #e74c3c;
    color: white;
}

.save-pdf-button:hover {
    background-color: #c0392b;
}

.share-button {
    background-color: #3498db;
    color: white;
}

.share-button:hover {
    background-color: #2980b9;
}

#results {
    text-align: center;
    margin-top: 15px; /* Reduced margin */
    font-size: 1.1em; /* Smaller font size */
    font-weight: bold;
    padding: 10px; /* Reduced padding */
    border: 2px solid #2ecc71;
    border-radius: 5px;
    background-color: #e8f8f5;
}

.hidden {
    display: none;
}

#rules-table-container table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px; /* Reduced margin */
}

#rules-table-container th, #rules-table-container td {
    border: 1px solid #ddd;
    padding: 6px; /* Reduced padding */
    text-align: left;
    font-size: 0.9em;
}

#rules-table-container th {
    background-color: #f2f2f2;
    font-weight: bold;
}

.notes details {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px; /* Reduced padding */
    margin-bottom: 8px; /* Reduced margin */
}

.notes summary {
    font-weight: bold;
    cursor: pointer;
    font-size: 0.9em;
}

.notes details[open] summary {
    color: #3498db;
}

.notes p {
    margin-top: 8px;
    padding-left: 8px;
    font-size: 0.9em;
}

.disclaimer {
    text-align: center;
    font-size: 0.8em;
    color: #7f8c8d;
    margin-top: 10px;
}
.creator-info {
    text-align: center;
    font-size: 0.6em;
}

@media (max-width: 600px) {
    .calculation-table-header {
        display: none;
    }
    .appliance-row {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 5px;
        padding: 8px; /* Reduced padding */
        border: 1px solid #ddd;
        border-radius: 5px;
    }
    .appliance-row .remove-row-btn {
        position: absolute;
        top: 5px;
        right: 5px;
    }
    .appliance-row .appliance-select,
    .appliance-row .wattage-input,
    .appliance-row .quantity-input,
    .appliance-row .calculated-load-output {
        width: 100%;
        margin-bottom: 5px;
    }
    .appliance-row .remove-row-btn {
        position: static;
        margin-top: 5px;
    }
}
@media print {
    /* Hide the review section in print */
    #reviews-section, .review-header, #reviews-list-title, #reviews-list, #overall-rating {
        display: none !important;
    }
    /* Hide the notes section title and list */
    .notes,
    .notes h2,
    .notes ul {
        display: none !important;
    }
    /* Hide the rules table and its container */
    #rules-table-container {
        display: none !important;
    }
    /* Hide all the buttons */
    .lang-switcher,
    .add-row-btn,
    .calculate-btn,
    .print-button,
    .save-pdf-button,
    .share-button,
    .remove-row-btn {
        display: none !important;
    }
   
    /* Add the following rules to reduce spacing for printing */
    body,
    .container,
    #printable-section,
    .disclaimer {
        margin: 0 !important;
        padding: 0 !important;
        font-size: 9pt;
    }

    /* Reduce spacing for table elements to make the printout compact */
    .calculation-table-header,
    .appliance-row {
        margin: 0 !important;
        padding: 2px 0 !important;
        font-size: 11pt;
    }
    @media print {
    .ad-container,
    .reset-domestic-btn,
    .reset-commercial-btn {
        display: none;
    }
}
    
    
    
}
