@font-face { font-family: "Silkscreen"; src: url("../media/fonts/Silkscreen-Regular.ttf") format("truetype"); font-weight: normal; font-style: normal; } html, body { font-family: Silkscreen; background-color: black; font-size: 16px; color: white; height: 100%; width: 100%; margin: 0; padding: 0; display: flex; flex-direction: column; justify-content: space-between; align-items: center; } * { margin: 0; padding: 0; box-sizing: border-box; } .main { width: 50%; height: auto; border: 2px solid #ffffff; display: flex; flex-direction: column; justify-content: flex-start; align-items: center; padding: 5px; margin-top: 3%; overflow: hidden; justify-content: flex-start; } .text { display: flex; align-items: center; justify-content: center; height: auto; width: 100%; text-align: center; margin-top: 5px; } .inner-box { border: 2px solid white; width: 200px; height: 200px; border-radius: 5px; overflow: hidden; } .inner-box img { width: 100%; height: 100%; object-fit: cover; border-radius: 5%; } footer { text-align: center; padding: 10px; color: white; width: 100%; position: relative; bottom: 0; } a { color: white; text-decoration: none; margin: 0 15px; } a:visited { color: white; } @media screen and (max-width: 768px) { html, body { font-size: 14px; } .main { width: 90%; } .inner-box { width: 150px; height: 150px; } footer { font-size: 14px; } .text p { font-size: 13px; } .text h4 { font-size: 16px; } } @media screen and (max-width: 480px) { html, body { font-size: 12px; } .main { width: 100%; padding: 5px; } .inner-box { width: 120px; height: 120px; } footer { font-size: 12px; } }