/* ---------- Global ---------- */

* {
    padding: 0;
    margin: 0;
    overflow-x: hidden;
    border: 0;
    outline: 0;
    font-size: 100%;
    vertical-align: baseline;
    color: #FFFFFF;
}

body {
    background-color: #0d0d0d;
}

.hide {
    display: none;
}

/* ---------- Hero Banner Section ---------- */

.hero {
    background-image: url('../assets/img/hero-banner-darkened-min.jpg ');
    background-repeat: no-repeat;
    background-size: cover;
    height: 100vh;
    width: 100vw;
    background-position: center;
    position: relative;
}

.hero-wrapper {
    position: absolute;
    /* height 70vh because top 30% (100-30=70) */
    height: 70%;
    width: 100vw;
    text-align: center;
    top: 30%;
    left: 50%;
    transform: translate(-50%, 0);
}

.hero-wrapper h1 {
    font-family: 'Roboto', sans-serif;
    letter-spacing: 2px;
    color: #FFFFFF;
    font-size: 100px;
}

/* ---------- Social Links ---------- */

.social {
    display: flex;
    margin-top: 20px;
}

.social-links {
    text-align: center;
    width: 80%;
    margin: 0 auto;
}

.social img {
    display: inline-block;
    width: 60px;
    margin: 10px 20px;
    transition: 0.3s;
}

.social img:hover {
    opacity: 0.5;
}

.social a {
    text-decoration: none;
}

/* Social links 800px and under */

@media (max-width: 800px) {
    .social img {
        width: 50px;
        margin: 10px 20px;
    }
}

/* Social links 600px and under */

@media (max-width: 600px) {
    .social img {
        width: 50px;
        margin: 10px 10px;
    }
}

/* Social links 400px and under */

@media (max-width: 400px) {
    .social img {
        width: 40px;
        margin: 10px 10px;
    }
}

.scroll .down-arrow {
    text-align: center;
    position: absolute;
    transform: translate(-50%, 0);
    width: 3%;
    margin-bottom: 10px;
}

.down-arrow {
    animation: down 2s infinite;
}

/* up down animation */

@keyframes down {
    0%,
    100% {
        bottom: 0;
    }
    50% {
        bottom: 20px;
    }
}

/* Landing section under 800px */

@media (max-width: 800px) {
    .scroll .down-arrow {
        width: 7%;
    }
}

/* Landing section 600px and under */

@media (max-width: 600px) {
    .hero-wrapper h1 {
        font-size: 55px;
    }
    .hero-wrapper h2 {
        font-size: 20px;
    }
    .scroll .down-arrow {
        width: 8%;
        /*added jan 29, 2019*/
        padding-bottom: 90px;
    }
}

/* Landing section under 400px */

@media only screen and (max-width: 400px) {
    .hero-wrapper h1 {
        font-size: 60px;
    }
    .hero-wrapper h2 {
        margin-top: 10px;
        font-size: 20px;
    }
    .down-arrow {
        width: 10%;
        /*added jan 29, 2019*/
        padding-bottom: 90px;
    }
}

/* ---------- Projects Section ---------- */

/* re-done on august 8, 2018 to allow link-click on entire box */

.projects-section {
    width: 90%;
    margin: 0 auto;
    text-align: center;
}

.projects-section-title {
    font-weight: 700er;
    font-family: 'Roboto', sans-serif;
    font-size: 40px;
    margin-top: 30px;
}

hr {
    display: block;
    border: 0;
    border-top: 2px solid #ccc;
    margin: 20px auto 20px auto;
    width: 90px;
}

.wrapper {
    margin-bottom: 50px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
}

