:root {
  --bar-compared-duration: 600ms;
  --bar-last-sorted-duration: 1200ms;
  --bar-current-smallest-duration: 1000ms;
  --bar-current-smallest-compared-duration: 600ms;
  --standard-compared-duration: 1000ms;
  --standard-swapped-duration: 1000ms;
  --standard-last-sorted-duration: 1000ms;
  --standard-current-smallest-duration: 1000ms;
  --standard-current-smallest-compared-duration: 1000ms;
}
html {
  box-sizing: border-box;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  font-family: "Quicksand", sans-serif;
  font-weight: 500;
}
header {
  display: flex;
  flex-direction: column;
}
#top-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  padding: 0 50px;
}
#logo {
  display: flex;
  flex-direction: row;
  align-items: center;
}
#logo img {
  width: 50px;
  height: 50px;
}
#logo span {
  padding-left: 7px;
  font-size: 18px;
  font-family: "Courier New", monospace !important;
}
#author {
  display: flex;
  flex-direction: column;
}
#author span {
  font-size: 13px;
}
#menu {
  display: flex;
  justify-content: center;
  height: 40px;
  border-top: 1px solid #E0E0E0;
  border-bottom: 1px solid #E0E0E0;
}
#menu ul {
  display: flex;
  height: 100%;
  list-style-type: none;
  margin: 0;
  padding: 0;
}
#menu ul li {
  height: 100%;
}
#menu ul li a {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 3px 30px 0 30px;
  text-decoration: none;
  color: #000000;
  border-bottom: 3px solid #FFFFFF;
}
#intro {
  padding: 15px 50px 0 50px;
  background-color: #F0F0F0;
}
.block {
  width: 100%;
  height: fit-content;
  padding: 20px;
  margin-bottom: 15px;
  background-color: #FFFFFF;
  border-radius: 5px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}
