:root {
    --dark-col : #1c1c0c;
    --bg-col : #444428;
    --tx-col : #e1dfae;
    --acc-col : #aeb87b;
    --card-col : #787849;
    --acc-bg : #111;
    --dis-txt : 'ClashDisplay-Variable', "DM Sans", sans-serif; 
    --head-txt : 'ClashDisplay-Variable', serif;
    --head-txt-2 : "Forum", serif;
    --body-txt : "DM Sans", sans-serif;
    --acc-txt : "Micro 5", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  scroll-behavior: smooth;
}

#page {
  padding: 1rem 1rem 0;
}

.lock-body {
  overflow: hidden;
}

.theme_colour-red {
    --acc-bg : red;
}

.site-title {
    margin-bottom: 0;
    a {
        font-family: var(--dis-txt);
        text-decoration: none;
        font-size: 2rem;
        font-variation-settings: 'opsz' 75, 'wght' 700; 
    }
}

body {
    /* --bg-blend : color-mix(in srgb, var(--bg-col) 96.25%, var(--acc-bg)); */
    background: var(--bg-col);
    color: var(--tx-col);
    font-family: var(--body-txt);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--head-txt);
}


.course-toggle {
  display: flex;
  justify-content: center;
  gap: 2rem;
}
.course-toggle button {
  background: transparent;
  border: none;
  color: var(--tx-col);
  padding: .5rem .75rem;
  border-radius: 0;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: .8rem;
  opacity: .8;
}
.course-toggle button.active {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: .25rem;
  text-decoration-thickness: .125rem;
}


.page-template-template-skill-tree h2 {
  font-size: 4.5rem;
  font-weight: 400;
  text-align: center;
  margin: 2rem 0;
}

button {
    font-family: var(--acc-txt);
}

a {
    color: var(--acc-col);
    transition: all .25s linear;
    &:hover {
      color: white;
    }
    &:active {
      color: gold;
    }
    &:visited {
      color: var(--acc-col);
    }
}

#page {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}

#masthead {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    .main-navigation {
        width: fit-content;
        .menu {
            display: flex;
            gap: 1rem;
        }
    }
}

.skill-tree {
    list-style: none;
    padding-left: 0;
}

.skill-node.parent {
    margin: 0.5rem 0;
    display: flex;
    flex-direction: column;
    border-radius: 1rem;
    gap: .5rem;
    > .skill-icon-container {
      margin: 0 auto;
      
      /* animation: rotate_360 infinite linear 40s;    */
      > * {
          /* animation: rotate_360 infinite linear 40s reverse; */
      }
    }
    > .skill-title {
    text-align: center;
    font-size: 2rem;
    font-family: var(--dis-txt);
    font-variation-settings: 'opsz' 75, 'wght' 400;
    margin-top: .5rem;
    /* text-shadow: 1px 1px 1px var(--acc-col), 1px 2px 1px var(--acc-col), 1px 3px 1px var(--acc-col), 1px 4px 1px var(--acc-col) */
    }
}

@keyframes rotate_360 {
    0% {transform: rotate(0deg);}
    100% {transform: rotate(360deg);}
}

@keyframes icon_glow {
    0% {filter: drop-shadow(0 0 .33rem var(--acc-col));}
    0% {filter: drop-shadow(0 0 .46rem var(--acc-col));}
}

.skill-node .skill-icon-container::before, .skill-node .skill-icon-container::after {
  content: "";
  width: .25em;
  height: .25em;
  display: block;
  background: var(--bg-col);
  position: absolute;
  rotate: 45deg;
  outline: .125em var(--acc) solid;
}

.skill-node .skill-icon-container::before {
  top: -.5em;
  /* border-radius: 0 1em 1em; */
}

.skill-node .skill-icon-container::after {
  bottom: -.5em;
  /* border-radius: 1em 1em 0; */
}


.skill-parent-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.skill-tree-nav {
  display: flex;
  max-width: 1000px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 40px 1%;
  justify-content: center;
  margin-bottom: 5%;
  a {
    width: 19%;
    display: flex;
    gap: .5rem;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: bold;
    font-size: .9rem;
    line-height: 1.1;
    word-break: break-word;
    position: relative;
    text-align: center;
    color: var(--tx-col);   
    .skill-icon-container {
      position: absolute;
      margin: auto;
      left: 0;
      right: 0;
      opacity: .4;
      color: var(--acc-col);
      i {
        font-size: 4em;
      }
    }

  }
}



.skill-node ul {
    margin-left: 1rem;
    border-left: 2px solid #ddd;
    padding-left: 1rem;
}

.child.status-achieved {
    --acc : goldenrod;
    .skill-icon-container {
      filter: drop-shadow(0 0 5px var(--acc));
      border-color: var(--tx-col);
    }
}

.child.status-in_progress {
    --acc :  tomato;
}

.child.status-not_achieved  {
    --acc :  red;
}

.child.status-available {
    --acc :  var(--tx-col);
}

.course-shell {
    display: none;
}

.course-shell.active {
    display: grid;
}


.skill-select.locked {
    opacity: 0.5;
}

