main {
	width: 960px;
	padding: 20px;
	margin: auto;
	background-color: #eeeeee;
	border: 1px dotted #333333;
}

nav:after {
	display: table;
	content: '';
	clear: both;
}

nav ul {
	margin: 0px;
	padding: 0px;
	list-style-type: none;
	margin-bottom: 20px;
}



nav ul li {
	width: 20%;
	float: left;
	padding: 10px 0px;
	background-color: pink;
	text-align: center;
}

.cats {
	position: relative;
}

.cats h1 {
	position: absolute;
	right: 20px;
	bottom: 20px;
	color: white;
	margin: 0px;
	padding: 0px;
}

.cats:after {
	display: table;
	content: '';
	clear: both;
}

.cats img {
	display: block;
	float: left;
	width: 50%;
}



@media only screen and (max-width: 1024px) {
    main {
        background-color: lightblue;
        width: 80%;
        box-sizing: border-box;
    }
}

@media only screen and (max-width: 768px) {
    nav ul li {
        float: none;
        width: 100%;
    }
    
	.cats {
	   	width: 80%;
    	margin: auto;
	}
    
    .cats img {
		float: none;
		width: 100%;
    }
    
}

@media only screen and (max-width: 480px) {
	body {
		margin: 0px;
	}
    main {
		background-color: yellow;
        width: 100%;
        border: none;
    }
    .cats {
    	width: 100%; 
    }
}
