body {
  margin: 10px;
  background-color: black;
  font-family: 'Itim', cursive;
  color: aliceblue;
}

.background-image {
  position: fixed;
  top: 0;
  left: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: 0.4;
  z-index: -1; /* keep the image behind the content */
}

.octacat {
  width: 18px;
  height: 18px;
  background-color: white;
  border-radius: 50%;
  padding: 2px;
  margin: 0 6px 0 10px;
}

.header-title {
  position: relative;
  font-size: 18px;
  display: flex;
}

.profile {
  width: 90%;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.profile-info {
  grid-column: span 1;
  font-size: 12px;
  width: 100%;
  height: 100%;
}

table {
  width: 100%;
}

td {
  width: 50%;
}

.profile-image-icons {
  grid-column: span 1;
  width: 90%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.profile-image {
  border: 1px solid #ccc;
  border-radius: 50%;
  width: 74px;
  height: 74px;
  margin-bottom: 10px;
  filter: drop-shadow(8px 8px 16px #ccc);
  transform: scale(1);
  transition: 0.3s ease-in-out;
}

.profile-image:hover {
  cursor: pointer;
  transform: scale(1.5);
}

.profile-image:active {
  filter: grayscale(1);
}

.contact-icons {
  border-radius: 5px;
  background-color: #ccc;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

.icon {
  padding: 4px;
}

.icon:hover {
  width: 26px;
  height: 26px;
}

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

a:visited {
  color: #b76501;
}

.projects {
  width: 90%;
  margin: auto;
}

h3 {
  font-size: 16px;
  text-transform: uppercase;
  text-align: center;
}

.project-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 10px;
}

/* all project-card is a button so have to style them again */
.project-card {
  color: aliceblue;
  background: transparent;
  font-family: 'Itim', cursive;
  border: 2px solid white;
  border-radius: 5px;
  grid-column: span 2;
  font-size: 16px;
  padding: 20px 0 20px 20px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

/* in order to able to focus on the cards, 
used buttons instead of divs when creating the cards */
.project-card:hover,
.project-card:focus {
  background: black;
  opacity: 0.7;
}

.card-button:focus {
  background: black;
  opacity: 0.7;
}

.project-emoji {
  margin-right: 18px;
}

.modal-project {
  display: none; /* hidden by default */
  position: fixed; /* stay in place */
  z-index: 1; /* sit on top */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto; /* enable scroll if needed */
  background-color: rgba(0, 0, 0, 0.5); /* Black with opacity 0.5 */
}

.modal-content {
  background-color: #fee7d7;
  color: black;
  width: 70%;
  border: 2px solid #b76501;
  border-radius: 5px;
  margin: 20% auto;
  padding: 34px;
  font-size: 14px;
}

.modal-div {
  margin: 6px;
}

.project-name {
  font-size: 24px;
  margin-bottom: 14px;
  text-align: center;
  color: #b76501;
}

/****** the Close Button ******/
.close-btn {
  color: #b76501;
  background: #fee7d7;
  border: 2px solid #b76501;
  border-radius: 5px;
  font-size: 32px;
  font-weight: bolder;
  position: absolute;
  top: 10px;
  right: 20px;
}

.close-btn:hover,
.close-btn:focus {
  /* when hovering or focusing on the close button */
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.progress-chart {
  width: 200px;
  height: 200px;
  margin: 10px auto;
}

.languages-chart {
  width: 90%;
  height: 90%;
  margin-top: 20px;
}

/****** GIF ******/
.loading-gif {
  width: 100%;
  height: 50%;
  margin: 0 auto; /* center */
}

footer {
  font-size: 10px;
  margin: 20px 0 5px 10px;
}

footer p {
  margin: 0;
}

/* Flaired edges, by Tomas Theunissen */
hr {
  overflow: visible; /* For IE */
  height: 30px;
  border-style: solid;
  border-color: white;
  border-width: 1px 0 0 0;
  border-radius: 20px;
  /* added margins */
  margin-top: 10px;
  margin-bottom: -20px;
}

hr:before {
  display: block;
  content: '';
  height: 30px;
  margin-top: -31px;
  border-style: solid;
  border-color: white;
  border-width: 0 0 1px 0;
  border-radius: 20px;
}

@media (min-width: 768px) {
  .octacat {
    width: 32px;
    height: 32px;
  }
  .header-title {
    font-size: 32px;
  }

  .profile-info {
    font-size: 20px;
  }

  .profile-image {
    width: 134px;
    height: 134px;
  }

  .icon {
    padding: 6px;
    width: 30px;
    height: 30px;
  }

  h3 {
    font-size: 26px;
  }

  .project-card {
    font-size: 22px;
    padding: 30px 0 30px 26px;
    grid-column: span 1;
  }

  .modal-content {
    font-size: 20px;
    width: 60%;
  }

  .project-name {
    font-size: 34px;
    margin-bottom: 22px;
  }

  .close-btn {
    top: 30px;
    right: 45px;
  }

  .progress-chart {
    width: 300px;
    height: 300px;
    margin-top: 32px;
  }

  .languages-chart {
    margin-top: 26px;
  }

  .loading-gif {
    width: 100%;
    height: 50%;
  }

  footer {
    font-size: 16px;
  }
}
