/*GENERIC STYLING*/
html {
    scroll-behavior: smooth;
}

h1 {
    text-align: center;
    font-family:'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    font-size: 30px;
    margin-top: 0px;
    padding-top: 20px;
    color: grey;
}

h2 {
    text-align: center;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    font-size: 22px;
    color: black;
}

h3 {
    text-align: center;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    font-size: 22px;
    color: white;
}

p {
    z-index: 100;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 17px;
    text-align: center;
}

.white-text {
    color: white;
}

span {
    font-weight: bold;
}
/***END GENERIC***/

/***NAV STYLING***/
/***navigation bar style***/
nav {
    background-color: grey;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 20px;
    position: relative;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    overflow: hidden;
    z-index: 1;
    -webkit-animation: loadnav 5s;
    animation: loadnav 5s;
}

/***fades in when loaded***/
@keyframes loadnav {
    from {opacity: 0;}
    to {opacity: 1;}
}

/***navigation links style***/
a {
    color: white;
    font-size: 20px;
    text-decoration: none;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    padding: 8px;
    z-index: 1;
    margin-right: auto;
    margin-left: auto;
}

/***nav link hover***/
a:hover {
    color: rgba(197, 197, 197, 0.991);
}

/***nav link selected***/
.active {
    color:  #fed8a2;
    font-weight: bold;
    border-radius: 3px;
    font-size: 21px;
}

/***hover colour on selected nav link***/
.active:hover {
    color: rgb(221, 221, 221);
}

/***screen resizing nav***/
@media screen and (max-width: 800px){
    a{ 
        width: 25%;
    }
}

/***END NAV STYLING***/

/***INTRO STYLING***/
/***background image***/
#int {
    background: url(../Images/pexels-anna-nekrashevich-8534460.jpg);
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    display: block;
    height: 500px;
    width: 100%;
    z-index: -1;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    opacity: 0.7;
}

/***intro paragraph***/
.intro {
    font-size: 20px;
    -webkit-animation: loadtext 5s;
    animation: loadtext 5s;
}

/***fades in when loaded***/
@keyframes loadtext {
    from {opacity: 0;}
    to {opacity: 1;}
}

/***when screen is less than 800px the display is blocked***/
@media screen and (max-width: 800px){
    .intro {
        display: block;
        margin-left: 2%;
        margin-right: 2%;
    }
}

/***hover effect on intro paragraph text***/
.intro:hover {
    cursor: pointer;
}
/***END INTRO STYLING***/

/***SLIDESHOW STYLING***/
#slideshow-background {
    background: grey;
}

.mySlides {
    display: none;
}

#slideshow-container {
    width: 39.5vw;
    height: 39.5vw;
    padding-top: 4%;
    position: relative;
    margin: auto;
    overflow: hidden;
}

#slideshow-container a {
    text-decoration: none;
}

.slideshow-images {
    vertical-align: middle;
    height: auto;
    box-shadow: 0px 5px 10px 12px rgba(0, 0, 0, .75);
    width: 100%;
}

.previous, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 2vw;
    color: #fed8a2;
    font-weight: bold;
    font-size: 1.5vw;
    border-radius: 0 3px 3px 0;
    user-select: none;
    transition: 0.6s ease;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.previous:hover, .next:hover {
    background-color: #fed8a2;
    color: white;
}

.text {
    color: white;
    padding: 0.8vw;
    position: absolute;
    bottom: 0;
    width: 96%;
    text-align: center;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    letter-spacing: .1vw;
    background-color: black;
    font-weight: bold;
    border-radius: 0px 0px 0px 0px;
}

.dot {
    cursor: pointer;
    height: 1vw;
    width: 1vw;
    margin: .25vw;
    background-color: #fed8a2;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
    z-index: 1;
}

.dot:hover {
    background-color: white;
}

.fade {
    animation-name: fade;
    animation-duration: 1.5s;
    -webkit-animation-name: fade;
    -webkit-animation-duration: 1.5s;
}

@-webkit-keyframes fade {
    from {opacity: .4s;}
    to {opacity: 1;}
}

@keyframes fade {
    from {opacity: .4;}
    to {opacity: 1;}
}
/***END SLIDESHOW STYLING***/

/***ABOUT ME STYLING***/
/***about section background***/
.container1 {
    background-color: grey;
    height: 600px;
    display: table;
    width: 100%;
}

/***when the screen is resized the container height increases***/
@media screen and (max-width: 800px) {
    .container1 {
        height: 1300px;
    }
}

/***column 1***/
.column1 {
    float: left;
    width: 47%;
    background-color: grey;
    height: 510px;
    border-radius: 3px;
    margin-left: 18px;
    z-index: 1;
    color: white;
}

