/* Assign CSS Variables */

:root {
    --wallpaper:  #edeff3;
    --icon-col: #cfd4de;
    --icon-col-dark:  #404a5d;
    --accent-text-col: #858585;
    --title-font: 'Work Sans', sans-serif;
    --text-font: 'Lato', sans-serif;
}



/* HTML Major Tags */

html {
    font-family: var(--text-font);
    font-size: 16px;
    font-weight: lighter;
    /* text-align: justify; */
}

body {
    background-color: var(--wallpaper);
    height: 100%;
    padding-left: 10px;
    padding-right: 10px;
    margin-top: 0;
    margin-bottom: 0;
}

h1 {
    font-family: var(--title-font);
    font-size: 1.75rem;
    font-weight: lighter;
}

p{
    line-height: 1.25rem;
}

h3 {
    font-family: var(--title-font);
    font-size: 1rem;
    font-weight: 400;
}

figcaption {
    font-family: var(--text-font);
    color: var(--accent-text-col);
    font-size: .8rem;
}

a {
    font-family: var(--text-font);
    text-decoration: none;
}

a p:hover {
    /*text-shadow: 2px 4px 3px rgba(0,0,0,0.3);*/
    color: black;
    -webkit-transition: all 1s;
    transition: all 1s;
}

hr {
    border: 0;
    width: 95%;
    height: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}



/* The main content wrapper */

.wrapper {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    max-width: 1100px;
    background-color: white;
    margin-left: auto;
    margin-right: auto;
    padding-left: 10px;
    padding-right: 10px;
}

.circle {
    border-radius: 50%;
}


/* The Navbar */

#navbar {
    overflow: hidden;
    background: white;
    top: 0px;
    max-width: 1100px;
    height: 60px;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    position: -webkit-sticky;
    position: sticky;
    -webkit-box-shadow: 0 3px 0px 0 rgba(41, 48, 61, 0.05);
    box-shadow: 0 3px 0px 0 rgba(41, 48, 61, 0.05);
    z-index: 1;
    /*transition: .3s;*/
}

#navbar a {
    color: black;
    text-align: center;
    font-size: .8rem;
    font-weight: normal;
    padding-right: 15px;
    padding-left: 15px;
    text-decoration: none;
}

#navbar a:hover {
    color: var(--accent-text-col);
}

#navbar a:last-child {
    padding-right: 50px;
}

#navbar .brand {
    padding-left: 30px;
}

#navbar h1 {
    font-size: 2.2rem;
}

#navbar h1 a {
    font-family: var(--title-font);
    font-size: 2.2rem;
    margin: 0;
    padding: 0;
    font-weight: 300;
}

#navbar h1 a:hover {
    color: black;
    cursor: pointer;
}

#navbar .burger {
    display: none;
    color: #333333;
    font-size: 1.3rem;
    cursor: pointer;
}

.spacer {
    background: var(--wallpaper);
    min-height: 3px;
    width: 100%;
    padding: 0;
    margin: 0;
}


/* Sliding navbar */

.sidenav {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 11;
    top: 0;
    right: 0;
    background-color: black;
    overflow-x: hidden;
    -webkit-transition: 0.5s;
    transition: 0.5s;
    padding-top: 60px;
}

.sidenav a {
    padding: 8px 8px 8px 32px;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: light;
    color: white;
    display: block;
    -webkit-transition: 0.3s;
    transition: 0.3s;
}

.sidenav a:hover {
    color: white;
}

.sidenav .closebtn {
    position: absolute;
    top: 0;
    right: 25px;
    font-size: 36px;
    margin-left: 50px;
}



/* The Portrait and the Education sections live here */

.main {
    padding-top: 30px;
    padding-bottom: 30px;
}

.portrait_panel {
    text-align: center;
    margin-top: 10px;
}

.portrait_panel .fa-envelope {
    color: var(--icon-col);
    -webkit-transition: .3s ease-out;
    transition: .3s ease-out;
}

.portrait_panel .fa-envelope:hover {
    color: black;
}

.portrait_panel .fa-linkedin {
    color: var(--icon-col);
    -webkit-transition: .3s ease-out;
    transition: .3s ease-out;
}

.portrait_panel .fa-linkedin:hover {
    color: #0077B5;
}

