body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f8f8;
}

body.dark-mode {
    background-color: #121212;
    color: #f8f8f8;
}
header {
    background-color: #024b20;
    color: white;
    padding: 15px;
    text-align: center;
}
header.dark-mode {
    background-color: #1f1f1f;
    color: #fff;
}


section {
    text-align: center;
    padding: 20px;

}

.product-details {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin: 15px;
    padding: 20px;
    width: 60%;
    max-width: 800px;
    text-align: left;
    display: block;
    margin: 0 auto;
}

.product-details.dark-mode {
    background-color: #1e1e1e;
    color: #f8f8f8;
}
.product-details img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th,
td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #2ecc71;
    color: white;
}
table.dark-mode td,
table.dark-mode th {
    border-bottom: 1px solid #555;
}

/* Slider container */
.slider {
    position: relative;
    max-width: 800px;
    margin: auto;
    overflow: hidden;
    border-radius: 0;
    /* remove rounded corners */
    background: none;
    /* remove background */
    box-shadow: none;
    /* remove shadow */
}

body,
header,
.product-details,
table {
    transition: background-color 0.3s, color 0.3s;
}

/* Slides wrapper */
.slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
    align-items: center;
}

/* Individual slides */
.slides img {
    min-width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    margin: auto;
    border-radius: 0;
    /* or 10px if you want rounded */
    box-shadow: none;
    /* remove shadow if you want flat */
    cursor: pointer;
    /* <-- This makes the cursor a hand pointer */
}


/* Navigation buttons */
.prev,
.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(46, 204, 113, 0.3);
    /* semi-transparent by default */
    border: none;
    color: white;
    font-size: 28px;
    padding: 10px;
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 0.3s, transform 0.2s;
    z-index: 10;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

/* Fully visible on hover */
.prev:hover,
.next:hover {
    background-color: rgba(46, 204, 113, 0.8);
    /* solid color on hover */
}


/* Dots */
.dots {
    text-align: center;
    margin-top: 12px;
}

.dot {
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.dot.active {
    background-color: #3498db;
    transform: scale(1.3);
}

#lightbox {
    display: none;
    /* hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    z-index: 999;
    cursor: pointer;
}

#lightbox-img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 5px;
    height: auto;
    width: auto;
    object-fit: contain;
}

#lightbox .close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}



button,
a.button {
    display: inline-block;
    background-color: #2ecc71;
    border: none;
    color: white;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 15px;
}

button:hover,
a.button:hover {
    background-color: #239b58;
}

#communication-bar {
    background-color: #024b20;
    color: white;
    text-align: center;
    padding: 10px;
    position: fixed;
    bottom: 0;
    width: 100%;
}

#communication-bar p {
    margin: 0;
}
/* Dark mode toggle switch */
.switch {
    position: absolute;
    bottom: 12px;
    right: 40px;
    /* moved left from the edge */
    display: inline-block;
    width: 50px;
    height: 28px;
}


.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider-round {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #bbb;
    border-radius: 34px;
    transition: 0.4s;
}

.slider-round:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: 0.4s;
}

input:checked+.slider-round {
    background-color: #2ecc71;
}

input:checked+.slider-round:before {
    transform: translateX(22px);
}



@media only screen and (min-width: 1800px) {
    body {
        font-size: 20px;
    }
}

@media only screen and (max-width: 600px) {
    body {
        font-size: 14px;
    }
}

@media only screen and (max-width: 480px) {
    body {
        font-size: 10px;
    }
}