/***photo 1***/
.photo-container1 {
    height: 190px;
    width: 22%;
    position: absolute;
    margin-left: 255px;
    margin-right: 5px;
    margin-top: 30px;
    border-radius: 3px;
    border-style: double;
    border-color: white;
    border-width: 3px;
    overflow: hidden;
}

/***photo 2***/
.photo-container2 {
    height: 190px;
    width: 22%;
    position: absolute;
    margin-left: 50px;
    margin-right: 5px;
    margin-top: 150px;
    border-radius: 3px;
    border-style: double;
    border-color: white;
    border-width: 3px;
    z-index: 1;
    overflow: hidden;
}

/***photo 3***/
.photo-container3 {
    height: 190px;
    width: 22%;
    position: absolute;
    margin-left: 220px;
    margin-right: 5px;
    margin-top: 300px;
    border-radius: 3px;
    border-style: double;
    border-color: white;
    border-width: 3px;
    overflow: hidden;
}

/***fitting the image***/
img {
    object-fit: cover;
    height: 230px;
    width: 100%;
    margin-right: 1px;
}

/***column 2***/
.column2 {
    float: left;
    width: 47%;
    height: 510px;
    background-color: grey;
    border-radius: 3px;
    margin-right: 20px;
    margin-left: 20px;
    z-index: 1;
    color: white;
}

/***column2 text***/
.column2 p {
    text-align: center;
    padding-left: 30px;
    padding-right: 30px;
    padding-top: 10px;
    letter-spacing: 0.3px;
    line-height: 25px;
}

/***tech academy link***/
p a {
    font-size: 17px;
    font-weight: 500;
}

/***button to link to contact form***/
button {
    border-radius: 3px;
    border-style: solid;
    border-color: white;
    background-color: rgb(251, 225, 168);
    margin-left: 40%;
    margin-right: 40%;
    width: 17%;
    color: white;
    font-weight: bold;
    margin-top: 3%;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    font-size: 15px;
}

/***hover effects to button***/
button:hover {
    cursor: pointer;
    background-color: rgb(255, 255, 255);
    color: rgb(251, 225, 168);
    border-color: rgb(251, 225, 168);
    border-width: 2px;
    border-style: solid;
}

/***resizing entire about section for screens smaller than 800px***/
@media screen and (max-width: 800px){
    .column1 {
        width: 100%;
        margin: auto;
        display: block;
        height: 690px;
    }
    .column2 {
        width: 100%;
        margin: auto;
        display: block;
        height: fit-content;
        margin-bottom: 10px;
    }
    .photo-container1 {
        width: 70%;
        display: flex;
        flex-direction: column;
        margin-right: auto;
        margin-left: auto;
        position: relative;
        margin-bottom: 25px;
        margin-top: 30px;
    }
    .photo-container2 {
        width: 70%;
        display: flex;
        flex-direction: column;
        margin-right: auto;
        margin-left: auto;
        position: relative;
        margin-bottom: 20px;
        margin-top: 10px;
    }
    .photo-container3 {
        width: 70%;
        display: flex;
        flex-direction: column;
        margin-right: auto;
        margin-left: auto;
        position: relative;
        margin-bottom: 20px;
        margin-top: 10px;
    }

}

/***END ABOUT STYLING***/

/***PROJECT STYLING***/
/***project section background***/
.container2 {
    background-color: rgb(255, 255, 255);
    height: 1150px;
    display: table;
    width: 100%;
}

/***structure of container chanhes when resized***/
@media screen and (max-width:800px) {
    .container2 {
        height: 2000px;
        width: 100%;
        display: grid;
        justify-content: space-evenly;
        padding: 0;
    }
}

/***project box 1***/
.box1 {
    width: 47%;
    float: left;
    height: 300px;
    background-color: #ffbdab;
    margin-left: 90px;
    margin-top: 10px;
    border-radius: 5px;
    border-style: double;
    border-color: grey;
    border-width: 5px;
    opacity: 0.9;
    text-align: center;
}

/***git hub photo***/
.git {
    margin-top: 20px;
    height: 130px;
    width: 130px;
}

/***boxes display in a column when resized***/
@media screen and (max-width: 1200px) {
    .box1 {
        margin-left: auto;
        margin-right: auto;
        display: block;
        position: relative;
        width: 60%;
        height: fit-content;
        padding-bottom: 15px;
        margin-bottom: 0px;
        margin-top: 0;
    }

    .box2 {
        margin-left: 24%;
        margin-right: 24%;
        display: table;
        position: relative;
        width: 100%;
        height: fit-content;
        padding-bottom: 15px;
        margin-bottom: 10px;
        float: left;
    }

    .box3 {
       box-sizing: border-box;
       width: 100%;
       display: table;
       position: relative;
       left: 15%;
    }

    .box4 {
        display: none;

    }

}

