
:root {
  --bg-color: #cccccc;
  --color: #efefef;
  --color-clr: #ffffff00;
  --acnt-a: #dddddd;
  --acnt-b: #aaaaaa;
  --acnt-c: #888888;
  --acnt-d: #938868;
  --acnt-e: #999999;
  --acnt-f: #bbbbbb;
  --acnt-g: #834359;
  --acnt-g2: #ffaaaa;
  --acnt-g3: #ffefef;
  --acnt-g4: #ff8888;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: unset;
  border: unset;
  outline: unset;
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

@font-face {
  src: url(./../fonts/Nunito/Nunito-VariableFont_wght.ttf);
  font-family: mono;
}

body, html {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-family: mono;
  z-index: 0;
  background: var(--acnt-g);
}

.operator-menu {
  display: none;
  align-items: center;
  justify-content: center;
  width: 0%;
  height: 100%;
  position: absolute;
  box-shadow: var(--acnt-g) 0 0 2px 1px;
  z-index: 3;
  background: var(--color-clr);
  transition: .2s;
  animation-timing-function: ease-in-out;
}

.operator-field {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  border: 10px outset var(--acnt-g);
  width: 74%;
  height: 90%;
  border-radius: 1em;
  padding: 1.8em;
  background: var(--acnt-g);
}

.heading-field {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  height: 10%;
  padding: 0 1em;
}

.heading-field h1 {
  width: 33%;
  text-align: center;
  padding: .2em .4em;
  background: linear-gradient(90deg, var(--acnt-g), var(--color-clr));
  border-left: 4px solid var(--acnt-g4);
  color: var(--color);
}

.engine-selection {
  background: linear-gradient(90deg, var(--acnt-g), var(--color-clr));
  padding: 0 .4em;
  color: var(--color);
  font-size: 1em;
  border-left: 4px solid var(--acnt-g4);
  box-shadow: var(--color-clr) 0 0 .2em .1em;
  padding: .6em 1em;
  border-radius: 0 .6em .6em 0;
  transition: .2s;
}

.engine-selection:hover {
  box-shadow: var(--acnt-g4) 0 0 .2em .1em;
}

.selection-display {
  height: 70%;
  display: grid;
  grid-template-columns: 1fr 5fr 14fr;
  grid-gap: .8em;
  padding: 2em 3em;
  box-shadow: 2px 2px 1px var(--acnt-g), -2px -2px 1px var(--acnt-g);
  overflow: auto;
  border-radius: .4em;
  transition: .4s;
  scrollbar-color: var(--acnt-g2) var(--acnt-g2);
}

.selection-display-a {
}

.selection-display-b {
  display: none;
}

.selection-display .input-active-field {
  background: var(--acnt-e);
  border: 2.8px outset var(--acnt-g);
}

.selection-display .input-active {
  height: 100%;
  background: var(--color-clr);
  border: 2px outset var(--acnt-g);
  box-shadow: inset var(--acnt-g) 0 0 20px 4px;
}

.selection-display h2 {
  text-align: center;
  background: var(--color);
  color: var(--acnt-e);
  box-shadow: inset #dfdfdf 0 0 2px .8px;
  border-radius: .2em;
  font-size: 1em;
  padding: .8em .1em;
  width: 100%;
  cursor: pointer;

  display: flex;
  flex-direction: column;
  gap: .5em;
  padding: .8em .4em;
  transition: .8s;
}

.selection-display h2:hover {
  color: var(--acnt-g);
}

.tooltip {
  width: 100%;
  height: 0;
  padding: 0;
  transition: .4s;
  transition-timing-function: ease;
  opacity: 0;
  display: none;
  align-items: center;
  justify-content: center;
}

.tooltip-b {
  width: 100%;
  height: 0;
  padding: 0;
  transition: .4s;
  transition-timing-function: ease;
  opacity: 0;
  display: none;
  align-items: center;
  justify-content: center;
}

.selection-display input {
  text-align: center;
  box-shadow: inset #dfdfdf 0 0 2px .8px;
  border-radius: .2em;
  width: 100%;
  padding: 1em;
}

.selection-display input:focus {
  box-shadow: var(--acnt-g2) 0 0 2px .6px;
  background: var(--acnt-g3);
}

.submit-field {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  height: 10%;
  grid-column: 1 / span 2;
  padding: .6em;
  gap: .6em;
}

.submit-field .operator-submit {
  font-size: 1.2em;
  border-radius: .4em;
  text-align: center;
  padding: .8em 1.8em;
  letter-spacing: .1em;
  transition: .2s;
  background: var(--acnt-g);
  color: var(--acnt-g3);
  font-weight: 500;
  grid-column: 1 / span 1;
  box-shadow: inset -1px -1px 2.8px var(--acnt-g2), inset 1px 1px 2.8px var(--acnt-g);
  border: 1px outset var(--color-clr);
}

.submit-field .operator-submit:hover {
  background: var(--acnt-g2);
  color: var(--acnt-g);
  cursor: none;
}

.submit-field .operator-submit:active {
  transform: translateY(2px);
}

.submit-field .operator-clear {
  font-size: 1.2em;
  border-radius: .4em;
  text-align: center;
  padding: .8em 1.8em;
  letter-spacing: .1em;
  transition: .2s;
  background: var(--acnt-g);
  color: var(--acnt-g3);
  font-weight: 500;
  border: 1px outset var(--color-clr);
  box-shadow: inset -1px -1px 2.8px var(--acnt-g2), inset 1px 1px 2.8px var(--acnt-g);
}

.submit-field .operator-clear:hover {
  background: var(--acnt-g2);
  color: var(--acnt-g);
  cursor: none;
}

.submit-field .operator-clear:active {
  transform: translateY(2px);
}

.veil {
  width: 100%;
  height: 100%;
  position: absolute;
  z-index: 1;
  background: linear-gradient(var(--acnt-g), var(--acnt-g2));
  box-shadow: inset var(--acnt-g) 0 0 6em .2em;
  border: 1px solid var(--acnt-g);
  border-radius: 0;
}

.search-field-container {
  display: grid;
  width: 25em;
  height: 25em;
  grid-template-columns: repeat(3, 1fr);
  padding: 6em;
  border-radius: 24em;
  gap: 2em;
  background: linear-gradient(120deg, var(--acnt-g2), var(--acnt-g));
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px outset var(--acnt-g2);
}

.search-field-input {
  width: 80%;
  border-radius: 1.8em;
  text-align: center;
  height: 3.6em;
  transition: .2s;
  background: var(--color);
  color: var(--acnt-c);
  font-weight: 600;
  box-shadow: inset -1px -1px 2.8px #cfcfcf, inset 1px 1px 2.8px #eeeeee, var(--acnt-g2) 0 0 .2em .07em;
  border: 2px outset var(--acnt-g2);
  cursor: none;
}

.search-field-input:hover {
  color: var(--acnt-g);
  box-shadow: inset -1px -1px 2.8px #cfcfcf, inset 1px 1px 2.8px #eeeeee, var(--acnt-g4) 0 0 .2em .07em;
}

.search-field-input:active {
  transform: translateY(2px);
}

.search-field-submit {
  height: 3.6em;
  width: 80%;
  border-radius: 1.8em;
  text-align: center;
  font-weight: 900;
  transition: .2s;
  cursor: none;
  background: var(--color);
  color: var(--acnt-c);
  box-shadow: inset -1px -1px 2.8px #cfcfcf, inset 1px 1px 2.8px #eeeeee, var(--acnt-g2) 0 0 .2em .07em;
  border: 2px outset var(--acnt-g2);
}

.search-field-submit:hover {
  color: var(--acnt-g);
  box-shadow: inset -1px -1px 2.8px #cfcfcf, inset 1px 1px 2.8px #eeeeee, var(--acnt-g4) 0 0 .2em .07em;
  transition: .2s;
}

.search-field-submit:active {
  transform: translateY(2px);
  transition: .1s;
  box-shadow: #ffffff 0 0 2px 1px;
}

.active-query-field {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: .6em;
  width: 100%;
  height: 1em;
}

.active-query {
  width: 25%;
  height: 100%;
  padding: .3em 1em;
  align-items: center;
  border-radius: 2em;
  background: var(--acnt-e);
  border: 1px outset var(--acnt-g2);
  box-shadow: inset -1px -1px 2.8px #cfcfcf, inset 1px 1px 2.8px var(--acnt-g), var(--acnt-g2) 0 0 .07em .04em;
}

@media (max-width: 720px) {
  body {
    padding: 1em;
  }

  .operator-menu {
    width: 0%;
    height: 100%;
    padding: unset;
  }

  .operator-field {
    width: 100%;
    height: 100%;
    padding: 0 .2em;
    border: .2em outset var(--acnt-g);
    border-radius: unset;
    background: var(--acnt-g);
  }

  .heading-field {
    padding: 0 2em;
    height: 7%;
  }

  .heading-field h1 {
    width: 100%;
    text-align: center;
    border-left: none;
    background: var(--color-clr);
  }

  .engine-selection {
    border-left: none;
  }

  .selection-display {
    grid-template-columns: 1fr 7fr 12fr;
    padding: .8em;
    grid-gap: .6em;
  }
  
  .selection-display .input-active-field {
    background: var(--acnt-e);
    width: 2.8em;
  }

  .selection-display .input-active {
    border: 1px outset var(--acnt-g);
  }

  .selection-display h2 {
    font-size: .9em;
  }

  .selection-display input {
    padding: 0 .6em;
  }

  .submit-field {
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
  }

  .submit-field .operator-submit {
    font-weight: 600;
    grid-column: 1 / span 2;
  }

  .submit-field .operator-clear {
    font-weight: 600;
  }

  .veil {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 0;
    background: linear-gradient(var(--acnt-g), var(--acnt-g2));
  }

  .search-field-container {
    display: flex;
    flex-direction: column;
    width: 20em;
    height: 20em;
    border-radius: 20em;
    gap: 1.2em;
    padding: 2em;
    align-items: center;
    justify-content: center;
  }

  .search-field-input {
    width: 60%;
    height: 20%;
  }

  .search-field-submit {
    width: 60%;
    height: 20%;
  }

  .active-query {
    width: 15%;
    height: 100%;
  }
}

