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

body{
    background-color: black;
}
nav{
    display: flex;
    width: 100%;
    height: 60px;
    justify-content: space-between;
    padding: 15px;
    background: rgb(0,0,0);
    background: radial-gradient(circle, rgba(0,0,0,0.9697128851540616) 55%, rgba(61,0,0,0.9753151260504201) 96%);
}
nav div{
    display:flex; 
    flex-direction: row;
    font-size: 20px;
    width: 400px;
}
nav a{
    margin: auto;
    
}
.hero{
    width: 100%;
    height: auto;
    
}
.hero{
    background-image: url(https://images.unsplash.com/photo-1498084393753-b411b2d26b34?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1332&q=80);
    width: 100%;
    height: 500px;
    position: relative;
}

#hero-text{
    position: absolute;
    top: 200px;
    opacity: 100%;
    overflow: visible;
    background: rgb(149,1,1);
    background: radial-gradient(circle, rgba(149,1,1,1) 0%, rgba(149,1,1,0.364670868347339) 100%);
    font-size: 70px;
    width: 100%;
    text-align: center;
    color: black;
    font-family:'Courier New', Courier, monospace;
    font-weight:500;
}

main{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 80%;
    height: auto;
    margin-top: 40px;
    margin-bottom: 40px;
    margin-left: auto;
    margin-right: auto;
    
}

.section{
    display: flex;
    justify-content: space-between;
    margin: auto;
    width: 100%;
}

#p5{
    background-image: url(https://images.unsplash.com/photo-1516483638261-f4dbaf036963?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxzZWFyY2h8Mnx8aXRhbHl8ZW58MHwxfDB8fA%3D%3D&auto=format&fit=crop&w=500&q=60);
    position: relative;
    height: 700px;
    width: 500px;
}

#p6{
    background-image: url(https://images.unsplash.com/photo-1677089705082-6ef3562d91d9?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxleHBsb3JlLWZlZWR8NzR8fHxlbnwwfHx8fA%3D%3D&auto=format&fit=crop&w=500&q=60) ;
    position: relative;
    height: 700px;
    width: 500px;
}

#p7{
    background-image: url(https://images.unsplash.com/photo-1554357475-accb8a88a330?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxleHBsb3JlLWZlZWR8Nnx8fGVufDB8fHx8&auto=format&fit=crop&w=500&q=60) ;
    position: relative;
    height: 700px;
    width: 500px;
}

#p8{
    background-image: url(https://images.unsplash.com/photo-1489593426629-5e4e00ce821c?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxzZWFyY2h8M3x8aWNlbGFuZHxlbnwwfDF8MHx8&auto=format&fit=crop&w=500&q=60) ;
    position: relative;
    height: 700px;
    width: 500px;
}

#p1{
    background-image: url(https://images.unsplash.com/photo-1544094529-002edb772da9?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=387&q=80) ;
    position: relative;
    height: 700px;
    width: 500px;
}

#p2{
    background-image: url(https://images.unsplash.com/photo-1569406829354-eb0cc9e653e8?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxzZWFyY2h8OXx8cG9ydHVnYWx8ZW58MHwxfDB8fA%3D%3D&auto=format&fit=crop&w=500&q=60) ;
    position: relative;
    height: 700px;
    width: 500px;
}

#p3{
    background-image: url(https://images.unsplash.com/photo-1627580206975-ede73a2ca147?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxzZWFyY2h8Mnx8bWFkYWdhc2NhcnxlbnwwfDF8MHx8&auto=format&fit=crop&w=500&q=60) ;
    position: relative;
    height: 700px;
    width: 500px;
}

#p4{
    background-image: url(https://images.unsplash.com/photo-1602112711118-3913fbff8c7c?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxzZWFyY2h8MTR8fGNhbWJvZGlhfGVufDB8MXwwfHw%3D&auto=format&fit=crop&w=500&q=60) ;
    position: relative;
    height: 700px;
    width: 500px;
}
.section a{
    text-decoration: none;
    color: black;
}
.section a:hover{
    font-size: 43px;
}