.skill-select.locked input {
    cursor: not-allowed;
}

.lock-note {
    font-size: 12px;
    color: #888;
    margin-top: 3px;
}

.skill-root {
    display: grid;
    margin: 0 auto;
    grid-template-columns: repeat(2, 1fr);
    max-width: 1000px;
    gap: 50px 100px;
}

.skill-tree.skill-branch {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem 1.5rem;
  align-items: start;
}

.tier-divider {
  grid-column: 1/-1;
  font-family: var(--acc-txt);
}

.skill-node.parent {
    --acc : var(--tx-col);
    font-size: 1.25rem;
}

.tier-hint {
  font-size: .8rem;
  font-weight: bold;
  text-align: center;
}

.lock-label {
    position: absolute;
    top: 0;
    left: 0;
}

.skill-node .skill-icon-container {
  width: 4em;
  height: 4em;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  border: .125em solid var(--acc-col);
  outline: .175em currentcolor solid;
  outline-offset: .125em;
  padding: 2em;
  box-sizing: border-box;
  position: relative;
  
  i {
    font-size: 2em;
    aspect-ratio: 1;
    display: inline-block;
  }
}

.skill-parent-container .skill-title {
  margin-top: 1.5rem;
}

.skill-node.child {
    font-size: 1rem;    
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  align-items: center;
  position: relative;
  z-index: 900;
  color: var(--acc);
  gap: .5em;
  margin-bottom: 1.5rem;
  .skill-title {
    font-size: .75rem;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1;
    margin-top: .5rem;
  }
}



.more-info-trigger {
  font-size: 1.25rem;    
  display: block;
  cursor: pointer;
}

.skill-description.more-info-closed {
    max-height: 0;
    overflow: hidden;
}

.skill-description.more-info-expanded {
    max-height: 1000px;
    overflow: visible;
}

.skill-description {
    font-size: .8rem;
    line-height: 1.2;
    transition: .25s transform;
    font-family: var(--acc-txt);
}


.tier-divider {
    margin: 2rem 0 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: bold;
  text-transform: uppercase;
  font-size: .8rem;
  i {
      font-size: 1rem;
  }
}

.tier-divider::before, .tier-divider::after {
  content: "";
  display: block;
  height: 2px;
  background: var(--tx-col);
  flex-grow: 1;
}


.sq-home-container {
  display: grid;
  grid-template-columns: 1fr 5fr;
  gap: 2rem;
  .sq-info {
    padding: 3rem 0 3rem;
    grid-column: 1/-1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 50px;
    align-items: center;
    .sq-content {
      width: 100%;
      grid-column: 1/ span 1;
      
      grid-row: 1/-1;
      h2 {
        font-size: 4rem;
        color: white;
        font-weight: 500;
        /*! text-align: center; */
      }
    }
    .sq-image {
      grid-row: 1/-1;
      grid-column: 2/-1;
      svg {
        width: 100%;
        max-width: 500px;
        fill: var(--tx-col);
        float: right;
      }
    }
  }
}


.quest-card .duration-date {
  display: flex;
  gap: 10px;
}

.side-quest-container {
  .duration-date {
    margin-bottom: 1rem;
    p {
      margin-bottom: 0;
      span {
        font-weight: 900;
        font-size: .8rem;
        text-transform: uppercase;
        letter-spacing: 1px;
      }
    }
  }
}

.subject-filters {
  display: flex;
  flex-direction: column;
  .active {
    font-weight: bold;
  }
  h4 {
    padding: .5rem;
    border: 1px solid currentcolor;
    background-color: var(--tx-col);
    border-color: var(--tx-col);
    color: var(--bg-col);
    text-transform: uppercase;
    font-size: .75rem;
    display: flex;
    align-item: center;
    gap: .25rem;
    i {
      font-size: 1.25rem;
    }
  }
  a {
    font-size: .75rem;
    font-weight: bold;
    text-decoration: none;
    padding: .5rem;
    border: 1px solid currentcolor;
    border-bottom: 0;
    &:last-child {
      border-bottom: 1px solid currentcolor;
    }
    &:hover {
      background-color: var(--tx-col);
      border-color: var(--tx-col);
      color: var(--bg-col)
    }
  }
}


#toggle-completed {
  border: 2px solid;
  background: var(--acc-col);
  font-size: 1.2rem;
  margin-top: 1rem;
}

