$darkBg: #373837; $lightBg: white; $darkFont: black; $lightFont: white; %dark { background-color: $darkBg; color: $lightFont } %light { background-color: $lightBg; $color: $darkFont } @mixin textShadow(){ text-shadow: 0px 1px 3px rgba(0, 0, 0, 1); border: 10px; } body { margin: 0%; font-family: 'Helvetica'; } .bgimg { position: relative; height: 100vh; width: 100vw; z-index: -1; } .headerCard { height: 100vh; width: 100vw; display: flex; justify-content: center; align-items: center; background-image: url('/img/callout.jpg'); background-repeat: no-repeat; background-size: cover; @media only screen and (max-width: 768px) { background-image: url('/img/callout.jpg'); background-repeat: no-repeat; background-size: auto; background-position-x: 22%; background-position-y: bottom; } } header { display: flex; align-items: center; flex-direction: column; h1 { font-size: 3rem; color: $lightFont; font-weight: normal; margin: 0rem; @include textShadow(); } p { font-size: 1rem; color: $lightFont; margin-bottom: 1rem; @include textShadow(); } .arrowDown { color: $lightFont; @include textShadow(); cursor: pointer; } } .main { min-height: 100vh; min-width: 100vw; display: flex; flex-direction: column; align-items: center; text-align: center; & > section:nth-child(odd) { @extend %dark; } & > section { min-height: 33vh; // atleast as tall as 33% of the view port width: 100%; // 100% of the parent which is full width of viewport display: flex; flex-direction: column; align-items: center; justify-content: center; p { padding-left: .8rem; padding-right: .8rem; } } } .intro { h2 { margin-top: .5rem; margin-bottom: 0; } } .eventCard { h2 { margin: 0; } ul { list-style: none; padding: 0; li { margin-bottom: .4rem; a { text-decoration: underline; color: $darkFont; } } } } .teamCard { .tommyAvatar { border-radius: 50%; } }