.home {
  overflow-y: scroll;
  max-height: calc(100vh);
  scroll-behavior: smooth;
  padding: 1rem 0;
  box-sizing: border-box;
}

.home::-webkit-scrollbar {
  overflow-y: scroll;
}

.home::-webkit-scrollbar-track {
  border-radius: 10px;
  background-color: transparent;
}

.home::-webkit-scrollbar {
  width: 7px;
  background-color: transparent;
}

.home::-webkit-scrollbar-thumb {
  border-radius: 10px;
  background-color: var(--cgrey);
}

section {
  margin: 0 1rem;
  padding: 1rem;
  background-color: var(--cdarkgrey);
  border-radius: 16px;
  margin-bottom: 2rem;
}

@media (min-width: 750px) {
  section {
    padding: 4rem;
  }
}

@media (min-width: 900px) {
  section {
    padding: 4rem;
  }
}

@media (min-width: 1200px) {
  section {
    padding: 4rem;
  }
}

#about {
  display: flex;
  flex-wrap: wrap;
}

#about > h1 {
  margin-bottom: 1rem;
}

#about > * {
  width: 100%;
}

.banner {
  height: 400px;
  border-radius: 10px;
  margin: 2rem 0;
  border-radius: 10px;
  overflow: hidden;
}

.banner > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s;
}

.banner:hover > img {
  transform: scale(1.1);
}

.chess-board {
  width: 400px;
}

.hobby-container {
  width: 100%;
  margin-top: 1rem;
  background: var(--cblack);
  border-radius: 10px;
  padding: 1rem;
  color: var(--cwhite);
  text-decoration: none;
  box-sizing: border-box;
}

.docs-container a:last-of-type {
  width: 100%;
  text-align: center;
  margin: 1rem 0;
  display: block;
}

.caffeine-stats-container > h2 {
  margin-bottom: 0.5rem;
}

.chess-container > h2 {
  width: 100%;
  margin-bottom: 0.5rem;
}

.chess-container > h2 > a {
  color: white;
}

.chess-stats {
  display: flex;
  box-sizing: border-box;
  justify-content: space-between;
  margin-top: 1rem;
}

.chess-stats > div > h3 {
  margin-bottom: 0.5rem;
}

.chess-stats > div:nth-of-type(1) {
  margin-left: 1rem;
}

@media screen and (min-width: 900px) {
  .chess-stats {
    margin-left: 2rem;
    margin-right: 2rem;
  }
}
@media screen and (min-width: 700px) {
  .chess-stats {
    margin-left: 1rem;
    margin-right: 1rem;
  }
  .game-data > h3,
  .fide-game-data > h3 {
    margin-left: 1rem;
  }
}
@media screen and (max-width: 600px) {
  .chess-stats {
    flex-direction: column;
    align-items: center;
  }
  .chess-stats > div {
    margin: 1rem;
    width: 100%;
  }
  .chess-stats > div > table {
    margin: auto;
  }
}

.chess-stats > h3,
.game-data > h3,
.fide-game-data > h3,
.otb-game-data > h3 {
  margin-bottom: 1rem;
  width: 100%;
}

.chess-container .game-data,
.chess-container .fide-game-data {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.game-data > .lpv,
.fide-game-data > .lpv,
.otb-game-data > .lpv {
  width: 300px;
}

.lichess-status.online {
  color: green;
}

.lichess-status.offline {
  color: orange;
}

.chess-container table {
  border: 1px solid var(--cgrey);
  border-radius: 7px;
  padding: 6px;
}

.chess-container table tr td {
  padding: 4px;
}

.chess-container table tr:nth-of-type(2) td {
  border-bottom: 1px solid var(--clightgrey);
  border-top: 1px solid var(--clightgrey);
}

.chess-container table tr td:nth-of-type(2),
.chess-container table tr td:nth-of-type(4) {
  border-left: 1px solid var(--clightgrey);
  border-right: 1px solid var(--clightgrey);
}

.chess-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  justify-content: space-evenly;
}

.chess-tab {
  padding: 8px 12px;
  background: var(--cwhite);
  color: var(--cblack);
  border-radius: 5px;
  text-decoration: none;
  align-items: center;
  width: 100%;
  text-align: center;
  transition: opacity 0.3s ease-in-out;
  cursor: pointer;
  font-size: 1rem;
  margin: 0 0.5rem;
  box-shadow: none;
  border: none;
  font-family: inherit;
}

.profile-quick-access > div > a:hover {
  opacity: 0.8;
}