.quest-card {
  --outline-l : 10px;
  --border-l : 1px;
  --status-col : color-mix(in hsl, var(--card-col), var(--dark-col) 85%);
  &.complete {
    --status-col :  rgb(77, 117, 58);
  }
  &.in-progress, &.pending {
    --status-col: rgb(115, 90, 24);
  }
  &.incomplete, &.in-complete {
    --status-col: rgb(89, 44, 16);
  }
  padding: calc(var(--outline-l) * 2);
  border: var(--border-l) solid var(--dark-col);
  display: flex;
  flex-direction: column;
  position: relative;
  /* filter: drop-shadow(0 3px 4px var(--dark-col)); */
  filter: url(#shadow);
  &:after {
    content: "";
    width: calc(100% - calc(2 * var(--outline-l)));
    height: calc(100% - calc(2 * var(--outline-l)));
    border: var(--border-l) solid var(--dark-col);
    position: absolute;
    top: var(--outline-l);
    left:  var(--outline-l);
    outline: var(--outline-l) solid var(--status-col);
    background: var(--card-col);
    pointer-events: none;
    z-index: -1;
  }
  .sq-locked-overlay {
      width: 100%;
      height: 100%;
      position: absolute;
      background: var(--dark-col);
      opacity: .8;
      top: 0;
      left: 0;
      display: flex;
      justify-content: center;
      align-items: center;
      flex-direction: column;
      padding: 3rem;
      text-align: center;
      border-radius: 0;
      i {
        font-size: 5rem;
      }
    }
  }



a.sq-readmore {
  font-family: var(--acc-txt);
  display: inline-block;
  font-size: 1.25rem;
  text-decoration: none;
  color: var(--tx-col);
  border: 2px ridge var(--tx-col);
  padding: .5rem 1rem;
  line-height: 1;
}

.quest-card {
  ul {
  list-style: none;
  margin: 0;
  padding: 0;
    li {
      margin: 0;
    }
  }
  h3 {
    line-height: 1.1;
  }
  .course-listing {
    font-family: var(--acc-txt);
    text-transform: uppercase;
    font-size: 1.2rem;
  }
  .sq-title-link {
    text-decoration: none;
    color: white;
    font-size: 1.75rem;
  }
}

.quest-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

#skill-drawer {
  position: fixed;
  top: 0;
  right: -500px;
  width: 500px;
  height: 100vh;
  background: var(--dark-col);
  box-shadow: -3px 0 10px rgba(0,0,0,.15);
  z-index: 9999;
  overflow-y: auto;
  transition: right .3s ease;
  padding: 20px;
  h2 {
    font-size: 3rem;
    line-height: 1.2;
  }
}

#skill-drawer.open {
  right: 0;
}

#skill-drawer + #skill-drawer-bg {
  position: absolute;
  top: 0;
  right: -100%;
  transition: right .3s ease;
  background: var(--dark-col);
  width: 0;
  bottom: 0;
  opacity: .8;
  backdrop-filter: blur(20px);
  z-index: 9998;
}

#skill-drawer.open + #skill-drawer-bg {
  right: 0;
  width: 100%;
}

#close-skill-drawer {
  float: right;
  cursor: pointer;
}

.skill-drawer-title {
  margin-top: 20px;
}

.quest-tree.quest-tree-progress {
  grid-template-columns: repeat(3, 1fr);
  display: grid;
  gap: 50px;
}
.quest-tree.quest-child:empty {
  display: none;
}


.skill-selection-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}
.skill-group-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}
.skill-group h4 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0;
}
.skill-group .tier-divider {
  margin-top: 1rem;
}


.student-assignment-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}
.student-skill {
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--acc-col);
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
}


.student-skill h5 {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: .8rem;
}


.submission-container {
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
}


.skill-grade {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom:1px solid var(--acc-col);
  h5 {
    text-transform: uppercase;
  }
  h3 {
    line-height: 1.2;
    margin: .5rem 0 1rem;
  }
}
.skill-status-container {
  display: flex;
  flex-direction: column;
}


.sq-status {
  position: absolute;
  top: -1.25rem;
  right: 1.25rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--status-col);
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid var(--dark-col);
}
.sq-status i {
  font-size: 1.75rem;
}


.side-quest-container {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  h1 {
  margin-top: 0;
  }
}


.sq-submission-info {
  text-align: center;
  display: grid;
  gap: .8rem;
}
.sq-submission-info > p {
  margin-bottom: 0;
  font-weight: bold;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .5px;
}


.quest-card .sq-categories {
  display: block;
  display: flex;
  font-family: var(--acc-txt);
  font-size: 1.25rem;
  text-transform: uppercase
}
.sq-categories li:after {
  content: "/";
  padding: 0 .5rem;
  opacity: .75;
}
.sq-categories li:last-child::after {
  display: none;
}

.read-more-categories {
  margin-top: auto;
  display: flex;
  gap: 1rem;
  align-items: center;
}

.quest-header {
  cursor: pointer;
  background: var(--dark-col);
}


td.actions .button-controls {
    display: flex;
}


#colophon {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--dark-col);
  font-size: .8rem;
  .site-info p {
    margin-bottom: 0;
    span {
      font-weight: bold;
    }
  }
}

@media screen and (max-width: 900px) {
 
 .quest-list {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 2rem;
 }
  
}

@media screen and (max-width: 600px) {
  
  .quest-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .sq-home-container {
    .sq-info {
      grid-template-columns: 1fr;
      grid-template-rows: auto auto;
      .sq-content {
        grid-row: 2;
        h2 {
          line-height: 1.1;
          margin-bottom: 1rem;
        }
      }
      .sq-image {
        grid-row: 1;
        grid-column: auto;
        svg {
          max-width: 300px;
          float: none;
          margin: 0 auto;
        }
      }
    }
  }
}