*::selection {
  color: black;
  background-color: yellow;
}

body {
  background-color: black;
  color: white;
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Oxygen,
    Ubuntu,
    Cantarell,
    "Open Sans",
    "Helvetica Neue",
    sans-serif;
}

body.secretway {
  animation-name: rainbow;
  animation-duration: 1s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

body:not(.secretway) .secretway-activated {
  display: none;
}

main {
  box-sizing: border-box;
  padding: 30vh 1rem;
}

ul {
  margin-top: 0;
}

h3 {
  margin-bottom: 4px;
}

.icon {
  font-size: 2rem;
  color: yellow;
}

.attention {
  font-weight: 600;
  color: yellow;
}

.inner-frame {
  box-sizing: border-box;
  border: 1rem solid yellow;
  padding: 2rem;
  box-shadow: 0 0 20px 20px #330;
  max-width: 900px;
  margin: 0 auto;
}

.head-block {
  display: flex;
  gap: 2rem;
}

.avatar {
  height: 300px;
  border-radius: 50%;
}

.contacts {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.contact {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0.5rem 0;
  cursor: pointer;
  text-decoration: none;
  color: white !important;
}

.contact .icon {
  opacity: 0.7;
}

.contact:hover .icon {
  opacity: 1;
}

.timeline {
  margin: 2rem 0 1rem;
}

.event {
  position: relative;
  box-sizing: border-box;
  border-left: 2px solid yellow;
  padding: 0.6rem 0 0.6rem 1rem;
}

.event .date {
  height: 100%;
}

.event::before {
  --size: 0.5em;

  content: "";
  position: absolute;
  top: calc(50% - var(--size) / 2);
  left: calc(var(--size) / -2 - 1px);
  background-color: yellow;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
}

.columns {
  display: flex;
}

.column {
  box-sizing: border-box;
  width: 50%;
  padding: 0 1rem;
}

.tip {
  transform: rotateX(180deg);
  backface-visibility: visible;
  text-align: center;
  padding-top: 1rem;
}

@keyframes rainbow {
  0% {
    text-shadow: none;
  }

  12.5% {
    text-shadow: 1px 1px 0 red;
  }

  25% {
    text-shadow: 2px 2px 0 orange;
  }

  37.5% {
    text-shadow: 3px 3px 0 yellow;
  }

  50% {
    text-shadow: 4px 4px 0 green;
  }

  62.5% {
    text-shadow: 5px 5px 0 aqua;
  }

  75% {
    text-shadow: 6px 6px 0 blue;
  }

  75% {
    text-shadow: 7px 7px 0 violet;
  }

  75% {
    text-shadow: 8px 8px 0 white;
  }
}

@media screen and (max-width: 768px) {
  .frame {
    padding: 15vh 1rem;
  }

  .head-block {
    flex-direction: column;
    align-items: center;
  }

  .avatar {
    width: 300px;
    height: auto;
  }
}

@media screen and (max-width: 512px) {
  .columns {
    flex-direction: column;
  }

  .column {
    width: 100%;
  }
}