.portrait_panel .fa-github {
    color: var(--icon-col);
    -webkit-transition: .3s ease-out;
    transition: .3s ease-out;
}

.portrait_panel .fa-github:hover {
    color: black;
}

.portrait_panel .fa-twitter {
    color: var(--icon-col);
    -webkit-transition: .3s ease-out;
    transition: .3s ease-out;
}

.portrait_panel .fa-twitter:hover {
    color: #1da1f2;
}

.portrait_panel img {
    max-width: 90%;
    min-width: 200px;
    border: 4px double var(--wallpaper);
}

.school_panel {
    max-width: 60%;
}

.school_panel .fa-file-pdf {
    color: var(--icon-col);
    -webkit-transition: .6s ease-out;
    transition: .6s ease-out;
}

.school_panel .fa-file-pdf:hover {
    color: darkred;
}

.school_row {
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    margin-bottom: 10px;
}

.school_row * {
    vertical-align: top;
}

.school_logo {
    display: inline-block;
    height: 65px;
    width: 65px;
}

.school_dates {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    padding-right: 10px;
    padding-left: 10px;
    min-width: 100px;
}

.school_desc {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
}

.cv_dl {
    text-decoration: none;
}

.cv_dl p {
    color: var(--accent-text-col);
    padding-left: 10px;
    display: inline;
    vertical-align: 25%;
}




/* Works in Progress */

.works_progress {
    display: block;
    padding-left: 10px;
    padding-right: 10px;
    padding-bottom: 20px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    background-color: white; 
}

.works_progress h1 {
    margin-left: 40px;
    padding-top: 30px;
    margin-top: 0;
    margin-bottom: 0;
}

.projects {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.project {
    width: 42%;
    margin: 10px;
}

.project a{
    color: var(--accent-text-col);
}

.project a:hover{
    cursor: pointer;
    font-weight: 300;
    border-bottom: 1px var(--accent-text-col) dotted;
}

.project img {
    display: block;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

#odd_proj {
    width: 90%;
}


/* Published Work */

.published {
    display: block;
    max-width: 1100px;
    background-color: white;
    margin-left: auto;
    margin-right: auto;
    padding-left: 10px;
    padding-right: 10px;
    padding-bottom: 30px;
}

.published h1 {
    margin-left: 40px;
    margin-right: 40px;
    margin-top: 4px;
    padding-top: 30px;
}

.published p {
    margin-left: 40px;
    margin-right: 40px;
}


/* External Work */

.external_work {
    display: block;
    max-width: 1100px;
    background-color: white;
    margin-left: auto;
    margin-right: auto;
    padding-left: 10px;
    padding-right: 10px;
    padding-bottom: 30px;
}

.external_work h1 {
    margin-left: 40px;
    margin-right: 40px;
    margin-top: 4px;
    padding-top: 30px;
}

.external_work p {
    margin-left: 40px;
    margin-right: 40px;
    margin-bottom: 40px;
}

.ext_proj_wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: left;
}

.ext_proj {
    display: flex;
    width: 50%;
    flex-direction: column;
    align-items: center;
}

.ext_proj a{
    width: 40%;
}

.ext_proj_img {
    height: 80px;
}


/* Collaborators Page */

.collab {
    display: block;
    padding-left: 10px;
    padding-right: 10px;
    padding-bottom: 20px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    background-color: white;
}

.collab h1{
    margin-top: 0;
    padding-top: 30px;
    margin-left: 40px;
}

.collab p{
    margin-right: 40px;
    margin-left: 40px;
}

.collab_intro{
    text-align: left;
    margin-bottom: 30px;

}

.profile{
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    margin-left: 40px;
    margin-right: 40px;
    padding: 10px;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
}

.profile img{
    min-width: 200px;
    height: 200px;
    border: 4px double var(--wallpaper);
    transition: .3s;
}

.profile img:hover{
    opacity: .90;
}

.profile p{
    max-width: 75%;
}

.profile a{
    margin-top: 10px;
}

.profile a:hover{
    font-weight: 400;
}


/* Contact Page */

.contact {
    display: block;
    background-color: white;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 10px;
    padding-right: 10px;
    padding-bottom: 20px;
}

