/***** Global *****/

body, html
{
    margin: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body
{
    background: #fcfcfc
}

main, footer
{
    padding: 10px 15px 5px 20px;
}

footer
{
   border-bottom: 4px solid #4E598C;
   border-right: 4px solid #4E598C;
   margin-bottom: 15px;
   border-bottom-right-radius: 25px;
}

footer hr
{
   background-color: #ccc;
   width: 90%;
   max-width:40rem;
   border-width: 0;
   height: 2px;
   margin:0 auto;
}

.grid-container
{
    display: grid;
}

/** TYPOGRAPHY **/

h1, h2, h3
{
    font-family: 'Lora', serif;
}
   
h4, h5, h6, p, li, a 
{
    font-family: 'Work Sans', sans-serif;
}
    
h1
{
   font-size: 3.5rem;
   margin:1rem 0 0 0;
}
    
h2
{
     font-size: 1.85rem;
     margin: 0.5rem 0 0 0;
}

.header-content h1, .header-content h2
{
   text-align: center;
}
    
h3 
{
   font-size: 1.5rem;
   margin: 1rem 0;
}
    
h3.section-title:before
{
   content: '';
   display: inline-block;
   background: #4e598c;
   height: 13px;
   width: 10px;
   position: relative;
   left: -20px;
   top: -2px;
   margin-right: -10px;
}
    
h4
{
   font-size: 1.3rem;
   margin: 0.5rem 0 0 0;
}
    
h5 
{
   font-size: 1.15rem;
   margin: 0.5rem 0 0 0;
}
    
h6 
{
   font-size: 0.9rem;
   margin: 1rem 0;
}
    
li h6
{
   margin: 0.333rem 0;
}    

a 
{
    color:  #4E598C;
}

a.button
{
   border-radius: 5px;
   background: #4E598C;
   color: white;
   padding: 3px;
   text-transform: uppercase;
   text-decoration: none;
}

/** MENUS **/
    
nav ul
{
   list-style-type: none;
   text-align: center;
   padding: 0;
}
    
nav ul li
{
   display: inline;
   white-space: nowrap;
}
    
nav#main-nav ul 
{
   text-align:left;
   margin: 0px;
   margin-left: 20px;
   padding: 20px;
}
    
nav#main-nav ul li a
{
   text-decoration: none;
   color: #4e598c;
   font-weight: 600;
   text-transforM: uppercase;
}
    
nav ul li:after
{
   content:' | ';
}
    
nav ul li:last-of-type:after
{
    content:'';
}
    
/***** HOME PAGE *****/

#home #page-wrap
{
    width: 98%;
 margin-right: auto;
}

.home-page header
{
    grid-template-columns: 2fr 1fr;
    grid-gap: 15px;
    border-top: 4px solid #4e598c;
    border-right: 4px solid #4e598c;
    border-top-right-radius: 25px;
}

.home-page header .header-content 
{
    grid-column: 1 / 2;
    grid-row: 1 / 1
}

.home-page header .header-image 
{
    grid-column: 2 / 3;
    grid-row: 1 / 1
}

.home-page header .header-image #image-box
{
    border: 4px solid #4e598c;
    border-right: 0px none;
    border-top: 0px none;
    border-bottom-left-radius: 25px;
    display:block;
    margin-left:auto;
    width: 100%;
    max-width: 400px;
}

.home-page header .header-image #image-box:before
{
    content: '';
    background: #4e598c;
    position: absolute;
    height: 60px;
    width: 4px;
    top: 0;
    margin-left: -4px;
}

.home-page header .header-image #image-box img
{
    width: 100%;
    height: 100%;
    border-bottom-left-radius: 20px;
    border-top-right-radius: 20px;
    display:block;
}

.home-page main
{
    border-right: 4px solid #4e598c;
    padding-top: 40px;;
}

#home .header-content 
{
    padding: 2rem 10px;
    text-align: center;
}

#home .header-content .intro-text
{
    padding: 60px 0;
    animation: fadein 2s;
}

@keyframes fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}


