* {
    margin:0; padding: 0;
    border: 0; box-sizing: border-box;
}

body {
    background-color: white;
    font-family:Verdana, Geneva, Tahoma, sans-serif;
}

#container {
    width: clamp(390px, 100%, 1440px); /* 3 values used to set a minimum, normal, and max */
    min-height: 700px;
    margin: 2px auto; /* used to center */
}

#topbar {
    height: 60px; 
    background-color: rgb(61, 103, 154);;
    text-align:center;
    font-size: 2em;
}

#navbar {
    height: 80px;
    background-color:  #EEE;
    background-image: url(../images/starfield.jpeg);
    background-position: bottom;
    text-align:center;
    font-size: 2em;
    color: white;
}

#hero {
    position: relative;
    aspect-ratio: 1000/562;
    overflow:hidden;/* hides any excess overflow*/
    box-shadow: 0px 20px red, 
                0px 40px orange, /* first is right/left second is top/bottom */
                0px 60px yellow,
                0px 80px lightblue; /* create illusion of multiple borders */
    padding-bottom: 80px;
}

#hero video{
    position:absolute;
    top: 50%;
    left: 0;
    width: 100%;
    aspect-ratio: 1000/562;
    transform: translateY(-50%);
}

.gradient-overlay{
    position:absolute;
    top: 0;
    left: 0;
    width: 100%;
    aspect-ratio: 1000/562;
    background-image:linear-gradient(90deg, hsla(0, 100%, 0%, .8), hsla(0, 100%, 0%, .1));

}

p.overlay-text{
    position: absolute;
    top: 40px;
    left: 40px;
    font-size: 3em;
    color: white;
    font-weight: bold;
    width: 40%;
    text-transform: uppercase;
}

div.hero-cta{
    position: absolute;
    bottom: 80px;
    right: 80px;
}

div.hero-cta a{
    border: 4px solid white;
    text-decoration: none;
    text-transform: uppercase;
    margin-right: 40px;
    color: white;
    font-size: .9em;
    font-weight: bold;
    padding: 30px 15px 10px 20px;
    display: inline-block;
    width: 260px;
    text-align: right;
    background-image: url(../images/blue.png);
    background-repeat: no-repeat;
    background-size: 100% 0%;
    background-position: left bottom;
    transition: background-size 175ms linear;
    
}

div.hero-cta a:last-child{
    background-color: white;
    color: black;
}

div.hero-cta a:hover{
    background-size: 100% 100%;
}

div.hero-cta a:last-child:hover{
    color:white;
}