@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap');

:root{
    /* --primary-color:#7C3AED; */
    --primary-color: #6930c3;
    --dark-gray:#6B7280;
    --light-gray:#F3F4F6;
    
}

body{
    font-family: 'Inter', sans-serif;
    margin: 0px;
}

hr{
    margin: 2rem 0rem;
}

/* container */
.container{
    padding: 1.5rem 1rem;
}

.container-center{
    max-width: 600px;
    margin: auto;
}

/* links */
.links{
    box-sizing: border-box;
    text-decoration: none;
    padding: 0.5rem 1rem;
}

.link-primary{
    background-color: var(--primary-color);
    border-radius: 0.5rem;
    color:white;
}

.link-secondary{
    color:var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 0.5rem;
}

.link-paragraph{
    color: var(--primary-color);
    text-decoration: none;
}
/* Read about BEM naming convention in CSS */

/* list */
.list-no-bullet{
    list-style: none;
}

.list-item-inline{
    display: inline;
    padding:0rem 0.5rem;
}
/* to reverse an ordered list add reversed in ol */


/* nav */
.navigation{
    display: flex;
    justify-content: space-between;
    background-color: var(--primary-color);
    padding: 1rem 0rem;
    color: white;
    
}
.navigation .navbrand{
    padding: 1rem;
    font-size: 1.2rem;
    font-weight: 800;
}

.navigation .nav-buttons{
    text-align: right;    
}

/* Method 1
a.links{
    color: white;
} */

.navigation .links{
    color: white;
    align-items: flex-end;
}

.navigation .link-active{
    font-weight: bold;
}

/* header */
.hero{
    padding: 2rem;
}

.hero .hero-img{
    max-width: 400px;
    display:block;
    margin: auto;
}

.hero .hero-heading{
    text-align: center;
    padding-top: 1rem;
    color: var(--dark-gray);
}

/* section */

.section{
    padding: 2rem;
}

.section h1{
    text-align: center;
}

.off-white{
    background-color: var(--light-gray);
}

/* footer */

.footer{
    background-color: var(--primary-color);
    padding: 4rem 1rem;
    text-align: center;
    color: white;
}

.footer .footer-header{
    font-weight: bold;
    font-size: large;
}

.footer .links{
    color: white;
}

.footer ul{
    padding-inline-start: 0px;
}


/* blogs */
.container .blog-description{
    text-align: justify;
}


/* clap- button */
#clap-btn{
    max-width: 2rem;
}

/* code snippet */
.code-snippet{
    max-width:400px;
}

/* styling for talks page */

.talk-section{
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(400px,2fr));
}

.card{
    max-width: 400px;
    margin: 2rem 4rem;
    border: 1px #6930c3 solid;
    border-radius: 1rem;
    padding: 1rem;    
}

/* Mobile Navigation */

.burger{
    display:none;
}

@media screen and (max-width:768px) {

    body{
        overflow-x:hidden;
    }
    
    .nav-buttons{
        position: absolute;
        margin-top: 2.5rem;
        right:0px;
        background-color: var(--primary-color);
        display: flex;
        flex-direction:column;
        align-items: center;
        height: 100%;
        width: 50%;
        transform: translateX(100%);
        transition: transform 0.4s ease-in;
    }

    .nav-buttons li{
        margin: 3rem 1rem;
    }

    .burger{
        display: block;
        color: #fff;
        font-size:1.5rem;
        padding: 1rem;
        cursor: pointer;
    }

    .nav-active{
        transform: translateX(0%);
    }
}