* {
    margin: 0; padding: 0; border: 0; box-sizing: border-box;
}

body {
    background-color: aliceblue;
    background-image: url(surf2.webp);
    background-repeat: no-repeat;
    background-size: cover;
}

#container {
    width: clamp(360px, 100%, 1140px);
    min-height: 700px;
    margin: 4px auto;
    padding-bottom: 80px;
    border: 8px solid black;
}

#topbar {
    height: 60px; 
    background-color: hsl(0, 0%, 29);
    color: black;
    text-align: center;
    font-size: 2em;
}


#hero {
    position: relative;
    aspect-ratio: 1000/400;
    overflow: hidden;

    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%;
    transform: translateY(-50%);
    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);
  }

  p.overlay-text {
    position: absolute; top: 20px; left: 20px;
    font-size: 3em;
    font-weight: bold;
    color: black;
    width: 40%;
    text-transform: capitalize;
  }

  div.hero-cta {
    position: absolute; top: 80px; right: 80px;
  }

  div.hero-cta a {
    border: 4px solid black;
    text-decoration: none;
    text-transform: uppercase;
    margin-right: 0px;
    color: black;
    font-size: .9 em;
    font-weight: bold;
    padding: 40px 15px 15px 30px;
    display: inline-block;
    width: 260px;
    text-align: right;
    background-image: url(blue.png);
    background-repeat: no-repeat;
    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: white;
    color: #000;
  }

  div.hero-cta a:last-child:hover {
    color: #FFF;
  }