* {
    font-family: "Arimo", sans-serif;
    box-sizing: border-box;
}

body {
    background-color: beige;
    background-image: url('images/background.webp')
}

#container {
    max-width: 1024px;
    margin: 20px auto;
    border: 1px solid brown;
    background-color: tan;
    box-shadow: 0 8px 8px 5px hsla(0, 0%, 0%, 0.55);
}

header {
    padding: 0;
    text-align: center;
}

header img {
    width: 100%;
    max-height: 330px; 
}
header h2 {
    margin: 0;
    font-family:"Lora", serif;
    font-weight: 600;
}

.main-content .main-title {
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    font-size: 24px;
    font-weight: bold;
}

.row {
    display: flex;
}

nav {
    background-color: brown;
    color: white;
    padding: 0.2em;
    font-size: 1.0em;
    text-align: center;
}

nav ul {
    padding-inline-start: 12px;
    display: flex;
    justify-content: center;
}

nav ul li {
    list-style-type: none;
    margin-right: 1.8em;
}

nav a {
    color: white;
    text-decoration: none;
    display: inline-block;
    padding: 5px 7px;
}

nav a:hover {
    color: tan;
}

main {
    background-color:hsla(40, 83%, 88%, 0.911);
    padding: 10px;
    border-right: 1px solid black;
    border-top: 1px solid black;
    order: 2;
    flex: 3;
}

#sidebar_a {
    background-color: tan;
    padding: 10px;
    border-right: 1px solid black;
    border-top: 1px solid black;
    order: 1;
    flex: 1;
}

#sidebar_a ul {
    list-style-type: none;
    padding-left: 0;
}

.bold {
    font-weight: bolder;
}

.main-title {
    text-align: center;
}

#sidebar_b {
    background-color: tan;
    padding: 20px;
    border-top: 1px solid black;
    order: 3;
    flex: 1;
}

#sidebar_b ul {
    list-style-type: none;
    padding-left: 0;
}

.grayboxcontainer {
    border: 1px solid black;
    height: 250px;
    display: flex;
}


.graybox {
    background-color: lightgray;
    width: 75px;
    padding: 20px;
    border: 1px solid black;
    margin: 10px;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

section {
    padding: 50px 0;
    background-color: cornsilk;
}

.slide-one {
    background-image: url('images/dog4.jpeg');
}

.slide-two {
    background-image: url('images/pet1.jpeg');
}

.slide-three {
    background-image: url('images/dog5.jpeg');
}

.carousel-item {
    height: 350px;
    width: 100%;
    background-size: cover;
    background-position: center center;
}

.list-group-item {
    padding: 20px;
    max-height: calc(100vh - 250px); 
    overflow-y: auto;
}

.list-group-item img {
    width: 100%;
    height: auto;
    max-height: 200px; 
    object-fit: cover;
    margin-bottom: 10px;
}

#back-to-top-container {
    position: fixed;
    bottom: 25px;
    left: 50%; 
    transform: translateX(-50%);
}

.back-to-top {
    color: white;
    background-color: #333;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.back-to-top:hover {
    background-color: #555;
}

footer {
    color: black;
    background-color: white;
    text-align: center;
    padding: 1.2em;
    font-weight: 800;
    border: 1px solid black;
    background-color:hsla(28, 77%, 86%, 0.616);
}


