@font-face { font-family: ProblematicPiercer; src: url(../css/ProblematicPiercer.ttf); } @font-face { font-family: Caveat; src: url(../css/Caveat-Regular.ttf); } @font-face { font-family: Whypo-rrey; src: url(../css/Whypo-rrey.ttf); } body { display: flex; align-items: center; justify-content: center; min-height: 100vh; flex-direction: column; color: #333333; margin: 0; opacity: 0; font-family: ProblematicPiercer; cursor: default; padding: 20px; box-sizing: border-box; } div.row { display: flex; flex-direction: row; width: 100%; max-width: 1000px; align-items: center; } div.photo { border-radius: 50%; box-shadow: rgba(0, 0, 0, 0.3) 0px 19px 38px, rgba(0, 0, 0, 0.22) 0px 15px 12px; background-image: url(../images/favicon.jpg); width: 300px; height: 300px; background-size: cover; background-position: center; margin-right: 80px; } div.info { display: flex; width: 100%; max-width: 620px; flex-direction: column; } div.title { font-size: 50px; display: flex; align-items: center; justify-content: center; } div.bio { font-family: Caveat; font-size: 25px; text-align: justify; } div.social { display: grid; grid-template-columns: repeat(5, 1fr); /* 5 столбцов для десктопа */ gap: 20px; justify-items: center; margin-top: 50px; width: 100%; max-width: 960px; } .social div { width: 50px; height: 50px; background-repeat: no-repeat; cursor: pointer; transition: transform 0.2s; background-size: 100px auto; } .social div:hover { transform: scale(1.5); background-position: -50px 0; } .mastodon { background-image: url(../images/social/mastodon.png); } .twitter { background-image: url(../images/social/twitter.png); } .linkedin { background-image: url(../images/social/linkedin.png); } .facebook { background-image: url(../images/social/facebook.png); } .instagram { background-image: url(../images/social/instagram.png); } .git { background-image: url(../images/social/git.png); } .github { background-image: url(../images/social/github.png); } .telegram { background-image: url(../images/social/telegram.png); } .solus { background-image: url(../images/social/linux.png); } .ftp { background-image: url(../images/social/ftp.png); } .band { background-image: url(../images/social/band.png); } .soundcloud { background-image: url(../images/social/soundcloud.png); } .matrix { background-image: url(../images/social/matrix.png); } .gallery { background-image: url(../images/social/gallery.png); } .tooltip { position: relative; display: inline-block; } .tooltip .tooltiptext { visibility: hidden; width: 120px; left: 50%; margin-left: -60px; color: #000000; text-align: center; padding: 5px 0; position: absolute; z-index: 1; top: 110%; opacity: 0; transition: opacity 1s; font-family: Whypo-rrey; } .tooltip:hover .tooltiptext { visibility: visible; opacity: 1; } /* Медиа-запросы для мобильных устройств */ @media screen and (max-width: 768px) { body { padding: 10px; } div.row { flex-direction: column; align-items: center; } div.photo { width: 150px; height: 150px; margin-right: 0; margin-bottom: 20px; } div.info { max-width: 100%; padding: 0 10px; } div.title { font-size: 30px; } div.bio { font-size: 18px; } div.social { grid-template-columns: repeat(3, 1fr); /* 3 столбца для мобильных */ gap: 10px; margin-top: 30px; } .social div { width: 40px; height: 40px; background-size: 80px auto; } .social div:hover { background-position: -40px 0; } .tooltip .tooltiptext { width: 100px; margin-left: -50px; font-size: 14px; } } @media screen and (max-width: 480px) { div.social { grid-template-columns: repeat(2, 1fr); /* 2 столбца для очень маленьких экранов */ } }