:root { --bgColor: #223344; --bgColor2: #090a0f; --accentColor: #FFF; --font: 'Ubuntu', sans-serif; --delay: .3s; } body { margin: 0; height: 100vh; font-weight: 100; background: radial-gradient(#0e849c,#1f1013); -webkit-overflow-Y: hidden; -moz-overflow-Y: hidden; -o-overflow-Y: hidden; overflow-y: hidden; -webkit-animation: fadeIn 1 1s ease-out; -moz-animation: fadeIn 1 1s ease-out; -o-animation: fadeIn 1 1s ease-out; animation: fadeIn 1 1s ease-out; } #profilePicture, #profilePicture img { position: relative; width: 96px; height: 96px; display: block; z-index: 20; margin: 40px auto 20px; border-radius: 50%; -webkit-tap-highlight-color: transparent; } #userName { color: var(--accentColor); font-size: 1rem; font-weight: bold; line-height: 1.25; display: block; font-family: var(--font); width: 100%; text-align: center; text-decoration: none; } #links { max-width: 675px; width: auto; display: block; margin: 27px auto; } .link { position: relative; background-color: transparent; color: var(--accentColor); border: solid var(--accentColor) 2px; border-radius: 10px; font-size: 1rem; font-weight: 500; text-align: center; display: block; margin-left: 10px; margin-right: 10px; margin-bottom: 10px; padding: 10px; /* 17px */ text-decoration: none; /* transition: all .25s cubic-bezier(.08, .59, .29, .99); */ -webkit-tap-highlight-color: transparent; } @media (hover: hover) { .link:hover { background-color: var(--accentColor); color: var(--bgColor); } } .link:active { background-color: var(--accentColor); color: var(--bgColor); } #hashtag { position: relative; padding-bottom: 20px; color: var(--accentColor); font-size: 1rem; display: block; font-family: var(--font); width: 100%; text-align: center; /* animation */ overflow: hidden; background: linear-gradient(90deg, var(--bgColor), var(--accentColor), var(--bgColor)); background-repeat: no-repeat; background-size: 80%; animation: animate 6s linear var(--delay) infinite; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: rgba(255, 255, 255, 0); } /*-------------------------animations-----------------------*/ @keyframes transitionAnimation { 0% { opacity: 0; transform: translateY(-10px); } 100% { opacity: 1; transform: translateY(0); } } @keyframes animate { 0% { background-position: -500%; } 100% { background-position: 500%; } } @keyframes animStar { from { transform: translateY(0px); } to { transform: translateY(-2000px); } } /*-------------------------popup------------------------*/ /* credits: https://www.youtube.com/watch?v=lAS2glU0xlc */ .overlay { display: flex; align-items: center; justify-content: center; position: fixed; top: 0; bottom: 0; left: 0; right: 0; background-color: rgba(0, 0, 0, 0.7); z-index: 2; visibility: hidden; opacity: 0; overflow: hidden; transition: .5s ease-in-out; } .popup { position: relative; top: -43%; /* right: -100vh; */ display: flex; flex-direction: column; align-items: center; max-width: 400px; /* max-height: 500px; */ width: auto; height: auto; margin: 56px; background-color: var(--bgColor); /* transform: rotate(32deg); */ transform: scale(0); transition: .5s ease-in-out; } .popup-quote { font-family : Baskerville, Georgia, serif; font-style : italic; position: flex; color: var(--accentColor); padding: 20px; text-align: center; font-size: 1rem; } .popup-photo { display: flex; width: 100%; height: 100%; } .popup-photo img { width: 100%; height: 100%; } .overlay:target { visibility: visible; opacity: 1; } .overlay:target .popup { transform: scale(1); top: 0; /* right: 0; */ /* transform: rotate(0); */ } .popup-close { position: absolute; right: -1rem; top: -1rem; width: 3rem; height: 3rem; font-size: 1.7rem; font-weight: 400; border-radius: 100%; background-color: var(--bgColor); z-index: 4; color: var(--accentColor); line-height: 2.7rem; text-align: center; cursor: pointer; text-decoration: none; -webkit-tap-highlight-color: transparent; } @media (hover: hover) { .popup-close:hover { background-color: var(--accentColor); color: var(--bgColor); } } .popup-close:active { background-color: var(--accentColor); color: var(--bgColor); } .light { position: absolute; width: 0px; opacity: .75; background-color: white; box-shadow: #e9f1f1 0px 0px 20px 2px; opacity: 0; top: 100vh; bottom: 0px; left: 0px; right: 0px; margin: auto; } .x1{ -webkit-animation: floatUp 4s infinite linear; -moz-animation: floatUp 4s infinite linear; -o-animation: floatUp 4s infinite linear; animation: floatUp 4s infinite linear; -webkit-transform: scale(1.0); -moz-transform: scale(1.0); -o-transform: scale(1.0); transform: scale(1.0); } .x2{ -webkit-animation: floatUp 7s infinite linear; -moz-animation: floatUp 7s infinite linear; -o-animation: floatUp 7s infinite linear; animation: floatUp 7s infinite linear; -webkit-transform: scale(1.6); -moz-transform: scale(1.6); -o-transform: scale(1.6); transform: scale(1.6); left: 15%; } .x3{ -webkit-animation: floatUp 2.5s infinite linear; -moz-animation: floatUp 2.5s infinite linear; -o-animation: floatUp 2.5s infinite linear; animation: floatUp 2.5s infinite linear; -webkit-transform: scale(.5); -moz-transform: scale(.5); -o-transform: scale(.5); transform: scale(.5); left: -15%; } .x4{ -webkit-animation: floatUp 4.5s infinite linear; -moz-animation: floatUp 4.5s infinite linear; -o-animation: floatUp 4.5s infinite linear; animation: floatUp 4.5s infinite linear; -webkit-transform: scale(1.2); -moz-transform: scale(1.2); -o-transform: scale(1.2); transform: scale(1.2); left: -34%; } .x5{ -webkit-animation: floatUp 8s infinite linear; -moz-animation: floatUp 8s infinite linear; -o-animation: floatUp 8s infinite linear; animation: floatUp 8s infinite linear; -webkit-transform: scale(2.2); -moz-transform: scale(2.2); -o-transform: scale(2.2); transform: scale(2.2); left: -57%; } .x6{ -webkit-animation: floatUp 3s infinite linear; -moz-animation: floatUp 3s infinite linear; -o-animation: floatUp 3s infinite linear; animation: floatUp 3s infinite linear; -webkit-transform: scale(.8); -moz-transform: scale(.8); -o-transform: scale(.8); transform: scale(.8); left: -81%; } .x7{ -webkit-animation: floatUp 5.3s infinite linear; -moz-animation: floatUp 5.3s infinite linear; -o-animation: floatUp 5.3s infinite linear; animation: floatUp 5.3s infinite linear; -webkit-transform: scale(3.2); -moz-transform: scale(3.2); -o-transform: scale(3.2); transform: scale(3.2); left: 37%; } .x8{ -webkit-animation: floatUp 4.7s infinite linear; -moz-animation: floatUp 4.7s infinite linear; -o-animation: floatUp 4.7s infinite linear; animation: floatUp 4.7s infinite linear; -webkit-transform: scale(1.7); -moz-transform: scale(1.7); -o-transform: scale(1.7); transform: scale(1.7); left: 62%; } .x9{ -webkit-animation: floatUp 4.1s infinite linear; -moz-animation: floatUp 4.1s infinite linear; -o-animation: floatUp 4.1s infinite linear; animation: floatUp 4.1s infinite linear; -webkit-transform: scale(0.9); -moz-transform: scale(0.9); -o-transform: scale(0.9); transform: scale(0.9); left: 85%; } button:focus{ outline: none; } @-webkit-keyframes floatUp{ 0%{top: 100vh; opacity: 0;} 25%{opacity: 1;} 50%{top: 0vh; opacity: .8;} 75%{opacity: 1;} 100%{top: -100vh; opacity: 0;} } @-moz-keyframes floatUp{ 0%{top: 100vh; opacity: 0;} 25%{opacity: 1;} 50%{top: 0vh; opacity: .8;} 75%{opacity: 1;} 100%{top: -100vh; opacity: 0;} } @-o-keyframes floatUp{ 0%{top: 100vh; opacity: 0;} 25%{opacity: 1;} 50%{top: 0vh; opacity: .8;} 75%{opacity: 1;} 100%{top: -100vh; opacity: 0;} } @keyframes floatUp{ 0%{top: 100vh; opacity: 0;} 25%{opacity: 1;} 50%{top: 0vh; opacity: .8;} 75%{opacity: 1;} 100%{top: -100vh; opacity: 0;} }