$cloud_width: 200px; $top-height: 70vh; $top-height-phone: 64vh; @import 'fonts'; * { box-sizing: border-box; } body { margin: 0; padding: 0; overflow-x: hidden; @include body-font; .clouds { z-index: 50; position: fixed; width: $cloud_width; animation-name: move_right; animation-direction: alternate; animation-iteration-count: infinite; animation-timing-function: linear; } #cloud1 { top: $cloud_width / 466 * 70; // 1 cloud worth of gap left: 0; animation-duration: 17s; } #cloud2 { top: $cloud_width / 466 * 70 * 4; // 4 clouds worth of gap left: 0; animation-delay: -2s; animation-duration: 15s; transform: rotateY(180deg); } .top_bg { background-image: linear-gradient(#24d3ff, #aaeeff); height: $top-height; width: 100vw; position: fixed; } .bottom_bg { background-image: linear-gradient(#26a4c4, #afdde9); height: 100 - $top-height; width: 100vw; position: fixed; top: $top-height; } .top { min-height: $top-height; display: flex; align-items: end; .wrapper { min-height: $top-height; align-items: flex-end; padding-bottom: 2em; .player { margin: auto; width: 80%; .plyr { border-radius: 1em; border-color: #000; border-width: 4px; border-style: solid; border-radius: 2em; } } .shownotes { padding: 1em; margin: auto; width: 80%; } } } .bottom { min-height: 100vh - $top-height; .wrapper { min-height: 100vh - $top-height; align-items: center; justify-content: space-around; flex-direction: column; padding-top: 2em; height: 100%; .content { display: flex; width: 100%; justify-content: space-evenly; .button { font-size: 1.5em; color: #000; padding: 1em; border-color: #000; border-width: 3px; border-style: solid; border-radius: 1.5em; text-decoration: none; } .button:hover, .button:active { background-color: #000; color: #FFF; } } footer { margin-top: 1em; padding: 0 1em; text-align: center; color: #292929; a { color: #292929; padding: 0.3em; border-radius: 1.6em; } a:hover { color: #FFF; background-color: #000; text-decoration: none; } } } } .wrapper { position: relative; width: 100vw; box-sizing: border-box; z-index: 100; display: flex; justify-content: center; .content { box-sizing: border-box; max-width: 800px; width: 80%; } } } h1 { @include title-font; font-size: 4em; text-align: center; } @media (max-width: 600px) { body { .top { min-height: $top-height-phone; .wrapper { min-height: $top-height-phone; .player { width: 100%; } } } .bottom { min-height: 100vh - $top-height-phone; .wrapper { min-height: 100vh - $top-height-phone; .content { .button { font-size: 1em; padding: 0.5em; } } } } } h1 { font-size: 3em; } } @keyframes move_right { from {left: 0} to {left: calc(100vw - #{$cloud_width})} } @keyframes move_left { from {right: 0} to {right: calc(100vw - #{$cloud_width})} }