/* Global */ :root { --yellow: #ffc600; --black: #272727; --white: #f8f8f8; } html { /* border-box box model allows us to add padding and border to our elements without increasing their size */ box-sizing: border-box; color: var(--black); } * { box-sizing: inherit; } body { background: var(--white); letter-spacing: -1px; font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 1.5; margin: 0; padding: 0; } .button_1 { background: var(--yellow); border: 0; padding: 10px 20px; } /* Header */ header { background: var(--yellow); padding-top: 20px; padding-bottom: 10px; } header>.container { width: 80%; margin: auto; overflow: hidden; } header a { color: var(--black); text-decoration: none; text-transform: uppercase; font-size: 16px; } header ul { margin: 0; padding: 0; } header li { display: inline; padding: 0 20px; } header #branding { float: left; } header #branding h1 { font-size: 45px; margin: 0; } header nav { float: right; margin-top: 10px; } header a:hover { border-style: solid; padding: 5px; background: var(--white); } /* Login */ #login { height: 400px; } .box { position: absolute; top: 20%; left: 50%; transform: translate(-50%, -50%); width: 400px; height: 40px; background: var(--black); box-sizing: border-box; box-shadow: 0 15px 25px rgba(0, 0, 0, .5); border-radius: 10px; } .box h2 { margin: 0 0 30px; padding: 5px; color: var(--yellow); text-align: center; } .box .inputBox { position: relative; } .box .inputBox input { width: 100%; padding: 10px 0; font-size: 16px; color: var(--black); letter-spacing: 1px; margin-bottom: 30px; border: none; border-bottom: 1px solid var(--black); outline: none; background: transparent; } .box .inputBox label { position: absolute; top: 0; left: 0; padding: 1px 0; font-size: 18px; color: var(--black); pointer-events: none; transition: .5s; } .box .inputBox input:focus~label, .box .inputBox input:valid~label { top: -18px; left: 0; color: #03a9f4; font-size: 12px; } .box input[type="submit"] { background: transparent; border: none; outline: none; color: var(--black); background: var(--yellow); padding: 10px 20px; cursor: pointer; border-radius: 5px; } a.butt { background-color: var(--black); color: var(--yellow); text-decoration: none; padding: 10px; border-radius: 10px; outline: 0px; font-size: 20px; padding: 10px 175px; width: 385px; } /* FOOTER */ footer { background-color: var(--yellow); color: var(--black); } #footer>.container { margin-left: 100px; padding: 40px; display: grid; grid-template-columns: 145px 250px 250px 200px; justify-content: center; padding-top: 30px; } .copyright { font-size: 17px; font-weight: bold; } /* Media Queries */ @media(max-width: 768px) { header #branding, header nav, header nav li { float: none; text-align: center; width: 100%; } header { padding-bottom: 20px; } #showcase h1 { margin-top: 40px; } }