.project {
    width: 300px;
    height: 300px;
    background-image: url('../assets/img/p1-min.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 20px;
    margin: 20px 20px 0 20px;
    /* the text */
    text-decoration: none;
    font-weight: 700;
    font-family: 'Roboto', sans-serif;
    color: #FFFFFF;
    font-size: 30px;
}

.project:nth-child(2) {
    background-image: url('../assets/img/p2-min.jpg');
}

.project:nth-child(3) {
    background-image: url('../assets/img/p3-min.jpg');
}

.project .overlay {
    height: 100%;
    width: 100%;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.4s all ease;
    border-radius: 20px;
}

.overlay:hover {
    background-color: rgba(0, 0, 0, 0.5);
}

.go-to-github {
    text-decoration: none;
    font-weight: 700;
    font-family: 'Roboto', sans-serif;
    color: #FFFFFF;
    font-size: 20px;
    border: 1px solid white;
    border-radius: 5px;
    padding: 10px 10px;
    display: inline-block;
    transition: 0.5s;
}

.go-to-github:hover {
    color: #000000;
    background-color: #FFFFFF;
}

/* Go to github btn needs to have margin bottom under 400px */

@media (max-width: 400px) {
    .go-to-github {
        margin-bottom: 50px;
    }
}

@media (max-width: 800px) {
    .overlay {
        background-color: rgba(0, 0, 0, 0.5);
    }
}

@media (max-width: 800px) {
    .project {
        flex: 0 0 90%;
    }
}

/* ---------- About Section ---------- */

.about {
    overflow: hidden;
}

.left,
.right {
    padding: 2% 3%;
}

.left {
    text-align: center;
    overflow: hidden;
}

.left img {
    margin-bottom: 30px;
    width: 150px;
    border-radius: 50%;
}

.left h1 {
    font-family: 'Roboto Condensed', sans-serif;
    color: #FFFFFF;
    font-size: 40px;
    width: 80%;
    margin: 0 auto 30px auto;
}

.left h2 {
    font-family: 'Roboto Condensed', sans-serif;
    letter-spacing: 2px;
    color: #FFFFFF;
    font-size: 25px;
    width: 80%;
    margin: 0 auto 30px auto;
}

.left a {
    text-decoration: none;
    font-weight: 700;
    font-family: 'Roboto', sans-serif;
    background-color: #0d0d0d;
    color: #FFFFFF;
    padding: 12px 40px;
    border: 1px solid white;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.5s;
    display: inline-block;
    margin: 0 10px 0 10px;
}

.left a:hover {
    color: #000000;
    background-color: #FFFFFF;
}

.right {
    text-align: center;
}

.right img {
    width: 150px;
    margin-bottom: 30px;
    border-radius: 50%;
}

.right h1 {
    text-align: center;
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 700er;
    font-family: 'Roboto', sans-serif;
    font-size: 40px;
}

.message-sent {
    margin: 0 auto;
    width: 80%;
    text-align: center;
    height: 50px;
    line-height: 50px;
    background-color: #28a745;
    font-weight: 700er;
    font-family: 'Roboto', sans-serif;
    font-size: 20px;
    margin-top: 20px;
    display: none;
    border-radius: 2px;
}

.message-not-sent {
    margin: 0 auto;
    width: 80%;
    text-align: center;
    height: 50px;
    line-height: 50px;
    background-color: #dc3545;
    font-weight: 700er;
    font-family: 'Roboto', sans-serif;
    font-size: 20px;
    margin-top: 20px;
    display: none;
    border-radius: 2px;
}

/* Message sent and not sent under 600px */

@media (max-width: 600px) {
    .message-sent,
    .message-not-sent {
        width: 100%;
    }
}

/* About section above 900px */

@media (min-width: 900px) {
    /* Enabling flexbox property */
    .about {
        display: flex;
    }
    .left,
    .right {
        flex: 1;
    }
}

/* About section under 800px */

@media (max-width: 800px) {
    .left h1 {
        font-size: 60px;
    }
    .left h2 {
        font-size: 30px;
    }
    .left a {
        font-size: 30px;
        padding: 10px 10px;
        width: 80%;
        margin-top: 10px;
    }
}

/* About section under 600px */

@media (max-width: 600px) {
    .left h2 {
        font-size: 20px;
    }
    .left a {
        font-size: 20px;
        padding: 5px 10px;
        width: 80%;
        margin-top: 10px;
    }
}

/* About section under 400px */

@media (max-width: 400px) {
    .left img {
        width: 120px;
    }
    .left h1 {
        font-size: 40px;
    }
    .left h2 {
        font-size: 22px;
        width: 90%;
        letter-spacing: normal;
    }
    .left a {
        font-size: 1.2rem;
        padding: 5px;
    }
    .right img {
        margin-top: 60px;
        width: 100px;
    }
    .right h1 {
        font-size: 40px;
    }
}

/* ---------- About Section Form CSS ---------- */

/* Style inputs, select elements and textareas */

input[type=text],
input[type=email],
select,
button,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    resize: vertical;
    text-decoration: none;
    font-weight: 700;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    /* fixed the "cant see form text bug": */
    color: black;
}

button {
    resize: none;
}

/* Style the label to display next to the inputs */

label {
    padding: 12px 12px 12px 0;
    display: inline-block;
}

/* Style the submit button */

button[type=button] {
    background-color: #0d0d0d;
    color: #FFFFFF;
    padding: 12px 20px;
    border: 1px solid white;
    border-radius: 4px;
    cursor: pointer;
    width: 80%;
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 700;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    transition: 0.5s ease;
}

button[type=button]:hover {
    color: #000000;
    background-color: #FFFFFF;
}

/* Style the container */

.container {
    border-radius: 5px;
    padding: 20px;
}

/* Floating column for inputs: 75% width */

.col-75 {
    margin: 10px auto 0 auto;
    width: 80%;
}

/* Responsive layout - when the screen is less than 600px wide, make the two columns stack on top of each other instead of next to each other */

@media screen and (max-width: 600px) {
    .col-25,
    .col-75,
    button[type=button] {
        width: 100%;
        margin-top: 10px;
    }
}

.footer-section {
    border-top: 1px solid #eee;
    width: 90%;
    height: 100%;
    margin: 0 auto;
    padding: 30px 10px;
    text-align: center;
    position: relative;
}

.footer {
    font-weight: 700;
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    color: #FFFFFF;
    text-align: center;
}

.footer a {
    text-decoration: none;
    padding: 10px;
    border: 1px solid white;
    color: #FFFFFF;
    height: 100%;
    width: 150px;
    margin: 10px auto;
    border-radius: 10px;
    display: none;
}

@media (max-width: 500px) {
    .footer-section {
        padding: 10px 10px 30px 10px;
    }
    .footer a {
        display: block;
        margin: 0px auto 10 auto;
    }
}

.top-button {
    height: 100%;
    margin: 0 auto;
    text-align: center;
}

.up-arrow img {
    width: 50px;
    margin-bottom: 20px;
}