/***** GENERAL STYLING *****/

/* Affects the entire document */

html {
    scroll-behavior: smooth;
}
/* Body */
body {
        margin: 0%;     /* This ensures our site displays all the way to the edge of the browser screen */
        opacity: 1; /* Transition affecting the page load fade in effect */
        transition: 3s opacity; /* This causes a 3 second fade in */
        letter-spacing: .2vw;   /* 1vw is equal to 1% of the viewport width */
        font-family: Avant Garde, Helvetica;
        font-size: 1.5vw;
        overflow-x: hidden; /* prevents the horizontal scroll bar from appearing when quote is hovered over */
        user-select: none;  /* prevents text on the page from being highlighted by the user */
}

body.fade-out {     /* This sets sets the level of opacity at the start of page load to .1 */
    opacity: .1;
}

/* Heading 1 elements */
h1 {
    text-transform: uppercase;
    /* Capitalizing all h1 headings */
    font-family: Garamond, serif;
    /* Sets the font family of all h1 headings */
    text-align: center;
    /* Centering all h1 elements */
    margin-top: 3%;
    /* Adds a small margin above h1 elements */
    color: #FFF;
}

/* Heading 1 element hover effect */
h1:hover {
    filter: grayscale(5%);
    /* Adds a slightly gray filter to the h1 headings when hovered over */
    transform: scale(1.1);
    /* When the h1 elements are hovered over they increase in size by 1.1 */
    transition: transform 1s;
    /* This causes the transformation to last 1 second */
    background: linear-gradient(45deg, #3b7db8, #4c5c96, #aa72c0, #aa72c0);
    border-radius: 10px;
}

/* Styling for portfolio title text */
.white-text {
    color: #fff;
    /* This is used to change the color of the portfolio title text */
    padding-top: 1vh; /* Adds padding to the top of the portfolio text */
}

/* Paragraph elements */
p {
    font-family: Garamond, serif Bold;
    text-align: justify;
    /* Justify text within paragraph elements */
    letter-spacing: .1vw;
    /* This expands the text slightly */
    font-size: 2.5vw;
    padding-left: 1vw;
    /* Adds padding to the left of the paragraph element */
    padding-right: 1vw;
    /* Adds padding to the right of the paragraph element */
    color: rgb(183, 183, 183)
}

/* Paragraph element hover effect */
p:hover {
    transition: transform 1s;
    /* This makes the transform effect last 1 second */
    transform: scale(1.01);
    /* This makes the paragraphs increase slightly in size when hovered over */
}


/* Center class - this applies to all elements with the class "center" */
.center {
    text-align: center;
    /* This center aligns the text */
}

/* Center class hover effect - This only affects the quote, github link, and footer */
.center:hover {
    transition: transform 2s;
    /* This makes the transform effect last 2 seconds */
    transform: scale(1.1);
    /* This makes the elements with class "center" increase in size by 1.1 when hovered over */
}

/* Anchor elements */
a {
    color: rgb(30, 103, 116);
    /* This ensures all links are blue */
}

/* Quotation elements */
q {
    font-style: italic;
    /* This makes the quote italicized */
}

/* Image elements */
img {
    filter: grayscale(75%);
    /* This rids our pictures of 75% of their color */
    border-radius: 8px;
    /* Gives all images slightly rounded corners */
    max-width: 100%;
    /* Ensures all images stay within the width of their container */
    max-height: 100%;
    /* Sets the height of all images */
    display: block;
    /* By specifying block display we can ensure our images are able to be centered */
    margin: auto auto auto auto; /* centers all images*/
}

/* Image element hover effects */
img:hover  {
    filter: grayscale(5%);
    /* Brings back most of the image's color when hovered over */
}

/* 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 element */
footer {
    padding: 2%;
    /* This gives the footer padding that is equal to 2% of the width of the element's area */
    background-color: rgb(86, 74, 97);
}

/***** END OF GENERAL STYLING *****/

/***** NAVBAR STYLING *****/
.Navbar {
    overflow: hidden;
    /* This ensures that any content that overflows beyond the boundary of our nav bar is not displayed */
    background-color: rgb(96, 79, 99);
    /* This colors the navbar black */
    position: fixed;
    /* This keeps the navbar at the top of the screen as we scroll */
    top: 0;
    /* This ensures no space is displayed above the navbar */
    width: 100%;
    /* This makes the navbar span the entire width of the page */
    z-index: 1;
    /* This ensures other elements don't display over the navbar */
    -webkit-animation: moveNav 5s;
    /* This applies the moveNav animation below for Safari 4.0 - 8.0 */
    animation: moveNav 5s;
    /* This applies the moveNav animation for all other browsers */
}

/* moveNav animation effect for moving the nav bar in from the left of the screen */
@keyframes moveNav {
    from {
        left: -100vw;
    }

    /* The navbar is starting off screen to the left */
    to {
        left: 0vw;
    }

    /* This moves the navbar into place on the screen */
}

/* Navbar links */
.Navbar a {
    float: left;
    /* This specifies that the text floats on the left on the navbar */
    display: block;
    /* This ensures that other text will be displayed on the same line or row, instead of a new line */
    color: white;
    /* This is the font color for text on our navbar */
    padding: .75vw 1vw;
    /* This adds padding around our text */
    text-decoration: none;
    /* This gets rid of the underlines under the text on our navbar */
    font-family: Garamond, serif;
    /* This specifies the font family for text on our navbar */
    font-size: 16px;
    /* This specifies the font size for text on our navbar */
    text-align: center;
    /* This centers the text within its container */
    position: relative;
    /* This sets the text relative to its normal positioning, allowing us to use the animation below */
    -webkit-animation: moveNavText 5.75s;
    /* Animation for Safari 4.0 - 8.0 */
    animation: moveNavText 5.75s;
    /* Applies the moveNavText animation for 5.75s */
    border-radius: .75vw;
}

/* moveNavText animation effect for moving the navbar text from above the view to the navbar */
@keyframes moveNavText {
    from {
        top: -100vw;
    }

    /* This sets the navbar text 100% above the viewport */
    to {
        top: 0vw;
    }

    /* This lowers the navbar text onto the navbar */
}

/* Screens 576px and smaller will display navbar links equally distributed */
@media screen and (max-width: 576px) {
    .Navbar a {
        width: 25%;
        /* This makes each link take up 1/4 of the navbar */
        font-size: 12px;
    }
}

/* Navbar hover effects */
.Navbar a:hover {
    background: linear-gradient(45deg, #3b7db8, #4c5c96, #aa72c0, #aa72c0);
    /* Defines the background color that will display when you hover over the link */
    color: rgb(86, 74, 97);
    /* This defines the font color that will display when navbar a elements are hovered over */
    font-weight: bold;
    /* This makes the text on the navbar bold when hovered over */
    cursor: pointer;
    transition: 0.5s ease-in;   /* creates a smooth transition for hover trigger */
}

/* Navbar home button */
.Navbar a.active {
    /* This targets the a element on the navbar with the "active" class */
    background-color: darkgray;
}

/***** END OF NAVBAR STYLING *****/

/***** VIDEO STYLING *****/
/* Formatting for background video */
#Header_Video {
    position: fixed;
    /* This fixes the video to the page */
    right: 0;
    /* This ensures there is no space between the edge of the video and the edge of the page */
    bottom: 0;
    /* This ensures no space between the bottom of the video and the bottom of the page */
    min-width: 100%;
    /* This ensures the video is displayed across the full width of the page */
    z-index: -1;
    /* This places the video behind the other elements on the page */
}

/* Screens that are 576px and smaller will not display the background video */
@media screen and (max-width: 576px) {
    #Header_Video {
        display: none;
    }
}

