/* ------- Color Scheme  ------ */
/* 
Han Purple: #4C29FA 
Light gray: #CFCFCF 
Medium Slate Blue: #7466F9
Black: #000000 
Cultured White: #F1F1F1 
*/

/* Make sure it is always in your CSS file */
/* image responsiveness code */
img,
object {
    max-width: 100%;
    height: auto;
}
/* End of image respponsiveness code */

/* Box Model Code */
* {
    box-sizing: border-box;
    /* border: 1px solid red; */
}

/* ------- General Styles ------- */
html {
    font-size: 1rem;
    scroll-behavior: smooth
}

h1 {
    text-align: center;
    color: #000;
    font-size: 2.5rem;
}

/* header nav ul {
    list-style-type: none;
    padding-left: 0; 
    margin: 0 auto;
    text-align: center;
} */

/* Dropdown Button */
.dropbtn {
    background-color: transparent;
    padding: 16px;
    font-size: 1.5rem;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
    color: #7466F9;
    font-family: 'Lato', Arial, Helvetica, sans-serif;
  }
  
  /* Dropdown button on hover & focus */
  .dropbtn:hover, .dropbtn:focus {
    color: #D4D4D4;
    transition-property: all;
    transition-duration: 0.3s;
    transition-timing-function: ease-in-out;
    transform: scale(1.1);
  }
  
  /* The container <div> - needed to position the dropdown content */
  .dropdown {
    /* position: relative; */
    display: inline-block;
  }
  
  /* Dropdown Content (Hidden by Default) */
  .dropdown-content {
    margin-top: 1rem;
    border-radius: .5rem;
    border: solid 2px #000;
    background: #fefefe;
    display: none;
    position: absolute;
    min-width: 160px;
    z-index: 1;
  }
  
  /* Links inside the dropdown */
  .dropdown-content a {
    color: #4C29FA;
    text-decoration: none;
    display: block;
    font-size: 1rem;
    font-family: 'Lato', Arial, Helvetica, sans-serif;
  }
  
  /* Change color of dropdown links on hover */
  .dropdown-content a:hover {
    background-color: transparent;
    color: #000;
    transition-property:none;
    border-bottom: none;
}

/* Show the dropdown menu (use JS to add this class to the .dropdown-content container when the user clicks on the dropdown button) */
.show {display:block;}

/* Full Page Grid  */
#my-page {
    display: grid;
    grid-template-areas:
        "header"
        "main"
        "footer";
}

#my-page header {
    grid-area: header;
}

#my-page main {
    grid-area: main;
}

#my-page footer {
    grid-area: footer;
}

#active {
    color: #D4D4D4;
    border-bottom: 3px solid #D4D4D4;
}

/* ----- Header Styles ------ */
header {
    background: #000;
    padding: 1.5rem;
}

header h1 {
    color: #7466F9;
    text-align: center;
    font-size: 3rem;
    margin: .5rem 0;
}

header h2 {
    color: #7466F9;
    text-align: center;
    font-size: 2.5rem;
    font-family: 'Lato', Arial, Helvetica, sans-serif;
    margin: 0;
}

header p {
    color: #f1f1f1;
    margin: 2rem;
}

.heading {
    display: flex;
    flex-direction: row;
    align-items: center;
    align-content: center;
    justify-content: space-between;
}

header nav ul li a {
    padding: 0.5rem;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
    color: #7466F9;
    font-family: 'Lato', Arial, Helvetica, sans-serif;
}

header nav ul li a:hover {
    color: #D4D4D4;
    transition-property: all;
    transition-duration: 0.3s;
    transition-timing-function: ease-in-out;
    transform: scale(1.1);
}

nav ul li, ul {
    list-style-type: none;
}

header nav ul li {
    margin: 1.5rem 0rem;
}

header i {
    margin: 1.5rem;
}

.hamburger {
    margin: 1rem;
    display: block;
    text-align: right;
}

#desktop-menu {
    display: none;
}

.logo-mobile {
    display: block;
    width: 150px;
    margin: 0 2rem;
}

