html, body {
  height: 100%;
}

body {
  margin: 0;
  background-color: #000000;
  background-image: url("../images/bgbm.jpg");
  background-repeat: repeat;
  background-position: center;
  background-attachment: fixed;
  /* background-attachment: fixed; */ /* commented, not working well on Chrome mobile */
  font-family: 'Work Sans', sans-serif;
  overflow-x: hidden;
  overflow-y: auto;
  color: #ffffff;
}

a {
  color: #ffffff;
}

.main {
  min-width: 500px;
  max-width: 500px;
  min-height: 95%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
  padding: 15px;
}

.mainInternal {
  padding: 25px 5%;
  background-color: #000000;
}

.homeLinks p {
  color: #eaeaea;
}

.intro {
}

.intro div {
  font-size: 16px;
  line-height: 24px;
}

.intro div:not(:last-of-type) {
  margin-bottom: 12px;
}

.titleContainer {
  min-height: 25px;
  display: flex;
  margin-bottom: 24px;
}

.titleContainer:not(:first-of-type) {
  margin-top: 35px;
}

.title,
.intro div.title {
  font-size: 18px;
  font-weight: bold;
  background-color: #fffdc6;
  color: #000000;
  padding: 2px 4px;
  display: inline-block;
}

.titleContainer span {
  max-height: 25px;
  margin-left: 15px;
  line-height: 25px;
  display: block;
  font-size: 13px;
  font-style: italic;
}

.mainTitle {
  background-color: #ffd0c2;
}

.projectsTitle {
  background-color: #e2ffb5;
}

.links {
  margin-top: 20px;
  margin-bottom: 10px;
}

.links a {
  margin-right: 12px;
}

.profiles {
  margin-top: 35px;
}

.profiles a {
  text-decoration: none;
}

.profiles img {
  width: 20px;
}

.projects {
  width: 100%;
  padding-top: 8px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
}

.projects.mobile {
  display: none;
}

.project {
  width: 100px;
  height: 70px;
  position: relative;
  margin-left: 0.5%;
  margin-right: 0.5%;
  margin-bottom: 4px;
  border: 1px solid #000000;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  overflow: hidden;
}

.project.emptyProject {
  display: none;
  visibility: hidden;
}

.project .overlay,
.project .projectName {
  width: 100%;
  height: 100%;
  position: absolute;
  display: none;
}

.project .overlay {
  background-color: #000000;
  opacity: 0.6;
}

.project .projectName {
  flex-direction: column;
  justify-content: center;
  text-align: center;
  font-weight: bold;
  font-size: 14px;
  line-height: 20px;
}


.project:hover > .overlay,
.project:hover > .projectName {
  display: flex;
}


@media screen and (max-width: 768px) {
  body {
    display: block;
    background-position: center;
  }

  .main {
    min-width: 85%;
    max-width: 85%;
    padding-top: 8%;
    padding-bottom: 8%;
  }

  .intro div {
    font-size: 15px;
  }

  .titleContainer span {
    font-size: 12px;
  }

  .projects.desktop {
    display: none;
  }

  .projects.mobile {
    display: flex;
  }

  .project .projectName {
    font-size: 9px;
  }

  .project.emptyProject {
    display: block;
  }
}

@media screen and (max-width: 600px) {
  .project {
    width: 60px;
    height: 70px;
    margin-bottom: 4px;
  }
}

@media screen and (min-width: 768px) and (max-height: 780px) {
  body {
    display: block;
  }

  .main {
    width: 30%;
    padding-top: 5%;
    padding-bottom: 5%;
  }

  .intro div {
    font-size: 15px;
  }
}
