/* style for mod5 class 1 */

*{
    margin: 0; padding: 0; border: 0; box-sizing: border-box;
}

body {
    background-color: #EEE;
    font-family:Verdana, Geneva, Tahoma, sans-serif;
}

#container {
    
    width: clamp(390px, 100%, 1440px); /* used to set a minimum, normal and maximum */
    min-height: 700px;
    border: 10px solid #DDD;
    margin: 0 auto;
    padding-bottom: 80px;
}

#topbar {
    height: 60px; 
    /*background-color: hsl(0, 0%, 29%);*/
    background-color:hsl(15, 73%, 59%) ;
    color: black;
    text-align: center;
    font-size: large;
    padding-top: 17px;
    
}#navbar {
    height: 80px; background-color:hsl(38, 60%, 61%);
    background-image: url(starfield-bg.png);
    text-align: center;
    font-size: large;
    color: #222;
}

nav a {
    display: inline-block;
    border: 2px solid black;
    background-color:hsl(216, 44%, 40%);
    padding: 8px 16px;
    color: #EEE;
    box-shadow: 4px 7px 8px hsl(353, 50%, 26%);
    text-decoration: none;
    border-radius: 4px;
    margin: 8px 16px;
}

nav a:hover {
    background-color: hsl(353, 50%, 46%);
}

nav {

    text-align: center;
}
/* this is the original format before trimming the video to a narrower version...

#hero {
    position: relative;
    aspect-ratio: 1000/562;
}

#hero video {
    position: absolute; top: 0; 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%,.7), hsla(0,100%,0%,.1));
}
     */

#hero {
    position: relative;
    aspect-ratio: 1000/400;
    overflow: hidden; /* hides the excess stuff that spills out of frame */
    
    /* create the illusion of multiple borders */
    /*border-bottom: 24px solid hsl(353, 70%, 46%);*/
    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 top of hero video frame */
    left: 0; width: 100%; 
    aspect-ratio:  1000/562;
    transform: translateY(-50%); /* moving vid upward by 50% of the height of the vid */
}

.gradient-overlay {

position: absolute; top: 0; left: 0; width: 100%;
aspect-ratio: 1000/400; /* changed from original 562 */
background-image: linear-gradient(90deg, hsla(0,100%,0%,.7), hsla(0,100%,0%,.1));
}

.overlay-text {
    
    position: absolute; top: 40px; left: 40px;
    font-size: 3em;
    color: #FFF;
    font-weight: bold;
    width: 40%;
    text-transform: capitalize;
}

div.hero-cta {
    
    position: absolute; bottom: 80px; right: 80px;
}

div.hero-cta a {
    border: 4px solid #FFF;
    text-decoration: none;
    text-transform: uppercase;
    margin-right: 40px;
    color: #FFF;
    font-size: .9em;
    font-weight: bold;
    padding: 28px 15px 15px 30px;
    display: inline-block;
    width: 260px;
    text-align: right;
    background-repeat: no-repeat;
    background-image: url(../images/blue.png);
    background-size: 100% 0%;
    background-position: left bottom;
    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;
}