.chess-tab.active {
  opacity: 0.8;
  text-decoration: none;
}

.chess-tab-content {
  display: none;
}

.chess-tab-content.active {
  display: block;
}

.chess-profile-link {
  display: block;
  text-align: center;
  margin-top: 1rem;
  text-decoration: underline;
}

.otb-game-data {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 0.5rem;
}

nav {
  position: fixed;
  bottom: 5%;
  right: 100%;
  padding: 20px;
  display: flex;
  width: 2.6rem;
  flex-direction: column;
  background-color: var(--cgrey);
  border-radius: 6px;
  transition: width 0.7s cubic-bezier(0.19, 1, 0.22, 1) 0.1s,
    transform 0.7s cubic-bezier(0.19, 1, 0.22, 1) 0.1s;
  z-index: 1;
}

.toggleButton {
  cursor: pointer;
  bottom: 2.3rem;
  padding: 12px;
  background-color: var(--clightgrey);
  z-index: 1;
  position: absolute;
  left: 2.3rem;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  border: none;
  opacity: 0;
}

@media (max-width: 900px) {
  .toggleButton {
    opacity: 1;
  }
  .mobile-show {
    transform: translate(calc(100% + 1rem));
  }
  nav {
    bottom: 12%;
  }
}

.toggleButton.close > span:first-of-type {
  transform: translateY(0.5rem) rotate(-45deg);
}

.toggleButton.close > span:last-of-type {
  transform: translateY(-0.5rem) rotate(45deg);
}

.toggleButton.close > span:nth-of-type(2) {
  opacity: 0;
}

.toggleButton > span {
  width: 1.3rem;
  height: 0.2rem;
  background: var(--cwhite);
  border-radius: 2px;
  transition: opacity 0.7s cubic-bezier(0.19, 1, 0.22, 1) 0.1s,
    transform 0.7s cubic-bezier(0.19, 1, 0.22, 1) 0.1s;
}

.toggleButton > span:not(:last-of-type) {
  margin-bottom: 5px;
}

@media (min-width: 900px) {
  nav {
    right: 81%;
  }
}

@media (min-width: 1200px) {
  nav {
    right: 77%;
  }
}

.nav-item {
  padding: 7px;
  width: 30px;
  height: 30px;
  background-color: var(--clightgrey);
  margin: 5px 0;
  border-radius: 6px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.7s cubic-bezier(0.19, 1, 0.22, 1) 0.1s;
  text-decoration: none;
}

.nav-item:hover {
  opacity: 0.6;
}

.nav-item > span {
  color: var(--cwhite);
  overflow-x: hidden;
  display: flex;
}

.nav-item > span > .nav-btn-span {
  overflow-x: hidden;
  width: 0;
  margin-left: 0;
  transition: width 1s cubic-bezier(0.19, 1, 0.22, 1) 0.05s,
    margin 0.5s cubic-bezier(0.39, 0.575, 0.565, 1) 0.05s;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 0;
  display: flex;
  align-items: center;
}

.nav-item > span > i {
  font-size: 1.3rem;
}

nav:hover {
  width: 150px;
}

nav:hover > .nav-item {
  width: calc(150px - 14px);
}

nav:hover > .nav-item > span > .nav-btn-span {
  margin-left: 8px;
  opacity: 1;
}

nav:hover > .nav-item:nth-of-type(1) > span > .nav-btn-span,
.mobile-show > .nav-item:nth-of-type(1) > span > .nav-btn-span {
  width: 36px;
}

nav:hover > .nav-item:nth-of-type(2) > span > .nav-btn-span,
.mobile-show > .nav-item:nth-of-type(2) > span > .nav-btn-span {
  width: 47px;
}

nav:hover > .nav-item:nth-of-type(3) > span > .nav-btn-span,
.mobile-show > .nav-item:nth-of-type(3) > span > .nav-btn-span {
  width: 26px;
}

nav:hover > .nav-item:nth-of-type(4) > span > .nav-btn-span,
.mobile-show > .nav-item:nth-of-type(4) > span > .nav-btn-span {
  width: 58px;
}

nav:hover > .nav-item:nth-of-type(5) > span > .nav-btn-span,
.mobile-show > .nav-item:nth-of-type(5) > span > .nav-btn-span {
  width: 38px;
}

nav:hover > .nav-item:nth-of-type(6) > span > .nav-btn-span,
.mobile-show > .nav-item:nth-of-type(6) > span > .nav-btn-span {
  width: 49px;
}

