/* Import custom font */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans&display=swap');

/* Reset default styles */
body, h1, h2, h3, h4, p, ul, li, img {
    margin: 0;
    padding: 0;
}

/* Global styles */
body {
    font-family: 'Open Sans', Arial, sans-serif;
    background-color: #f5f5f5;
    line-height: 1.6; /* Improved readability */
}

/* Container */
.container {
    width: 80%;
    max-width: 960px; /* For better responsiveness */
    margin: 20px auto;
    background-color: #fff;
    border: 1px solid #ccc;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Header */
header img {
    width: 100%;
    height: auto;
}

/* Navigation */
nav {
    background-color: rgb(51, 51, 51);
}

nav ul {
    list-style-type: none;
    overflow: hidden;
}

nav li {
    float: left;
}

nav li a {
    display: block;
    color: #fff;
    text-align: center;
    padding: 14px 20px;
    text-decoration: none;
}

nav li a:hover {
    background-color: rgb(17, 17, 17);
}

/* Clear floats after nav */
nav::after {
    content: "";
    clear: both;
    display: table;
}

/* Main content */
main {
    padding: 20px;
}

main h1 {
    margin-bottom: 20px;
    color: #333;
}

main h2 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: #555;
}

main p, main ul {
    margin-bottom: 15px;
	padding-left: 40px;
	list-style-type: disc;
}

/* Footer */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 10px;
    clear: both; /* Ensure footer stays at the bottom */
}

footer h4 {
    font-weight: normal;
}

/* Images */
main img {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
    display: block; /* Prevents image from overflowing container */
    margin-left: auto;
    margin-right: auto; /* Centers the images */
}

/* Dog listings */
.dog-listing {
    border: 1px solid #ccc;
    padding: 15px;
    margin-bottom: 20px;
    overflow: hidden; /* Contains floats within the listing */
}

.dog-listing h2 {
    font-size: 1.5em;
}

.dog-listing img {
    float: left;
    margin-right: 15px;
    width: 200px;
    height: auto;
}

/* Links */
a {
    color: hsl(210, 100%, 40%);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.back-to-top {
    display: block; 
    text-align: center; 
    margin-top: 20px; 
}