/* Texts over the video */
.Video_Text {
    background: rgba(0, 0, 0, 0.5);
    /* This provides a semi-transparent background for the text to sit over */
    color: white;
    /* Makes the font color white */
    width: 100%;
    /* Ensures the video-text container fills the width of the video */
    padding-top: 2vh;
    /* This adds padding around the video-text container so that the background goes slightly beyond the text */
    position: relative;
    /* This sets the text relative to its normal positioning, allowing us to use the animation below */
    -webkit-animation: moveVideoText 5.75s;
    animation: moveVideoText 5.75s;
}

/* This animation effect causes the overlay video text to move up from the bottom of the page upon page load */
@keyframes moveVideoText {
    from {top: -100vw;}
    /* This sets the position of the video text to above the viewport */
    to {top: 0vw;}
    /* This moves the video text to the normal positioning on the viewport */
}

/***** END OF VIDEO STYLING *****/

/***** Slideshow Styling ****/
#Slideshow_Background {
    background: rgba(142, 95, 167, 0.475);  /* creates a slightly transparent white bg over video */
}

.mySlides {
    display: none;  /* This prevents from images from being displayed. We will used JS to display these */
}

        /* slideshow section / Container */
#Slideshow_Container {
    width: 39.5vw;
    height: auto; /* height of container is automatically adjusted for content it is displaying */
    padding-top: 4%; /* Small bit of padding at top of slideshow container */
    position: relative;
    margin: auto;   /* centers the container on the page */
}