#main {
  display: flex;
  flex-direction: row;
  gap: 15px;
  padding: 0 50px 35px 50px;
  background-color: #F0F0F0;
}
#left {
  display: flex;
  flex-direction: column;
  flex: 0 0 65%;
}
#right {
  display: flex;
  flex-direction: column;
  flex: 1;
}
h1 {
  margin-top: 0;
  font-size: 24px;
}
p {
  margin: 0;
  font-size: 15px;
}
#array-settings {
  width: 100%;
}
.array-setting {
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: center;
}
#array-settings > div:nth-child(2) {
  margin-top: 1em;
}
select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url(
    'data:image/svg+xml;utf8,<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M6 9L12 15L18 9" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" stroke="currentColor"/></svg>'
  );
  background-repeat: no-repeat;
  background-position: right 5px center;
  background-size: 15px;
  cursor: pointer;
}
.array-setting label {
  display: flex;
  flex: 0 0 35%;
}
#array-layout, #array-values {
  display: flex;
  flex: 1;
  padding: 7px;
  border: 1px solid #888888;
  border-radius: 5px;
  font-family: "Quicksand", sans-serif !important;
}
.fa-circle-question {
  margin-left: 5px;
  padding-top: 3px;
  cursor: pointer;
}
#array-values-tooltip {
  position: relative;
  display: inline-block;
}
#array-values-tooltip-text {
  visibility: hidden;
  width: 220px;
  position: absolute;
  bottom: 100%;
  left: 30%;
  margin-left: -30px;
  padding: 10px;
  background-color: #000000;
  opacity: 0.9;
  color: #FFFFFF;
  font-size: 14px;
  border-radius: 5px;
  z-index: 1;
}
#array-values-tooltip:hover #array-values-tooltip-text {
  visibility: visible;
}
#regenerate {
  margin-top: 3px;
  text-align: end;
}
#regenerate a {
  text-decoration: underline;
  color: #888888;
  font-size: 13px;
}
#array-values-input-error {
  color: #DC143C;
  font-size: 14px;
  font-weight: 600;
}
#array {
  display: flex;
  flex-direction: row;
}
#array-wrapper {
  display: flex;
  flex-direction: row;
  width: 100%;
}
.array-element-wrapper {
  display: flex;
  flex: 1;
  flex-direction: column;
}
.array-element-bar-wrapper {
  display: flex;
  align-items: end;
  width: 100%;
  height: 270px;
}
.bar-wrapper-swapped {
  position: relative;
  z-index: 2;
}
.array-element-bar {
  display: flex;
  align-items: end;
  justify-content: center;
  width: 100%;
  background-color: #5170ff;
  border-radius: 7px;
}
.bar-animated {
  transform: scaleY(0);
  transform-origin: bottom;
  animation: appearSmoothly 800ms ease forwards;
}
@keyframes appearSmoothly {
  from {
    transform: scaleY(0);
  }
  to {
    transform: scaleY(1);
  }
}
.bar-compared {
  background-color: #FFAC1C;
  animation: pulse var(--bar-compared-duration) ease-in-out infinite alternate;
}
@keyframes pulse {
  from {
    transform: scaleY(1) scale(1);
    box-shadow: 0 0 3px #FFAC1C;
  }
  to {
    transform: scaleY(1) scale(1.03);
    box-shadow: 0 0 10px #FFAC1C;
  }
}
.bar-current-smallest-compared {
  background-color: #702963;
  animation: pulseCurrentSmallestCompared var(--bar-current-smallest-compared-duration) ease-in-out infinite alternate;
}
@keyframes pulseCurrentSmallestCompared {
  from {
    transform: scaleY(1) scale(1);
    box-shadow: 0 0 3px #702963;
  }
  to {
    transform: scaleY(1) scale(1.03);
    box-shadow: 0 0 10px #702963;
  }
}
.bar-swapped {
  background-color: #DC143C;
}
.bar-sorted {
  background-color: #009E60;
}
.bar-last-sorted {
  background-color: #009E60;
  animation: sortedPop var(--bar-last-sorted-duration) ease forwards;
}
@keyframes sortedPop {
  0% {
    transform: scaleY(1) scale(1);
    filter: brightness(1);
  }
  50% {
    transform: scaleY(1) scale(1.12);
    filter: brightness(1.4);
  }
  100% {
    transform: scaleY(1) scale(1);
    filter: brightness(1);
  }
}
.bar-current-smallest {
  background-color: #702963;
  animation: currentSmallestSelected var(--bar-current-smallest-duration) ease-out;
}
@keyframes currentSmallestSelected {
  0% {
    transform: scale(1);
    box-shadow: none;
  }
  50% {
    transform: scale(1.07);
    box-shadow: 0 0 12px #702963;
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 6px #702963;
  }
}
.array-element-standard {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100px;
  border-right: 2px solid #FFFFFF;
  border-top: 2px solid #FFFFFF;
  border-bottom: 2px solid #FFFFFF;
  background-color: #5170ff;
}
#array-wrapper > div:first-child .array-element-standard {
  border-left: 2px solid #FFFFFF;
  border-radius: 7px 0 0 7px;
}
#array-wrapper > div:last-child .array-element-standard {
  border-radius: 0 7px 7px 0;
}
.standard-compared {
  background-color: #FFAC1C;
  animation: doHighlight var(--standard-compared-duration) ease-out;
}
.standard-swapped {
  background-color: #DC143C;
  animation: doHighlight var(--standard-swapped-duration) ease-out;
}
.standard-last-sorted {
  background-color: #009E60;
  animation: doHighlight var(--standard-last-sorted-duration) ease-out;
}
.standard-current-smallest {
  background-color: #702963;
  animation: doHighlight var(--standard-current-smallest-duration) ease-out;
}
.standard-current-smallest-compared {
  background-color: #702963;
  animation: doHighlight var(--standard-current-smallest-compared-duration) ease-out;
}
.standard-sorted {
  background-color: #009E60;
}
@keyframes doHighlight {
  0% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.3);
  }
  100% {
    filter: brightness(1);
  }
}
.array-element-bar-value {
  width: 70%;
  margin-bottom: 5px;
  padding: 3px;
  background-color: #FFFFFF;
  border: 1px solid #4b5f7f;
  border-radius: 5px;
  text-align: center;
  font-weight: 600;
}
.array-element-standard-value {
  width: 70%;
  padding: 3px;
  background-color: #FFFFFF;
  border: 1px solid #4b5f7f;
  border-radius: 5px;
  text-align: center;
  font-weight: 600;
}
.array-element-index {
  width: 100%;
  margin-top: 3px;
  text-align: center;
  color: #787878;
  font-size: 14px;
}
#controls {
  display: flex;
  flex-direction: column;
  gap: 7px;
  width: 100%;
}
.controls-row {
  display: flex;
  flex-direction: row;
  gap: 7px;
  width: 100%;
}
#tick-marks {
  display: flex;
  flex-direction: row;
  width: 100%;
}
#tick-marks span {
  display: flex;
  flex: 1;
  height: 6px;
  border-left: 1px solid #888888;
}
#tick-marks span:last-child {
  border-right: 1px solid #888888;
}
#speed-control-slider-label {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  width: 100%;
}
#speed-control-slider-label span {
  color: #888888;
  font-size: 12px;
}
.single-control {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  height: 33px;
  background-color: #4169E1;
  border-radius: 5px;
  color: #FFFFFF;
  font-weight: 600;
  cursor: pointer;
}
.step-number {
  background-color: #FFFFFF;
  color: #000000;
  cursor: auto;
}
.play-control {
  background-color: #009E60;
}
.pause-control {
  background-color: #888888;
  pointer-events: none;
  opacity: 0.7;
}
.reset-control {
  background-color: #DC143C;
  pointer-events: none;
  opacity: 0.7;
}
#controls > div:nth-child(2) i {
  margin-right: 6px;
}
#speed-control-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  margin-top: 5px;
  margin-left: 0;
  margin-right: 0;
  border-radius: 5px;
  background-color: #D0D0D0;
  outline: none;
  cursor: pointer;
}
#speed-control-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #4169E1;
}
#speed-control-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #4169E1;
}
#colour-legend {
  display: flex;
  flex-direction: row;
  gap: 30px;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.colour-legend-single {
  display: flex;
  flex-direction: row;
  gap: 7px;
  align-items: center;
}
.colour-label {
  width: 20px;
  height: 20px;
  border-radius: 50%;
}
#explanations-pseudocode-wrapper {
  display: flex;
  flex-direction: row;
  gap: 15px;
  width: 100%;
}
#explanations-pseudocode-wrapper > div:first-child {
  width: 40%;
}
#explanations-pseudocode-wrapper > div:last-child {
  display: flex;
  flex-direction: column;
  flex: 1;
}
#enhance-with-ai {
  text-align: end;
}
#enhance-with-ai > span {
  cursor: pointer;
}
#enhance-with-ai i {
  margin-right: 2px;
  font-size: 20px;
  vertical-align: bottom;
  color: #4169E1;
}
#enhance-with-ai span span {
  font-size: 14px;
  border-bottom: 2px solid #F08000;
}
#explanations {
  padding: 15px;
  border-left: 4px groove #D0D0D0;
}
#explanations span {
  font-weight: 600;
  text-decoration: underline;
}
#explanations p {
  margin-top: 10px;
}
#pseudocode-title {
  margin: 0;
  padding: 20px;
  border-radius: 3px 3px 0 0;
  background-color: #dce8fc;
  border-top: 1px solid #A7C7E7;
  border-right: 1px solid #A7C7E7;
  border-left: 1px solid #A7C7E7;
  font-size: 16px;
  color: #404040;
}
#pseudocode {
  display: flex;
  flex-direction: column;
  padding: 15px;
  border: 1px solid #A7C7E7;
  border-radius: 0 0 3px 3px;
  background-color: #dce8fc;
}
.code-line {
  padding: 5px;
  border-radius: 3px;
  color: #404040;
  font-family: "Courier New", Courier, monospace !important;
  font-size: 15px;
}
.indentation-1 {
  margin-left: 20px;
}
.indentation-2 {
  margin-left: 40px;
}
.indentation-3 {
  margin-left: 60px;
}
#ai-assistant {
  display: flex;
  flex-direction: column;
  width: 100%;
}
#ai-assistant-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 10px 15px;
  background-color: #1F6F78;
  border-radius: 10px 10px 0 0;
}
#ai-assistant-header span {
  width: 50px;
  height: 50px;
  background-color: #FFFFFF;
  border-radius: 50%;
  overflow: hidden;
}
#ai-assistant-header img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
#ai-assistant-header h2 {
  margin: 0 0 0 10px;
  font-size: 16px;
  color: #FFFFFF;
}
#ai-assistant-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  height: 300px;
  overflow-y: scroll;
  padding: 15px;
  border-left: 2px solid #A7C7E7;
  border-right: 2px solid #A7C7E7;
}
.message-wrapper {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 70%;
}
.message-sent {
  margin-left: auto;
}
.message-info {
  color: #888888;
  font-size: 12px;
}
.message-sent .message-info {
  margin-left: auto;
}
.message-text-received {
  padding: 10px;
  background-color: #dce8fc;
  border-radius: 10px;
  color: #404040;
  font-size: 14px;
}
.message-text-sent {
  padding: 10px;
  background-color: #1F6F78;
  border-radius: 10px;
  color: #FFFFFF;
  font-size: 14px;
}
#ai-assistant-footer {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  padding: 15px 15px 20px 15px;
  border-left: 2px solid #A7C7E7;
  border-right: 2px solid #A7C7E7;
  border-bottom: 2px solid #A7C7E7;
  border-radius: 0 0 10px 10px;
}
#your-message {
  display: flex;
  flex: 1;
  padding: 7px;
  border: 1px solid #A7C7E7;
  border-radius: 10px;
  font-family: "Quicksand", sans-serif !important;
}
#ai-assistant-footer span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 33px;
  height: 33px;
  background-color: #E8E8E8;
  border-radius: 50%;
  cursor: pointer;
}
#ai-assistant-footer span i {
  padding-right: 2px;
  font-size: 14px;
  color: #404040;
}
#start-new-chat {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  font-size: 14px;
  text-decoration: underline;
  cursor: pointer;
}
#ai-assistant-validation-error {
  flex-basis: 100%;
  color: #DC143C;
  font-size: 14px;
  font-weight: 600;
}
#responsible-ai-use-note {
  width: 100%;
  margin-top: 20px;
  padding: 10px;
  background-color: #F0F0F0;
  border-radius: 5px;
  font-size: 13px;
  color: #787878;
}
#responsible-ai-use-note span {
  font-weight: 600;
  text-decoration: underline;
}
#responsible-ai-use-note i {
  margin-right: 2px;
}
#ai-assistant-body::-webkit-scrollbar {
  width: 8px;
}
#ai-assistant-body::-webkit-scrollbar-track {
  background: #B8D4EF;
}
#ai-assistant-body::-webkit-scrollbar-thumb {
  background: #3E6FA8;
  border-radius: 5px;
}
footer {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  height: 50px;
  background-color: #FFFFFF;
  color: #000000;
  font-size: 14px;
  border-top: 1px solid #E0E0E0;
}