@font-face {
    font-family: public-pixel;
    src: url('../fonts/public_pixel.ttf');
}

html, body {
    height: 100vh;
    margin: 0;
    scroll-behavior: smooth;
}

.body-shirt {
    position: fixed;
    z-index: 2;
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0) url("../img/pixel-city-dark.jpg") no-repeat fixed center/cover;
    filter: brightness(80%);
}
/* NAV BAR CAROUSEL FUNCTION */

.photo_change1 {
    background: url('../img/mom-and-I.jpg') center / cover no-repeat !important;
}

.photo_change2 {
    background: url('../img/Bros-pic.jpg') center / cover no-repeat !important;
}

 /*--------------------------------------------------
                    Pop Up Section 
 ---------------------------------------------------*/
 .popup {
    display: flex;
    position: absolute;
    z-index: 1;
    width: 50%; height: 50%;
    opacity: 0;
    visibility: hidden;
}

.popup_appear {
    left: auto;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s linear .2s;
    animation: moveLeft .5s;
}

/* changes the font awesome icon size */
.popup i {
    font-size: 16em;
    text-shadow: 0 0 5px chartreuse;
}
/* changes popup text */
.popup p, h2 {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: bold;
    font-size: 18px;
    color: chartreuse;
    text-shadow: 2px 2px black;
    
}

.popup img {
    width: 100%;
}

.text_box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%; width: 50%;
    right: 50%;
    /* for when it closes */
}

.text_box p,h1,h2,h3,ul {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: bold;
    color: chartreuse;
    text-shadow: 2px 2px black;
    margin: 5px;
}

.text_box h1, h2, h3 {
    font-family: 'public-pixel' !important;
}

.text_box ul {
    font-size: 16px;
}

.text_box li {
    padding-top: 10px;
}
.img_container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%; width: 50%;
    left: 50%;
}

#thailandPopUp img {
    height: 50%; width: 100%; 
    border-radius: 5%; 
    padding-left: 10px;
}

/* EMAIL FORM */
#contact_form {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

#contact_form input, textarea{
    background-color: rgba(0,0,0,0.7);
    width: 80%;
    margin: 15px;
    color: chartreuse;
    border-color: chartreuse;
    border-radius: 8px;
    outline: none;
    font: 14px Charcoal, sans-serif;
}

#contact_form input {
    height: 25px;
}

#contact_form textarea {
    height: 100px;
}

#contact_form button {
    width: 50%; height: 25px;
    border-radius: 8px;
    background-color: rgba(127, 255, 0, 0.384);
    border: 2px solid chartreuse;
    font: bold 14px Charcoal, sans-serif;
    color: black;
    transition: width .5s ease-out;
}

#contact_form button:hover {
    width: 60%;
}

/*--------------------------------------------------
                    Project Section
 ---------------------------------------------------*/

.flex-container {
    display: flex;
    flex-wrap: wrap;
    height: 100%; width: 100%;
    padding: 20px 10px 10px 10px;
    background-color: rgba(0,0,0,0.7);
    border-radius: 8px;
}

#projectsPopUp {
    height: auto;
}

.project {
    height: 160px; width: 200px;
    position: relative;
    border: 2px solid chartreuse;
    margin: 15px auto;
    transition: all .3s ease-out;
    overflow: hidden;
    border-radius: 8px;
}

.project a {
    color: black;
}

.project img {
    height: 100%; width: 100%;
    border-radius: 8px;
    transform: scale(1.2);
    transition: transform .3s ease-out;
}

.project:hover {
    border-radius: 20px;
}

.project:hover img{
    transform: scale(1.1);
}

.project_overlay{
    position: absolute;
    text-align: center;
    top: 0; left: 0;
    height: 100%; width: 100%;
    opacity: 0;
    cursor: pointer;
    transition: all .3s
}

.project_overlay:hover {
    opacity: 1;
    background-color: rgba(0,0,0,0.7);
    color: chartreuse;
}

/* BACK-END PROJECTS MODAL */

/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 5; /* Sit on top */
    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.7); /* Black w/ opacity */
    scroll-behavior: smooth;
}

.modal-nav {
    position: fixed;
    width: 150px; height: 200px;
    left: 10px; top: 120px;
    display: block;
    text-align: center;
    animation: animateBottom .7s;
}

.modal-nav-link {
    color: chartreuse;
    font: bold 14px Charcoal, sans-serif;
    text-decoration: none;
}

.modal-nav-button{
    height: 30px; width: 100px;
    margin: 15px;
    display: flex;
    align-items: center; justify-content: center;
    background-color: rgba(0,0,0,0.7); /* Black w/ opacity */
    border: 2px solid chartreuse;
    border-radius: 15px;
}

.modal-header a {
    font-size: 25px;
    margin-left: 10px; margin-right: 10px;
    text-decoration: none;
    color: chartreuse;
}
  
