/* https://fonts.googleapis.com/css?family=Ubuntu:300 */
@font-face {
  font-family: "Ubuntu";
  font-style: normal;
  font-weight: 300;
  src:
    local("Ubuntu Light"),
    local("Ubuntu-Light"),
    url(https://fonts.gstatic.com/s/ubuntu/v14/4iCv6KVjbNBYlgoC1CzjsGyI.ttf) format("truetype");
  font-display: swap;
}

body {
  font-family: "Ubuntu", sans-serif;
  background-color: #ccc;
  color: #333;
}

h1 {
  text-align: center;
  font-size: 400%;
  font-weight: normal;
}

a {
  color: #33f;
}

a:hover {
  color: #00f;
}

.icon-container {
  display: block;
  text-align: center;
  margin: 0 auto;
  margin-bottom: 2em;
}

.icon {
  border: solid #333 5px !important;
  border-radius: 250px;
  background-color: #fff;
}

#contacts {
  display: flex;
  justify-content: space-between;
  width: 80%;
  margin: 0 auto;
}

.contact img {
  width: 120px;
  height: 120px;
}

#aboutme {
  width: 80%;
  background-color: #fefefe;
  border: 3px solid #333;
  border-radius: 10px;
  margin: 0 auto;
  margin-top: 3em;
  padding: 1em;
}

#aboutme hr {
  border-color: #333;
  margin: 20px auto;
}

#now {
  margin-top: 10px;
  text-align: right;
}

.presentation {
  margin-block-start: 0;
  margin-block-end: 0;
  margin-inline-start: 0;
  padding-inline-start: 0;
}

.presentation-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 5px;
}

.presentation-slide {
  aspect-ratio: 710/399;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  max-height: 200px;
}

@media screen and (max-width: 480px) {
  body {
    margin-left: 0;
  }

  h1 {
    margin-top: 0;
    margin-bottom: 0.25em;
  }

  .icon {
    width: 240px;
    height: 240px;
    border-radius: 120px;
  }

  #contacts {
    width: 100%;
  }

  .contact img {
    width: 64px;
    height: 64px;
  }

  .presentation-item {
    display: block;
  }

  .presentation-title {
    margin-bottom: 10px;
  }
}

/* dark theme */
@media (prefers-color-scheme: dark) {
  a {
    color: #ff3;
  }
  body {
    color: #fff;
    background-color: #888;
  }
  a:hover {
    color: #ff0;
  }
  .icon {
    background-color: #090909;
  }
  #aboutme {
    background-color: #010101;
    color: #fff;
    border: 3px solid #ccc;
    border-radius: 10px;
  }
}