#home footer #footer-content
{
    max-width: 64rem; 
    margin: 0 auto;
}

/** PROJECT GALLERY **/

#project-gallery
{
    grid-template-columns: repeat(3, minmax(100px, auto));
    grid-gap: 15px;
    width: 100%;
    max-width: 72rem;
    margin: 0 auto;
}

.gallery-project 
{
    box-shadow: 0px 1px 10px #000;
    border-bottom-right-radius: 25px;
    border-top-left-radius: 25px;
    padding: 0 0 2rem;
}

.gallery-project h2, .gallery-project p
{
    color: white;
    padding: 0 10px;
}

.gallery-project h2
{
    padding-top: 1rem;
    text-align: left;
}

.gallery-project-status
{
    font-family: 'Work Sans', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    color: #fcfcfc;
}

#gallery-project-1
{
    background: linear-gradient(to top, rgba(0,0,0,0.3), #4e598c), url(/img/rugby.jpg);
    background-size: cover;
}

#gallery-project-2
{
    background: linear-gradient(to top, rgba(0,0,0,0.3), #4e598c), url(/img/rugby.jpg);
    background-size: cover;
}

#gallery-project-3
{
    background: linear-gradient(to top, rgba(0,0,0,0.3), #4e598c), url(/img/rugby.jpg);
    background-size: cover;
}

/***** SUBPAGE *****/

.subpage main, .subpage footer, #resume-subpage header
{
    width: 90%;
    max-width: 64rem;
    margin: 0 auto;
}

.subpage .header-content
{
    width: 100%;
    max-width: 32rem;
    margin: 0 auto;
    color: #fcfcfc;
}

.subpage header
{
    background-size: cover;
    border-bottom: 4px solid #4E598C;
}

.subpage main, .subpage footer
{
    border-left: 4px solid #4E598C;
}

.subpage header h1
{
    padding: 4rem 0;
}

.subpage footer
{
    border-right: 0px none;
    border-bottom-left-radius: 25px;
    border-bottom-right-radius: 0px;
    margin-bottom: 15px;

}

/***** PAGE-SPECIFIC *****/

#resume-subpage.subpage header 
{
    border-bottom: 0px none;
}

#resume-subpage.subpage .header-content
{
    color: #000000;
}

#skills-subpage.subpage header
{
    background: linear-gradient(to top, rgba(0,0,0,0.3), #4e598c), url(/img/phone_hero.jpg);
    background-size: cover;
}

#goals-subpage.subpage header
{
    background: linear-gradient(to top, rgba(0,0,0,0.3), #4e598c), url(/img/mirror_hero.jpg);
    background-size: cover;
}

#contact-subpage.subpage header
{
    background: linear-gradient(to top, rgba(0,0,0,0.3), #4e598c), url(/img/halifax_hero.jpg);
    background-size: cover;
}

span {
    color: #4E598C;
    padding: 0;
    font-weight: bold;
}

#resume-subpage.subpage .grid-container#skills
{
    grid-template-columns: repeat(3, 1fr);
}

#resume-subpage.subpage .grid-container#skills div.grid-child-full 
{
    grid-column: 1 / 4;
}

#resume-subpage.subpage .grid-container#skills h3
{
   grid-column: 1 / 4
}

ol.goals-list
{
    margin: 0 auto;
    max-width: 48rem;
    width: 80%;
}

ol.goals-list li
{
    list-style-position: outside;
}

ol.goals-list li::marker 
{
    font-size: 3rem;
    font-weight: 600;
    color: #4e598c;
}

#skills-subpage .intro-text
{
    width: 90%;
    max-width: 48rem;
    margin: 0 auto;
    padding: 2rem 0;
}

#skills-subpage h2
{
    margin: 1rem 0;
    text-align: center;
}

#skills-section 
{
    position: relative;
    margin:2rem 0;
}

ol.skill-approach li
{
    line-height: 1.5;
}

ol.skill-approach li::marker
{
    font-weight: 600;
    color: #4e598c;
    font-size: 1.5rem;
}

ol.skill-approach li a 
{
    color: #4e598c;
    font-weight: 600;
    font-style: italic;
}

#skills-section:before
{
    content: '';
    background: #4e598c;
    position: absolute;
    height: 4px;
    width: 10%;
    top: 50px;
    margin-left: -20px;
    animation: fadein 2s;
} 

.skill-block
{
    padding: 2rem 1rem;
    width: 95%;
    margin-top: -4px;
    position: relative;
    animation: fadein 2s;
}

.skill-block:nth-of-type(2n+1)
{
    border: 4px solid #4E598C;
    border-left: 0px none;
    border-radius: 25px;
    border-top-left-radius: 0px;
    border-bottom-left-radius: 0px;
    left: 5%;
} 

 .skill-block:nth-of-type(2n)
{
    border: 4px solid #4E598C;
    border-right: 0px none;
    border-radius: 25px;
    border-top-right-radius: 0px;
    border-bottom-right-radius: 0px;
}

.skill-block:nth-of-type(2n+1) h3,
.skill-block:nth-of-type(2n+1) p
{
    margin-left: -5%;
} 

.skill-block:last-of-type
{
    border-bottom-left-radius: 0px;
    border-bottom: 0px none;
}

#skills-subpage.subpage .grid-container#learning-section
{
    grid-template-columns: repeat(4,1fr);
    grid-gap: 15px;
}

#skills-subpage.subpage .grid-container#learning-section .learning-block
{
    border-right: 1px solid #ccc;
    padding: 10px;
    min-height:200px;
}

#skills-subpage.subpage .grid-container#learning-section h2
{
   grid-column: 1 / 5;
}

#contact-subpage main
{
    padding-top: 4rem;
}

#contact-subpage nav#contact-info
{
    width: 90%;
    max-width: 32rem;
    margin: 3rem auto 1rem;
}

#contact-subpage nav#contact-info a
{
    color: #4E598C;
    font-weight: 600;
    text-decoration: none;
}

#contact-subpage nav#contact-info a:after
{
    content: ' | '
}

#contact-subpage nav#contact-info a:last-of-type::after
{
    content: '';
}

#contact-subpage nav#contact-info span, 
#contact-subpage nav#contact-info i
{
    font-size: 20px;
    color: #4E598C;
    padding-right: 2px;
}

#contact-subpage nav#contact-info span
{
    vertical-align: middle;
}

/***** RESPONSIVE *****/

@media only screen and (max-width: 767px)
{
    #page-wrap 
    {
        margin: 0 auto;
    }

    .home-page header 
    {
        grid-template-columns: 1fr;
    }

    .home-page header .header-content,
    .home-page header .header-image
    {
        grid-column: 1 / 3;
    }
    
    .home-page header .header-image #image-box
    {
        margin-top: -10%;
        max-width: 100%;
    }

    .home-page header .header-image #image-box img
    {
        border-top-right-radius: 20%;
    }

    .home-page header .header-image
    {
        overflow: hidden;
        grid-row: 1 / 2
    }

    .home-page#home header .header-content
    {
        grid-row: 2 / 3;
        padding: 10px;
    }

    nav#main-nav ul
    {
        margin: 0 auto;
        text-align:center;
    }

    #skills-subpage.subpage .grid-container#learning-section h2
    {
       grid-column: 1 / 3;
    }

    #skills-subpage.subpage .grid-container#learning-section
    {
        grid-template-columns: repeat(2, 1fr);
        grid-gap: 0px;
    }

    #skills-subpage.subpage .grid-container#learning-section .learning-block
    {
        border: 1px solid #ccc;
    }

    .skill-block
    {
        width: 90%;
    }

}