/* ITWP1000 - Project 3: Online Photo Club
   Author: Paul Bogos
   File: styles.css */

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

body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    background: #f4f4f8;
    color: #000;
}

/* Layout wrapper */
.wrapper {
    max-width: 1100px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    box-shadow: 0 0 8px rgba(0,0,0,0.1);
}

/* Header / dark nav bar */
header {
    background: #ff0000;
    color: #000;
    padding: 1rem 1.5rem 0.75rem;
    font-weight: bold;
    text-align: center;
}

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

header p {
    font-size: 0.95rem;
    color: #000;
    font-weight: bold;
}

/* Top navigation */
nav {
    margin-top: 0.6rem;
}

nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    justify-content: center;
    padding: 0.5rem 0;
}

nav a {
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
}

nav a:hover,
nav a:focus {
    text-decoration: underline;
}

/* Main content */
main {
    flex: 1;
    padding: 1.5rem;
}

main h2 {
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
}

main p {
    margin-bottom: 0.9rem;
}

/* Generic sections */
.section {
    margin-bottom: 1.75rem;
}

/* Grid (for categories, gallery, etc.) */
.table-like {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.card {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0.75rem;
    background: #fafafa;
}

.card h3 {
    margin-bottom: 0.5rem;
}

.card img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-bottom: 0.5rem;
}

/* Forms */
form {
    margin-top: 1rem;
}

form label {
    display: block;
    margin-top: 0.6rem;
    margin-bottom: 0.15rem;
}

form input[type="text"],
form input[type="email"],
form select,
form textarea {
    width: 100%;
    padding: 0.4rem;
    border: 1px solid #999;
    border-radius: 3px;
    font-size: 0.95rem;
    background-color: #fff;
    color: #000;
}

form textarea {
    min-height: 120px;
}

form input[type="submit"],
form input[type="reset"] {
    margin-top: 0.75rem;
    padding: 0.5rem 1.1rem;
    border-radius: 3px;
    border: none;
    cursor: pointer;
}

form input[type="submit"] {
    background: #000;
    color: #fff;
}

form input[type="reset"] {
    background: #ccc;
}

/* Voting options */
.vote-options {
    list-style: none;
    margin-top: 0.75rem;
}

.vote-options li {
    margin-bottom: 0.5rem;
}

/* Chat iframe */
.chat-frame {
    width: 100%;
    height: 420px;
    border: 1px solid #ccc;
}

/* Footer */
footer {
    border-top: 2px solid #000;
    padding: 0.75rem 1.5rem 1rem;
    font-size: 0.9rem;
    color: #555;
    background: #f7f7f7;
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.footer-top a {
    color: #000;
    text-decoration: none;
}

.footer-top a:hover {
    text-decoration: underline;
}

/* Footer nav injected by JS */
.footer-nav {
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.footer-nav a {
    margin-right: 0.4rem;
    text-decoration: none;
    color: #000;
}

.footer-nav a:hover {
    text-decoration: underline;
}

/* Small screens */
@media (max-width: 600px) {
    nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }
}
