* {
  box-sizing: border-box; }

body {
  background-color: #444;
  color: #fff;
  min-width: 320px;
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.5; }
  body#bg-img {
    background: url(../images/background.jpg);
    background-attachment: fixed;
    background-size: cover; }
    body#bg-img::after {
      content: '';
      position: fixed;
      top: 0;
      right: 0;
      height: 100%;
      width: 100%;
      z-index: -1;
      background: rgba(68, 68, 68, 0.95);
      background-size: cover; }

h1,
h2,
h3 {
  margin: 0;
  font-weight: 400; }
  h1.lg-heading,
  h2.lg-heading,
  h3.lg-heading {
    font-size: 6rem; }

main {
  padding: 2rem 10rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%; }
  main#home {
    overflow: hidden; }
    main#home h1 {
      margin-top: 20vh; }

.text-secondary {
  color: #eece1a; }

.icons {
  margin-bottom: 20px; }
  .icons a {
    color: #eece1a;
    text-decoration: none;
    padding: 5px; }

.skills {
  display: grid;
  grid-template-columns: repeat(7, minmax(100px, 200fr));
  grid-auto-rows: 1fr;
  grid-gap: 5px; }
  .skills::before {
    content: '';
    width: 0;
    padding-bottom: 100%;
    grid-row: 1 / 1;
    grid-column: 1 / 1; }
  .skills > *:first-child {
    grid-row: 1 / 1;
    grid-column: 1 / 1; }
  .skills > * {
    display: flex;
    align-items: center;
    justify-content: center; }
    .skills > *:hover {
      cursor: pointer;
      transform: scale(0.98);
      transition: ease-in 0.5s; }
  .skills > div:nth-child(even) {
    background-color: black;
    color: #fff; }
    .skills > div:nth-child(even):hover {
      background-color: #1a1a1a;
      color: #fff; }
  .skills > div:nth-child(odd) {
    background-color: white;
    color: #000; }

@media screen and (min-width: 769px) and (max-width: 1180px) {
  body {
    max-height: 740px; }
  main {
    padding: 5rem; }
    main h3.sm-heading {
      font-size: 1em; }
  .skills {
    grid-template-columns: repeat(7, minmax(100px, 200px)); } }

@media screen and (max-width: 768px) {
  main {
    padding: 2em; }
    main h1.lg-heading,
    main h3.lg-heading {
      font-size: 4rem; }
    main h1.sm-heading,
    main h3.sm-heading {
      font-size: 1rem; }
  .skills {
    grid-template-columns: repeat(5, minmax(100px, 0.8fr)); } }

@media screen and (max-width: 500px) {
  main {
    padding: 1.5em; }
    main h3.sm-heading {
      font-size: 1rem; }
  .skills {
    grid-template-columns: repeat(3, 1fr); } }

@media screen and (max-width: 320px) {
  main {
    padding: 1.5em; }
    main h3.sm-heading {
      font-size: 1rem; }
  .skills {
    grid-template-columns: repeat(3, 1fr); } }