/* Modal Content/Box */
.modal-content {
    background-color: rgba(0,0,0,0.9);
    text-align: center;
    margin: 10% auto; /* 10% from the top and centered */
    padding: 10px;
    border: 1px solid chartreuse;
    border-radius: 15px;
    width: 75%; /* Could be more or less, depending on screen size */
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
    animation: animateBottom .7s;
}

.section-text h2 {
    margin-top: 0;
    font-size: 40px;
}

.section-text p {
    color: chartreuse;
    font: bold 18px 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.section-text {
    width: 100%; height: 100%;
}

.section-img {
    width: 100%; height: 100%;
    margin-bottom: 45px;
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.section-img img {
    width: 900px; height: auto;
}

.modal-section {
    width: 80%;
    margin: auto;
    text-align: center;
}

@keyframes animateBottom {
    from {transform: translateY(100%) ; opacity:0}
    to {transform: translateY(0) ; opacity:1}
}
  
/* The Close Button */
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}
  
.close:hover,
.close:focus {
    color: rgba(127, 255, 0, 0.384);
    text-decoration: none;
    cursor: pointer;
}



/*------------------------------------------------
                    HOME PAGE 
--------------------------------------------------*/

@keyframes moveLeft {
    0%{
        transform: translateX(100%);
    }
    100%{
        transform: translateX(0);
    }
}

.background_text {
    position: absolute;
    z-index: 2;
    width: 50%;
    top: 25%; right: 25%;
    transition: all .3s ease-out;
    animation: moveLeft 2s 1, appear 2s 1;
}

.background_text_toggle {
    position: absolute;
    height: 150px; width: 400px;
    top: 10px; right: 10px;
    margin-top: 0;
    margin-right: 0;
    transition: all .3s ease-out;
}

.background_text p {
    font-family: public-pixel;
    font-variant: small-caps;
    font-size: 30px;
    text-align: center;
    color: chartreuse;
    text-shadow: 3px 3px black, 2px 2px black;
}

.background_text_toggle p {
    font-size: 20px;
}

 /*--------------------------------------------------
                    PAGES
 ---------------------------------------------------*/

.page_background {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 100%;
    width: 100%;
}

 /*--------------------------------------------------
                    MEDIA BREAKS
 ---------------------------------------------------*/
 @media only screen and (max-width: 768px) {
    /* HOMEPAGE */
    .background_text {
        transition: all .3s ease-out;
        animation: appear 2s 1;
        top: 20%;
    }
    
    .background_text_toggle {
        visibility: hidden;
        opacity: 0;
        width: 50%;
    }
    
    .background_text p {
        font-size: 17px;
        color: chartreuse;
        text-shadow: 3px 3px black, 2px 2px black;
        transition: all .3s ease-out;
    }
    /* END HOMEPAGE */

    /* POP UPS */

    .popup {
        flex-direction: column-reverse;
        align-items: center;
        width: 80%; height: auto;
        top: 12%;
    }

    .popup_appear {
        visibility: visible;
    }

    .popup i {
        font-size: 6em;
    }

    .popup h1 {
        font-size: 21px;
    }

    .popup h2 {
        font-size: 14px;
    }

    .popup h3 {
        font-size: 10px;
    }

    .text_box {
        width: 100%;
        left: 0;
        position: relative;
    }

    .text_box ul {
        font-size: 13px;
    }
    
    .img_container {
        position: relative;
        height: 30%; width: 100%;
        bottom: 50%; left: 0;
        z-index: -1;
    }
    
    #subPopUp img {
        height: 100%; width: 50%;
    }

    #costcoPopUp img {
        height: 100%; width: 50%;
    }
    
    #thailandPopUp .img_container {
        width: 65%;
    }

    #thailandPopUp img {
        height: 100%; width: 100%; 
        border-radius: 5%; 
        padding-left: 0;
    }

    /* PROJECT SECTION */

    .flex-container {
        width: 40%;
        background-color: rgba(0,0,0,0);
    }
    
    .project {
        height: 115px; width: 150px;
    }
/* makes it so only project popup is lower and in front of nav bar */
    #projectsPopUp {
        margin-top: -50px;
        z-index: 5;
    }
/* for the scroll bar */
    .scrollbar-style::-webkit-scrollbar {
        width: 6px;
        background-color: #f5f5f5
    }

    .scrollbar-style::-webkit-scrollbar-thumb {
        border-radius: 10px;
        box-shadow: inset 0 0 6px rgba(0,0,0,.3);
        background-color: #555;
    }

    .scrollbar-style::-webkit-scrollbar-track {
        box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
        border-radius: 10px;
        background-color: #F5F5F5;
    }

    /* BACK END PROJECTS MODAL */

    .modal-nav {
        display: none;
    }

    .modal-section {
        width: 95%;
    }

    .section-text h2 {
        font-size: 35px;
    }

    .section-text p {
        font-size: 12px;
    }

    .section-img img {
        width: 100%; height: 100%;
    }

    .section-img img:hover {
        transform: scale(1.5);
    }
}
