*{
    font-family: 'Signika',sans-serif;
}

body {
    background-image: url("../images/BackgroundPattern.png");
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;

    /* min width that works on ie6 as well: https://stackoverflow.com/a/3802655 */
    min-width:340px;        /* Suppose you want minimum width of 340px */
    width: auto !important;  /* Firefox will set width as auto */
    width:340px;            /* As IE6 ignores !important it will set width as 340px; */
}

#opacity{
    background-color: #FFFFFF;
    position: fixed;
    margin-top: -30vh;
    z-index: 2;

    /*user can click through fading screen except in IE10 and older*/
    pointer-events: none;

    /*Does the actual fading but also makes element have no space so IE10 and older users can click on the site once the fading is done*/
    transition: 1s opacity ease-in, 1s height step-end, 1s width step-end; 
    opacity: 0;
    height: 0;
    width: 0;
}

#opacity.fade-out{
    opacity: 1;
    height: 130vh;
    width: 100vw;
    transition: none;
}

/* Turn off parallax scrolling for all tablets and phones. Increase/decrease the pixels if needed */
@media only screen and (max-width: 1366px) {
    .html {
        background-attachment: scroll;
    }
}


a:link {
    color: blue;
}

/* visited link */
a:visited {
    color: darkslateblue;
}

/* mouse over link */
a:hover {
    color: cadetblue;
}

/* selected link */
a:active {
    color: darkcyan;
}



/*navigation bar at top of page*/
ul {
    background-color: black;
    list-style-type: none;
    position: fixed;
    padding: 0;
    margin: 0;
    right: 0;
	left: 0;
    top: 0;

    z-index: 1;
    
    display: flex;
    justify-content: space-between;


    font-size: 22px;
    font-size: 1.8vw;

    
    /* min width that works on ie6 as well: https://stackoverflow.com/a/3802655 */
    min-width:340px;        /* Suppose you want minimum width of 340px */
    width: auto !important;  /* Firefox will set width as auto */
    width:340px;            /* As IE6 ignores !important it will set width as 340px; */
}

li {
    float: left;
    flex-grow: 1;
}

li a {
    padding: 10px 24px;
    display: block;
    color: white;

    text-align: center;
    text-decoration: none;
    font-weight: normal;
}

li a:hover:not(.active) {
    color: rgb(212, 212, 212);
    background-color: maroon;
}

li a:link{
    color: white;
}
li a:hover{
    color: white;
}
li a:visited{
    color: white;
}
li a:active{
    color: white;
}



section{
    padding-top: 30px;
    margin-top: -30px;
}


/*Main subjects of the webpage*/
body{
    margin:0;
    padding:0;
}


#Bio{
    display: flex;
    
    padding-top: 80px;
    margin-top: 60px;
    margin-left:10%; 
    margin-bottom: 12vh;
    margin-right: 5%;
    align-items: center;
}

/* for introduction to be split into two columns */
.column1{
    margin-left: 1em;
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1 300px;
    flex-wrap: wrap; 
}

.columnRows{
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.pfp{
  width: 100%;
}
  
.column2{
    display: flex;
    justify-content: left;
    flex: 45%;
    flex-wrap: wrap; 

    
    font-size: 26px;
    font-size: 2vw;
}

.circular{
    border-radius: 50%; 
    width: 60%;
    height: 90%;
}

.socialMediaIcon{
    height: 3vw;
    margin: 12px;
}

#resume{
    font-weight: bold;
    text-decoration: none;
    
    margin-bottom: 3px;
    margin-left: 5px;
    padding: 6px;
    font-size: 2vw;
    text-align: center;

    background-color: rgb(0, 0, 0);
    border-radius: 0.5vw;
    color: white;
}

#personalName{
    font-size: 30px;
    font-size: 2vw;
    font-weight: normal;
    text-shadow: 1px 0 0 black, 1px 1px 0 black;
    text-decoration: none;
    margin-bottom: 0em;
    margin-right: 14em;
}

#descriptiveLine{
    display: block;
    margin-top: 0em;
}

/* Title of each section to look like a folder tab */
header{
     margin-top: 2em;
     background-color: rgba(131, 131, 131, 0.3);
     border: 5px solid rgba(240, 15, 15, 0.6);
     border-bottom: none;
     border-top-right-radius: 4px;
     border-top-left-radius: 4px;
     margin-left: 7%;
     padding: 3px 5px;


     width:auto;
     height:auto;
     display:inline-block;

     font-size: 25px;
     font-size: 1.5vw;
     text-align: center;
     font-weight: normal;

}