.contact_img{
    background-image: url("../resources/statue.jpg");
    min-height:500px;
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
    /* background-attachment: fixed; */
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
}

.contact h1 {
    margin-left: 40px;
    margin-right: 40px;
    margin-top: 0px;
    padding-top: 40px;
}

.contact p {
    margin-left: 40px;
    margin-right: 40px;
    color: var(--icon-col-dark);
}

.contact p:last-child {
    padding-bottom: 20px;
    margin-bottom: 0;
}

.contact a{
    color:  var(--icon-col-dark);
}

.contact_row {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
        -ms-flex-direction: row;
            flex-direction: row;
    -webkit-box-pack: space-evenly;
        -ms-flex-pack: space-evenly;
            justify-content: space-evenly;
    margin-left: 40px;
    margin-right: 40px;
}

.contact_method {
    min-width: 30%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    margin-top: 10px;
    margin-bottom: 10px;
}

.contact_method p {
    margin: 0;
    text-align: center;
}

.contact_method p:first-of-type{
    font-weight: 400;
    margin-bottom: 5px;
}

.contact .circle{
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    background-color: var(--wallpaper);
    width:  125px;
    height: 125px;
    margin-bottom: 20px;
}

.contact .circle .fa-facebook-messenger{
    color: var(--icon-col-dark);
    font-size:  3rem;
    -webkit-transition: .3s;
    transition: .3s;
}
.contact .circle .fa-facebook-messenger:hover{
    color: #0078FF;
}

.contact .circle .fa-envelope{
    color: var(--icon-col-dark);
    font-size:  3rem;
    -webkit-transition: .3s;
    transition: .3s;
}
.contact .circle .fa-envelope:hover{
    color: black;
}

.contact .circle .fa-twitter{
    color: var(--icon-col-dark);
    font-size:  3rem;
    -webkit-transition: .3s;
    transition: .3s;
}
.contact .circle .fa-twitter:hover{
    color: #1da1f2;
}

/* Contact: Message Me */

.contact_message {
    background-color: white;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 10px;
    padding-right: 10px;
    margin-top: 4px;
    padding-bottom: 60px;
}

.contact_message p {
    margin: 0;
}

.contact_message h1{
    margin-left: 40px;
    margin-right: 40px;
    margin-top: 0px;
    padding-top: 40px;
    padding-bottom: 10px;
}

.form_row {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
        -ms-flex-direction: row;
            flex-direction: row;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    margin-left: 40px;
    margin-right: 40px;
}

.form_row .circle{
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    width: 200px;
    height: 200px;
    background-color: var(--wallpaper);
    padding: 5px;
    margin-bottom: 20px;
}

.form_row .circle p{
    text-align: center;
    color: var(--icon-col-dark);
}

.form_row form{
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    outline: 4px var(--wallpaper) solid;
    padding: 20px;
    width: 350px;
    height: 300px;
}

.contact_message form input{
    margin-bottom: 10px;
    border:  1px solid var(--icon-col);
    padding:5px;
}

.contact_message form textarea {
    resize:  none;
    height: 100%;
    margin-bottom: 10px;
    border:  1px solid var(--icon-col);
    padding: 5px;
}

.contact_message form button {
    background-color: white;
    border: 1px solid var(--icon-col);
    padding: 5px;
    height: 40px;
    color:  var(--icon-col-dark);
    -webkit-transition: .3s;
    transition: .3s;
    /* border-radius: 5px; */
}

.contact_message form button:hover {
    border: 1px solid var(--icon-col-dark);
    background-color: var(--icon-col-dark);
    color: white;
    cursor: pointer;
}

/* The footer lives here */

.foot {
    margin-top: 4px;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
}

.foot a {
    color: var(--accent-text-col);
}

.foot p {
    text-align: center;
    padding-left: 20px;
    padding-right: 20px;
    color: var(--accent-text-col);
    font-size: .9rem;
}

.foot p:first-child {
    padding-top: 20px;
}

.foot p:last-child {
    padding-bottom: 30px;
    padding-left: 50px;
    padding-right: 50px;
}





