/* Universal and Root */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Quicksand", sans-serif;
  font-weight: 500;
  background-color: whitesmoke;
}

.container {
  width: 95%;
  max-width: 80rem;
  margin: 0 auto;
}

/* Header and Navigation */
header {
  display: inline;
}

.jumbotron {
  background-color: #18b6ff;
  color: white;
  text-align: center;
  padding: 10vw;
}

h1 {
  font-size: 3em;
}

.jumbotron p {
  font-size: 1.5em;
}

nav {
  background-color: rgb(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
  border-bottom: 1px solid lightgray;
  position: sticky;
  top: 0;
}

nav .container {
  display: flex;
  align-items: center;
  font-weight: 600;
  padding: 0 10px;
  height: 3rem;
}

nav .title {
  flex: 1;
  opacity: 0; /* Changes later on scroll */
  transition: all 0.5s ease;
}

nav .title a {
  display: none; /* Changes later on scroll */
  background: linear-gradient(
    90deg,
    rgba(33, 100, 255, 1) 0%,
    rgba(146, 51, 255, 1) 100%
  );
  background-clip: text;
  color: transparent;
  font-weight: 700;
}

nav .internal {
  flex: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

nav .internal a {
  padding: 5px 10px;
  border-radius: 10px;
  transition: all 0.3s ease;
}

nav .internal a:hover,
nav .internal a:focus {
  background-color: rgb(24, 182, 255, 0.2);
  color: #1861ff;
  outline-color: #1861ff;
}

nav .external {
  flex: 1;
  display: flex;
  justify-content: right;
  align-items: center;
  gap: 5px;
}

nav .external a {
  display: flex;
}

nav .external img:hover,
nav .external svg:hover,
nav .external a:focus img,
nav .external a:focus svg {
  transform: scale(1.1);
  transition: all 0.3s ease;
}

nav li {
  display: inline-block;
  list-style-type: none;
}

nav a {
  text-decoration: none;
  color: black;
}

/* Main Content and Aside */
main {
  margin-block: 2rem;
}

main .container {
  display: flex;
  gap: 2rem;
}

#content {
  flex: 8;
}

#content h2 {
  margin-block: 1rem 0.75rem;
  color: #1861ff;
}

#content h3 {
  margin-block: 1rem 0.5rem;
  color: #18b6ff;
}

#content p {
  margin-bottom: 0.5rem;
  text-align: justify;
}

#content section p:nth-child(n + 3) {
  text-indent: 2rem;
}

aside {
  flex: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

aside article {
  background-color: white;
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 1px 4px 5px 2px rgb(0, 0, 0, 0.3);
  height: fit-content;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 47.8rem;
}

aside #bio img {
  border-radius: 50%;
  margin-block: 1rem;
}

aside #event a {
  color: red;
  font-weight: bold;
}

aside #event img {
  width: 100%;
}

aside h2 {
  font-size: 1.3em;
  background: linear-gradient(
    90deg,
    rgba(33, 100, 255, 1) 0%,
    rgba(146, 51, 255, 1) 100%
  );
  background-clip: text;
  color: transparent;
}

aside h3 {
  color: #18b6ff;
  margin-bottom: 0.5rem;
}

aside table tr td {
  text-align: left;
  padding-bottom: 0.25rem;
}

aside table tr td:nth-child(1) {
  font-weight: 600;
  padding-right: 0.5rem;
}

/* Footer */
footer {
  color: gray;
  text-align: center;
  margin-block: 2rem;
}

/* Ressponsive */
@media screen and (max-width: 920px) {
  h1 {
    font-size: 2em;
  }

  .jumbotron p {
    font-size: 1em;
  }

  main .container {
    flex-direction: column;
    gap: 1rem;
  }

  #content {
    order: 1;
  }

  aside {
    order: 0;
  }
}

/* Animation */
@keyframes title-in {
  0% {
    transform: translate(0, -2rem);
    opacity: 0;
  }
  100% {
    transform: translate(0);
    opacity: 1;
  }
}