nav:hover > .nav-item:nth-of-type(7) > span > .nav-btn-span,
.mobile-show > .nav-item:nth-of-type(7) > span > .nav-btn-span {
  width: 41px;
}

nav:hover > .nav-item:nth-of-type(8) > span > .nav-btn-span,
.mobile-show > .nav-item:nth-of-type(8) > span > .nav-btn-span {
  width: 45px;
}

.mobile-show {
  width: 150px;
}

.mobile-show > .nav-item {
  width: calc(150px - 14px);
}

.mobile-show > .nav-item > span > .nav-btn-span {
  margin-left: 8px;
  opacity: 1;
}

.circle {
  display: flex;
  width: 100px;
  height: 100px;
  background-image: var(--cred);
  -webkit-clip-path: circle(45%);
  clip-path: circle(45%);
}

@media (min-width: 900px) {
  .circle {
    width: 150px;
    height: 150px;
  }
}

@media (min-width: 1200px) {
  .circle {
    width: 200px;
    height: 200px;
  }
}

.profile-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.profile-texts {
  width: 100%;
  display: block;
  margin-left: 1vw;
}

.profile-name {
  font-size: calc(1.2rem + 1vw);
}

.profile-role {
  font-size: calc(0.8rem + 0.6vw);
}

.profile-quick-access {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-content: start;
}

.profile-quick-access > div {
  width: 100%;
  display: flex;
  justify-content: start;
  margin-top: 1rem;
}

.profile-quick-access > div > a {
  padding: 8px 12px;
  background: var(--cwhite);
  color: var(--cblack);
  border-radius: 5px;
  text-decoration: none;
  align-items: center;
  width: 100%;
  text-align: center;
  transition: opacity 0.3s ease-in-out;
}

.profile-quick-access > div > a > i {
  font-size: 1.2rem;
}

.profile-quick-access > div > a:hover {
  opacity: 0.8;
}

.profile-quick-access > div:first-of-type > a:not(:last-of-type) {
  margin-right: 2rem;
}

.profile-quick-access > div:nth-child(2) > a:first-of-type {
  margin-right: 2rem;
}

.profile-quick-access > div:nth-child(2) > a:last-of-type {
  margin-left: 2rem;
}

@media (max-width: 500px) {
  .profile-quick-access > div > a > span {
    display: none;
  }
}

.profile-info {
  display: flex;
  text-align: start;
  width: 100%;
  align-items: center;
}

#projects > h1 {
  margin-bottom: 1rem;
}

.projects-list > .project-card {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-top: 1rem;
  background: var(--cblack);
  border-radius: 10px;
  padding: 1rem;
  color: var(--cwhite);
  text-decoration: none;
}

.project-tags {
  display: flex;
  align-items: center;
}

.project-tags > span {
  width: max-content;
  margin-bottom: 0;
}

.project-image {
  border-radius: 7px;
  height: 75px;
  width: 75px;
}

.projects-list > .project-card > div {
  margin-left: 1rem;
}

.project-description {
  font-weight: 600;
  color: var(--cwhite);
  opacity: 0.7;
}

.project-heading > a {
  text-decoration-color: var(--cwhite);
}

.project-name {
  display: flex;
  color: var(--cwhite);
  align-items: center;
  margin-right: 12px;
}

.project-heading {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
}

.project-card > div {
  width: 100%;
}

.projects-controls {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.projects-controls span {
  font-size: 0.9rem;
  opacity: 0.5;
  margin-left: 0.6rem;
}

.projects-controls > select {
  width: 30%;
  background: var(--cblack);
  border-radius: 5px;
  color: var(--cwhite);
  padding-left: 0.5rem;
  border: none;
}

.project-heading > .project-links {
  margin-left: auto;
  display: flex;
}

.project-heading > .project-links > a {
  color: var(--cwhite);
  text-decoration: none;
  margin-left: 0.5rem;
  font-size: 1.1rem;
}

#socials > h1 {
  margin-bottom: 1rem;
}

.social-list {
  display: flex;
  flex-wrap: wrap;
}

.social-list > a {
  box-sizing: border-box;
  display: flex;
  margin-left: 0.5rem;
  justify-content: flex-start;
  align-items: center;
  width: calc(50% - 0.5rem);
  margin-top: 1rem;
  background: var(--cblack);
  border-radius: 10px;
  padding: 0.8rem;
  color: var(--cwhite);
  text-decoration: none;
}

.socials-list > a > div {
  margin-left: 1rem;
}

