/* General Reset and Layout */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    background-image: url('../images/bg1.jpg'); 
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
}
/* Header Styles */
header {
    background-color: #333;
    color: white;
    padding: 1rem 0;
    text-align: center;
}

header h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}


/* Header Navigation style */
header nav ul {
    list-style-type: none;
    padding: 0;
    text-align: center;
}

header nav ul li {
    display: inline;
    margin: 0 20px;
}

header nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

header nav ul li a:hover {
    color: #f4f4f4;
    text-decoration: underline;
}



/* Style for the slideshow container */
.slideshow-container {
    position: relative;
    max-width: 560px;
    margin: auto;
    overflow: hidden; 
}

/* Hide all slides by default */
.slide {
    display: none;
}

/* Style for images */
.slideshow-container img {
    width: 100%; 
    height: auto; 
    border-radius: 8px; 
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); 
}

/* Add transition for smooth effect */
.slide img {
    transition: opacity 1s ease-in-out;
}


/* Navigation arrows */
.prev, .next {
    position: absolute;
    top: 50%;
    padding: 16px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 18px;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    user-select: none;
    transform: translateY(-50%);
    z-index: 1000;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}


/* Main Content Styles */
main {
    text-align: center; 
    padding: 30px; 
    background-color: #fff; 
    max-width: 1100px; 
    margin: 20px auto; 
    border-radius: 8px; 
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1); 
}

main h2 {
    font-size: 2em; 
    color: #333; 
    margin-bottom: 20px; 
}

main p {
    font-size: 1.1em; 
    color: #555; 
    margin-bottom: 15px; 
}

/* Style the list */
main ul {
    list-style-type: none; 
    padding: 0; 
    margin-bottom: 20px; 
}

main ul li {
    font-size: 1.1em; 
    margin-bottom: 10px; 
    color: #444; 
}

#categories h2 {
    font-size: 2em;
    color: #333;
    margin-bottom: 20px;
}

.category-list table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.category-list th, .category-list td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.category-list th {
    background-color: #333;
    color: #fff;
}

.category-list tr:nth-child(even) {
    background-color: #f9f9f9;
}

.category-list tr:hover {
    background-color: #f1f1f1;
}

.category-list td {
    font-size: 1em;
    color: #555;
}

label {
    padding: 2px;
    line-height: 2.5em;
}

fieldset {
    text-align: left;
    padding: 10px;
    background-color: #eee;
    border: 2px solid #ccc;
    border-radius: 5px; 
}

legend {
    background-color: rgb(82, 255, 51);
    border: 1px solid rgb(193, 192, 192);
    padding: 5px;
    margin-bottom: 10px; 
    font-weight: bold; 
}
/* Styling for section headings */
section h2 {
    color: #333;
    font-size: 24px;
    margin-bottom: 10px;
}
section h3 {
    color: #333;
    font-size: 24px;
    margin-bottom: 10px;
}
section h4 {
    color: #333;
    font-size: 22px;
    margin-bottom: 10px;
}
section h5 {
    color: #333;
    font-size: 1.5em;
    margin-bottom: 10px;
}



main h2, main h3, main h4 {
    color: #333;
    font-size: 1.6rem;
    margin-bottom: 10px;
}


#voting h2 {
    font-size: 2em;
    color: #333;
    margin-bottom: 20px;
}

#voting p {
    font-size: 1.1em;
    margin-bottom: 5px;
    text-align: left;
}

.photo-voting {
    flex: 1;
    display: grid;
    gap: 20px; 
    justify-items: left;
}

.photo-item {
    text-align: left;
    width: 100%;

}

.photo-item img {
    display: grid;
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);

}

.photo-item label {
    display: block;
    margin-top: 0px;
    text-align: left;
}

input[type="radio"] {
    margin-bottom: 10px;
}

input[type="submit"] {
    background-color: #333;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

input[type="submit"]:hover {
    background-color: #555;
}


form {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

form label {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: #333;
}

form input[type="text"], form input[type="email"], form input[type="file"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

form input[type="submit"] {
    background-color: #333;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}

form input[type="submit"]:hover {
    background-color: #555;
}

/* Chat Widget Styles */
.chat-widget h3 {
    position: right;
    margin-top: 0;
}

.chat-widget p {
    margin-bottom: 10px;
}
.container {
    display: flex;
    justify-content: space-between;  
    gap: 20px;                       
}
.photo-voting {
    flex: 2;                         
    display: grid;
    gap: 20px;
    justify-items: left;
}
.live-chat-container {
    flex: 0 0 350px;                 
    height: 1000px;                
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    background-color: #c4a8a8c5;
    padding: 10px;
    border: 2px solid #f3e5e5f7;
}

/* Optional: Style for iframe inside chat */
.live-chat-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Gallery Styles */
.gallery-category {
    margin-bottom: 40px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 20px;
    justify-items: center;
}

.photo-item img {
    width: 100%;
    height: auto;
    max-width: 300px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.photo-item p {
    text-align: center;
    font-size: 14px;
    color: #444;
    margin-top: 10px;
}




/* Footer Styles */
footer {
    background-color: #333;
    color: white;
    padding: 20px 0;
    text-align: center;
    position: relative;
}

footer p {
    font-size: 14px;
    margin-bottom: 8px;
}

footer a {
    color: rgb(115, 146, 230);
    text-decoration: none;
}

footer a:hover {
    color: rgb(124, 146, 230);
}


/* Social Media Buttons */
.sharethis-inline-share-buttons {
    text-align: center;
    margin-top: 0px;
}

/* Footer Navigation */
footer nav ul {
    list-style-type: none;
    padding: 0;
    margin-top: 0px;
    text-align: center;
}

footer nav ul li {
    display: inline;
    margin: 0 15px;
}

footer nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

footer nav ul li a:hover {
    color: #f4f4f4;
    text-decoration: underline; 
}


/* Mobile Responsiveness */
@media screen and (max-width: 768px) {
    header nav ul li {
        display: block;
        margin: 10px 0;
    }

    header h1 {
        font-size: 1.5rem;
    }

    main {
        margin: 10px;
        padding: 15px;
    }

    form input[type="text"], form input[type="email"], form input[type="file"] {
        width: 100%;
        padding: 12px;
        margin-bottom: 15px;
    }

    footer nav ul li {
        display: block;
        margin: 5px 0;
    }
    .voting-container {
        flex-direction: column; /* Stack the photo-voting and chat sections vertically on mobile */
    }

    .live-chat-container {
        width: 100%; /* Ensure chat container is full width on mobile */
        height: 300px; /* Adjust height on mobile */
    }
    .gallery {
        grid-template-columns: 1fr; /* Stack gallery images in a single column on small screens */
    }

}