/* --- Colour Codes --- */
/* --- Grey: #2B3133 --- */
/* --- Blue: #70abc4 --- */
/* --- Yellow: #ffd409 --- */
/* --- White: #fefefe --- */

/*---Start of Body styles---*/

*{
    font-family: 'Roboto', sans-serif;
    box-sizing: border-box;
    font-weight: 300;
    letter-spacing: 1px;
}

body{
    width: 100%;
}

/* --- Navigation Styles --- */
header{
    margin: 3rem 0 0 0;
    width: 100%;
    background-color: #2B3133;
}

nav{
    max-width: 100vw;
    width: 100%;
    color: #f1f1f1;
    display: flex;
    flex-wrap: wrap;
    text-align: justify;
    justify-content: center;
    align-items: center;
    padding: .3em;
}

nav a{
    padding: .5em;
    margin: 0 1em;
    display: inline-block;
    text-decoration: none;
    color: #f1f1f1;
    font-size: 1.2em;
}

nav #logo{
    background-color: #2B3133;
    background-image: url(../images/logo.png);
    background-position: center;
    background-size: cover;
    width: 5vw;
    height: 5vw;
    margin: 0 1em;
    border-radius: 50%;
    transform: scale(1.4);
    box-shadow: 0px 1px 10px -1px black;
}

nav a:hover{
    background-color: #70abc4;
}



/* --- Headings & Titles --- */

.heading{
    text-align: center;
}

.sub-heading{
    text-align: center;
}

/* --- Sections --- */

#top{
    position: fixed;
    display: block;
    bottom: 50px;
    right: 20px;
    z-index: 99;
    color: #2B3133;
    border: none;
    font-size: 2.5rem;
    font-weight: 00;
    /* width: 5%; */
    /* height: 0; */
    padding: 0.25rem;
    border-radius: 0.25rem;
    background: #fefefe;
    text-align: center;
    line-height: 0;
    cursor: pointer;
}

#top:hover {
    background-color: #70abc4;
    color: #fefefe;
}

#about, #projects, #cv{
    margin: 1.2rem auto;
    text-align: justify;
    padding: 1.2rem;
}

#about, #cv  {
    background-color: #70abc4;
    color: #2B3133;
}

#projects{
    background-color: #2B3133;
}

#projects .heading{
    color: #ffd409;
}

/* --- Projects Sub-Styles --- */

.projects-container {
    width: 100%;
    display: inline-grid;
    grid-template-columns: 30% auto;
    grid-gap: 1em;
    border: 1px solid #ffd409;
    border-radius: 0.5rem;
    position: relative;
  } 

  .tab {
    padding: 1em 0;
    /*min-height: fit-content;*/
    height: fit-content;
    border-right: 1px solid #ffd409;
    text-align: justify;
  }
  
  .tab button {
    display: block;
    background-color: inherit;
    color: #f1f1f1;
    width: 100%;
    border: none;
    outline: none;
    text-align: left;
    cursor: pointer;
    transition: 0.3s;
    font-size: 1.2em;
    padding: 0.5em 1em ;
  }

  .tab button:hover {
    color: #ffd409;
  }

  .tab button.active {
    background-color: #70abc4;
  }

  #close{
    cursor: pointer;
    position: absolute;
    top: 5%;
    right: 0%;
    padding: 1em .5em;
    transform: translate(0%, -50%);
    font-size: 2em;   
    color: #f1f1f1;
    z-index: 1;
    display: none;
  }

  #close:hover {
    color: #ffd409;
  }

  .tabcontent {
    padding: 1rem 1rem;
    border-left: none;
    height: fit-content;
    color: white;
    position: relative;
    animation: animateright 0.4s;
  }

  .tabcontent a{
    padding: .2em;
    margin: 0 0.2em;
    display: inline-block;
    text-decoration: none;
    color: #f1f1f1;
    font-size: 1.2em;
}


  .tabcontent a:hover{
    color: #70abc4;
}

  @keyframes animateright{
    from{right:-300px;opacity:0} to{right:0;opacity:1}
  }


/* --- CV Sub-Styles --- */

#cv > .cv-container{
    width: 100%;
    display: inline-grid;
    grid-template-columns: 30% auto auto;
}

#cv aside{
    padding: 20px;
    text-align: justify;
}

#cv aside.left{
    text-align: left;
}

#cv aside.left a{
    text-decoration: none;
    color: #2B3133;
    vertical-align: middle;
}

#cv i{
    vertical-align: middle;
}

#cv aside.left a:hover{
    color: #ffd409;
}

