@charset "UTF-8";
*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
 #grid-container{
   display: grid;
   grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
   grid-template-rows: auto 250px auto;
   grid-template-areas:
   'header'
   'main'
   'footer';
   max-width: 100%;
   min-height: 100vh;
   text-align: center;
   
 }
 .header{
   grid-area: header;
   background-color: rgba(100,80,200,0.5);
   position: sticky;
   inset: 0;
   z-index: 1;
 }
 .main{
   position: relative;
   grid-area: main;
   background-color: #2cb;
   background-image: url('hero.jpg');
   background-repeat: no-repeat;
   background-size: cover;
   
 }
 .overlay{
   position: absolute;
   inset: 0;
   background-image: linear-gradient(rgba(0,0,0,0.2),rgba(0,20,255,1));
 }
 .over-content{
   position: absolute;
   top: 20%;
   left: 1rem;
   color: white;
   font-size: clamp(2rem 1fr 4rem);
   font-family: Arial,Sans-Serif;
   line-height: 1.2;
   
 }
 .footer{
   grid-area: footer;
   background-color: #000;
   color: white;
   
  
 }
   .btn{
     position: absolute;
    padding: 1rem;
    top: 150%;
    left: 5rem;
    font-weight: bold;
    border-radius: 1rem;
    border: 1px solid #fbd;
    transition:
    background-color 0.5s ease,
    transform 0.5s ease,
    color 0.5s ease;
}
.btn:hover{
  background-color: yellow;
  transform: scale(1.1);
  color: blue;
}
/*footer box*/
  #footer-container{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    flex: 1 1 250px;
    gap: 1.5rem;
    padding: 1.5rem;
    font-size: 0.6rem;
  }
 #footer-container h3{
   color: lime;
 }
@media (min-width: 800px){
 #footer-container{
   gap: 11rem;
   flex-direction: row;
}
}