/* style.css for Detroit Photo Crew */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    font-family: Verdana, Geneva, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #74512D;
    background-color: #E8C999;
    height: 100%;
}

body {
    font-family: Verdana, Geneva, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #74512D;
    height: 100%;

/* --- GRADIENT BACKGROUND --- */
    background-color: #E8C999;
    background-image: linear-gradient(to bottom, #E8C999, #F8EEDF);
    background-repeat: no-repeat;
    background-attachment: fixed;
    height: 100%;

}


#main {
    width: 90%;
    max-width: 1100px;
    margin: 20px auto;
    background-color: #F8EEDF;
    border: 2px solid #D4B991;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    min-height: calc(100% - 40px);
}

/* Header */
#header {
    background-color: #F8EEDF;
    padding: 20px;
    border-bottom: 2px solid #8E1616;
}



#logo_text h1, #logo_text h1 a, #logo_text h1 a:hover {
    font-family: Georgia, Times New Roman, serif;
    font-size: 2.5em;
    color: #000000;
    text-decoration: none;
    letter-spacing: -1px;
}

#logo_text h1 a .logo_colour {
    color: #8E1616; /* Keep accent Dark Red/Maroon */
}

#logo_text h2 {
    font-family: Georgia, Times New Roman, serif;
    font-size: 1.1em;
    color: #8E1616;
    margin-top: -10px;
}

/* Navigation */
nav {
    background-color: #74512D; /* Updated: Brown Nav Background */
    padding: 10px 20px;
    border-bottom: 1px solid #555555;
}

ul#nav, ul.sf-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
}

ul#nav li, ul.sf-menu li {
    margin-right: 15px;
    margin-bottom: 5px;
    position: relative;
}

ul#nav li a, ul.sf-menu li a {
    color: #FFFFFF;
    text-decoration: none;
    padding: 8px 12px;
    display: block;
    transition: background-color 0.3s ease;
}

ul#nav li a:hover, ul.sf-menu li a:hover {
    background-color: #8E1616;
    color: #FFFFFF;
}

ul#nav li.selected a, ul.sf-menu li.selected a {
    background-color: #8E1616;
    color: #FFFFFF;
}

/* Basic Dropdown */
ul.sf-menu ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #8E1616;
    padding: 0;
    z-index: 100;
    min-width: 150px;
    border: 1px solid #A31D1D;
}

ul.sf-menu li:hover > ul {
    display: block;
}

ul.sf-menu ul li {
    margin: 0;
}

ul.sf-menu ul li a {
    padding: 10px 15px;
    white-space: nowrap;
    color: #FFFFFF;
}

ul.sf-menu ul li a:hover {
     background-color: #A31D1D;
}


/* Site Content Area */
#site_content {
    display: flex;
    flex: 1;
    padding: 20px;
    padding-bottom: 50px;
}

/* Sidebar */
#sidebar_container {
    width: 220px;
    margin-left: 20px;
    order: 2;
    flex-shrink: 0;
}

.sidebar {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #F1E6D6;
    border: 1px solid #D4B991;
    border-radius: 5px;
}

.sidebar h3 {
    font-family: Georgia, Times New Roman, serif;
    color: #8E1616;
    margin-bottom: 10px;
    border-bottom: 1px solid #D4B991;
    padding-bottom: 5px;
}

.sidebar h4 {
    font-family: Georgia, Times New Roman, serif;
    color: #74512D;
    font-size: 1.1em;
    margin-bottom: 5px;
}

.sidebar h5 {
    font-size: 0.9em;
    color: #74512D;
    opacity: 0.8;
    margin-bottom: 10px;
}

.sidebar p, .sidebar ul, .sidebar li {
    font-size: 0.9em;
    color: #74512D;
}

.sidebar a {
    color: #8E1616;
    text-decoration: none;
}

.sidebar a:hover {
    color: #A31D1D;
    text-decoration: underline;
}

/* ShareThis/AddToAny */
.sidebar .st_facebook_large, .sidebar .st_twitter_large, .sidebar .a2a_button_facebook {
    margin-right: 5px;
}

/* Main Content Area */
#content {
    flex: 1;
    order: 1;
    padding-right: 20px;
    min-width: 300px;
}


