* { margin: 0; padding: 0; font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif } a { text-decoration: none; color: black; } div.page { position: relative; width: 100%; height: 100%; } /*### HOME #########################################################################*/ div.page.home { text-align: center; } div.page.home > div.title { position: absolute; top: 45%; width: 100%; transform: translateY(-50%); } div.title > h1 { font-size: 20vh; } div.title > h2 { font-size: 4vh; } /*### HISTORY #########################################################################*/ div.page.history > h1 { position: absolute; top: 10%; left: 5%; font-size: 10vh; } div.page.history > p { position: absolute; top: 55%; left: 50%; min-width: 700px; width: 60%; transform: translate3D(-50%, -50%, 0); font-size: 3vh; hyphens: auto; text-align: justify } /*### EXPLORE #########################################################################*/ div.page.explore > h1 { position: absolute; top: 10%; width: 100%; text-align: center; font-size: 8vh; } div.page.explore > a { position: absolute; left: 50%; bottom: 4%; transform: translateX(-50%); text-align: center; font-size: 2vh; } div.page.explore > div.saxophones { padding-top: 38vh; display: grid; place-items: center; grid-template-columns: 1fr 1fr 1fr 1fr; } div.saxophones div.saxophone { padding: 4vw; width: 12vw; height: 12vw; transition: 150ms ease-in-out; } div.saxophones div.saxophone > p { margin: 8vh 0; color: white; text-align: center; font-size: 3vh; font-weight: bold; transition: inherit; } div.saxophones div.saxophone:hover > p { color: black; } div.saxophones div.saxophone:hover { padding: 3vw; width: 12vw; height: 12vw; cursor: pointer; border-radius: 50%; background-color: #F5F5F5; } div.saxophones div.saxophone > img { width: inherit; height: inherit; } /*#### scroll #### */ .arrow::before{ content: 'Space'; color: grey; position: absolute; opacity: 0.8; text-shadow: 0 0 .5rem rgba(0,0,0,0.5); width: 6rem; font-size: 2rem; height: 4rem; line-height: 4rem; text-align: center; bottom: 2rem; margin-left: -3rem; left: 50%; animation: bounce 1s ease infinite; } @keyframes bounce { 50% { transform: translateY(-50%); } 100% { transform: translateY(0); } }