@font-face {
  font-family: 'SourceCodePro';
  src: url('fonts/SourceCodePro.woff2') format('woff2'),
    url('fonts/SourceCodePro.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

html {
  background-color: hsl(240, 40%, 10%);
}

#wrapper {
  color: #98989D;
  padding: 1em;
  font-family: SourceCodePro, monospace;
  max-width: 1600px;
  margin: auto;
}

/*--------------------------------------------------*/
/* HEADER */
/*--------------------------------------------------*/
nav {
  color: #009002;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1em 0 1em 0;
  border-bottom: 0.1em solid #009002;
}

nav a {
  text-decoration: none;
  color: #00CC00;
}

nav h1 {
  margin: 0;
  text-shadow: 0 0 2px #00cc00, 0 0 5px #00cc00;
  font-weight: normal;
}

/*--------------------------------------------------*/
/* MAIN */
/*--------------------------------------------------*/
body {
  margin: 0;
}

#inputSolutionPanel {
  display: flex;
  flex-direction: column;
}

#problemPanel,
#inputPanel {
  display: flex;
  flex-direction: column;
  align-items: space-between;
  border-bottom: 0.1em solid #009002;
}

#problemTitle {
  display: flex;
  justify-content: center;
  align-items: center;
}

#day {
  text-shadow: 0 0 2px #00cc00, 0 0 5px #00cc00;
  font-weight: 100;
}

#problemTitle a {
  text-decoration: none;
  color: #009002;
}

#problemTitle a:hover {
  color: #00CC00;
  text-shadow: 0 0 2px #00cc00, 0 0 5px #00cc00;
}

#problemPanel h1,
#inputPanel h1 {
  text-align: center;
  color: #00cc00;
  display: inline-block;
}

#inputPanel p,
#problemPanel p {
  height: 30em;
  overflow-y: auto;
  padding: 1em;
  white-space: pre-wrap;
  background-color: black;
}

#inputText {
  overflow-wrap: break-word;
}

.switch {
  position: relative;
  display: inline-block;
  width: 120px;
  height: 36px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #98989D;
  border-radius: 36px;
  transition: 0.4s;
}

.slider::before {
  position: absolute;
  content: "";
  height: 28px;
  width: 28px;
  left: 4px;
  bottom: 4px;
  background-color: black;
  border-radius: 50%;
  transition: 0.4s;
}

input:checked+.slider::before {
  transform: translateX(84px);
}

#inputPanel .slider::after {
  content: "Input";
}

#problemPanel .slider::after {
  content: "Part 1";
}

.slider::after {
  position: absolute;
  color: black;
  font-size: 14px;
  right: 10px;
  top: 10px;
  transition: opacity 0.3s;
}

#inputPanel input:checked+.slider::after {
  content: "Solution";
}

#problemPanel input:checked+.slider::after {
  content: "Part 2";
}

input:checked+.slider::after {
  left: 12px;
  right: auto;
}

#consolePanel {
  color: white;
  border-bottom: 0.1em solid #009002;
}

#consolePanel p {
  height: 300px;
  background-color: black;
  padding: 1em;
}

#runButtonPanel {
  margin: 0;
  height: 2em;
}

#runButton {
  padding: 0 1em 0 1em;
  height: 2em;
}

/*--------------------------------------------------*/
/* FOOTER */
/*--------------------------------------------------*/
footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1em 0 1em 0;
  color: #009002;
}

#bottomInfo {
  display: flex;
  width: 10em;
  text-align: center;
  justify-content: center;
  border-bottom: 0.1em solid #009002;
  padding-bottom: 0.5em;
}

#bottomInfo h3 {
  display: inline;
}

#bottomInfo ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

#bottomAddress {
  color: #00CC00;
  display: flex;
  width: 10em;
  justify-content: center;
  border-bottom: 0.1em solid #009002;
  padding: 0.5em;
}

#bottomAddress a {
  text-decoration: none;
  color: #00CC00;
}

#bottomAddress a:hover {
  text-shadow: 0 0 2px #00cc00, 0 0 5px #00cc00;
}

#bottomAddress h3 {
  font-weight: normal;
}

#bottomLinks {
  display: flex;
  width: 10em;
  flex-direction: column;
  text-align: center;
  padding-top: 0.5em;
}

#bottomLinks ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

#bottomLinks li {
  padding: 0.2em 0 0.2em 0;
}

#bottomLinks a {
  text-decoration: none;
  color: #00CC00;
}

#bottomLinks a:hover {
  text-shadow: 0 0 2px #00cc00, 0 0 5px #00cc00;
}

#name {
  color: #00CC00;
  font-weight: 100;
  text-shadow: 0 0 2px #00cc00, 0 0 5px #00cc00;
}

#year {
  color: #00CC00;
  font-weight: 100;
  text-shadow: 0 0 2px #00cc00, 0 0 5px #00cc00;
}

/*--------------------------------------------------*/
/* QUERIES */
/*--------------------------------------------------*/
@media (min-width: 1015px) {
  footer {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    justify-items: center;
  }

  #bottomInfo {
    border-bottom: 0;
    padding-bottom: 0;
  }

  #bottomAddress {
    border-bottom: 0;
    border-left: 1px solid #009002;
    border-right: 1px solid #009002;
    width: 100%;
  }

  #bottomLinks {
    padding-top: 0;
  }

  #inputSolutionPanel {
    flex-direction: row;
  }

  #problemPanel,
  #inputPanel {
    width: 50%;
  }

  #inputPanel p,
  #problemPanel p {
    margin: 0 0.5em 0 0.5em;
  }

  #consolePanel {
    border-bottom: 0;
  }
}