/*
the horizontal line that seperates the section box from the content of the section
*/
hr{
    border: none;
    border-top: 5px solid rgba(215, 0, 0, 0.6);

    height: 0;
    margin: 0;
}
 

.content{
    margin-top: -1px;
    background-color: rgba(39, 39, 39, 0.568);
    padding: 0.25vw;
}

.contentRow{
    display: flex;
    justify-content: space-between;
    margin: 0;
    padding: 0;
    max-height: 70vh;
}

.imgContainer{ 
    flex: 0 0 49.5%;
    display: inline;
    margin: 0.25vw;
}

.imgContainer p{
    display: none;
}

.imgContainer img{
    margin-top: -1px;
    width: 100%;
    height: 100%;
    box-shadow: 0 0 16px rgb(0, 0, 0); 
}

/* Style the Image Used to Trigger the Modal */
.imgContainer img{
    cursor: pointer;
    transition: 0.3s;
}

.imgContainer img:hover {opacity: 0.7;}



#title{
    position: absolute;
    top: 15px;
    width: 100%;
    text-align: center;
    color: #f1f1f1;
    font-size: 50px;
    text-shadow: 1px 0 0 black, 1px 1px 0 black;
    transition: 0.3s;
}

/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 2; /* Sit on top */
    padding-top: 0px; /* 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 */

    
    /* min width that works on ie6 as well: https://stackoverflow.com/a/3802655 */
    min-width:340px;        /* Suppose you want minimum width of 340px */
    width: auto !important;  /* Firefox will set width as auto */
    width:340px;            /* As IE6 ignores !important it will set width as 340px; */
}

/* Modal Content (Image) */
.modal-content,
video {
    float: left;
    margin: 5.5em 1.5em 1.5em 4em;
    max-width: 42vw;    
    max-height: 450px;
    box-shadow: 0 0 50px rgb(68, 68, 68); 
}

/* Caption of Modal Image (Image Text) */
#caption {
    display: block;
    clear: both;

    padding-top: 1em;
    margin-top: 4em;
    margin-right: 4em;
    margin-left: 4em;
    margin-bottom: 5em;

    width: auto; 

    color: #ccc;
    text-align: justify;
    text-indent: 2em;
    font-size: 26px;
}

/* Add Animation - Zoom in the Modal */
.modal-content, video, #caption { 
    animation-name: zoom;
    animation-duration: 0.6s;
}

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

/* The Close and Arrow Buttons */
.close, .arrow {
    position: absolute;
    color: #f1f1f1;
    font-size: 80px;
    text-shadow: 1px 0 0 black;
}

.close{
    top: 5px;
    right: 60px;
}

#left{
    top: 100px;
    left: 30px;
}

#right{
    top: 100px;
    left: 130px;
}

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

/* change caption layout */
@media only screen and (max-width: 1200px){

    #imgAndCap{
        width:100%
    }

    #title{
        font-size: 55px;
        margin-top: 1em;
    }

    .modal-content, video{
        float: none;
        display: block;
        margin-left: auto;
        margin-right: auto;
        margin-top: 10em !important;
        margin-bottom: -2em;
        max-width: 70vw;
    }
    #caption {
        padding-top: 0;
        margin-top: 4em;
        margin-left: 2em !important;
        margin-right: 2em;
        float: none;
        font-size: 36px;
    }

    #caption a{
        word-break: break-all;
    }

    .close{
        font-size: 120px;
    }
}

@media only screen and (max-width: 700px){
    .modal-content , video{
        width: 100%;
    }
}


b{
    display: block;
    width: 100%;
    text-align: center;

    font-size: 2em;
    margin: 3em 0 0 -2em;
}

form {
    font-size: 1.5em;
    display: flex;
    width:80vw;
    margin: 0.5em 9vw 5em 9vw; 
    padding: 0 1vw 1vw 1vw;
    background-color:rgba(90, 90, 90, 0.075);
}

.formColumn{
    flex-grow:1;
}

label {
    display:block;
    margin-top:20px;
    letter-spacing:2px;
}

input, textarea {
    width:30vw;
    height:25px;
    background:#ffebeb;
    border:2px solid #000000;
    padding:10px;
    margin-top:3px;
    font-size:0.9em;
    color:#000000;
}

textarea {
    height:210px;
    font-family:Arial, Helvetica, sans-serif;
}

#submit {
    width:8vw;
    height:46px;
    border:none;
    margin-top:145px;
    margin-right: 1.8em;
    cursor:pointer;

    border: 2px solid rgb(0, 0, 0);
    background-color:rgb(255, 109, 109);

    font-weight: bold;
    color:rgb(0, 0, 0);

    border-radius: 5px;
    box-shadow: 0 0 16px rgb(0, 0, 0); 
}

