/* BASE STYLES */

* {
  box-sizing: border-box;
}

body {
  font-family: "Montserrat", Helvetica, Arial, sans-serif;
  background: #1f202b;
  color: #ffffff;
  margin: 0 auto;
}

main {
  display: flex;
  flex-flow: column nowrap;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
}

header {
  height: 800px;
  background: url(../img/hero-background.jpg) no-repeat top left / cover;
}

footer {
  height: auto;
  text-align: center;
}

#portfolio {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  height: auto;
  width: 100%;
  margin: 40px auto;
}

#about {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  /* height: 800px; */
  width: 100vw;
  background: url(../img/about-me.jpg) top left / cover no-repeat;
  padding: 0 50px;
  clear: both;
  overflow: auto;
}

.full-width {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-flow: row wrap;
  margin: 0 auto;
  width: 100%;
}

.half-width {
  width: 550px;
}

.align-right {
  text-align: right;
}

/* FUNCTION STYLES */

.d-flex {
  display: flex;
}

.col {
  max-width: 550px;
}

/* HEADER STYLES */

nav {
  display: flex;
  justify-content: space-between;
  background: #01395e;
  padding: 0 30px;
  font-size: 30px;
}

ul {
  display: flex;
  justify-content: space-around;
}

li {
  list-style: none;
  margin-right: 30px;
}

li a {
  text-decoration: none;
  color: #ffffff;
}

li a:hover {
  color: #ffea71;
}

h1 {
  position: relative;
  font-family: "Cousine", courier, monospace;
  font-size: 72px;
  margin: 0 auto;
  top: 250px;
  padding-left: 100px;
}

h1 span {
  color: #ffea71;
}

h2 {
  font-family: "Cousine";
  font-size: 36px;
  color: #ffea71;
  text-align: center;
  margin-bottom: 50px;
}

/* PORTFOLIO STYLES */

#portfolio .full-width {
  margin-top: 50px;
}

#portfolio figure {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.grow {
  transition: all 0.2s ease-in-out;
}
.grow:hover {
  transform: scale(1.2);
}

#portfolio h3 {
  margin-bottom: 0;
  margin-top: 0;
  font-size: 24px;
}

#portfolio p {
  margin-top: 0;
  font-size: 24px;
}

#portfolio .half-width h3,
#portfolio .half-width p {
  margin-left: 40px;
}

#portfolio .half-width.align-right h3,
#portfolio .half-width.align-right p {
  margin-left: 0;
  margin-right: 40px;
}

/* ABOUT STYLES */

#about .full-width {
  display: flex;
  flex-flow: column wrap;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  width: 60%;
}

#about img {
  margin-right: 2vw;
}

#about h3 {
  margin-top: 0;
}

#about figure {
  margin: 0;
  padding-bottom: 150px;
  text-align: center;
}

#about figcaption {
  font-size: 1.1rem;
}

#about figure .bi.bi-bootstrap-fill {
  margin-top: 7px;
}

#about figure .wordpress {
  margin-top: 4px;
}

/* FOOTER STYLES */
footer {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  background: #01395e;
  padding-top: 40px;
}

a {
  text-decoration: none;
  color: #ffffff;
}

footer a:hover {
  color: #ffea71;
}

footer .full-width {
  display: flex;
  flex-flow: row nowrap;
  font-size: 24px;
}

.icon-gold {
  color: #ffea71;
}

.fab {
  margin: 0 10px;
}

#contact.full-width {
  flex-flow: row wrap;
}

footer h4 {
  padding: 40px 0;
}

.fab {
  font-size: 5rem;
}

/* Mobile responsive */
@media screen and (max-width: 1100px) {
  body {
    text-align: center;
  }

  main {
    width: 90%;
  }

  nav {
    display: flex;
    flex-flow: column wrap;
    justify-content: center;
    align-items: stretch;
    font-size: x-large;
  }

  h1 {
    padding: 0;
  }

  #portfolio img {
    width: 100%;
  }

  #portfolio .half-width h3,
  #portfolio .half-width p {
    margin-left: 0;
  }

  #portfolio .half-width.align-right h3,
  #portfolio .half-width.align-right p {
    margin-left: 0;
    margin-right: 0;
  }

  .half-width {
    width: 100%;
  }

  .half-width:nth-of-type(2n + 2) {
    padding: 0;
  }

  .half-width.align-right + .half-width {
    order: -1;
  }

  .half-width p {
    text-align: center;
  }

  .align-right {
    text-align: center;
  }

  #portfolio h3 {
    margin-top: 20px;
  }

  #about {
    margin-top: 40px;
    padding: 0 5px;
    height: 900px;
    overflow: hidden;
  }

  #about h2 {
    align-self: center;
  }

  .d-flex {
    flex-direction: column;
  }

  footer h4 {
    margin: 0;
  }
}

/* SWIPER RESPONSIVE */
@media (max-width: 760px) {
  .swiper-button-next {
    right: 20px;
    transform: rotate(90deg);
  }

  .swiper-button-prev {
    left: 20px;
    transform: rotate(90deg);
  }
}