body {
  background: var(--bg-col);
}

#pc-task-nav {
  position: sticky;
  display: flex;
  max-width: 800px;
  width: 100%;
  margin: auto;
  justify-content: space-between;
  align-items: center;
}

#pc-task-nav a {
  border: 1px solid #222;
  padding: 0.5rem;
  font-weight: 600;
  color: #222;
  transition: all 100ms linear;
  cursor: pointer;
  text-decoration: none;
  background: var(--bg-col);
}

#pc-task-nav a:hover {
  background: #222;
  color: #fff;
}


#mobile-task-nav {
  position: fixed;
  display: none;
  justify-content: space-between;
  bottom: 0;
  left: 0;
  width: 100vw;
}

#mobile-task-nav a {
  background: var(--accent-col);
  padding: 0.5rem;
  font-weight: 600;
  border-radius: 0.5rem;
  color: #333;
  padding: 2vmin 3vmin;
  text-decoration: none;
}


#mobile-task-nav a:nth-of-type(1) {
  border-radius: 0 2vmin 0 0;
}

#mobile-task-nav a:nth-of-type(2) {
  border-radius: 2vmin 0 0 0;
}

hgroup {
  max-width: 800px;
  width: 100%;
  margin: auto;
  padding: 0 1rem;
  box-sizing: border-box;
}

header {
  display: flex;
  justify-content: space-between;
  width: 100%;
  align-items: center;
  flex-wrap: wrap;
}

header h1 {
  flex-grow: 1;
}

header button {
  background: var(--bg-col);
  padding: 0.5rem;
  font-weight: 600;
  border-radius: 0.5rem;
  border: none;
  color: var(--text-col);
  margin: 0.5rem;
}

header button:hover {
  cursor: pointer;
  background: var(--panel-col);
}

header form button {
  
  background: var(--accent-col);
}

hgroup .details {
  padding: 0;
  border: solid 1px var(--panel-outline);
  border-radius: 0.5rem;
  width: 50%;
  max-width: 300px;
  min-width: 150px;
}

hgroup .details li {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem;
  text-transform: capitalize;
}

hgroup .details li p {
  margin: 0;
  font-size: 1rem;
}

hgroup .details li:not(:last-child) {

  border-bottom: solid 1px var(--panel-outline);
}

/*Start the actual ain content*/

main {
  max-width: 800px;
  width: 100%;
  margin: auto;
  padding: 0 1rem;
  box-sizing: border-box;
}

.task {
  margin-top: 5rem;
}

/*
Solution
*/

details {
  border-radius: 1rem 0 1rem 0;
  border-top: #555 1px solid;
  border-left: #555 1px solid;
  border-right: #5550 1px solid;
  border-bottom: #5550 1px solid;
  overflow: hidden;
  transition: 200ms all ease-in-out;
}

details>div {
  margin: 0 1rem 1rem 1rem;
}

details[open] {
  border: none;
  border: #555 1px solid;
}

details[open]>summary {
  border: none;
}

summary {
  position: relative;
  border-radius: 0 0 1rem 0;
  overflow: hidden;
}

summary::after {
  z-index: -1;
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0;
  background: var(--accent-col);
  transition: 100ms all linear;
}

summary:hover::after {
  width: 100%;
}

.solution {
  margin-top: 2rem;
}

.solution summary {
  display: block;
  border-right: #555 1px solid;
  border-bottom: #555 1px solid;
  width: fit-content;
  padding: 0.5rem 1rem;
  cursor: pointer;
  text-transform: uppercase;
}

details>summary::before {
  content: "Show ";
  text-transform: uppercase;
}

details[open]>summary::before {
  content: "Hide ";
}

.solution summary h2 {
  margin: 0;
  font-size: 1.2rem;
}

.solution summary h2:before {
  content: "Open ";
}

.solution[open] summary h2:before {
  content: "Close ";
}


/*Questions*/

.questions-overlay {
  position: relative;
  border-radius: 1rem;
  min-height: 200px;
  min-width: 200px;
  width: 100%;
  margin: 0;
  display: flex;
  flex-flow: column;
}

.questions-overlay form {
  display: flex;
  margin: 0 1.5rem;
  margin-top: 1.7rem;
  border-radius: 0.8rem;
  transition: all 150ms linear;
}

.questions-overlay form:focus-within {
  background-color: var(--overlay-col);
  margin: -0.8rem 0.7rem;
  margin-top: 0.9rem;
  padding: 0.8rem 0.8rem;
}

.questions-overlay input[type=text] {
  outline: none;
  background: none;
  border: var(--panel-outline) 1px solid;
  border-radius: 5px;
  padding: 5px;
  color: var(--text-col);
  flex-grow: 1;
  font-size: 1rem;
  transition: all 150ms linear;
}

.questions-overlay form:focus-within input[type=text] {
  background: var(--panel-col);
}

.questions-overlay form button {
  transition: all 150ms linear;
  opacity: 0;
  margin-left: 0.4em;
  font-size: 1rem;
  color: white;
  background-color: rgb(50, 100, 255);
  border: none;
  border-radius: 0.4rem;
  padding: 0.2rem 0.4rem;
}

.questions-overlay form button:hover {
  background: rgb(80, 140, 255);
}

.questions-overlay form:focus-within button {
  opacity: 1;
}

.qo-field {
  margin: 0 0.5rem;
  overflow: auto;
  height: fit-content;
  padding: 0;
  padding-top: 1.5rem;
}

.qo-field li {
  display: block;
  margin-bottom: 3rem;
  font-size: 1.1rem;
}

.qo-field li p {
  margin: 0.4rem 0;
}

.qo-field .qo-answer {
  padding: 0.2rem 0.4rem;
  border-left: 5px solid blueviolet;
  border-radius: 5px;
  margin-right: 3rem;
  background: var(--panel-col);
}

.qo-field .qo-unanswered-q {
  padding: 0.2rem 0.4rem;
  border-left: 5px solid crimson;
  border-radius: 5px;
  margin-right: 3rem;
  background: #f002;
}
.qo-unanswered-q {
  border: #555 1px solid;
}

.qo-field .qo-unanswered-q summary {
  cursor: pointer;
  border: none;
  border-radius: 5px;
  padding: 5px;
}


/*MOBILE ADJUSTMENTS*/

@media (max-width: 600px) {
  #pc-task-nav {
    display: none;
  }

  details>div {
    margin: 0;
  }

  #mobile-task-nav {
    display: flex;
  }

  .solution summary {
    width: 100%;
    padding: 0.5rem 0;
    text-align: center;
  }
}