#submit:active{
    background-color:rgb(211, 90, 90);
    box-shadow: 0 0 7px rgb(0, 0, 0); 
}



/*mobile friendly*/
@media only screen and (max-width: 980px) {

    ul{
        font-size: 35px;
    }

    li a {
        padding: 10px 3px;
        border: 2px solid #462f2f;

    }

    #Bio{
        margin-top: 5em;
        margin-bottom: 6em;
        margin-left: 10%; 
        margin-right: 10%;
        display: block;
        font-size: 35px;
    }
     
    .icons{
        width: 80%;
    }

    .column1{
        margin-left: 0;
    }

    .column2{
        flex: 80%;
        margin: 0;
        font-size: 50px;
    }

    #resume{
        margin: 0 3em 0 3em;
        min-width: 300px;
    }

    #personalName{
        margin-top: 2em;
        margin-right: 0;
        margin-bottom: 0.5em;
        font-size: 75px;
        text-indent: 0;
        width: 100%;
        text-align: center;
        text-shadow: 1px 0 0 black, 1px 1px 0 black, 1px 0 1px black;
    }
    
    .socialMediaIcon{
        height: 2em;
        margin: 0.4em;
    }

    #descriptiveLine{
        display: block;
        font-size: 45px;
        font-weight: bold;
        text-indent: 0;
        text-align: center;
        width: 85%;
        margin-top: -3px;
        margin-bottom: 0;
        margin-left: auto;
        margin-right: auto;
    }

    header{
        font-size: 45px;
        font-weight: normal;
        text-shadow: 1px 0 0 black, 1px 1px 0 black, 1px 0 1px black;
    }

    #title{
        font-size: 50px;
        font-weight: normal;
        text-shadow: 1px 0 0 white;
    }

    b{
        margin: 3.5em 0 0 0;
        font-size: 80px;
        font-weight: normal;
        text-shadow: 1px 0 0 black, 1px 0 2px black, 1px 2px 0 black, 1px 2px 2px black;
    }

    #contact{
        font-weight: normal;
        text-shadow: 1px 0 0 black, 1px 1px 0 black, 1px 0 1px black;
    }

    form{
        margin-left: 5%; 
        width:90%;
        display: block;
        padding-top: 1em;
    }

    .formColumn{
        width:100%;
        text-align: center;
        font-size: 50px;
    }

    label{
        text-shadow: 1px 0 0 black, 1px 1px 0 black, 1px 0 1px black;
    }

    input{
        height: 2em;
        margin-bottom: 1em;
    }

    textarea{
        height: 10em;
    }

    input, textarea {
        width:80%;
    }

    #submit {
        width: 40%;
        height: 90px;
        
        font-size: 50px;

        margin-top: 2em;
        margin-left: 30%;
        margin-right: 30%;

        font-weight: normal;
        text-shadow: 1px 0 0 black, 1px 1px 0 black, 1px 0 1px black;
    }
}

@media only screen and (max-width: 936px) {
    ul{
        font-size: 3vw;
    }

    #Bio{
        margin-bottom: 2em;
    }

    #resume {
        font-size: 5vw;
        min-width: 60px;
    }

    #personalName, b{
        font-size: 10vw;
    }

    .socialMediaIcon, #descriptiveLine, .column2, header, .formColumn, #submit {
        font-size: 6vw;
    }

    #title{
        font-size: 6.5vw;
        margin-top: calc(70px - 6vw);
    }

    .close{
        font-size: 13vw;
        top: calc(20px - 6vw);
        right: calc(20px + 6vw);
    }

    .modal-content, video{
        margin-top: calc(90px + 12vw);
    }

    #caption {
        font-size: calc(16px + 2vw);    
    }

    #submit {
        height: 16vw;
    }
}

@media only screen and (max-width: 340px) {
    ul{
        font-size: 10px;
    }

    #resume {
        font-size: 17px;
        min-width: 60px;
    }

    #personalName, b{
        font-size: 34px;
    }

    .socialMediaIcon, #descriptiveLine, .column2, header, .formColumn, #submit{
        font-size: 20.4px;
    }
    
    #title{
        font-size: 22.1px;
        margin-top: 49.6px;
    }

    .close{
        font-size: 44.2px;
        top: 0;
        right: 40.4px;
    }

    .modal-content, video{
        margin-top: 130.8px;
        max-width: 272px;
    }

    #caption {
        font-size: 22.8px;    
    }
    
    #submit {
        height: 54.4px;
    }
}