/*tablet vertical resolution*/

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

    #navbar {
        -webkit-box-orient: horizontal;
        -webkit-box-direction: normal;
        -ms-flex-direction: row;
        flex-direction: row;
        -ms-flex-wrap: nowrap;
        flex-wrap: nowrap;
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
        padding-top: 15px;
        padding-bottom: 15px;
        padding-right: 0;
        height: 40px;
        margin-right: 0;
    }

    #navbar .nav_menu {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
    }

    #navbar a:not(:last-child) {
        display: none;
    }

    #navbar .brand {
        min-width: 85%;
    }

    #navbar h1 a {
        font-size: 2.25rem;
    }

    #navbar a.burger {
        display: block;
        float: right;
    }

    .school_dates {
        display: block;
        padding: 0;
        margin-bottom: -20px;
        min-width: 0;
    }

    .project {
        width: 85%;
    }

    #odd_proj {
        width: 85%;
    }

    .contact_method {
        width: 20%;
    }

}





/*phone vertical resolution*/

@media screen and (max-width: 600px) {
    body {
        background-color: var(--wallpaper);
        padding: 0;
        margin: 0;
    }

    .welcome {
        text-align: left;
    }

    .wrapper {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
    }

    .school_panel {
        max-width: 100%;
        text-align: center;
        padding-left: 10px;
        padding-right: 10px;
    }

    .school_panel img {
        display: block;
        margin-left: auto;
        margin-right: auto;
    }

    .school_panel .fa-file-pdf {
        color: darkred;
    }

    #navbar .brand {
        padding-left: 10%;
    }

    .works_progress h1 {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .ext_proj {
        width: 90%;
    }

    .collab p{
        margin-right: 10px;
        margin-left: 10px;
    }

    .contact_method {
        min-width: 90%;
    }

    .contact h1, .contact_message h1, .collab h1 {
        margin-left: 0;
        margin-right: 0;
        text-align: center;
    }

    .collab{
        text-align: center;
    }

    .collab p{
    }

    .contact_img{
        min-height:400px;
    }

    .profile{
        -webkit-box-pack: center;
            -ms-flex-pack: center;
                justify-content: center;
        margin: 0;
        -ms-flex-wrap: wrap;
            flex-wrap: wrap;
    }

}



/* From Bulma */

.box {
    background-color: white;
    border-radius: 1px;
    -webkit-box-shadow: 0 2px 2px rgba(10, 10, 10, 0.1), 0 0 0 1px rgba(10, 10, 10, 0.1);
    box-shadow: 0 2px 2px rgba(10, 10, 10, 0.1), 0 0 0 1px rgba(10, 10, 10, 0.1);
    display: block;
    padding: 1.25rem;
}

/* Other pretty things */
.tag {
  display: inline-block;
  background: var(--wallpaper);
  border-radius: 5px;
  color: var(--icon-col-dark);
  padding: 1px 10px 3px 5px;
  text-decoration: none;
  -webkit-transition: color 0.3s;
  transition: color 0.3s;
  font-weight: 400;
  font-size: .9rem;
  -webkit-box-shadow: 0 2px 2px rgba(10, 10, 10, 0.1), 0 0 0 1px rgba(10, 10, 10, 0.1);
          box-shadow: 0 2px 2px rgba(10, 10, 10, 0.1), 0 0 0 1px rgba(10, 10, 10, 0.1);
}
.tag:hover {
    cursor: pointer;
}

.tag::before{
    content: "○  ";
    white-space: pre;
}
.tag:hover::before{
    content: "●  ";
    white-space: pre;
}


/* modal */
/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 2; /* Sit on top */
    padding-top: 100px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
}

/* Modal Content (image) */
.modal-content {
    margin: auto;
    display: block;
/*     width: 80%; */
    max-width: 80%;
}

/* Caption of Modal Image */
#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

/* Add Animation */
.modal-content, #caption {    
    -webkit-animation-name: zoom;
    -webkit-animation-duration: 0.6s;
    animation-name: zoom;
    animation-duration: 0.6s;
}

@-webkit-keyframes zoom {
    from {-webkit-transform:scale(0)} 
    to {-webkit-transform:scale(1)}
}

@keyframes zoom {
    from {-webkit-transform:scale(0);transform:scale(0)} 
    to {-webkit-transform:scale(1);transform:scale(1)}
}

/* The Close Button */
.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    -webkit-transition: 0.3s;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}