#Slideshow_Container a {
    text-decoration: none;
}

        /* Images contained in the slideshow */
.Slideshow_Images {
    vertical-align: middle;     /* centers images vertically within slideshow container */
    height: 50%;       /* height of images automatically adjusted based on content */
    box-shadow: 0px 5px 10px 12px rgba(74, 198, 196, 0.75);     /* Adds a shadow around the slideshow images */
    width: auto;
}

        /* Next and Previous buttons */
.Previous, .Next {
    cursor: pointer;
    position: absolute;     /* next and previous buttons positioned relative to the slideshow container */
    top: 50%;       /* moves buttons 50% from the top of the slideshow container */
    width: auto;        /* width of buttons auto adjusted based on content */
    padding: 2vw;       /* padding, 2% of viewport width */
    color: #2fb6d8;
    font-weight: bold;
    font-size:  1.5vw;
    border-radius: 0 3px 3px 0;     /* slightly rounded border on the top and bottom right corners */
    user-select: none;      /* Makes it so the user cannot highlight text */
    transition: 0.6s ease; /* transition details of the hover for these elements */
}

        /* positioning next/previous buttons on the right side */
.Next {
    right: 0;       /* moves button to right side*/
    border-radius: 3px 0 0 3px;     /* changes border radius to top and bottom left of button */
}

        /* Hover effect on slideshow buttons */
.Previous:hover, .Next:hover {
    background-color: rgba(189, 130, 161, 0.50);        /* makes arrow bg a transparent color */
    color:#FFF      /* makes arrows white when hovered over */
}

        /* Slideshow Text */
.text {
    color: #FFF;
    padding: 1vw;
    position: absolute;     /* sets the text position within the image */
    bottom: 0;      /* sets text at the bottom of the image */
    width: 100%;        /* element covers the full width of the image */
    text-align: center;
    font-family: Perpetua, Rockwell Extra Bold;
    letter-spacing: .1vw;   /* Tiny bit of spacing between letters */
    font-size: 1.5vw;
    background-color: rgba(0, 0, 0, 0.5);
    font-weight: bold;
    border-radius: 0 0 7px 7px;     /* gives the text background rounded corners on the bottom left and right */
}

        /* Dot styling */
.dot {
    cursor: pointer;
    height: 1vw;
    width: 1vw;
    margin: .25vw;      /* adds additional spacing between dots */
    background-color:antiquewhite;
    border-radius: 50%;     /* makes the dots circles by rounding the corners */
    display: inline-block;
    transition: background-color 0.6s ease;     /* dots transition to a different color when clicked or hovered */
    z-index: 1;     /*displays dots above other elements */
}

        /* Hover effect for slideshow dots */
.active, .dot:hover {
    background-color: #ca87b7c8;        /* sets color of the dots when active */
}

        /* Fading animation for slideshow */
.fade {
    animation-name: fade;       /* fade animation defined below */
    animation-duration: 1.5s;       /* animation lasts for 1.5s */
    -webkit-animation-name: fade;
    -webkit-animation-duration: 1.5s;
}

@-webkit-keyframes fade {
    from {opacity: .4;}     /* image starts transparent */
    to {opacity: 1;}        /* image ends opaque */
}

@keyframes fade {
    from {opacity: .4;}     /* image starts transparent */
    to {opacity: 1;}        /* image ends opaque */
}

/***** End Slideshow Styling ****/


/***** TABLE STYLING -  this section covers the styling of the columns and rows within the table *****/
* { box-sizing: border-box;}

.Column_1 {
    float: left;
    width: 50%;
    /* This ensures the column takes up half of the page width */
    padding: 1.6%;
    /* This ensures there is space between the top of the column and our headings */
    height: 450px;
    /* This sets the height of the column to 400px -  this may need to be adjusted depending on the text you enter */
    background-color: #4d3c51;
    /* Sets the background color of the columns with class Column_1 */
}

.Column_2 {
    float: left;
    width: 50%;
    padding: 1.6%;
    height: 450px;
    background-color: #3a1c4e;
}