#content.content_full_width {
    padding-right: 0;
}


#content h1, #content h2 {
    font-family: Georgia, Times New Roman, serif;
    color: #8E1616;
    margin-bottom: 15px;
}

#content p {
    margin-bottom: 15px;
    color: #74512D;
}

#content a {
    color: #8E1616;
    text-decoration: none;
    font-weight: bold;
}

#content a:hover {
    color: #A31D1D;
    text-decoration: underline;
}

#content ul {
    list-style-position: inside;
    margin-bottom: 15px;
    margin-left: 20px;
}

#content hr {
    border: 0;
    height: 1px;
    background: #D4B991;
    margin: 25px 0;
}

/* =============================== */
/* Gallery & Voting Image Sizing   */
/* =============================== */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

/* Apply common styles to the containers holding images */
.gallery article,
.voting-gallery figure {
    border: 1px solid #D4B991;
    padding: 5px;
    background-color: #FFFFFF;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Apply common styles to the images themselves */
.gallery article img,
.voting-gallery figure img {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: cover;
    object-position: center;
    flex-shrink: 0;
    margin-bottom: 5px;
}

/* Specific styling for voting page captions */
.voting-gallery figure figcaption {
    padding: 8px 5px 5px 5px;
    text-align: center;
    font-size: 0.9em;
    margin-top: auto;
    flex-grow: 1;
}

.voting-gallery figure figcaption label {
    display: block;
    cursor: pointer;
}



/* Form Basic Styling */
form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #74512D;
}

form input[type="text"],
form input[type="email"],
form select,
form textarea {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #D4B991;
    border-radius: 3px;
    font-family: Verdana, Geneva, sans-serif;
    background-color: #FFFFFF;
    color: #74512D;
}

form button[type="submit"] {
    background-color: #8E1616;
    color: #FFFFFF;
    padding: 10px 20px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-weight: bold;
}

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

/* Chat Page Specific */
#chat-wrapper, #minnit-chat-embed-wrapper {
    border: 1px solid #D4B991;
    padding: 10px;
    margin-top: 20px;
    background-color: #F1E6D6;
}

/* ==================== */
/* Founder Info Section */
/* ==================== */
.founder-info {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #D4B991;
}


.founder-info > div {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.founder-info img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px solid #D4B991;
    object-fit: cover;
    flex-shrink: 0;
}


.founder-info > div > div {
    flex: 1;
    min-width: 200px;
}

.founder-info h3 { } /* Inherits h3 style */

.founder-info p {
    margin-bottom: 10px;
}

.founder-info p:last-of-type {
    margin-bottom: 0;
}

.founder-info p a { } /* Inherits link style */


/* Footer */

footer {
    background-color: #74512D;
    color: #FFF8DC;
    padding: 20px;
    text-align: center;
    border-top: 2px solid #8E1616;
    margin-top: auto;
}

footer p {
    margin-bottom: 5px;
    font-size: 0.9em;
}

footer a {
    color: #FFFFFF;
    text-decoration: none;
}

footer a:hover {
    color: #FFFFFF;
    text-decoration: underline;
}

/* Footer Navigation */
#footer-nav ul {
    list-style: none;
    padding: 0;
    margin-bottom: 10px;
}

#footer-nav ul li {
    display: inline-block;
    margin: 0 10px;
}

#footer-nav ul li a {
    color: #FFFFFF;
    text-decoration: none;
}

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

/* Basic Responsive Example */
@media (max-width: 768px) {
    #site_content {
        flex-direction: column;
    }

    #sidebar_container {
        width: 100%;
        margin-left: 0;
        margin-top: 20px;
        order: 2;
    }

    #content {
        order: 1;
        padding-right: 0;
        width: 100%;
    }

    ul#nav, ul.sf-menu {
        flex-direction: column;
        align-items: center;
    }

    ul#nav li, ul.sf-menu li {
        margin: 5px 0;
        margin-right: 0;
    }
}

@media (max-width: 480px) {
    #logo_text h1, #logo_text h1 a {
        font-size: 2em;
    }
    .gallery {
 /* Adjust grid for very small screens if needed */
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 10px;
    }
    .founder-info img {
        width: 80px;
        height: 80px;
    }
}