/*  General Styling  */
/*Affects entire document */
html {
    scroll-behavior:smooth;/*This ensures page scrolling is smooth when navbar buttons are clicked*/ 
}
/*  Body  */
body {
    margin: 0%;
    opacity:1;
    transition:3s opacity; /* Causes 3 second fade in*/
    letter-spacing:.2vw;
    font-family:Perpetua, Rockwell Extra Bold;
    font-size:1.5vw;
    overflow-x:hidden;
    user-select:none;
}

/* For fade effect when page is loaded */
body.fade-out {
    opacity: .1;
}

/*  Heading 1 elements  */
h1 {
    text-transform: uppercase;
    font-family: "Trebuchet MS", Optima;
    text-align: center;
    margin-top:3%;
    color: #1a1a1a;
}

/* Heading 1 element hover effect */
h1:hover {
    filter: grayscale(5%);
    transform: scale(1.1);
    transition: transform 1s;
}

/* Styling for portfolio title text */
.white-text {
    color:#fff;
    padding-top:10vh;
}

/* Paragraph elements */
p {
    font-family: Perpetua, Rockwell Extra Bold;
    text-align:justify;
    letter-spacing: .1vw;
    font-size: 1.5vw;
    padding-left: 1vw;
    padding-right: 1vw;
}

/* Paragraph element hover effect */
p:hover {
    transition: transform 1s;
    transform: scale(1.01);
}

/* Center class */
.center {
    text-align:center;
}

/* Center class hover effect - Only affects quote, github link and footer */
.center:hover {
    transition: transform 2s;
    transform: scale(1.1);
}

/* Anchor elements */
a {
    color: blue;
    cursor:pointer;
    text-decoration: underline;
}

/* Quotation element */
q {
    font-style:italic;
}

/* Image elements */
img {
    filter:grayscale(75%);
    border-radius:8px;
    max-width:100%;
    height:300px;
    display:block;
    margin:auto auto auto auto; /*Centers all images*/
}

/* Image element hover effects */
img:hover {
    filter:grayscale(5%);
}

/* The @media rule is used in media queries to apply different styles for different media/types of devices */
/* On screens 576px and smaller the images will be 100px tall and centered vertically in the column */
@media screen and (max-width:576px) {
    img {
        height:100px;
        margin-top:150px;
    }
}

/* Styling for footer */
footer {
    padding:2%;
    background-color:white;
}
/***** End of General styling ********/

/********* NAVBAR STYLING **********/
.Navbar {
    overflow:hidden;
    background-color:black;
    position:fixed;
    top:0;
    width:100%;
    z-index:1;
    -webkit-animation: moveNav 5s;
    animation: moveNav 5s;
}

/* moveNav animation effect for moving navbar in from left of the screen */
@keyframes moveNav {
    from {left:-100vw;}
    to {left:0vw;}
}

/* Navbar Links */
.Navbar a {
    float:left;
    display:block;
    color:white;
    padding:.75vw 1vw;
    text-decoration:none;
    font-family: Avant Garde, Helvetica;
    font-size:1.5vw;
    text-align:center;
    position:relative;
    -webkit-animation: moveNavText 5.75s;
    animation: moveNavText 5.75s;
}

/* moveNavText animation effect for moving navbar text from above view to navbar */
@keyframes moveNavText {
    from {top:-100vw;}
    to {top:0vw;}
}

/* Screens 576px and smaller will display navbar links equally distributed */
@media screen and (max-width:576px) {
    .Navbar a{
        width:20%;
        font-size:12px;
    }
}

/* Navbar hover effects */
.Navbar a:hover {
    background-color:#f4f4f4;
    color:black;
    font-weight:bold;
    cursor:pointer;
}

/* Navbar home button */
.Navbar a.active {
    background-color:darkgray;
}
/**** End of Navbar styling ****/

/**** Video styling ****/
/* Formatting background video */
#Source_Code {
    position: fixed;
    right:0;
    bottom:0;
    min-width:100%;
    z-index:-1;
}

/* Screens that are 576px and smaller won't display background video */
@media screen and (max-width:576px) {
    #Source_Code {
        display:none;
    }
}

/* Text over the video */
.Video_Text {
    background: rgba(0,0,0,0.5);
    color:white;
    width:100%;
    height:100vh;
    padding-top:2vh;
    position:relative;
    -webkit-animation: moveVideoText 5.75s;
    animation: moveVideoText 5.75s;
}

/* This animation effect causes overlay video text to move up from bottom of page */
@keyframes moveVideoText {
    from {top: -100vw;}
    to {top: 0vw;}
}
/******* END OF VIDEO STYLING *********/

/* Slideshow Styling */
#Slideshow_Background {
    background:rgba(255, 255, 255, 0.35);
}

.mySlides{
    display:none;
}

#Slideshow_Container {
    width:39.5vw;
    height:auto;
    padding-top:4%;
    position:relative;
    margin:auto;
}

