/* 
CSS Document for Photo Fabulous Website
Author: Autumn Amos
Course: ITWP 1000
File: style.css
*/

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

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #be127c;
    margin: 0;
    padding: 0;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, #b7a8ba 0%, #fb48ec 100%);
    color: #5d0c7d58;
    text-align: center;
    padding: 2em 1em;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 0.3em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

header p {
    font-size: 1.2em;
    font-style: italic;
}

/* Navigation Styles */
nav {
    background-color: #333;
    padding: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav ul li {
    margin: 0;
}

nav ul li a {
    display: block;
    color: #fff;
    text-decoration: none;
    padding: 1em 1.5em;
    transition: background-color 0.3s ease;
}

nav ul li a:hover {
    background-color: #667eea;
}

/* Main Content Styles */
main {
    max-width: 1200px;
    margin: 2em auto;
    padding: 0 1em;
}

section {
    background-color: #fff;
    padding: 2em;
    margin-bottom: 2em;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

h2 {
    color: #a518b2;
    margin-bottom: 0.5em;
    font-size: 2em;
    border-bottom: 3px solid #764ba2;
    padding-bottom: 0.3em;
}

h3 {
    color: #764ba2;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    font-size: 1.5em;
}

p {
    margin-bottom: 1em;
    text-align: justify;
}

/* Link Styles */
a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Social Share Buttons */
.share-buttons {
    margin: 2em 0;
    padding: 1.5em;
    background-color: #f8f8f8;
    border-radius: 8px;
    text-align: center;
}

.share-buttons h3 {
    margin-top: 0;
    color: #800080;
}

/* Contact Section */
.contact {
    text-align: center;
    margin-top: 2em;
    padding: 1em;
    background-color: #f0f0f0;
    border-radius: 8px;
}

.contact a {
    font-weight: bold;
    font-size: 1.1em;
}

/* Category Styles */
.category {
    margin-bottom: 2em;
    padding: 1.5em;
    background-color: #f9f9f9;
    border-left: 4px solid #667eea;
    border-radius: 4px;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2em;
    margin-top: 2em;
}

.gallery-item {
    background-color: #f9f9f9;
    padding: 1em;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.gallery-item img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 1em;
}

.gallery-item h3 {
    margin-top: 0;
    font-size: 1.2em;
}

/* Voting Images */
.voting-images {
    margin: 2em 0;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5em;
    margin: 1.5em 0;
}

.photo-item {
    text-align: center;
    background-color: #f9f9f9;
    padding: 1em;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.photo-item img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 0.5em;
}

/* Form Styles */
form {
    margin-top: 2em;
}

fieldset {
    border: 2px solid #667eea;
    padding: 1.5em;
    border-radius: 8px;
    background-color: #f9f9f9;
}

legend {
    color: #667eea;
    font-weight: bold;
    font-size: 1.3em;
    padding: 0 0.5em;
}

label {
    display: block;
    margin-top: 1em;
    margin-bottom: 0.3em;
    font-weight: bold;
    color: #333;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 0.7em;
    margin-bottom: 1em;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: Arial, sans-serif;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
    border-color: #667eea;
    outline: none;
}

input[type="submit"],
input[type="reset"] {
    background-color: #667eea;
    color: #fff;
    padding: 0.8em 2em;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    margin-right: 1em;
    margin-top: 1em;
    transition: background-color 0.3s ease;
}

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

input[type="reset"] {
    background-color: #999;
}

input[type="reset"]:hover {
    background-color: #777;
}

/* Footer Styles */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 2em 1em;
    margin-top: 3em;
}

footer p {
    margin: 0.5em 0;
    text-align: center;
}

footer a {
    color: #667eea;
}

footer a:hover {
    color: #fff;
}

#footer-nav {
    margin: 1em 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }

    nav ul {
        flex-direction: column;
    }

    nav ul li {
        text-align: center;
    }

    nav ul li a {
        padding: 0.8em;
    }

    .gallery-grid,
    .image-grid {
        grid-template-columns: 1fr;
    }

    main {
        margin: 1em auto;
    }

    section {
        padding: 1.5em 1em;
    }

    h2 {
        font-size: 1.5em;
    }
}
/* ... all your existing CSS above ... */

/* Responsive Design */
@media (max-width: 768px) {
    /* existing responsive styles */
}

/* Footer Contact Form - Simplified */
.footer-contact {
    max-width: 600px;
    margin: 2em auto;
    padding: 1.5em;
    background-color: #444;
    border-radius: 8px;
    text-align: center;
}

.footer-contact h3 {
    color: #fff;
}

.footer-contact label {
    display: block;
    color: #fff;
    margin-top: 1em;
}

.footer-contact input,
.footer-contact textarea {
    width: 100%;
    padding: 0.7em;
    margin-bottom: 1em;
    border-radius: 4px;
}

.footer-contact input[type="submit"] {
    background-color: #667eea;
    color: #fff;
    padding: 0.8em 2em;
    border: none;
    cursor: pointer;
}

/* Footer Navigation */
#footer-nav {
    text-align: center;
    margin: 1em 0;
}

#footer-nav a {
    color: #667eea;
    padding: 0 0.5em;
}