* {
    margin: 0; padding: 0; border: 0; box-sizing: border-box;
}

body {
    background-color: #EEE;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

.page-container {
    width: clamp(390px, 100%, 1440px); /*used to set minimum, normal, and maximum*/
    min-height: 700px;
    border: 4px solid #ddd;
    margin: 4px auto;
    padding-bottom: 80px;
}

.topbar {
    background-color: hsl(0, 0%, 29%);
    height: 60px; width: 100%;
    text-align: center;
    font-size: 2em;
}

.navbar {
    display: flex;
    justify-content: center;
    height: 80px;
    background-color: #DDD;
    background-image: url(../images/starfield_navbar.png);
    font-size: 2em;
    color: #222;
    position: relative;
}

.navbar ul {
    list-style: none;
    display: flex;
    position: absolute;
    top: 15px; left: 15px;
}

.navbar li a {
    text-decoration: none;
    color: black;
    /* justify-content: left; */
    margin: 0 30px;
}

.navbar li a:hover {
    box-shadow: 0px 5px 0px hsl(353, 70%, 46%),
                0px 10px 0px hsl(15, 73%, 54%),
                0px 15px 0px hsl(38, 60%, 61%),
                0px 20px 0px hsl(216, 44%, 33%);
}

.navbar li a::after {
    content: normal;
    transition: background-size 200ms linear;
}

.hero {
    position: relative;
    aspect-ratio: 1000/400;
    overflow: hidden; /*cuts away excess that exceeds the container*/

    /* try to create the illusion of multiple borders */

    box-shadow: 0px 20px 0px hsl(353, 70%, 46%),
                0px 40px 0px hsl(15, 73%, 54%),
                0px 60px 0px hsl(38, 60%, 61%),
                0px 80px 0px hsl(216, 44%, 33%);
}

.hero video {
    position: absolute; top: 50%; /*top of vid is 50% from the top of the "frame" aka div*/
    transform: translateY(-50%);/*moving the vid upward by 50% of the height of the vid*/
    left: 0; width: 100%;
    aspect-ratio: 1000/562;
}

.gradient-overlay {
    position: absolute; top: 0; left: 0; width: 100%;
    aspect-ratio: 1000/562;
    /* background-color: hsla(0, 100%, 50%, .7); */
    background-image: linear-gradient(90deg, hsla(0, 100%, 0%, .8), hsla(0, 100%, 0%, .1));
}

.overlay-text {
    text-transform: capitalize;
    position: absolute; top: 40px; left: 40px;
    font-size: 3em;
    font-weight: bold;
    color: #fff;
    width: 40%;
}

.hero-cta {
    position: absolute; bottom: 40px; right: 40px;
}

div.hero-cta a {
    text-decoration: none;
    border: 4px solid #fff;
    color: #fff;
    text-transform: uppercase;
    margin-right: 40px;
    font-size: .9em;
    font-weight: bold;
    padding: 30px 15px 10px 30px;
    display: inline-block;
    width: 260px; height: 60px;
    text-align: right; 
    background-size: 100% 0%;
    background-image: url(../images/blue.png);
    background-repeat: no-repeat;
    transition: background-size 200ms linear;
}

div.hero-cta a:hover {
    background-size: 100% 100%;
}

div.hero-cta a:last-child {
    background-color: #fff;
    color: #000;
}

div.hero-cta a:last-child:hover {
    color: #FFF;
}