:root {
  --link-background: #1A1DAB;
  --link-text: #FCFCFC;
  --background: lightsteelblue;
  --white: white;
  --border: lightgray;
}

:target {
  scroll-margin-top: 60px;
}

html {
  height: 100%;
}

body {
  margin: 0;
  height: 100%;
}

a {
  margin: 0 .2em;
  padding: 0 .2em;

  color: var(--link-background);
  text-decoration: none;
  border-radius: .2em;
}

a:hover {
  background-color: var(--link-background);
  color: var(--link-text);
}

.embed {
  width: 550px;
  max-width: 100%;
}

.header {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;

  position: fixed;
  z-index: 21263;
  height: 50px;
  width: 100%;
  padding: 5px 0;
  top: 0px;

  background-color: var(--background);
}

.header div {
  height: 80%;
  padding: 0 10px;
}

.header img {
  height: 100%;
  aspect-ratio: 1/1;
}

@media (max-width: 500px) {
  .sites {
    display: none;
  }
}

.header .name a {
  position: relative;
  color: black;
  font-family: cursive;
  font-size: 25px;
  font-weight: bold;
}

.header .name a::after {
  position: absolute;
  height: 4px;
  width: 100%;
  top: 100%;
  left: 0;

  background: black;

  content: '';
  transform: translate(0, 1px);
  clip-path: polygon(0 0, 0 0, 0 100%, 0% 100%);
}

.header .name a:hover {
  background-color: unset ;
}

.header .name a:hover::after {
  animation: name-hover .7s;
  animation-timing-function: ease-out;
}

@keyframes name-hover {
  0% {
    clip-path: polygon(0 0, 0 0, 0 100%, 0% 100%);
  }

  30% {
    clip-path: polygon(0 0, 75% 0, 75% 100%, 0 100%);
  }

  55% {
    clip-path: polygon(80% 0, 100% 0, 100% 100%, 80% 100%);
  }

  100% {
    clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%);
  }
}

.sites {
  display: flex;
  align-items: center;
}

.sites a {
  display: block;
  height: 100%;
}

@media (max-width: 500px) {
  .sites a {
    height: 70%;
  }
}

.content {
  max-width: max(calc(100vw / 5 * 3), 900px);
  min-height: 100%;
  margin: 0 auto;
  margin-top: calc(50px + 3ch);
  margin-bottom: 1ch;

  border-radius: 1lh;
  border-width: 2px;
  border-style: solid;
  border-color: var(--border);
}

.footer {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: stretch;

  width: 100%;
  padding: 5px;

  box-sizing: border-box;
  background-color: var(--background);
}

@media (max-width: 820px) {
  .footer {
    flex-direction: column;
    align-items: center
  }
}

.footer>div {
  width: 250px;
  margin: 5px;
  padding: 5px;
}

.topic {
  text-align: center;
  background-color: var(--white);
  border-radius: 0.5lh;
}

.contact {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.contact .key {
  justify-self: end;
}

.app {
  text-align: center;
}

.copyright {
  text-align: center;
}

.history {
  text-align: center;
}