.example { font-family: 'Roboto', sans-serif; width: 550px; height: 378px; margin: auto; padding: 20px; box-sizing: border-box; } .example .flipdown { margin: auto; } .example h1 { text-align: center; font-weight: 100; font-size: 3em; margin-top: 0; margin-bottom: 10px; } .example p { text-align: center; font-weight: 100; margin-top: 0; margin-bottom: 35px; } .example .buttons { width: 100%; height: 50px; margin: 50px auto 0px auto; display: flex; align-items: center; justify-content: space-around; } .example .buttons p { height: 50px; line-height: 50px; font-weight: 400; padding: 0px 25px 0px 0px; color: #333; margin: 0px; } .example .button { display: inline-block; height: 50px; box-sizing: border-box; line-height: 46px; text-decoration: none; color: #333; padding: 0px 20px; border: solid 2px #333; border-radius: 4px; text-transform: uppercase; font-weight: 700; transition: all .2s ease-in-out; } .example .button:hover { background-color: #333; color: #FFF; } .example .button i { margin-right: 5px; } @media(max-width: 550px) { .example { width: 100%; height: 362px; } .example h1 { font-size: 2.5em; } .example p { margin-bottom: 25px; } .example .buttons { width: 100%; margin-top: 25px; text-align: center; display: block; } .example .buttons p, .example .buttons a { float: none; margin: 0 auto; } .example .buttons p { padding-right: 0px; } .example .buttons a { display: inline-block; } }