/* resets */ body { margin:0px; padding:0px; /* global 92%+ browsers support */ margin-bottom: 2%; background: radial-gradient(circle at 50% 50%, rgba(20, 42, 255, 1) 0%, rgba(0, 116, 212, 1) 35%, rgba(64, 245, 48, 1) 100%); } /* main */ header { height: 300px; z-index: 10; margin-top: 5%; margin-bottom: 5%; } .header-banner { background-color: #333; background-position: center; background-repeat: no-repeat; background-size: cover; width: 100%; height: 300px; } header h1 { background-color: rgba(18,72,120, 0.8); color: #fff; padding: 0 1rem; position: absolute; top: 2rem; left: 2rem; } .fixed-header { position: fixed; top: 0; left: 0; width: 100%; } nav { width: 100%; height: 60px; background: #002e62; position: absolute; z-index: 10; } nav div { color: white; font-size: 2rem; line-height: 60px; position: absolute; top: 0; left: 2%; visibility: hidden; } .visible-title { visibility: visible; } nav ul { list-style-type: none; margin: 0 2% auto 0; padding-left: 0; text-align: right; max-width: 100%; } nav ul li { display: inline-block; line-height: 60px; margin-left: 10px; } nav ul li a { text-decoration: none; color: #a9abae; } /* demo content */ body { color: #000000; font-family: arial black, helvetica; line-height: 1.6; } .content{ margin: 0 auto; padding: 4rem 0; width: 960px; max-width: 100%; } article { float: left; width: 720px; } article p:first-of-type { margin-top: 0; } aside { float: right; width: 120px; height:120px; color: blue; font-family: 'Arial Black', Courier, monospace; margin-right: 0%; } aside img { height: 200px; width: 200px; border-radius: 50%; } p img { max-width: 100%; } @media only screen and (max-width: 960px) { .content{ padding: 2rem 0; } article { float: none; margin: 0 auto; width: 96%; } article:last-of-type { margin-bottom: 3rem; } aside { float: none; text-align: center; width: 100%; } } /* THE FOOTER SECTION */ footer { background-color: #555; color: white; margin-top: 5%; text-decoration: none; background-image: url("../images/footer-gif.gif"); background-size: cover; margin-top: 5%; } footer form { display: flex; flex-direction: column; } footer h1, h2 { text-align: right; } footer form input { width: 500px; height: 30px; border-radius: 10%; background: white; color: blue; display: flex; justify-content: flex-end; align-items: flex-end; margin-bottom: 5%; padding-left: 5%; } .up-footer { display: flex; justify-content: space-between; flex-direction: row; margin-top: 0; padding-top: 0; } @media (max-width: 950px){ .up-footer{ display:flex; flex-direction: column-reverse; } .footer-right { display:flex; flex-direction: column-reverse; } .footer-left { display:flex; flex-direction: column-reverse; } } .footer-right { display: flex; justify-content: center; align-items: flex-end; padding: 20px; flex-direction: column; } .footer-right ul{ display: flex; flex-direction: column; padding: 10px; text-decoration: none; } .footer-right ul li{ display: flex; flex-direction: column; padding: 10px; text-decoration: none; } .footer-right h1 { border-bottom: 7px solid blue; } .footer-right a { border: 1px solid aqua; border-radius: 50%; background-color: #40b736; color: white; width: 400px; height: 30px; display: flex; justify-content: center; align-items: center; margin-bottom: 12.6%; padding-right: 0; text-decoration: none; } .footer-left { display: flex; justify-content: center; align-items: flex-start; flex-direction: column; margin-top: 0; padding-top: 0; padding-left: 5px; } .footer-left h1 { border-bottom: 7px solid blue; } .footer-left img { width: 200px; height: 200px; border-radius: 50%; margin-bottom: 5%; background-size: cover; } .footer-left h1{ padding-top: 5%; } .footer-left ul{ display: flex; flex-direction: column; padding: 10px; text-decoration: none; } .footer-left ul li{ display: flex; flex-direction: column; padding: 10px; text-decoration: none; } .footer-left ul li a{ color: white; } .footer-left ul li a:hover{ text-decoration: none; color: rgb(16, 246, 16); } .footer-below { display: flex; flex-direction: column; margin-bottom: 20px; padding-bottom: 20px; } .footer-below ul { /* margin-bottom: 20px; */ padding-bottom: 20px; text-decoration: none; display: flex; flex-direction: row; align-items: center; justify-content: center; text-decoration: none; color: white; gap: 10px; } .footer-below ul li { text-decoration: none; display: flex; flex-direction: row; align-items: center; justify-content: center; text-decoration: none; color: white; gap: 10px; } .footer-below ul li a{ text-decoration: none; color: rgb(12, 252, 68); } .footer-below ul li a:hover{ text-decoration: none; color: rgb(230, 17, 230); } .footer-below img { width: 50px; height: 50px; border-radius: 50%; padding: 2%; } .footer-below img:hover { transition: ease-in-out 5s; } /* the end of footer */