/* This inserts something after the content of selected elements (in this case the elements with class "Row") */
.Row:after {
    content: "";
    /* By leaving this blank, we are allowing the footer (covered lower down) to be displayed - removing it makes the footer overwrite a column */
    display: table;
    /* The display property specifies the type of display behavior; the table value tells the browser to treat the element as a table */
    clear: both;
    /* This clears any other elements from floating on the left or the right of an element */
}

/***** END OF TABLE STYLING *****/

/***** CONTACT FORM STYLING *****/
        /* button used to open contact form, fixed at bottom of page */
.Pop_Up_Button {
    position: fixed;
    bottom: 1.75vw;     /* position slightly up from the bottom of the viewport */
    right: 1.75vw;
    width: 25vw;
    background: linear-gradient(45deg, #3b7db8, #4c5c96, #aa72c0, #aa72c0);
    color: black;
    border: solid #623b7e;
    cursor: pointer;
    -webkit-animation: movePopup 5s;
    animation: movePopup 5s;        /* animation set for 5 seconds*/
}

/* movePopup animation moves the button from the the right side of the screen to its fixed location */
@keyframes movePopup {
    from {right: -40vw;}
    to {right: 1.75vw;}
}

/* additional form styling */
.form-popup {
    z-index: 8;     /*Ensures the contact form shows above everything else */
    display: none;      /*does not display by default; use JS to display */
    position: fixed;        /* stays in the same location no matter what */
    bottom: .5vw;
    right: .5vw;
}

.form-container {
    max-width: 49vw;
    padding: 1vw;
    background: linear-gradient(45deg, #3b7db8, #4c5c96, #aa72c0, #aa72c0);
}

/* Input fields */
.form-container input[type=text] {
    width: 100%;        /* input boxes completely fill form container */
    padding: .93vw;
    margin: .6vw 0 .6vw 0;      /*puts space between input boxes and labels */
    border: none;
    background: gainsboro;
    font-size:  1vw;
}

button {
    font-family: 'Courier New', Courier, monospace;
    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: linear-gradient(45deg, #3b7db8, #4c5c96, #aa72c0, #aa72c0);
    transition-duration: 1s;
    -webkit-transition-duration: 1s;
    border-color: #328eac;
}

/* submit button */
.form-container .bton {
    background-color: white;
    color: black;
    border-color: black;
    margin-bottom: 1vw;
    
}

/*close button */
.form-container .cancel:hover {
    color: white;
    background-color: darkred;
    transition-duration: 1s;
    -webkit-animation-duration: 1s;
    border-color: black;
}

/***** END OF CONTACT FORM STYLING *****/

/*** Media Query Section -  rules for p font size for different screen sizes **/
@media screen and (max-width: 528px) {
    p {
        font-size: 3.75vw;
    }
}

@media screen and (min-width: 528px) and (max-width: 660px) {
    p {
        font-size: 3.5vw;
    }
}

@media screen and (min-width: 661px) and (max-width: 799px) {
    p {
        font-size: 2.75vw;
    }
}

@media screen and (min-width: 800px) and (max-width: 924px) {
    p {
        font-size: 2.5vw;
    }
}

@media screen and (min-width: 925px) and (max-width: 1050px) {
    p {
        font-size: 2.25vw;
    }
}

@media screen and (min-width: 1051px) and (max-width: 1310px) {
    p {
        font-size: 2vw;
    }
}

@media screen and (min-width: 1311px) and (max-width: 1535px) {
    p {
        font-size: 1.75vw;
    }
}

@media screen and (min-width: 1536px) and (max-width: 2269px) {
    p {
        font-size: 1.5vw;
    }
}

@media screen and (min-width: 2270px) {
    p {
        font-size: 1.35vw;
    }
}

/*media rule for navbar links for different screen sizes ; 
/*screens 1080px and smaller will display links evenly distrubuted */
@media screen and (max-width: 1080px) {
    .Navbar a{
        width: 20%;     /* sets each link sie to 1/5 of the navbar */
        font-size:  2.5vw;
    }
}

/* media rules to enlarge the font of the text for smaller screens */
@media screen and (max-width: 1080px) {
    .quote {
        font-size: 3.5vw;
    }
    .white-text {
        font-size: 4.5vw;
    }
}

/* media rules to increase the size of the columns for larger screens */
@media screen and (min-width: 1725px) {
    .Column_1 {
        height: 550px;
    }
    .Column_2 {
        height: 550px;
    }
}

/* media rule to remove margin-top from h1 elements for xtra large screens */
@media screen and (min-width: 2000px) {
    hi{
        margin-top: 0;
    }
}

/**** End of Media Query section ***/