:root {
  color-scheme: only light;
  --colour-bg: #faebd7;
  --colour0: #000000;
  --colour1: #557C45;
  --colour-0-1: var(--colour0);
  --colour2: #D2691E;
  --card-content-color: var(--colour-bg);
  --card-radius: 10px;
  --card-padding: 30px;
  --general-spacing: 1rem;
}


* {
  box-sizing: border-box;
  transition: 0.05s;
}

body {
  background-color: var(--colour-bg);
  margin: 0;
  font-size: clamp(12px, 1em, 22px);
  font-family: monospace;
  transition: background-color 1s;
}

main {
  padding: 0px var(--general-spacing) 0px var(--general-spacing);
}

a {
  text-decoration: none;
  color: var(--colour2);
}

a:visited {
  color: var(--colour2);
}

a:hover {
  color: purple;
}


#logo {
  width: 50px;
  height: 50px;
  margin-right: 10px;
  animation: logoanim 5s infinite linear;
}

.colour-0-1 {
  background-color: var(--colour-0-1);
}

#nav-div {
  display: flex;
  position: -webkit-sticky;
  position: sticky;
  z-index: 99999;
  top: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 0px 20px 0px 20px;
  margin: 0px var(--general-spacing) var(--general-spacing) var(--general-spacing);
  border-radius: 10px;
}

#nav-link-span {
  margin: 0;
  padding: 0;
}

#nav-link-span > a {
  color: var(--colour-bg);
  font-size: 18px;
  padding: 0;
  margin: 0 0 0 var(--general-spacing);
}

/*
a.navlink {
  color: var(--colour-bg);
  font-family: monospace;
  font-size: 25px;
  text-decoration: underline;
}

a.navlink:hover {
  animation: navanim 0.125s 2 linear forwards;
}
  */

@keyframes navanim {
  25% {
    transform: rotate(10deg);
  }

  50% {
    transform: rotate(0deg);
  }

  75% {
    transform: rotate(-10deg);
  }

  100% {
    transform: rotate(0deg);
  }
}

@keyframes logoanim {
  25% {
    transform: rotate(10deg);
  }

  50% {
    transform: rotate(0deg);
  }

  75% {
    transform: rotate(-10deg);
  }

  100% {
    transform: rotate(0deg);
  }
}


#title {
  color: var(--colour-bg);
  border: none;
  font-size: 16px;
}

#tech {
  grid-area: tech;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#tech>h2 {
  border: none;
  color: var(--colour-bg);
}

#tech-selection {
  display: flex;
  margin-bottom: 20px;
}

#tech-selection > div {
  font-size: 12px;
  margin-right: 20px;
  background-color: rgb(14, 14, 14);
  color: var(--colour-bg);
  padding-left: 10px;
  padding-right: 10px;
  border-radius: 10px;
  box-shadow: -2px -2px 5px 5px rgb(20, 20, 20), 3px 3px 5px 5px black;
  cursor: pointer;
}

#tech-selection>div:hover {
  transform: scale(0.95);
  color: var(--colour-bg);
  box-shadow: 0px 0px 5px 5px rgb(20, 20, 20), 3px 3px 5px 5px black, inset 0px 0px 2px 2px rgb(7, 7, 7);
}

#tech-selection > div:active {
  transform: scale(0.9);
  color: var(--colour-bg);
  box-shadow: 0px 0px 5px 5px rgb(20, 20, 20), 3px 3px 5px 5px black, inset 0px 0px 5px 5px rgb(7, 7, 7);
}

#tech-icons {
  display: grid;
  grid-template-columns: repeat(4, minmax(50px, 1fr));
  grid-gap: var(--general-spacing);
}

.tech-stack-item,
.tech-tool {
  transition: transform .5s;
}

.tech-stack-item:hover,
.tech-tool:hover {
  transform: scale(0.9);
}

.main-content {
  display: grid;
  grid-template-areas:
    "tech-and-workspaces"
    "projects"
    "contributions";
  grid-gap: var(--general-spacing);
  justify-content: center;
}

#tech-and-workspaces {
  grid-area: tech-and-workspaces;
  display: grid;
  grid-template-areas:
    "tech"
    "workspaces";
  grid-gap: var(--general-spacing);
  align-content: start;
}

@media (min-width: 600px) {
  #tech-and-workspaces {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "tech  workspaces";
  }
}

@media (min-width: 820px) {
  .main-content {
    grid-template-columns: 3fr 1fr;
    grid-template-areas:
      "tech-and-workspaces  contributions"
      "projects     projects";
  }
}

@media (min-width: 1000px) {
  .main-content {
    grid-template-columns: 1fr 3fr 1fr;
    grid-template-areas:
      "tech-and-workspaces projects  contributions";
  }

  #tech-and-workspaces {
    grid-template-areas:
      "tech"
      "workspaces";
  }
}

#workspaces {
  grid-area: workspaces;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#workspaces>h2 {
  color: var(--colour-bg);
  border: none;
}

#workspace-list {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.workspace {
  background-color: rgb(14, 14, 14);
  color: var(--colour-bg);
  width: 200px;
  text-align: center;
  padding: 20px;
  margin-bottom: 25px;
  border-radius: 10px;
  box-shadow: -2px -2px 5px 5px rgb(20, 20, 20), 3px 3px 5px 5px black;
}

.workspace:hover {
  transform: scale(0.98);
}

.workspace:active {
  transform: scale(0.96);
  color: var(--colour-bg);
}

.grid-item {
  background-color: var(--colour0);
  color: var(--colour-bg);
  padding: 30px;
  border-radius: 10px;
  transition: transform .25s, color 1s, background-color 1s;
}


#contributions {
  grid-area: contributions;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#contributions>h2 {
  border: none;
  color: var(--colour-bg);
}

footer {
  background-color: var(--colour0);
  color: var(--colour-bg);
  font-size: 16px;
  text-align: center;
  padding: 10px;
  margin: var(--general-spacing);
  border-radius: 10px;
}

/*Theme Toggle*/

#theme-options-toggle {
  width: 30px;
  cursor: pointer;
}

#theme-options-toggle:hover {
  transform: scale(0.95);
  color: var(--colour-bg);
}

#theme-options-toggle:active {
  transform: scale(0.9);
}

#theme-box {
  width: 100%;
  display: flex;
  position: -webkit-sticky;
  position: sticky;
  z-index: 99999;
  top: 40px;
  padding: 0;
  justify-content: flex-end;
}

#theme-box-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#theme-box-header>h5 {
  text-decoration: double underline;
  padding: 0;
  margin: 0;
}

.all-tech {
  width: 48px;
}

#theme-slider-box {
  width: max-content;
  display: none;
  position: absolute;
  margin: var(--general-spacing) var(--general-spacing) 0 0;
  flex-direction: column;
  align-items: center;
  color: white;
  padding: 10px;
  border-radius: 10px;
}

#theme-close {
  width: 18px;
  cursor: pointer;
  align-self: flex-end;
}

#theme-slider {
  margin-top: 15px;
  cursor: pointer;
  appearance: none;
  width: 200px;
  height: 25px;
  background: var(--colour-bg);
  outline: none;
  border-radius: 12px;
}

#theme-slider::-webkit-slider-thumb {
  appearance: none;
  width: 20px;
  height: 20px;
  padding: 10px;
  border-radius: 50%;
  background: #FFFFFF;
  cursor: pointer;
}

#theme-labels {
  display: flex;
  font-size: 14px;
  justify-content: space-between;
  width: 100%;
}