* {
    box-sizing: border-box;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

body,h1,h2,h3,h4,h5,h6 {font-family: "Lato", sans-serif;}
body, html {
  height: 100%;
  color: #777;
  line-height: 1.8;
}

/* Create a Parallax Effect */
.bgimg-1, .bgimg-2, .bgimg-3 {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* First image (Logo. Full height) */
.bgimg-1 {
  background-image: url('w3images/p1.png');
  min-height: 100vh;
}

/* Second image (Portfolio) */
.bgimg-2 {
  background-image: url("bkgs/27707-tropical-1164934.jpg");
  min-height: 400px;
}

/* Third image (Contact) */
.bgimg-3 {
  background-image: url("bkgs/maddie-difilippo-J2JLQm2Hbxo-unsplash.jpg");
  min-height: 400px;
}

.w3-wide {letter-spacing: 10px;}
.w3-hover-opacity {cursor: pointer;}

/* Transparent navbar at top of page */
.w3-top {
    background-color: transparent;
    transition: background-color 0.4s ease;
}

/* Navbar after scrolling */
.w3-top.scrolled {
    background-color: rgba(0, 0, 0, 0.90);
}

@media only screen and (max-device-width: 1600px) {
  .bgimg-1, .bgimg-2, .bgimg-3 {
    background-attachment: scroll;
    min-height: 400px;
  }
}

.intro-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.intro-image,
.intro-text {
    width: 50%;
    box-sizing: border-box;
    padding: 12px;
}

.intro-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.intro-image img {
    max-width: 100%;
    height: auto;
}

#contact a {
    text-decoration: none;
}

#contact a:hover {
    text-decoration: underline;
}

.home-logo {
    display: block;
    height: auto;
    margin: 0 auto;
}

/* Mobile layout */
@media screen and (max-width: 600px) {
    .intro-image,
    .intro-text {
        width: 100%;
    }

    .intro-text {
        order: 1;
    }

    .intro-image {
        order: 2;
    }

    .home-logo {
        max-width: 450px;
    }
}