:root {
  --data-width: 54px;
  --pointer-width: 30px;
  --node-width: 84px;
}

* {
  font-family:'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
  margin: 0;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

body {
  background-color: rgb(33, 33, 33);
  color: white;
  width: 100vw;
  height: calc(100vh - 50px);
  margin-top: 50px;
}

input:focus{
  background-color: white;
}

.container {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  /* border: 1px solid white; */
}

.title {
  font-family:'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  font-size: clamp(35px, 6vw, 64px);
  font-weight: bold;
  text-align: center;
  margin-top: 24px;
}

.queue-list {
  flex-grow: 1;
  width: min-content;
  max-width: 90%;
  max-height: 55%;
  min-height: max-content;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 20px 0;
  position: relative;
  /* border: 1px solid white; */
}

.node-container {
  flex-grow: 1;
  flex-direction: column;
  width: 100%;
  min-height: max-content;
  display: flex;
  justify-content: center;
  align-items: start;
  overflow-x: scroll;
  /* border: 1px solid white; */
}

.node-container::after {
  content: '';
  display: block;
  height: 110px;
  width: 100%;
}

.node-container::-webkit-scrollbar {
  display: none;
}

.node-container {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.queue-nodes {
  display: flex;
}

.rear-node {
  display: flex;
  flex-direction: column;
  align-items: end;
  width: calc(var(--node-width) + var(--data-width));
}

.front-node {
  display: flex;
  align-items: center;
}

#rear,
#front {
  background-color: transparent;
  color: white;
  width: calc(var(--data-width) - 4px);
  height: calc(var(--data-width) - 4px);
  border: 2px solid white;
}

#rear {
  font-size: 15px;
}

.rear-node img {
  position: relative;
  right: 12px;
  transform: rotateZ(90deg);
}

.node {
  display: flex;
  align-items: center;
  position: relative;
  top: 0;
}

.data {
  background-color: white;
  color: black;
  width: var(--data-width);
  height: var(--data-width);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  outline: 0px solid grey;
  z-index: 0;
}

.position {
  width: var(--data-width);
  text-align: center;
  position: absolute;
  bottom: -1.8rem;
  white-space: nowrap;
}

.pointer {
  width: var(--pointer-width);
  z-index: 1;
}

.notes {
  position: absolute;
  bottom: 0;
  font-size: 14px;
  height: 1rem;
  white-space: nowrap;
  width: max-content;
}

.show-operations {
  height: 100px;
  margin-bottom: 8px;
}

.options-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.option-menu {
  background-color: white;
  color: black;
  height: 1.5rem;
  width: 165px;
  border-radius: 2px;
  padding-left: 4px;
  cursor: pointer;
}

.operations-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.operations-container > * {
  display: none;
}

.displayBlock {
  display: block;
}

.operation-menu {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 8px;
}

.user-input {
  margin-bottom: 12px;
}

.user-defined-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.user-defined-list .input-field {
  visibility: hidden;
}

.user-defined-list:focus-within .input-field {
  visibility: visible;
}

.operation-menu button {
  font-size: 14px;
  background-color: white;
  color: black;
  height: 1.5rem;
  padding: 0 14px;
  /* border: 1px solid white; */
  border: none;
  border-radius: 2px;
  cursor: pointer;
}

.user-defined-button {
  padding: 0 16px !important;
}

.get-data,
.get-key,
.get-multiple-data {
  background-color: rgb(240, 240, 240);
  color: black;
  border-radius: 2px;
  height: 1.5rem;
  padding: 0 8px;
  cursor: pointer;
  border: 1px solid white;
  box-shadow: inset 0px 0px 3px black;
  box-sizing: border-box;
}

.get-data {
  width: 100px;
}

.input-field {
  display: flex;
  align-items: center;
}

.get-key {
  width: 60px;
}

.get-multiple-data {
  width: 90px
}

.get-data,
.get-key,
.get-multiple-data {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.enqueue-operation {
  display: flex;
}

.enqueue-button {
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
}

.search-label {
  margin-right: 12px;
}

.confirm-button {
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
  padding: 0 6px !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

.confirm-icon{
  width: 16px;
}

@media (max-height: 538px) {
  .container {
    height: max-content;
    justify-content: start;
    overflow-y: scroll;
  }
}