.left > hr#skills-hr{
    margin: 0 auto;
    /* width: 5em; */
    color: #ffd409;
    background-color: #ffd409;
    height: 1px;
    border: none;
} 

.skills-bar-back{
    background-color: #f1f1f1;
    font-size: 0.75em;
    border-radius: 1em;
}

.skills-bar{
    color: #fff;
    background-color: #2B3133;
    text-align: center;
    padding: 0.01em 1em;
    line-height: 1.5;
    border-radius: 1em;
}

.vl{
    width: 1px;
    margin-top: 8em; 
    border-left: 2px solid #2B3133; 
    height: 80vh;
}

/* --- Footer Styles --- */

#footer-container{
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(24%, 1fr));
    grid-gap: 1em;
    background-color: #2B3133;
    color: #f1f1f1;
    text-align: center;
    padding: 1.2em;
}

.footer-content a{
    color: white;
    text-decoration: none;
    padding: .5em;
    margin: 1em .5em;
    text-align: left;
}

/* --- Media Queries --- */

   /*---Displays up to 500px---*/
@media only screen and (max-width:500px){

    header{
        width: 100%;
        height: 15em;
    }
    
    nav{
        padding: .5em;
        
    }

    nav #logo{
        order: 0;
        padding: .5em;
        margin: 2rem 10em;
        display: block;
        text-decoration: none;
        color: #f1f1f1;
        font-size: 5em;
    }
    
    nav a{
        order: 1;
        padding: .5em;
        margin: 0 1em;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        text-align: justify;
        text-decoration: none;
        color: #f1f1f1;
        font-size: 1.2em;
    }

    /* --- Projects Styles --- */

    .projects-container{
        grid-template-columns: repeat(1, 1fr);
        height: fit-content;
    }

    .tab{
        border-right: none;
        border-bottom: 1px solid #ffd409;
        height: inherit;
    }
    
    .tabcontent{
        border-left: 1px solid #ffd409;
        height: fit-content;
    }
    
    #close{
        top: 37%;
    }

    /* --- Cv Styles --- */

    #cv > .cv-container{
         width: 100%;
        display: grid;
        grid-template-columns: auto;
    }
    
    #cv aside.vl{
        display: none;
    }

    #cv .vl{
        display: none;
    }
    
    footer > #footer-container{
         width: 100%;
        display: grid;
        grid-template-columns: auto;
    }

}

 /*---Displays up to 700px*/
 @media only screen and (min-width: 501px) and (max-width: 749px){
    header{
        width: 100%;
        height: 15em;
    }
    
    nav{
        padding: .5em;
    }

    nav #logo{
        order: 0;
        padding: .5em;
        margin: 1rem 10em;
        display: block;
        text-decoration: none;
        color: #f1f1f1;
        font-size: 5em;
    }
    
    nav a{
        order: 1;
        padding: .5em;
        margin: 0 1em;
        display: block;
        text-decoration: none;
        color: #f1f1f1;
        font-size: 1.2em;
        /*display: grid;*/
        /*grid-template-columns: repeat(2, 1fr);*/
    }
    
     #cv .vl{
        width: 1px;
        margin-top: 5em; 
        border-left: 2px solid #2B3133; 
        height: calc(100% - 5em);
    }
    
    footer > #footer-container{
         width: 100%;
        display: grid;
        grid-template-columns: auto auto;
    }

}

@media only screen and (min-width: 750px) and (max-width: 1000px) {
    header{
        margin: 2.5rem 0 0 0;
    }

    nav #logo{
        width: 10vw;
        height: 10vw;
    }
    
     #cv .vl{
        width: 1px;
        margin-top: 2em; 
        border-left: 2px solid #2B3133; 
        height: calc(100% - 2em);
    }
    
    footer > #footer-container{
        width: 100%;
        display: grid;
        grid-template-columns: auto auto;
    }

}

@media only screen and (min-width: 1000px){

    nav #logo{
        height: 7vw;
        width: 7vw;
    }

    #about, #projects, #cv{
        width: calc(90% - 1.2rem);
        margin: 1.2rem auto;
        text-align: justify;
        padding: 1.2rem;
    }
    
     #cv .vl{
        width: 1px;
        margin-top: 5em; 
        border-left: 2px solid #2B3133; 
        height: calc(100% - 10em);
    }

    footer > #footer-container{
             width: 100%;
            display: grid;
            grid-template-columns: repeat(4, 1fr);
        }
}

@media only screen and (min-width: 1500px) {
    nav #logo{
        height: 5vw;
        width: 5vw;
    }
    
    footer > #footer-container{
         width: 100%;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
    }
}
