html, body { margin: 0 auto; height: 100%; scroll-behavior: smooth; /*background-image: url("../img/back.jpg"); background-size: 100%;*/ } @media (min-width: 320px){ div .text{ top: 50px; font-size: 50px; } .me img{ width: 300px; } p{ width: 400px; } } @media (min-width: 480px){ div .text{ top: 50px; font-size: 70px; } .me img{ width: 350px; } } @media (min-width: 620px){ div .text{ top: 50px; font-size: 80px; } .me img{ width: 360px; } } @media (min-width: 768px){ div .text{ top: 50px; font-size: 95px; } .me img{ width: 370px; } p{ width: 500px; } } @media (min-width: 890px){ .me img{ width: 380px; } } @media (min-width: 900px){ } img{ display: block; overflow: hidden; width: 100%; height: 240px; } .image { position:relative; } .text { white-space: nowrap; left: 0; position:absolute; text-align:center; top: 60px; width: 100%; font-family: 'Open Sans', sans-serif; font-weight: lighter; color: white; font-size: 90px; } h2{ text-align: center; font-family: 'Open Sans', sans-serif; font-weight: lighter; font-size: 50px; margin: 0 auto; background-color: #5c0553; color: whitesmoke; } .me img{ min-width: 300px; max-width: 400px; height: auto; border-radius: 50%; margin-top: 0; padding: 25px 20px; display: block; margin-left: auto; margin-right: auto; } p{ margin-top: 0; font-family: 'Open Sans', sans-serif; font-weight: bold; max-width: 500px; min-width: 300px; text-indent: 5%; line-height: normal; } .one{ display: flex; justify-content: center; } h3{ flex-direction: row; text-align: center; font-family: 'Open Sans', sans-serif; font-weight: bolder; font-size: 35px; margin: 0 auto; color: #5c0553; } .two{ display: flex; justify-content: center; } .three{ display: flex; justify-content: center; } ul li{ font-family: 'Open Sans', sans-serif; font-weight: bold; font-size: 19px; } hr{ width: 90%; } a:visited{ color: black; text-decoration: none; } a:hover{ color:#0f0029; } a{ position: relative; color: #000; text-decoration: none; } a:before{ position: absolute; width: 100%; height: 2px; bottom: 0; left: 0; background-color: #000; visibility: hidden; -webkit-transform: scaleX(0); transform: scaleX(0); -webkit-transition: all 0.3s ease-in-out 0s; transition: all 0.3s ease-in-out 0s; } a:hover:before { visibility: visible; -webkit-transform: scaleX(1); transform: scaleX(1); } footer{ overflow: hidden; width: 100%; bottom: 0; background-color: #0f0029; color: white; text-align: center; font-family: 'Open Sans', sans-serif; margin-top: 20px; }