/* External CSS file for Urban Photography Website */

/* Body rule with required properties */
body {
    background-color: #f5f5f5;
    color: #333333;
    font-family: Arial, Helvetica, sans-serif;
    margin: 10px;
    line-height: 1.6;
}

/* CSS rule for centering main page header (h1 tag) */
h1 {
    text-align: center;
    color: #2c3e50;
    font-size: 2.2em;
    margin-bottom: 20px;
    padding: 15px;
    background-color: #ecf0f1;
    border-radius: 8px;
}

/* CSS rule for centering site navigation (nav tag) */
nav {
    text-align: center;
    background-color: #34495e;
    padding: 12px;
    margin: 20px 0;
    border-radius: 5px;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    padding: 0 10px;
}

nav a:hover {
    color: #3498db;
    text-decoration: underline;
}

/* CSS rule for centering footer information (footer tag) */
footer {
    text-align: center;
    background-color: #2c3e50;
    color: #ffffff;
    padding: 20px;
    margin-top: 30px;
    border-radius: 5px;
}

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

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

/* Additional styling for better appearance */
main {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

h2 {
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 5px;
    margin-top: 30px;
}

p {
    margin-bottom: 15px;
    text-align: justify;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    margin: 15px 0;
}

figure {
    text-align: center;
    margin: 20px 0;
}

figcaption {
    font-style: italic;
    color: #666;
    margin-top: 8px;
    font-size: 0.9em;
}

audio, video {
    display: block;
    margin: 20px auto;
    border-radius: 5px;
}

/* Email link styling */
a[href^="mailto:"] {
    color: #e74c3c;
    font-weight: bold;
}

a[href^="mailto:"]:hover {
    color: #c0392b;
    text-decoration: underline;
}