/***project box 2***/
.box2 {
    width: 47%;
    float: right;
    height: 320px;
    background-color:  #d776d7;
    margin-right: 21px;
    margin-top: -60px;
    border-radius: 5px;
    border-style: double;
    border-color: rgb(255, 255, 255);
    border-width: 5px;
    opacity: 0.9;
    z-index: 100;
    padding-right: 2%;
    padding-left: 2%;
}

/***box 2 text***/
.box2 p {
    margin-bottom: 0;
    font-size: 16px;
}

/***box 2 hyperlinks***/
.box2 a {
    color: black;
    font-weight: lighter;
    font-size: 16px;
}

/***MPM logo photo***/
.mpm {
    height: 105px;
    width: 195px;
    margin-top: 25px;
    margin-left: auto;
    margin-right: auto;
    display: block;
}

/***project box 3***/
.box3 {
    width: 47%;
    float: left;
    height: 500px;
    background-color: #acc8e2; 
    margin-top: -50px;
    margin-bottom: 90px;
    margin-left: 60px;
    border-radius: 5px;
    border-style: double;
    border-color: white;
    border-width: 5px;
    opacity: 1;
    color: white;
    padding-right: 2%;
    padding-left: 2%;
}

/***project box text***/
.box3 p {
    font-size: 16px;
}

/***ONC logo photo***/
.onc {
    height: 110px;
    width: 250px;
    margin-left: auto;
    margin-right: auto;
    display: block;
    margin-top: 30px;
    z-index: 1;
}

/***project box 4***/
.box4 {
    width: 47%;
    float: right;
    height: 100px;
    background-color: rgb(251, 225, 168); 
    margin-top: -150px;
    margin-bottom: 40px;
    margin-right: 60px;
    border-radius: 5px;
    border-style: double;
    border-color: grey;
    border-width: 5px;
    opacity: 0;
}

/***photos don't display whent he screen is resized***/
@media screen and (max-width:1200px){
    .onc {
        display: none;
    }
    .mpm {
        display: none;
    }
    .git {
        display: none;
    }
}

/***END PROJECT STYLING***/

/***CONTACT STYLES***/
/***contact section background***/
.container3 {
    background: url(../Images/pexels-mike-murray-5594268.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    overflow: hidden;
    background-attachment: fixed;
    background-color: rgb(255, 255, 255);
    padding-bottom: 35px;
    border-style: double;
    border-width: 5px;
    border-color: grey;
    border-radius: 5px;
}

/***background changes to a color when screen size changes***/
@media screen and (max-width:800px){
    .container3 {
        background: url(none);
        background-color: rgba(255, 169, 212, 0.991);
        opacity: 0.9;
    }
}

/***background for form***/
.out-container {
    height: 410px;
    background-color: grey;
    border-radius: 5px;
    margin-right: 200px;
    margin-left: 200px;
    margin-top: 20px;
    text-align: center;
}

/***keeps form container in the center when the screen size changes***/
@media screen and (max-width:800px){
    .out-container {
        width: 80%;
        margin-left: auto;
        margin-right: auto;
    }
}

/***adds space to the boxes***/
form {
    padding-top: 20px;
}

/***input headings***/
label {
    color: white;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', 'Arial', 'sans-serif';
    font-size: 17px;
}

/***input boxes***/
input {
    border-radius: 5px;
    border-width: 1px;
    border-color: white;
    height: 30px;
    width: 190px;
    background-color: white;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    margin-top: 10px;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/***message box***/
.message {
    height: 70px;
    width: 230px;
    padding-left: 10px;
    padding-right: 10px;
    border-radius: 5px;
    border-width: 1px;
    border-color: white;
    background-color: white;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    margin-top: 10px;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/***submit button***/
.sub-button {
    height: 30px;
    width: 80px;
    margin-top: 50px;
    margin-left: auto;
    margin-right: auto;
    display: block;
    border-radius: 3px;
    border-color: rgb(255, 255, 255);
    background-color: rgb(251, 225, 168);
    color: white;
    border-width: 3px;
    border-style: solid;
    font-weight: bold;
}

/***input/hover effects***/
input[type=text]{
    color: black;
    font-size: 12px;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}

/***adds space to text in message box***/
input[type=text].message {
    line-height: 1px;
}

/***hover effects to the submit button***/
.sub-button:hover {
    cursor: pointer;
    background-color: rgb(255, 255, 255);
    color: rgb(251, 225, 168);
    border-color: rgb(251, 225, 168);
    border-width: 2px;
    border-style: solid;
}


/***END CONTACT STYLES***/

/***FOOTER STYLES***/
footer {
    height: 40px;
    color: grey;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    font-size: 15px;
    padding-top: 25px;
    text-align: center;
}
/***END FOOTER STYLES***/