@media only screen and (min-width: 1024px) {
    #cards{
        flex-direction: row;
        width: 100%;
        justify-content: space-around;
    }

    .card{
        width: 30%;
    }
    .card-img-top {
        width: 100%;
    }
}
@media only screen and (max-width: 1023px) {
    h1{
        font-size: 3rem;
    }
    #cards{
        flex-direction: column;
        justify-content: center!important;
        align-content: center!important;
        width: 100%;
        
    }

    .card{
        width: 90%;
        font-size: 2rem;
        margin-right: auto;
        margin-left: auto;
    }

    .card h5{
        font-size: 2.5rem;
    }

    .card-img-top {
        width: 80%;
    }
}

h1{
    color: white;
}

body{
    padding: 3rem;
    background-color: rgb(129, 84, 0);
}

@import url('https://fonts.googleapis.com/css2?family=Fredoka&family=Lobster+Two:ital@1&display=swap');

body{
	background-color: hsl(32, 82%, 31%);
	font-family: 'Fredoka', sans-serif;
}

nav{
	display: flex;
	justify-content: space-evenly;

	margin: 10px;

}
nav a, input[type=submit]{
	padding: 10px;
	background-color: rgb(76, 70, 116);
	
	border-radius: 15px;
	color: white;
	text-decoration: none;
}



nav a:hover, input[type=submit]:hover{
	background-color: hsl(32, 82%, 31%);
}

h1{
	text-align: center;
	font-family: 'Lobster Two', cursive;
}

section{
	display: grid;
	grid-template-columns: 1fr;
	padding: 20px;
	grid-gap: 20px;
}
form{
	display: flex;
	flex-direction: column;
}
fieldset{
	border: none;
	margin: 0;
	padding: 0;
}
fieldset>p{
	display: grid;
	grid-template-columns: 1fr;
	padding: 20px;
	margin: 0;
}

fieldset>p>*{
	text-align: right;
	align-self: baseline;
}
article{
	padding: 20px;
	
}


article img{
	max-width: 100%;
	max-height: 500px;
	margin:  0 auto;
	object-fit: contain;
	display: block;
}

#liste-loups article{
	cursor: pointer;
}

#liste-loups article:hover{
	box-shadow: 0px 10px 10px black;
}

form{
	margin-top: 20px;
}

legend{
	text-align: center;
}

input{
	padding: 10px;
	margin: 5px 0 15px 0;
}

input[type="submit"]{
	text-align: center;
	border: none;
	width: 100%;
}




@media screen and (min-width: 800px) {
	section{
		grid-template-columns: 1fr 1fr 1fr;
	}
	article{
		min-height: 400px;
	}
	fieldset > p{
		grid-template-columns: 1fr 5fr;
		padding: 20px 20%;
		grid-gap: 5px 20px
	}
}