@import url("https://cdn.jsdelivr.net/npm/typeface-source-code-pro@1.1.3/index.min.css");

:root {
  --background: #eee8d5;
  --color: #003440;
}

[data-theme="dark"] {
  --background: #003440;
  --color: #eee8d5;
}

*,
:after,
:before {
  box-sizing: border-box;
}
a,
a:visited,
a:hover,
a:active {
  color: inherit;
  text-decoration: none;
}

html {
  padding: 0;
  font-size: 1vw;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

body {
  font-family: "Source Code Pro";
  padding: 0;
  margin: 0;
  background-color: var(--background);
  color: var(--color);
}

nav {
  position: absolute;
  z-index: 10;
  top: 2rem;
  right: 2rem;
}
.emoji {
  font-size: 2em;
}
.theme-switch-wrapper {
  display: flex;
  align-items: center;
}
.theme-switch-wrapper span {
  margin-right: 1rem;
  font-size: 2rem;
}
.theme-switch {
  display: inline-block;
  height: 34px;
  position: relative;
  width: 60px;
}

.theme-switch input {
  display: none;
}

.slider {
  background-color: #ccc;
  bottom: 0;
  cursor: pointer;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  transition: 0.4s;
}

.slider:before {
  background-color: #fff;
  bottom: 4px;
  content: "";
  height: 26px;
  left: 4px;
  position: absolute;
  transition: 0.4s;
  width: 26px;
}

input:checked + .slider {
  background-color: #66bb6a;
}

input:checked + .slider:before {
  transform: translateX(26px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}
.hi {
  font-size: 7rem;
  font-weight: normal;
  margin: 0;
}

.container {
  position: relative;
  display: flex;
  align-items: center;
  flex-direction: column;
  height: 100vh;
  padding: 15rem 5rem 0 5rem;
}

.info-text {
  font-size: 3rem;
}

.nowrap {
  white-space: pre;
}

.info {
  justify-content: center;
  flex-grow: 1;
  flex-direction: column;
  display: flex;
}

.headshot {
  position: relative;
  animation-name: inbottom;
  animation-duration: 1.8s;
  height: 60vh;
  flex-grow: 1;
}
.social {
  list-style: none;
  display: flex;
  align-items: center;
  padding: 0;
}

.social-item {
  padding-right: 5rem;
}

.social-item svg {
  position: relative;
  animation-name: inleft;
  width: 5rem;
  height: 5rem;
}
.sendify {
  display: inline-block;
}
.sendify svg {
  height: 3rem;
  vertical-align: bottom;
}

#github {
  animation-duration: 1s;
  animation-timing-function: ease-in;
}
#linkedin {
  animation-duration: 1.2s;
  animation-timing-function: ease-in;
}
#untappd {
  animation-duration: 1.4s;
  animation-timing-function: ease-in;
}
#strava {
  animation-duration: 1.6s;
  animation-timing-function: ease-in;
}

#github:hover {
  color: black;
}
#linkedin:hover {
  color: #0077b5;
}
#untappd:hover {
  color: #ffcc00;
}
#strava:hover {
  color: #fc5200;
}

.sendify:hover #sendify-logo {
  color: black;
}
.sendify:hover #sendify-symbol {
  color: #c82131;
}
@media screen and (min-width: 768px) {
  html {
    font-size: 0.8vw;
  }
}

@media screen and (min-width: 1100px) {
  html {
    font-size: 10px;
  }
  .container {
    flex-direction: row;
    justify-content: space-evenly;
    padding-top: 10rem;
  }
  .info {
    align-items: center;
  }

  .headshot {
    height: 75vh;
    max-width: 50vw;
    object-fit: scale-down;
    object-position: bottom;
    align-self: flex-end;
    animation-name: inleft;
  }
}
@keyframes inleft {
  from {
    left: 100vh;
  }
  to {
    left: 0;
  }
}
@keyframes inbottom {
  from {
    top: 100vh;
  }
  to {
    top: 0;
  }
}
@keyframes type {
  to {
    white-space: normal;
    width: 100%;
  }
}
