/* Specify Custom Font */
@font-face {
  font-family: SatoshiLight;
  src: url(fonts/satoshi_light.woff);
}

/* Define Color Variables */
:root {
  --bg-color: #ffffff;
  --text-color: #000000;
  --accent-color: #0077cc;
  --secondary-text: #666666;
  --mail-img: url("images/mail-light.svg");
  --github-img: url("images/github-light.svg");
  --scholar-img: url("images/book-light.svg");
}

/* Dark Mode Override */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-color: #000000;
    --text-color: #ffffff;
    --accent-color: #66b3ff;
    --secondary-text: #c0c0c0;
    --mail-img: url("images/mail-dark.svg");
    --github-img: url("images/github-dark.svg");
    --scholar-img: url("images/book-dark.svg");
  }
}

/* General Styles */
body {
  margin: auto;
  width: 70%;
  max-width: 930px;
  font-family: SatoshiLight, sans-serif;
  text-align: justify;
  background-color: var(--bg-color);
  color: var(--text-color);
}

.container {
  margin-top: 3rem;
}

.container h1 {
  font-weight: normal;
  margin-top: 0px;
}

.container h2 {
  color: var(--accent-color);
  font-weight: normal;
  margin-top: 0px;
}

/* Profile Section */
.profile {
  display: flex;
  flex-direction: row;
}

.bio {
  font-weight: normal;
}

.bio a {
  font-weight: bold;
  text-decoration: none;
  color: var(--text-color);
}

.bio a:visited {
  color: var(--text-color);
}

.bio a:hover {
  color: var(--accent-color);
}

/* Picture */
.profile-pic {
  margin-left: 1rem;
}

.profile-pic .img {
  width: 200px;
  box-shadow:
    0 2px 5px 0 rgba(0, 0, 0, 0.16),
    0 2px 10px 0 rgba(0, 0, 0, 0.12);
}

.profile-pic .more-info {
  margin-bottom: 5px;
  margin-top: 5px;
  font-size: 0.8rem;
  font-weight: light;
}

/* Contact Icons */
.contact-icons {
  text-align: center;
}

.contact-icons a {
  margin-left: 0.5rem;
  margin-right: 0.5rem;
  text-decoration: none;
}

.contact-icons img {
  height: auto;
  transition: transform 0.3s ease-in-out;
}

.contact-icons img:hover {
  transform: scale(1.1);
}

.contact-icons .mail-icon {
  content: var(--mail-img);
}

.contact-icons .github-icon {
  content: var(--github-img);
}

.contact-icons .scholar-icon {
  content: var(--scholar-img);
}

/* Footer */
footer {
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
  color: var(--secondary-text);
}

/* Small screen friendly */
@media (max-width: 800px) {
  .profile {
    flex-direction: column-reverse;
  }
  .profile-pic .img {
    margin-left: 0;
    justify-content: center;
    width: 100%;
  }
}
