.firstArticle { height: auto; padding: 10px; margin: 10px; display: flex; align-items: center; justify-content: center; } .secondArticle { height: auto; padding: 10px; margin: 10px; text-shadow: $shadowSm; h1 { font-size: 50px; } p { font-family: Arial, Helvetica, sans-serif; font-size: 18px; } figure { // border: 1px solid yellow; margin-top: 50px; padding-top: 50px; display: flex; justify-content: space-around; align-items: center; .textContent { // border: 1px solid green; width: auto; margin: 5px; padding: 5px; color: $navText; font-family: 'Roboto', sans-serif; align-items: center; justify-content: center; display: flex; flex-direction: column; .container { // border: 1px solid red; display: flex; align-items: center; justify-content: space-between; align-items: center; width: 1500px; height: 400px; h2 { text-align: center; } } .text { position: relative; top: -66px; } h1 { text-align: center; } p { width: 600px; } img { height: auto; width: 700px; } } } } .mid { display: flex; flex-direction: column; align-items: center; justify-content: center; color: $navText; font-family: 'Roboto', sans-serif; width: auto; padding: 20px; // background:rgba(0, 0, 0, 0.04); h1 { font-size: 50px; } p { font-family: Arial, Helvetica, sans-serif; font-size: 18px; } border-radius: 5px; } figure img { width: auto; height: 160px; border-radius: 5px; box-shadow: 1px 1px 2px rgba(255, 255, 255, 0.2); margin-bottom: 30px; } @media only screen and (max-width: 1200px) { .firstArticle { height: auto; padding: 10px; margin: 10px; text-align: center; display: flex; align-items: center; justify-content: center; h1 { font-size: 30px; } } .secondArticle { h1 { font-size: 30px; text-align: center; color: $navText; font-family: 'Roboto', sans-serif; } p { font-family: Arial, Helvetica, sans-serif; font-size: 16px; } figure { // border: 1px solid blue; display: flex; flex-direction: column; justify-content: center; align-items: center; .textContent { // border: 1px solid green; width: auto; margin: 0px; padding: 0px; color: $navText; font-family: 'Roboto', sans-serif; align-items: center; justify-content: center; display: flex; flex-direction: column; .container { display: flex; flex-direction: column; align-items: center; justify-content: center; align-items: center; width: auto; height: auto; h2 { text-align: center; } } .text { position: relative; top: 0; } h1 { text-align: center; } p { text-align: center; width: 300px; } img { height: 200px; width: 350px; } } } } } @media only screen and (max-width: 800px) { .firstArticle { height: auto; padding: 10px; margin: 10px; text-align: center; display: flex; align-items: center; justify-content: center; h1 { font-size: 30px; } } .secondArticle { h1 { font-size: 30px; text-align: center; color: $navText; font-family: 'Roboto', sans-serif; } p { font-family: Arial, Helvetica, sans-serif; font-size: 16px; } figure { // border: 1px solid blue; display: flex; flex-direction: column; justify-content: center; align-items: center; .textContent { // border: 1px solid green; width: auto; margin: 0px; padding: 0px; color: $navText; font-family: 'Roboto', sans-serif; align-items: center; justify-content: center; display: flex; flex-direction: column; .container { display: flex; flex-direction: column; align-items: center; justify-content: center; align-items: center; width: auto; height: auto; h2 { text-align: center; } } .text { position: relative; top: 0; } h1 { text-align: center; } p { text-align: center; width: 300px; } img { height: 200px; width: 350px; } } } } } @media only screen and (max-width: 400px) { .firstArticle { height: auto; padding: 10px; margin: 10px; text-align: center; display: flex; align-items: center; justify-content: center; h1 { font-size: 30px; } } .secondArticle { h1 { font-size: 30px; text-align: center; color: $navText; font-family: 'Roboto', sans-serif; } p { font-family: Arial, Helvetica, sans-serif; font-size: 16px; } figure { // border: 1px solid blue; display: flex; flex-direction: column; justify-content: center; align-items: center; .textContent { // border: 1px solid green; width: auto; margin: 0px; padding: 0px; color: $navText; font-family: 'Roboto', sans-serif; align-items: center; justify-content: center; display: flex; flex-direction: column; .container { display: flex; flex-direction: column; align-items: center; justify-content: center; align-items: center; width: auto; height: auto; h2 { text-align: center; } } .text { position: relative; top: 0; } h1 { text-align: center; } p { text-align: center; width: 300px; } img { height: 200px; width: 350px; } } } } }