header {
    background-image: url(../images/masthead.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    padding: 1.5rem;
}

/* ------- Main Section ------- */

body {
    background-color: #D4D4D4;
    font-family: 'Lato', Arial, Helvetica, sans-serif;
    color: #000;
    margin: 0;
    font-size: 1rem;
}


h1,h2,h3,h4,h5,h6 {
    font-family: 'Slabo 27px', serif, Georgia, 'Times New Roman', Times, serif;
    font-weight: bold;
    color: #4C29FA;
}

summary {
    font-family: 'Slabo 27px', serif, Georgia, 'Times New Roman', Times, serif;
    color: #000;
}

p {
    color: #000;
    line-height: 1.5;
}

.header-img {
    margin-top: 0;
    box-shadow: 5px 10px;
}

.header-img picture img {
    border-radius: 5%;
    border: double 13px #000;
    display: block;
    margin: 2rem auto;
    position: relative;
    top: 1rem;
}

.header-img figcaption {
    text-align: center;
    font-weight: bold;
    font-size: 1.5rem;
    color: #000;
}

main {
    margin: 2rem;
}

/* ----- Home ----- */

.hp-logo {
    display: block;
    margin: auto
}

.home hr {
    border: 4px solid #4C29FA;
    background-color: #4C29FA;
}

/* main>section:first-of-type {
    background: #CFCFCF;
    margin-top: 2rem;
    margin: left -0.5rem;
    margin: 0;
} */

.intro {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

.intro button {
    margin-top: 1rem;
    padding: 0 1rem;
    border: none;
    box-shadow: 0 0 7px rgb(112, 109, 109);
}

.intro button:hover {
    box-shadow: 0 0 10px #4C29FA;
    transition-property: all;
    transition-duration: 0.3s;
    transition-timing-function: ease-in-out;
    font-size: 1.2rem;
    transform: scale(1.1);
}

.animate__animated.animate__fadeInDown, 
.animate__animated.animate__fadeInUp {
    animation-duration: 1s;
}

.portfolio-title {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.card {
    text-decoration: none;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    max-width: 19rem;
    background: #F1F1F1;
    border-radius: 8px;
    padding: 3rem;
    margin: 2rem;
    box-shadow: 0 0 7px rgb(112, 109, 109);
    flex-wrap: wrap;
    justify-content: center;
}

.card:hover {
    box-shadow: 0 0 10px #4C29FA;
    /* border: 3px solid #4C29FA; */
    color: #F1F1F1;
    transition-property: all;
    transition-duration: 0.3s;
    transition-timing-function: ease-in-out;
    font-size: 1.2rem;
    transform: scale(1.1);
}

.card i {
    color: #4C29FA;
    padding: 0 1rem;
    text-shadow: 2px 2px 2px #000;
    font-size: 6rem;
}

.card h3 {
    color: #4C29FA;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.6rem
}

/* ---- Resume ---- */

.resume {
    margin: 2rem;
}

.resume h2 {
    text-decoration: underline;
    /*margin-top: 0rem;*/
}

h4 {
    font-size: 1rem;
    font-weight: bolder;
    color: #4C29FA;
    margin-bottom: -0.25rem;
}

/* Resume Icons  */
.job-title::before,
.education::before,
.GD::before,.Photo::before, 
.comms::before,.MG::before, 
.WD::before,.V::before, 
.UX::before,.SE::before {
    font-family: "Font Awesome 5 Free";
    padding-right: .5rem;
    font-size: 1.5rem;
    position: relative;
}

.job-title::before {
    Content: '\f0b1';
}

.education::before {
    content: '\f19d'
}

/* Relevant skills icons */
.GD::before {
    content: '\f5ad'
}

.Photo::before {
    content:'\f083'
}

.comms::before {
    content:'\f086'
}

.MG::before{
    content:'\f304'
}

.WD::before{
    content:'\f5fc'  
}

.V::before{
    content:'\f03d'
}

.UX::before{
    content:'\f5ae'
}

.SE::before{
    content:'\f025'
}

hr {
    border: 2px solid #000000;
    border-radius: 5px;
    overflow: hidden;
}

.relevant {
    display: grid;
    grid-template-columns: .5fr .5fr;
    grid-template-rows: .1fr 1fr;
    justify-items: start;
}

.relevant h2 {
    grid-column: 1/3;
}

/* ------- Footer ------- */

a {
    font-size: 1.3rem;
    color: #7466F9;
}

footer a {
    font-size: 1.3rem;
    color: #7466F9;
}

footer {
    background-color: #000;
    font-size: 1rem;
    text-align: right;
    color: #ffff;
    padding-left: 0;
    padding: 2rem;
}

footer p {
    font-size: 1.2rem;
    text-align: center;
    color: #7466F9;
}

ul {
    padding: 0;
}

footer nav ul {
    margin: 0;
    padding: 1rem;
    text-align: center;
}

footer nav ul li {
    margin: .5rem;
}


.back-to-top {
    color: #4C29FA;
    text-shadow: 2px 2px white;
    position: fixed;
    bottom: 1rem;
    right: 1rem;
}

/* ------- Contact Page --------*/
.contact-page {
    display: grid;
    justify-content: center;
}

.contact h1 {
    margin: 3rem;
}

.form {
    display: grid;
}

.p-c {
    grid-row: 7/8;
}

.check-box {
    grid-row: 8/9
}

form {
    background-color: #f1f1f1;
    box-shadow: 5px 5px #88878b;
    max-width: 40rem;
    padding: 1.5rem;
    margin: auto;
}

form h2 {
    text-align: center;
    text-decoration: underline;
    color: #4C29FA;
    font-size: 2rem;
}

label {
    color: #000;
    font-size: 1.4rem;
    font-weight: bold;
    font-family: 'Slabo 27px', serif, Georgia, 'Times New Roman', Times, serif;
}

input[type=text] {
    margin-bottom: 1rem;
    font-size: 1.4rem;
    width: 100%;
    border-radius: .25rem;
}

input[type=email] {
    margin-bottom: 1rem;
    font-size: 1.4rem;
    width: 100%;
    border-radius: .25rem;
}

input[type=submit] {
    background-color: #4C29FA;
    margin-top: 1rem;
    color: #ffff;
    border-radius: .25rem;
    padding: 0.75rem;
    font-size: 1.4rem;
    font-family: 'Slabo 27px', serif, Georgia, 'Times New Roman', Times, serif;
}

input[type=submit]:hover {
    color: #fff;
    background-color: #7466F9;
    border-radius: .25rem;
    padding: 0.75rem;
    font-size: 1.4rem;
    font-family: 'Slabo 27px', serif, Georgia, 'Times New Roman', Times, serif;
}

.social {
    margin: 1rem;
}

.social span {
    font-size: 1.2rem;
    padding-left: 2rem;
    text-decoration: none;
}

a {
    text-decoration: none;
}

.social h2 {
    color: #000;
    font-weight: bold;
    text-decoration: underline;
    text-align: center;
    font-size: 2rem;
}


form h3 {
    font-size: 1.4rem;
    font-weight: bold;
    color: #000;
    text-decoration: none;
}

textarea {
    font-size: 1.4rem;
    width: 100%;
    border-radius: .25rem;

}

textarea::placeholder {
    font-family: Helvetica, sans-serif;
}

.social ul {
    list-style-type: none;
    padding: 0;
    margin: 0 1.3rem
}

.social ul li a i {
    color: #4C29FA;
    margin: 1rem 0;
    text-decoration: none;
}

.flex-parent {
    display: flex;
    flex-direction: row;
    align-items: center;
}

/* ------- About Page -------  */

.about-me picture {
    float: left;
    clear: left;
    max-width: 100% auto;
    border: double 15px #000;
    display: block;
    margin: 0 1rem 1rem 0;
}

.about h1 {
    color: #4C29FA;
    margin: 0;
    text-align: left;
}

.hobbies h1 {
    margin-top: 1rem;
    text-align: left;
    display: flex;
    align-items: center;
}

.icons {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
    color: #4C29FA;
}

.about-title {
    margin-top: 2rem;
}

/* ----- Portfolio ------ */

.portfolio-title nav {
    padding: 0;
}

.portfolio-title nav ul {
    padding: 0;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    align-items: center;
}

.portfolio-title nav ul li {
    display: inline-block;
    margin: 1.5rem;
}

/* .portfolio-title nav ul li button {
    background-color: #F1F1F1;
    box-shadow: 2px 2px #000;
    color: #4C29FA;
    border: 1px solid #88878b;
    padding: 1rem 2rem;
    font-family: 'Lato', Arial, Helvetica, sans-serif;
    font-size: 1.2rem;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.portfolio-title nav ul li button i {
    margin-right: .5rem;
}

.portfolio-title nav ul li button:hover {
    background-color: #4C29FA;
    box-shadow: 2px 2px #000;
    border-bottom: 3px solid #000;
    color: #F1F1F1;
    font-family: 'Lato', Arial, Helvetica, sans-serif;
    font-size: 1.2rem;
    transition-property: all;
    transition-duration: 0.3s;
    transition-timing-function: ease-in-out;
    font-size: 1.2rem;
    transform: scale(1.05);
}

.portfolio-title #active {
    background-color: #4C29FA;
    color: #F1F1F1;
    box-shadow: 2px 2px #000;
    border-bottom: 3px solid #000;
}

button i {
    pointer-events: none;
} */

.portfolio .title h1{
    margin: 0;
}

/* Scroll Animation */
.reveal {
  position: relative;
  opacity: 0;
}

.reveal.active {
  opacity: 1;
}

.active.fade-left {
  animation: fade-left 1s ease-in;
}
.active.fade-right {
  animation: fade-right 1s ease-in;
}

@keyframes fade-left {
  0% {
    transform: translateX(-100px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fade-right {
  0% {
    transform: translateX(100px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

.img-right,
.img-left {
    margin: 3rem 1rem;
    display: grid;
    justify-items: center;
}

.img-right-vid,
.img-left-vid {
    margin: 3rem 1rem;
    display: grid;
    justify-items: center;
}

.img-right figure img,
.img-left figure img {
    align-items: center;
}

button {
    border-radius: .3rem;
}

/* Photography */

.row {
    display: flex;
    flex-wrap: wrap;
    padding: 0 4px;
    margin: 0 auto;
    background: transparent;
}

/* Create four equal columns that sits next to each other */
.column {
    flex: 25%;
    padding: 0 4px;
}

.column img {
    margin-top: 8px;
    vertical-align: middle;
    width: 100%;
}


/* ----- splide slider carousel ----- */

.splide ul li {
    padding: .5rem;
    list-style-type: none;

}

.splide img {
    max-width: 100%;
    max-height: 40rem;
    /* height: auto; */
    object-fit: cover;
}

.splide_list {
    max-height: 40rem;
}

/* --------Media Queries----- */

/* Responsive layout - makes a two column-layout instead of four columns */
@media screen and (max-width: 800px) {

    .column {
        flex: 50%;
        max-width: 50%;
    }

}

/* Responsive layout - makes the two columns stack on top of each other instead of next to each other */
@media screen and (max-width: 600px) {
    .column {
        flex: 100%;
        max-width: 100%;
    }

}

/* Landscape phone and up */
@media only screen and (min-width: 640px) {
    .resume {
        margin: 2rem;
    }

    p,
    li,
    label,
    input,
    select,
    textarea {
        font-size: 1.4rem;
    }

    form h3 {
        font-size: 1.4rem;
    }

    h3,
    h4 {
        font-size: 1.4rem;
    }

    .home p {
        margin: 0 4rem;
    }

    .section-body h2 {
        font-size: 2rem;
    }

    .main-content p {
        font-size: 1.4rem;
    }

    /* .project-nav nav ul li {
        margin: 3rem 1.5rem;
        text-align: left;
    } */

    .portfolio .flex-parent {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .portfolio .card {
        flex: 1 1 30rem;
    }

    .portfolio-sect .flex-parent {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .portfolio-sect {
        flex: 1 1 30rem;
    }

}

/* Portrait tablet and up */
@media only screen and (min-width: 768px) {

    .logo {
        width: 150px;
    }

    footer nav {
        display: block;
    }

    header nav {
        padding: 0;
        text-align: center;
        display: flex;
        flex-direction: row;
        justify-content: end;
        align-items: center;
    }

    header nav ul li {
        display: inline-block;
    }

    header nav ul li a {
        margin: 1rem;
    }

    p,
    li,
    label,
    input,
    select,
    textarea {
        font-size: 1.2rem;
    }

    form h3 {
        font-size: 1.2rem;
    }

    h3, h4 {
        font-size: 1.2rem;
    }

    footer nav ul {
        display: flex;
        flex-direction: row;
        justify-content: center;
    }

    .section-body h2 {
        font-size: 2.8rem;
    }

    .main-content p {
        font-size: 1.2rem;
    }

    .about .about-me {
        grid-column: 1/2;
    }

    .about .hobbies {
        grid-column: 1/3;
    }

    .project-nav nav ul li {
        margin: 2rem 1.5rem;
        text-align: left;
    }

    .project-nav ul li {
        display: inline-block;
    }

    .portfolio-title nav ul {
        flex-direction: row;
        justify-content: center;
    }

}

/* Landscape desktop (17”) and up */
@media only screen and (min-width: 960px) {

    .section-body,
    .about,
    .home,
    .resume {
        max-width: 70%;
        margin: 5rem auto;
    }

    .portfolio {
        max-width: 80%;
        margin: 5rem auto;
    }

    p,
    li,
    label,
    input,
    select,
    textarea {
        font-size: 1rem;
    }

    form h3 {
        font-size: 1rem;
    }

    h3,
    h4 {
        font-size: 1rem;
    }

    .section-body h2 {
        font-size: 3.2rem;
    }

    .main-content p {
        font-size: 1rem;
    }

    .class {
        min-height: 20rem;
    }

    .main-content p img {
        float: right;
        max-width: 10rem;
        margin-top: 1rem;
        margin-left: 1em;
    }

    .intro {
        margin: 2rem;
    }

    .intro p {
        margin: 0 15rem;
    }

    #desktop-menu {
        display: flex;
        justify-content: space-around;
    }

    #my-header {
        display: none;
    }

    .heading {
        display: none;
    }

    header nav ul {
        /* display: flex;
        flex-direction: row;
        justify-content: center;
        flex-grow: 1rem;
        flex-shrink: 1rem;
        flex-basis: 2rem; */
        margin-left: 1.5rem;
    }

    .resume {
        display: grid;
        grid-template-columns: .5fr .5fr;
        grid-template-rows: .1fr 1fr;
        grid-template-areas:
            "title title"
            "work-ep edu"
            "work-ep skills"
        ;
        grid-gap: 1rem;
    }

    .resume h1 {
        /* grid-column: 1/3; */
        grid-area: title;
        margin: 0;
    }

    .work-exp {
        /* grid-row: 2/3; */
        grid-area: work-ep;
    }

    .edu {
        grid-column: 2/3;
        grid-row: 2/3
    }

    .skills {
        grid-column: 2/3;
        grid-row: 3/4;
    }

    .contact-page {
        display: grid;
        grid-template-rows: .1fr;
        /* grid-template-areas: 
        "title title"
        "form social"
        "form logo" */
        ;

        /* grid-gap: 0 2rem ; */
    }

    .contact-title {
        /* grid-area: title; */
        grid-column: 1/2;
    }

    /* .contact-form {
        grid-area: form;
    } */

    .social {
        margin: 4rem 5rem 7rem;
        display: flex;
        justify-content: center;
    }

    .social ul li a span {
        padding: 0 1rem;
        font-size: 1.5rem;
    }

    .social ul li a {
        font-size: 1.2rem;
    }

    .social ul li:last-of-type {
        padding-right: 0;
    }

    .grid-item {
        padding: 1rem;
        text-align: center;
    }

    .img-right, .img-left {
        display: grid;
        grid-template-columns: 1fr 1fr;
        justify-items: center;
    }

    .img-right-vid,.img-left-vid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }

    .img-right figure {
        grid-column: 2/3;
    }

    .img-right-vid figure {
        grid-column: 2/3;
    }

    .img-right ul {
        grid-row: 1/2;
    }

    .img-right-vid ul {
        grid-row: 1/2;
    }

    .img-left ul {
        grid-column: 2/3;
        grid-row: 1/2;
    }

    .img-left-vid ul {
        grid-column: 2/3;
        grid-row: 1/2;
    }
}

@media only screen and (min-width: 1086px) {

    header nav ul {
        margin-left: 8rem;
    }

    .social ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .social ul li {
        display: inline-block;
        padding-right: 2rem;
    }
}

/* Widescreen desktop (24”) and up */
@media only screen and (min-width: 1160px) {

    p,
    li,
    label,
    input,
    select,
    textarea {
        font-size: 1.1rem;
    }

    form h3 {
        font-size: 1.1rem;
    }

    h3,
    h4 {
        font-size: 1.1rem;
    }

    .section-body h2 {
        font-size: 3.4rem;
    }

    .main-content p {
        font-size: 1.1rem;
    }

    .section-heading.about-me {
        background-position: 0 -100px;
    }

    .section-heading.hobbies {
        background-position: 0 -100px;
    }

    .section-heading.projects {
        background-position: 0 -300px;
    }

}

@media only screen and (min-width: 1536px) {

    header nav ul {
        margin-left: 36rem;
    }

    .resume {
        display: grid;
        grid-template-columns: .45fr .45fr .45fr;
        grid-template-rows: .1fr 1fr;
        grid-gap: 1rem;
    }

    .resume h1 {
        grid-column: 1/4;
    }

    .skills {
        grid-column: 3/4;
        grid-row: 2/3;
    }
}

@media only screen and (min-width: 1683px) {
    /* .about-me {
        margin-bottom: 6rem;
    } */
}