@font-face {
  font-family: Oswald-Regular;
  src: url(Oswald-Regular.ttf);
  font-display: swap;
  font-style: normal;
  font-weight: 400
}

:root {
  --primary: #eee;
  --secondary: #333;
  --sun-display: none;
  --moon-display: inline-block;
  --sub-name: #868686;
  --overlay-color: #fccc98;
  --lightLine: aliceblue;
  --navIconColor: #333;
  --modalHeaderColor: aliceblue
}

[data-theme=dark] {
  --primary: #333;
  --secondary: #eee;
  --sun-display: inline-block;
  --moon-display: none;
  --sub-name: #868686;
  --overlay-color: #fff;
  --lightLine: aliceblue;
  --navIconColor: #eee;
  --modalHeaderColor: transparent
}

[data-theme=light] {
  --primary: #eee;
  --secondary: #333;
  --sun-display: none;
  --moon-display: inline-block;
  --sub-name: #868686;
  --overlay-color: #fccc98;
  --lightLine: aliceblue;
  --navIconColor: #333;
  --modalHeaderColor: aliceblue
}

* {
  font-size: 12px;
  box-sizing: border-box;
  color: var(--secondary);
  font-family: Oswald-Regular, sans-serif
}

body {
  position: relative;
  background-color: var(--primary);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 10px
}

main {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex: 1
}

.logo-path {
  fill: var(--secondary)
}

.header {
  width: 100%;
  height: 70px;
  display: flex;
  justify-content: space-between;
  align-items: center
}

.header ul {
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: hidden;
  background-color: #fff
}

.header li a {
  display: block;
  padding: 20px 20px;
  border-right: 1px solid #f4f4f4;
  text-decoration: none
}

.header .menu-btn:hover, .header li a:hover {
  background-color: #f4f4f4
}

.header .logo {
  display: block;
  float: left;
  font-size: 2em;
  padding: 10px 20px;
  text-decoration: none
}

.logo {
  cursor: pointer
}

.visually-hidden {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px
}

.header .menu {
  clear: both;
  max-height: 0;
  transition: max-height .2s ease-out
}

.header .menu-icon {
  cursor: pointer;
  display: inline-block;
  padding: 28px 20px;
  position: relative;
  user-select: none
}

.header .menu-icon .navicon {
  background: var(--navIconColor);
  display: block;
  height: 2px;
  position: relative;
  transition: background .2s ease-out;
  width: 18px
}

.header .menu-icon .navicon:after, .header .menu-icon .navicon:before {
  background: var(--navIconColor);
  content: '';
  display: block;
  height: 100%;
  position: absolute;
  transition: all .2s ease-out;
  width: 100%
}

.header .menu-icon .navicon:before {
  top: 5px
}

.header .menu-icon .navicon:after {
  top: -5px
}

.header .menu-btn {
  display: none
}

.header .menu-btn:checked~.menu {
  max-height: 240px
}

.header .menu-btn:checked~.menu-icon .navicon {
  background: 0 0
}

.header .menu-btn:checked~.menu-icon .navicon:before {
  transform: rotate(-45deg)
}

.header .menu-btn:checked~.menu-icon .navicon:after {
  transform: rotate(45deg)
}

.header .menu-btn:checked~.menu-icon:not(.steps) .navicon:after, .header .menu-btn:checked~.menu-icon:not(.steps) .navicon:before {
  top: 0
}

@media (min-width:48em) {
  .header li {
    float: left
  }
  .header li a {
    padding: 20px 30px
  }
  .header .menu {
    clear: none;
    float: right;
    max-height: none
  }
  .header .menu-icon {
    display: none
  }
}

.mode-switch {
  cursor: pointer
}

.moon {
  display: var(--moon-display);
  stroke: var(--secondary)
}

.sun {
  display: var(--sun-display);
  stroke: var(--secondary)
}

.name, .sub-name {
  margin: 0;
  padding: 0
}

#darkModeToggle {
  display: none
}

.sub-name {
  color: var(--sub-name);
  text-align: end;
  font-size: 1.5rem
}

.name {
  color: var(--secondary);
  font-size: 4rem
}

.avatar-container {
  width: 100%;
  height: 70%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative
}

.avatar-overlay {
  width: 80%;
  background: var(--overlay-color);
  height: 90%;
  border-radius: 50%
}

.link {
  color: var(--lightLine);
  font-size: 1.5rem;
  line-height: 2;
  cursor: pointer;
  padding: 5px;
  margin: 5px;
  border: 1px dashed #f0f8ff
}

.link:hover {
  border: 1px dotted var(--primary)
}

.lightLine {
  background: var(--lightLine)
}

.avatar {
  position: absolute;
  width: 85%;
  bottom: 0
}

.modal-content {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  margin-top: 100px;
  align-items: center
}

.modal-window {
  position: fixed;
  background-color: rgba(0, 0, 0, .75);
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease-in;
  -webkit-transition: opacity .3s ease-in;
  -moz-transition: opacity .3s ease-in
}

.modal-window.show {
  visibility: visible;
  opacity: 1;
  pointer-events: auto
}

.hamburger {
  z-index: 3
}

.modal-header {
  height: 70px;
  background: var(--modalHeaderColor)
}

.links {
  display: none
}

.uses__main {
  display: flex;
  flex-direction: column;
  flex: 1;
  text-align: left;
  width: 100%;
  color: var(--secondary);
  font-size: 1.4rem
}

.uses__main h1 {
  font-size: 2.5rem;
  text-decoration: underline
}

.uses__main h2 {
  font-size: 2rem
}

.uses__main a {
  text-decoration: none;
  border-bottom: 1px dashed var(--secondary)
}

.uses__main a, .uses__main li, .uses__main p, .uses__main span, .uses__main ul {
  font-size: inherit
}

@media only screen and (min-width:600px) {
  body {
    padding: 50px
  }
  .hamburger {
    display: none
  }
  main {
    flex-direction: row-reverse;
    align-items: flex-end;
    justify-content: space-between
  }
  .avatar-container {
    width: 40%
  }
  .avatar-overlay {
    width: 100%;
    background: var(--overlay-color);
    height: 100%
  }
  .avatar {
    width: 100%
  }
  .links {
    display: flex;
    flex-direction: column;
    align-self: center
  }
  .links .link {
    color: var(--secondary);
    padding: 0;
    line-height: 1;
    text-align: right;
    font-size: 2rem;
    padding: 5px
  }
  .links .link:hover {
    border: 1px dashed var(--secondary)
  }
}