.social-description {
  font-weight: 600;
  color: var(--cwhite);
  opacity: 0.7;
}

.social-name {
  display: flex;
  align-items: center;
}

.social-handle {
  margin-left: 0.5rem;
  opacity: 0.8;
}

@media (max-width: 600px) {
  .social-handle {
    margin-left: 0;
    font-size: 0.8rem;
  }
}

.social-heading {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
}

.social-icon {
  padding: 0.5rem;
}

#tech > h1 {
  margin-bottom: 1rem;
}

.technologies-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.tech-item {
  display: flex;
  align-items: center;
  margin: 0.5rem 1rem;
}

.tech-item > img {
  width: 120px;
  height: auto;
}

@media (max-width: 500px) {
  .tech-item > img {
    width: 80px;
    height: auto;
  }
}

.tech-heading {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.tech-heading > select {
  width: 30%;
  background: var(--cblack);
  border-radius: 5px;
  color: var(--cwhite);
  padding-left: 0.5rem;
  border: none;
}

#footer a {
  color: var(--cwhite);
  text-decoration: none;
  text-decoration: underline;
  text-underline-offset: 4px;
}

#footer a:hover {
  opacity: 0.8;
}

#footer > ul {
  display: flex;
  flex-direction: column;
}

#footer > ul li {
  margin: 0.07rem 0;
  list-style: none;
}

#footer .space-2 {
  margin-bottom: 1rem;
}
#footer .space-1 {
  margin-bottom: 0.4rem;
}

#education {
  --iconwidth: 3rem;
}

#education > h1 {
  margin-bottom: 1rem;
}

.timeline {
  display: flex;
  padding-left: calc(var(--iconwidth) / 2);
}

.timeline .line {
  min-width: 0.1rem;
  background-color: var(--cwhite);
}

.timeline-item {
  display: flex;
  margin: 1.5rem 0;
}

.timeline-item-icon {
  min-width: var(--iconwidth);
  height: var(--iconwidth);
  border-radius: 50%;
  background-color: var(--cdarkgrey);
  margin-left: calc(var(--iconwidth) / -2);
  margin-top: calc(50px - var(--iconwidth) / 2);
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  border: 2px solid var(--cwhite);
}

.timeline-item-content {
  width: 100%;
  margin-left: 2rem;
  display: flex;
  flex-wrap: wrap;
}

.timeline-item-content > img {
  border-radius: 10px;
  object-fit: cover;
  margin-right: 1rem;
}

.certificate {
  width: calc(100% - 1rem - 100px - var(--iconwidth) / 2);
  position: relative;
}

.certificate > .showChildren {
  position: absolute;
  padding: 0;
  top: 40%;
  right: -20px;
  transform: translateY(-50%);
  color: var(--cgrey);
  background: var(--cwhite);
  border: none;
  box-shadow: none;
  height: 20px;
  width: 20px;
  border-radius: 2px;
  cursor: pointer;
}

.certificate > .degree {
  font-size: 1.4rem;
  font-weight: 700;
  width: 100%;
}

.certificate > .degree > a {
  text-decoration: underline;
  color: var(--cwhite);
}

.certificate > .date,
.certificate > .type {
  font-size: 0.8rem;
  color: var(--cwhite);
  opacity: 0.6;
}

.certificate > .tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 0.3rem;
}

.certificate:not(:first-of-type) {
  margin-top: 0.6rem;
  margin-left: calc(100px + 1rem);
}

.certificate:not(:first-of-type) > .degree {
  font-size: 1.2rem;
  font-weight: 600;
}

.certificate:not(:first-of-type)::before {
  content: "";
  display: block;
  margin-left: calc(
    -100px - 3rem - var(--iconwidth) / 2 - var(--iconwidth) / 6
  );
  width: calc(var(--iconwidth) / 3);
  height: calc(var(--iconwidth) / 3);
  background: var(--cwhite);
  border-radius: 50%;
  transform: translateY(3rem);
}

@media (max-width: 600px) {
  .certificate > .tags > .tag {
    display: none;
  }
  .certificate:not(:first-of-type) {
    margin-top: 1rem;
    margin-left: 0;
  }
  .certificate {
    width: 95%;
  }
  .certificate:not(:first-of-type)::before {
    margin-left: calc(-2rem - var(--iconwidth) / 2 - var(--iconwidth) / 6);
  }
}

#career {
  --iconwidth: 3rem;
}

#career > h1 {
  margin-bottom: 1rem;
}

.timeline {
  display: flex;
  padding-left: calc(var(--iconwidth) / 2);
}

