/* https://alligator.io/css/minimal-css-reset/ */

html {
  box-sizing: border-box;
}

*, *:before, *:after {
  box-sizing: inherit;
}

body, h1, h2, h3, h4, h5, h6, p, ol, ul {
  margin: 0;
  padding: 0;
  font-weight: normal;
}

ol, ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* page styles */

body {
  font-family: 'Mali', cursive;
  font-size: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flext-start;
  min-height: 100vh;
  background-color: #212121;
  color: #757575;
  padding: 0 20px 20px 20px;
}

a {
  color: white;
  text-decoration: none;
}

a p {
  color: #757575;
}

a:hover {
  background-color: #D32F2F;
  box-shadow: 0px 0px 4px #D32F2F;
}

a:hover p {
  color: white;
}

h2 {
  font-size: 28px;
  margin: 40px 0 20px 0;
}

.contacts {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 22px;
}

.contacts a {
  width: 180px;
  flex: 0 0 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px 18px;
  overflow: hidden;
}

.contacts img {
  width: 120px;
  height: 120px;
  filter: invert(1);
}

.contacts a img {
  margin-bottom: 30px;
}

.projects {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 1020px;
}

.projects a {
  flex: 1;
  padding: 20px;
}

.projects h3 {
  font-size: 22px;
  text-align: center;
  margin-bottom: 20px;
  white-space: no-wrap;
}

.projects p {
  text-align: center;
}

.tech {
  max-width: 960px;
  padding: 0 20px;
  font-size: 20px;
  text-align: center;
}

.tech em {
  font-style: normal;
  color: white;
}

@media only screen and (max-width: 1199px) {
  .contacts,  .projects {
    max-width: 600px;
  }
}