@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300&family=Oswald:wght@300&display=swap');

* {
    margin: 0;
    padding: 0;
    border: none;
}



body {
    font-family: lato, sans-sarif;
    font-weight: 300;
    color: #3a3a3a;
}

/* headings and logo */

h1, h2 {
       font-family: Oswald, sans-serif;
       text-transform: uppercase;
       letter-spacing: 4px ;
       color: #252525;
}

#logo {
    float: left;
    font-size: 280%;
    margin-left: 30px;
}

/* navigation links */

#menu {
    font-size: 110%;
    letter-spacing: 4px;
}

#menu, #logo {
    line-height: 75px;

}

#menu li {
    float: right;
    list-style-type: none;
    margin-right: 30px;
}

#menu a {
    text-decoration: none;
    color: inherit;
}

#menu a:hover {
    border-bottom:  1px solid #3a3a3a;
}

.active {
    border-bottom: 1px solid #3a3a3a;
}
/* hero image */

#hero-outer {
    height: 600px;
    width: 100%;
    overflow: hidden;

    position: relative;
}

#cover-text, #cover-text h2 {
    color: #fff;

}

#hero-image {
    height: 600px;
    width: 100%;
    background: url('../images/crypto-news-2.jpeg') no-repeat center center;

    /* creates zoom effect on loading page */

    animation-name: hero-zoom;
    animation-duration: 5s;
    animation-fill-mode: forwards;
}

/* creates the level of zoom for hero image */

@keyframes hero-zoom {
    from{ transform: scale(1);
    }
    to{ transform: scale(1.1);
}

}

#cover-text {
    font-size: 130%;
    font-family: Oswald, sans-serif;
    text-transform: uppercase;
    letter-spacing: 4px;

    width: 300px;
    height: 150px;

    padding-top: 40px;
    padding-left: 10px;

    background-color: transparent;

    bottom: 10px;
    left: 50px;

    position: absolute;
    
}
/* crypto news */

#crypto-news {
    height: 600px;
}

#left-about {
    padding-top: 30px;
    width: 33%;
    float: left;
    
}

#right-about {
    padding-top: 30px;
    width: 33%;
    float: right;
    
}


    
hr {
    border-top: 1px solid #3a3a3a;
    width: 100%;
    margin: 5px;
}

.left-about-heading {
    width: 60%;
    float: right;
    line-height: 20px;
    clear: both;
    margin-bottom: 50px;
}

.right-about-heading {
    width: 60%;
    float: left;
    line-height: 20px;
    clear: both;
    margin-bottom: 50px;
}
.right-about-heading h2 {
    text-align: right;
}

.right-about-heading p {
    text-align: right;
}

#crypto {
    text-align: center;
    margin: 20px 0;
    font-size: 280%;
}


/* images above footer */



* {
    box-sizing: border-box;
    border-radius: 5px;
  }
  
  .column {
    float: left;
    width: 33.33%;
    padding: 10px;
    text-align: center;
    
  }

  /* buttons on images */

  .btn:hover{

        background-color: #0071e3;
        color: white;
        border: none;
        
        
        
}

/* Clearfix (clear floats) */

  .row::after {
    clear: both;
    display: table;
  }


  hr {
    border: none;
    border-top: 3px double #252525;
    color: #252525;
    overflow: visible;
    text-align: center;
    height: 5px;
    padding: 5px;
  }

  /* footer */

footer {
    height: 150px;
}

.social-networks {
    text-align: center;
   }

   .social-networks > li {
       display: inline;
}

.social-networks i {
    font-size: 160%;
    margin: 1%;
    padding: 5%;
    color: #3a3a3a;
}


/* for larger to medium screens size from 1200px wide and down */

@media screen and (max-width: 1200px) {
    #crypto-news {
        width: 65%;
        height: 1200px;
        margin: 0 auto;
    }
    
    #welcome {
        padding: 30px 0;
        margin: 0;

    }

    #left-about, #right-about {
        width: 100%;
        float: left;
        padding: 0;
    }

    

    hr {
        display: none;
    }
}

/* for medium screen sizes from 950px wide and down */

@media screen and (max-width: 950px) {
      
    #menu {
        clear: left;
        float: left;
        margin-left: 30px;
        margin-bottom: 20px;
        line-height: 25px;
    }

    

    .left-about-heading, .right-about-heading {
        width: inherit;
    }

    .left-about-heading h2, .right-about-heading h2 {
        width: 100%;
        text-align: center;
    }

    .left-about-heading p, .right-about-heading p {
        text-align: center;
        padding: 0 20px;
    }

    }

    /* news page */

    .news-heading {
        font-family: Oswald, sans-serif;
        padding-top: 150px;
        text-align: center;
        font-size: 1.125rem;
        padding-left: 20px;
        padding-right: 20px;
    }
   

   .grid {
       margin: 80px;
       display: grid;
       grid-template-columns: repeat(3, 1fr);
       grid-gap: 20px 50px;
       align-items: center;
       padding-top: 35px;
       padding-right: 35px;
       padding-bottom: 35px;
       padding-left: 35px;
       justify-items: center;
       justify-content: center;
       align-content: center;

    }

   .grid > article {
       border: none;
       box-shadow: 2px 2px 6px 0px rgba(0,0,0,0.3);
       border-radius: 20px;
       text-align: center;
       width: 250px;
       transition: transform .3s;
      
   }

   .grid > article:hover {
       transform: translateY(5px);
       box-shadow: 2px 2px 6px 0px rgba(0,0,0,0.3);
   }
    
   .grid > article img {
       width: 100%;
       border-top-left-radius: 20px;
       border-top-right-radius: 20px;

   }

   .text {
       padding: 0 20px 20px;
       font-family: Oswald, sans-serif;
   }

   .text button {
       background: #0071e3;
       border-radius: 5px;
       border: none;
       color: #fff;
       padding: 5px;
       width: 100%;
       font-weight: 600;
       text-transform: uppercase;
       cursor: pointer;
   }

   @media (max-width: 768px){
       .grid{
           grid-template-columns: repeat(2, 1fr);

       }
   }

   @media (max-width: 500px){
       .grid{
           grid-template-columns: repeat(1, 1fr) ;

       }
       .grid > article {
           text-align: center;
       }
   }
 
   /* Form */

.form-section {
    clear: left;
    background: url('../images/signup-20.jpeg');
    background-size: cover;
    background-position: center;
    height: 900px;
}

.signup-form {
    margin: 150px 10% 0 0;
    color: #fff;
    background-color:rgba(60, 60, 60, 0.3);
    max-width: 400px;
    position:absolute;
    left: 10%;
    padding: 30px;
}

.signup-form > h2 {
    color:#fafafa;
    margin-bottom: 20px;
}

.text-input {
    background:transparent;
    color: #fafafa;
    width: 100%;
    height: 25px;
    margin: 5px 0 20px 0;
    border: 1px solid #fafafa;
    border-radius: 2px;
}

.text-input:hover {
    border-color: #0071e3;
}

.join-button {
    margin-top: 20px;
    border-radius: 2px;
    padding: 15px 32px 15px 32px;
    text-align: center;
    font-size: 100%;
    background-color: #0071e3;
    color:#fafafa;
    display: block;
}

.join-button:hover {
    background-color: #fafafa;
    color: #0071e3;
}


    