.timeline-list {
  width: 100%;
}

.timeline .line {
  min-width: 0.1rem;
  background-color: var(--cwhite);
}

.timeline-item {
  display: flex;
  margin: 1.5rem 0;
}

.timeline-item-icon {
  min-width: var(--iconwidth);
  height: var(--iconwidth);
  border-radius: 50%;
  background-color: var(--cdarkgrey);
  margin-left: calc(var(--iconwidth) / -2);
  margin-top: calc(50px - var(--iconwidth) / 2);
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  border: 2px solid var(--cwhite);
}

.timeline-item-content {
  width: 100%;
  margin-left: 2rem;
  display: flex;
  flex-wrap: wrap;
}

.timeline-item-content > img {
  border-radius: 10px;
  object-fit: cover;
  margin-right: 1rem;
}

.job {
  width: calc(100% - 1rem - 100px - var(--iconwidth) / 2);
  position: relative;
}

.job > .role {
  font-size: 1.4rem;
  font-weight: 700;
  width: 100%;
}

.job > .showChildren {
  position: absolute;
  top: 40%;
  right: -20px;
  transform: translateY(-50%);
  color: var(--cgrey);
  background: var(--cwhite);
  border: none;
  box-shadow: none;
  height: 20px;
  width: 20px;
  border-radius: 2px;
}

.job > .role > a {
  text-decoration: underline;
  color: var(--cwhite);
  width: 100%;
}

.job > .date,
.job > .type {
  font-size: 0.8rem;
  color: var(--cwhite);
  opacity: 0.6;
}

.job > .tech {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 0.3rem;
}

.job:not(:first-of-type) {
  margin-top: 0.6rem;
  margin-left: calc(100px + 1rem);
}

.job:not(:first-of-type) > .role {
  font-size: 1.2rem;
  font-weight: 600;
}

.job:not(:first-of-type)::before {
  content: "";
  display: block;
  margin-left: calc(
    -100px - 3rem - var(--iconwidth) / 2 - var(--iconwidth) / 6
  );
  width: calc(var(--iconwidth) / 3);
  height: calc(var(--iconwidth) / 3);
  background: var(--cwhite);
  border-radius: 50%;
  transform: translateY(3rem);
}

@media (max-width: 600px) {
  .job > .tech > span {
    display: none;
  }
  .job:not(:first-of-type) {
    margin-top: 1rem;
    margin-left: 0;
  }
  .job {
    width: 100%;
  }
  .job:not(:first-of-type)::before {
    margin-left: calc(-2rem - var(--iconwidth) / 2 - var(--iconwidth) / 6);
  }
}


.blog-description {
  color: #acacac;
}

.blog-name {
  display: flex;
  align-items: center;
  margin-right: 12px;
  font-size: 1.2rem;
  width: 100%;
}

.blog-heading {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
}

.blog-post {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-top: 1rem;
  background: var(--cblack);
  border-radius: 10px;
  padding: 1rem;
  color: var(--cwhite);
  text-decoration: none;
}

.blog-post > div {
  margin-left: 1rem;
}

@media (max-width: 600px) {
  .blog-post .blog-description {
    display: none;
  }
}

.post-tag.small {
  background-color: var(--clightgrey);
  color: var(--cwhite);
  border-radius: 15px;
  padding: 0.2rem 0.5rem;
  margin-right: 0.4rem;
  font-size: 0.7rem;
}

.blog-date {
  font-size: 0.8rem;
}

.blog-image {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 10px;
}

.blog-categories {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.blog-categories > .blog-series {
  margin-right: 1rem;
}

.blog-series {
  font-style: italic;
}

.project-bottom-list-text {
  width: 100%;
  margin-top: 2rem;
  text-align: center;
  font-size: 0.9rem;
  display: block;
}

.project-bottom-list-text > a {
  display: inline;
}

a {
  text-align: left;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 1rem;
  color: var(--cwhite);
  cursor: pointer;
  text-decoration: underline;
  margin-top: 0.1rem;
}

form div:first-of-type {
  display: flex;
  flex-direction: column;
}

form div label {
  margin-bottom: 0.3rem;
}

form div input, form div textarea {
  padding: 0.5rem;
  border-radius: 5px;
  border: 1px solid var(--clightgrey);
  background: var(--cdarkgrey);
  color: var(--cwhite);
  margin-bottom: 0.3rem;
}

form div textarea {
  resize: vertical;
  min-height: 100px;
}

form div button {
  margin: 1rem 0;
}
