div.card-front h3{
    text-align: center;
}

div.abouttextsection{
    border-bottom: none;
}

div.subheadingsection p{
    font-size: 1.4rem;
    font-family: "PT Sans", sans-serif;
}

span.boldText{
    font-weight: bold;
}

span.italicText{
    font-style: italic;
}

span.underlineText{
    text-decoration: underline;
}

.methodlist{
    margin-left: 3vw;
}

div.card-back p{
    line-height: 1.2;
}

/* Nav bar basic styling, just using flex and the fixing to the top of the page*/ 

.navbar {
    display: flex;
    position: fixed;
    width: 97%;
    top: 0;
    left: 0;
    z-index: 1000;
    text-decoration: none;
    overflow: hidden;
    border-bottom: 3px solid black;
    margin: 0px;
    padding: 0px;
    background-color: #555;
}
 
.navMenu{
    display:flex; 
    justify-content:space-around;
    gap: 3px;
    position: fixed;
    width: 100%; 
    top: 0;
    left: 0;
    z-index: 1000;
    text-decoration: none;
    border-bottom: 3px solid black;
    margin: 0px;
    padding: 0px;
    background-color: #555;
}

.nav-item { 
    flex-basis: 16.6%;
    list-style: none;
    font-size: 20px;
    text-align: center;
}

.nav-item a{
    text-decoration: none;
}

.nav-item a h2{
    font-family: "PT Sans", sans-serif;
    font-weight: bold;
    font-size: 1.2em;
    color:#999;
    margin-top: 0px;
    margin-bottom: 0px;
    line-height: 1.2;
}

.nav-item.active a h2{
    color:white;
    margin-top: 0px;
    margin-bottom: 0px;
}

a.nav-link{
    padding: 0.1rem 0.5rem !important;
}

/*.nav-item a h2:hover {
    scale: 1.1; 
}*/


/* Navigation tabs */

.rounded-tab {
    --r: .8em; /* control the curvature */
  
    border-inline: var(--r) solid #0000;
    border-radius: calc(2*var(--r)) calc(2*var(--r)) 0 0/var(--r);
    mask: radial-gradient(var(--r) at var(--r) 0,#0000 98%,#000 101%) calc(-1*var(--r)) 100%/100% var(--r) repeat-x, conic-gradient(#000 0 0) padding-box;
}
.rounded-tab.left {
    border-left-width: 0;
    border-top-left-radius: var(--r);
}
.rounded-tab.right {
    border-right-width: 0;
    border-top-right-radius: var(--r);
}

.rounded-tab { 
    padding-inline: .05em;
    background: #000 border-box; /* border-box is mandatory */
}

.rounded-tab.active{
    background: #000 border-box; /* border-box is mandatory */
}

/* end of navigation section*/


/* I put this in a separate css file as when i did it interferred with FILTER. JS*/ 

.timelinebox {
    transform: translateX(-100%); 
    opacity: 0; 
    transition: transform 0.5s fade;
}

.timelinebox.show {
    transform: translateX(0); 
    opacity: 1; 
}

@media (max-width: 1440px){

    .nav-item a h2{
        font-size: 1.2em;
        line-height: 1.2;
    }

    .rounded-tab {
        --r: .3em;
    }
}


@media (max-width: 1140px){
    .nav-item a h2{
        font-size: 0.8em !important;
        line-height:1 !important;
    }

    .projectCards{
        flex-direction: column;
    }
}

@media (max-width: 1440px) and (max-height: 720px){

    .nav-item a h2{
        font-size: 0.8em;
        line-height: 1;
    }
    
}

@media (max-width: 1020px){

    .nav-item a h2{
        font-size: 1em;
        line-height:1.2;
    }

    .intro h1{
        margin: 75px 15px 15px 15px;
    }

    .projectCards{
        flex-direction: column;
    }
}

@media (max-width: 600px){

    div.IntroductionText{
        padding: 4vw;
    }


    div.IntroductionText p{
        font-size: 1.2rem;
    }

    div.subheadingsection p{
        font-size: 1.2rem;
    }

    .intro h1{
        /*margin-top:200px;*/
        margin-top: 22vh;
        text-align: center;
    }

    .box{
        width: 60vw;
    }

    .container{
        grid-template-columns: repeat(1, 60vw);
    }

    .projectCards{
        flex-direction: column;
    }

    .subheadingsection {
	    margin:10vw;
    }

    /* navigation styling for mobile on home page */


    .navMenu{
        gap:2px;
        width: 97.2vw;
        flex-direction: column;
        text-align: center;
    }

    .nav-item a h2 {
        font-size: 1em !important;
        line-height: 1 !important;
    }

    .rounded-tab, .rounded-tab.right{
        border-left-width: 0;
        border-top-left-radius: 0;
        border-right-width: 0;
        border-top-right-radius: 0;
    }

    .rounded-tab.left{
        border-right-width: 0;
        border-top-right-radius: var(--r);
    }

    .rounded-tab.right{
        border-bottom: 2px solid #555;
    }

    /* end of navigation */

}