*, *::before , *::after {
    box-sizing: border-box;
}
body {
    margin: 0;
    padding: 0;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}
/*Navigation Style*/  
.topnav {
    overflow: hidden;
    background-color: #2b2828;
    box-shadow: 2px 2px 2px rgb(4, 254, 250);
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
    border-bottom: 1px solid black;
}

.topnav a {
    float: left;
    display: block;
    color: #f2f2f2;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 17px;
}
  
.topnav a:hover {
    background-color: #ddd;
    color: black;
}
  
.topnav a.active {
    background-color: #30f212;
    color: rgb(0, 0, 0);
}
  
.topnav .icon {
    display: none;
}
/*Rest of code is designed for mobile first and media query runs for desktop site*/
/*Header Styling*/

.header {
    display: flex;
    align-items: center;
    align-content: center;
    justify-content: center;
    font-size: .75em;
    height: 20vh;
    background-image: url("https://images.unsplash.com/photo-1526374965328-7f61d4dc18c5?auto=format&fit=crop&q=80&w=2940&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D");
    background-attachment:fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    margin: 0;
}

.header-content{
    background-color: rgba(94, 255, 123, 0.757);
    color: rgb(0, 0, 0);
    width: 100%;
    text-align: center;
}

/*For header effect*/
.main-heading::after{
    content: "|";
    font-size: 1em;
    animation: blink .75s step-end infinite;
}

@keyframes blink {
    from, to { color: transparent }
    50% { color: rgb(0, 0, 0) }
}

h2 {
    margin: 0 0 1%;
    padding: 0;
    font-size: 3em;
}

/*main section*/
.main {
    font-size: .75em;
    height: 100vh;
    width: 100vw;
    background-image: url("https://images.unsplash.com/photo-1526374965328-7f61d4dc18c5?auto=format&fit=crop&q=80&w=2940&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D");
    background-attachment:fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    margin: 0;
}

/*carousel code*/
.carousel {
    width: 80vw;
    height: 80vh;
    position: relative;
    margin: 0 auto;
}

.carousel > ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: 200ms opacity ease-in-out;
    transition-delay: 200ms;
}

.slide > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide[data-active] {
    opacity: 1;
    z-index: 1;
}

.slide p {
    text-align: center;
    color: white;
    font-size: 1.5em;
}

.slide p a {
    position: relative;
    color: white;
    font-size: 1em;
}

.carousel-button {
    position: absolute;
    background: none;
    z-index:2;
    border: none;
    font-size: 4rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255 , 255 , 255 , .5);
    cursor: pointer;
    border-radius: .25rem;
    padding: 0 .5rem;
    background-color: rgba(0, 0 , 0 , .8);
}

.carousel-button:hover , .carousel-button:focus {
    color: white;
    background-color: rgba(0, 0 , 0 , 1);
}

.carousel-button:focus {
    outline: 1px solid black;
}

.carousel-button.prev {
    left: 1rem;
}

.carousel-button.next {
    right: 1rem;
}


/*Footer Section*/
.footer {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
    align-items: center;
    background-color: rgb(71, 205, 95);
    height: fit-content;
}

.footer-content {
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.footer a {
    color: #084181;
}

.footer a:hover {
    color: #1062c0;
}

.credit {
    background-color: aquamarine;
    width: 100%;
    text-align: center;
}
/*Navigation Style for mobile*/
@media screen and (max-width: 600px) {
    .nav-content a {
        display: none;
    }
    .topnav a.icon {
      float: right;
      display: block;
    }
    .topnav.responsive {
        position: relative;
        display: block;
    }
    .topnav.responsive .icon {
      position: absolute;
      right: 0;
      top: 0;
    }
    .topnav.responsive a {
      float: none;
      display: block;
      text-align: left;
    }
}

@media screen and (min-width: 600px) {
    /*Header styling for desktop view*/
    .header {
        height: 30vh;
        font-size: 2em;
    }

    .project-card {
        display: flex;
        justify-content: space-around;
    }

    
    .skill-content {
        position: relative;
        display: flex;
        flex-flow: row wrap;
        justify-content: space-around;
        align-items: center;
        margin-top: 2%;
        width: 100%;
    }

    .skill-text {
        background-color: rgba(0, 0, 0, 0.581);
        height: fit-content;
        border-radius: 10px;
        color: white;
        font-size: 1.2em;
    }
    .skill-section {
        width: 40%;
    }

    .skills a button{
        position: relative;
        margin: 20px;
        background-image: linear-gradient(to bottom right,rgb(250, 235, 215) , rgb(167, 62, 181));
        padding: 20px 30px;
        font-size: 1.25em;
        text-decoration: underline;
    }

    .footer {
        font-size: 1.25em;
    }
}