.post h2{
    position: absolute;
    top: 320px;
    opacity: 100%;
    overflow: visible;
    background: rgb(149,1,1);
    background: radial-gradient(circle, rgba(149,1,1,1) 0%, rgba(149,1,1,0.364670868347339) 100%);
    font-size: 40px;
    width: 100%;
    text-align: center;
    color: black;
    font-family:'Courier New', Courier, monospace;
    font-weight:500;
}


footer{
    background: rgb(0,0,0);
    background: radial-gradient(circle, rgba(0,0,0,0.9697128851540616) 55%, rgba(61,0,0,0.9753151260504201) 96%);
    width: 100%;
    height: auto;
    display: flex;
    
}
form{
    display: flex;
    flex-direction: column;
    width: 40%;
    padding: 15px;
    color: white;
    justify-content: space-between;
    font-size: 14px;
    font-family: 'Courier New', Courier, monospace;
    font-weight: 150;
}
form input{
    border-radius: 10px;
    border: 2px solid black;
}
#submit{
    width: 100px;
    margin: auto;
    border: 2px solid black;
}
form h3{
    font-size: 20px;
    font-family: 'Courier New', Courier, monospace;
    text-decoration: underline;
    font-weight:bold;
}
.right-side{
    display: flex;
    flex-direction: column;
    color: white;
    font-family: 'Courier New', Courier, monospace;
    font-style: italic;
    font-weight: lighter;
    font-size: 16px;
    width: 40%;
    margin: auto;
}
.sm_links{
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: space-between;
    font-size: 12px;
}
.sm_links a{
    text-decoration: none;
}

@media screen and (min-width:900px) and (max-width: 1300px) {
    nav{
      height: auto;
      width: 100%;
      display: flex;
      justify-content: space-between;
      flex-wrap: wrap;
    }
    nav div{
        display: flex;
        flex-direction: column;
        justify-content: center;
        
        flex-wrap: wrap;
        margin-left: 40px;
        justify-content: left;
        
    }
    
    .post p{
        font-size:  12px ;
        width: 100%;
    }
    .post img{
        width: 55%;
    }
  }



  @media screen and (min-width:700px) and (max-width:900px)  {
    nav{
      height: auto;
      width: 100%;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      flex-wrap: wrap;
    }
    nav div{
        display: flex;
        flex-direction: column;
        justify-content: center;
        flex-wrap: wrap;
        
        
    }
    .post p{
        font-size:  12px ;
        width: 100%;
    }
    .post img{
        width: 55%;
    }
  }

  @media screen and (max-width: 699px){
    nav{
        height: auto;
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        flex-wrap: wrap;
        align-items: center;
      }
      .top{
          display: flex;
          flex-direction: column;
          justify-content: center;
          flex-wrap: wrap;
            align-items: center;
      }
      .bottom{
          display: flex;
          flex-direction: column;
          justify-content: center;
          flex-wrap: wrap;
           align-items: center;
      }
      #hero-text{
        font-size: 50px;
        top:300px;
        font-weight: 500;
      }
      .section{
        flex-direction: column;
        justify-content: space-between;
        height: auto;
        align-items: center;
      }
      
      #p1{
        height: 400px;
        width: 300px;
        margin-bottom: 40px;
      }
      #p2{
        height: 400px;
        width: 300px;
      }
      #p3{
        height: 400px;
        width: 300px;
        margin-bottom: 40px;
      }
      #p4{
        height: 400px;
        width: 300px;
      }
      #p5{
        height: 400px;
        width: 300px;
        margin-bottom: 40px;
      }
      #p6{
        height: 400px;
        width: 300px;
      }
      #p7{
        height: 400px;
        width: 300px;
        margin-bottom: 40px;
      }
      #p8{
        height: 400px;
        width: 300px;
      }
      .post h2{
        top:180px;
      }

  }
