* {
     margin: 0px;
     padding: 0px;
     box-sizing: border-box;
}
html{
	height:100%;
}
main{
	flex:1;
}
 body {
	 height:100%;
     display: flex;
     flex-direction: column;
     font-family: "Arial", sans-serif;
     background-color: #f9f9f9;
     line-height: 1.6;
     direction: rtl;
}
 header {
     background-color: #ffcc99;
     display: flex;
     align-items: center;
     justify-content: center;
     flex-wrap: wrap;
     position: relative;
}
 .logo {
     position: absolute;
     right: 20px;
     height: 70px;
     width: auto;
}
 .title-box {
     text-align: center;
}
 .title-box h1 {
     font-size: 2em;
     color: #cc5200;
}
 .title-box p {
     font-size: 1em;
     color: #333;
}
 nav {
     background-color: #ffb366;
     display: flex;
     flex-wrap: wrap;
     justify-content: center;
     gap: 20px;
     padding: 10px;
}
 nav a {
     color: white;
     text-decoration: none;
     font-weight: bold;
}
 nav a:hover {
     text-decoration: underline;
}

 .animals-gallery {
     text-align: center;
}
 .animal-list{
     display:flex;
     flex-wrap:wrap;
     justify-content: center;
}
 .animal-card {
     display: inline-block;
     width: 300px;
     height: 400px;
     margin: 15px;
     padding: 15px;
     border: 1px solid #ddd;
     border-radius: 15px;
     background-color: #fff;
     vertical-align: top;
     box-sizing: border-box;
}
 .animal-card img {
     width: 100%;
     height:200px;
     object-fit: cover;
     border-radius: 10px;
     display: block
}
 .animal-card h3 {
     margin-top: 10px;
     color: #e65c00;
}
 .animal-card p {
     font-size: 0.9em;
     color: #666;
}
 .animal-card a {
     display: inline-block;
     margin-top: 10px;
     color: #e65c00;
     font-weight: bold;
}
 footer {
     background-color: #ffb366;
     color: white;
     text-align: center;
     padding: 60px;
     font-size: 1em;
     position:relative;
}
 footer p {
     max-width: 90%;
     margin: auto;
     line-height: 1.6;
}

 @media screen and (max-width: 600px) {
     header {
         flex-direction: column;
         align-items: center;
    }
     .logo {
         position: static;
         margin-bottom: 10px;
         width: 40%;
         height: auto;
    }
    .title-box {
         text-align: center;
    }
     .title-box h1 {
         font-size: 150%;
    }
    nav {
         flex-direction: column;
         gap: 10px;
         text-align: center;
    }
     .animal-card {
         width: 70%;
         margin: 5% auto;
    }
     .animal-card img{
         height:50%;
    }
     footer {
         padding: 40px 10px;
    }
}
@media screen and (max-width: 465px) {
.search-controls input,.search-controls select,.search-controls button{
 width:30%;
}
}
 @media screen and (max-width: 400px) {
     footer {
         font-size:100%;
    }
}
@media screen and (max-width: 350px) {
#sortAge,#ageFilter,#searchInput{
	font-size:60%;
}
}
@media screen and (max-width: 300px) {
	.animal-card img{
         height:40%;
    }
#sortAge,#ageFilter,#searchInput{
	font-size:48%;
}
.search-controls input,.search-controls select,.search-controls button{
 padding:0px;
 
}
}
 @media screen and (max-width: 250px) {
     footer {
         font-size:70%;
    }
	.animal-card {
		 height:200%;
		 font-size:80%;
    }
	.animal-card img{
         height:30%;
    }
#sortAge,#ageFilter,#searchInput{
	font-size:40%;
}
.search-controls{
		flex-direction:column;
        align-items: center;
	}
	.search-controls input,.search-controls select,.search-controls button{
 width:100%;
}
}
@media screen and (max-width: 200px) {
	.animal-card {
		 font-size:60%;
    }
	.animal-card img{
		border-radius:5px;
		height:70%;
	}
#sortAge,#ageFilter,#searchInput{
	font-size:10%;
}
}
 @media screen and (max-width: 150px) {
     footer {
         font-size:50%;
    }
	.animal-card {
		 font-size:40%;
		 height:100%;
    }
}
.search-controls{
 display:flex;
 justify-content:center;
 flex-wrap:wrap;
 gap:10px;
 margin:30px 0;
}
.search-controls input,.search-controls select,.search-controls button{
 padding:8px;
 border-radius:8px;
 border:1px solid #ccc;
 font-size:1em;
}
.dog-stats{
 text-align:center;
 margin-bottom:20px;
 font-weight:bold;
 color:#cc5200;
}
.no-results{
 display:none;
 color:#e65c00;
 font-size:1.1em;
 text-align:center;
}