.Slideshow_Images {
    vertical-align:middle;
    height:auto;
    box-shadow:0px 5px 10px 12px rgba(0, 0, 0, .75);
    width:100%;
}

/* Next and previous buttons */
.Previous, .Next {
    cursor:pointer;
    position:absolute;
    top:50%;
    width:auto;
    padding:2vw;
    color:darkgray;
    font-weight:bold;
    font-size:1.5vw;
    border-radius:0 3px 3px 0;
    user-select:none;
    transition:0.6s ease;
}

/* Positioning next button on right side */
.Next {
    right:0;
    border-radius:3px 0 0 3px;
}

/* Hover effect on slide show buttons */
.Previous:hover, .Next:hover {
    background-color:rgba(0, 0, 0, 0.8);
    color:white;
}

/* Slideshow text */
.text {
    color:white;
    padding:1vw;
    position:absolute;
    bottom:0;
    width:100%;
    text-align:center;
    font-family:Perpetua, Rockwell Extra Bold;
    letter-spacing:.1vw;
    font-size:1.5vw;
    background-color:rgba(0, 0, 0, 0.75);
    font-weight:bold;
    border-radius:0px 0px 7px 7px;
}

/* Styling of dots under slideshow */
.dot {
    cursor:pointer;
    height:1vw;
    width:1vw;
    margin:.25vw;
    background-color:white;
    border-radius:50%;
    display:inline-block;
    transition:background-color 0.6s ease;
    z-index:1;
}

/* Hover effect for dots */
.active, .dot:hover {
    background-color:black;
}

/* Fading animation for slideshow */
.fade {
    animation-name:fade;
    animation-duration:1.5s;
    -webkit-animation-name: fade;
    -webkit-animation-duration:1.5s;
}

@-webkit-keyframes fade {
    from {opacity:.4;}
    to {opacity:1;}
}

@keyframes fade {
    from {opacity:.4;}
    to {opacity:1;}
}

/*End of Slideshow Styling */



/***** TABLE STYLING ******/
* { /* The asterisk is a universal selector that applies this effect to all elements on the page */
    box-sizing:border-box;
}

.Column_1 {
    float:left;
    width:50%;
    padding:1.6%;
    height:450px;
    background-color:#f2f2f2;
}

/* Screens 576px and smaller will display a scroll bar if the text overflows column height */
@media screen and (max-width:576px) {
    .Column_1 {
        overflow:auto;
    }
}

.Column_2 {
    float:left;
    width:50%;
    padding:1.6%;
    height:450px;
    background-color: #37d3d2;
}

/* This inserts something after the content of the row */
.Row:after {
    content:""; /*Left blank, this allows the footer to display*/
    display:table;
    clear:both; /* This clears any other element from floating on the left or right of another element */
}
/****** END OF TABLE STYLING *******/

/**** CONTACT FORM STYLING ****/
/* Button used to open the contact form - fixed to bottom of page */
.Pop_Up_Button {
    position:fixed;
    bottom:1.75vw;
    right:1.75vw;
    width:25vw;
    background-color:white;
    color:black;
    border:solid black;
    cursor:pointer;
    -webkit-animation:movePopup 5s;
    animation:movePopup 5s;
}

/* movePopup animation moves button from far right to fixed location */
@keyframes movePopup {
    from {right:-40vw;}
    to {right:1.75vw;}
}

@-webkit-keyframes movePopup {
    from {right:-40vw;}
    to {right:1.75vw;}
}

/* Styling for contact form */
.form-popup {
    border:3px solid #f0f1f0;
    z-index:8;
    display:none;
    position:fixed;
    bottom:.5vw;
    right:.5vw;
}

/* Form styling */
.form-container {
    max-width:49vw;
    padding:1vw;
    background-color:white;
}

/* Input fields */
.form-container input[type=text] {
    height: 50px;
    width:100%;
    padding: 10px 0;
    line-height: 100px;
    /*padding:.93vw;*/
    margin:.6vw 0 .6vw 0;
    /*line-height: 20px;*/
    border:none;
    background:gainsboro;
    font-size:1vw;
}

/* General styling for all buttons */
button {
    font-family:"Trebuchet MS", Optima;
    letter-spacing:.3vw;
    font-size:1.5vw;
    font-weight:bold;
    padding:1.5vw;
    cursor:pointer;
    width:100%;
    height:auto;
}

/* Hover effect for contact and submit buttons */
button:hover, .form-container .btn:hover {
    color:white;
    background-color:black;
    transition-duration:1s;
    -webkit-transition-duration:1s;
    border-color:silver;
}

/* Submit button */
.form-container .btn {
    background-color:white;
    color:black;
    border-color:black;
    margin-bottom:1vh;
}

/* Close button */
.form-container .cancel {
    background-color:black;
    color:white;
    border-color:gray;
}

/* Styling for close button on hover */
.form-container .cancel:hover {
    color:white;
    background-color:turquoise;
    transition-duration:1s;
    -webkit-transition-duration:1s;
    border-color:black;
}

/******** END OF CONTACT FORM STYLING *********/
