html {
  scroll-behavior: smooth;
}

body {
  font-family: sans-serif;
  font-size: 1.5rem;
  background: #222263;
}

main {
  background: #222263;
}

form {
  display: flex;
  justify-content: center;
  gap: 0.5em;
  flex-flow: column wrap;
  margin: auto;
  align-items: baseline;
  width: 80%;
  max-width: 800px;
}

label {
  font-size: 14px;
  font-family: monospace;
  margin-left: 2vh;
  color: lightblue;
}

.topbar {
  display: flex;
  width: 100%;
  justify-content: space-between;
}

.link-set {
  display: inline-flex;
}
.links {
  font-size: 14px;
  font-family: monospace;
  color: lightblue;
  z-index: 1;
}
.links a {
  font-size: 14px;
  font-family: monospace;
  margin-right: 2vh;
  color: lightblue;
  z-index: 1;
}

button[type="submit"] {
  padding: 5px 20px;
  margin: 10px auto;
  float: right;
  border-radius: 10px;
  background: white;
  color: black;
  z-index: 1;
}
button:hover {
  border-radius: 10px;
  border: 1px solid #222263;
  background-color: #222263;
  border-color: #ffffff;
  color: #ffffff;
  cursor: pointer;
  overflow: hidden;
}

button:disabled,
button[disabled] {
  border: 1px solid #999999;
  background-color: #cccccc;
  color: #666666;
}

#query {
  z-index: 1;
  width: 90%;
  height: 300px;
  margin: 10px auto;
  padding: 10px 20px;
  border: 1px solid #222;
  font-size: 12px;
  overflow: auto;
  line-height: 1.5;
  display: inline;
  background: #f1eef5;
  border-radius: 10px;
  box-shadow: rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px;
}

#query pre {
  max-width: 100%;
  white-space: pre-wrap;
  display: flex;
  flex-wrap: wrap;
}

#editor-container {
  z-index: 1;
  display: flex;
  margin: auto;
  overflow: hidden;
  flex-direction: column;
  position: relative;
}

.break {
  flex-basis: 100%;
  height: 0;
}

.tab {
  padding-left: 60px;
}

/* Result section */

.result-msg {
  font-size: 14px;
  color: white;
  z-index: 1;
}

#results {
  z-index: 1;
  display: flex;
  justify-content: center;
  margin-top: 2vh;
  max-height: 60vh;
  overflow: auto;
}

#result-table {
  width: 80%;
  height: 20%;
  font-size: 12px;
  background: #f1eef5;
  border-radius: 10px;
  box-shadow: rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px;
  padding: 10px;
  padding-left: 15px;
  padding-right: 15px;
  padding-top: 25px;
  z-index: 1;
}

table,
td,
th {
  border: 0px solid black;
  padding: 10px;
}

table {
  border-collapse: collapse;
  width: 100%;
}

td {
  height: 50px;
  text-align: center;
  vertical-align: middle;
  min-width: 50px;
  white-space: break-spaces;
}

th:nth-child(1) {
  width: 50px;
}

/*Scrollbar*/
.scrollbar {
  z-index: 1;
  overflow-y: auto;
  scrollbar-color: transparent transparent;
  border-radius: 10px;
}
.scrollbar:hover {
  overflow-y: auto;
  scrollbar-color: gray transparent;
  border-radius: 10px;
}

.scrollbar::-webkit-scrollbar {
  width: 6px;
  background: transparent;
  border-radius: 10px;
}
.scrollbar::-webkit-scrollbar-thumb {
  border-radius: 50px;
  background: transparent;
  border-radius: 10px;
}
.scrollbar:hover::-webkit-scrollbar-thumb {
  background: gray;
  border-radius: 10px;
}

/*Logo animation*/
@keyframes slideInFromLeft {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(0);
  }
}

#logo {
  animation: 0.5s ease 0s 1 slideInFromLeft;
  content: url("icap.png");
  max-height: 14vh;
  height: 14vh;
  margin: auto;
  z-index: 0;
  position: relative;
  visibility: hidden;
}

#logo:hover {
  content: url("icap.gif");
  display: block;
}

.circles:hover + #logo {
  content: url("icap.gif");
  display: block;
}

/*Animated background*/
* {
  margin: 0px;
  padding: 0px;
}

.context {
  width: 100%;
  position: absolute;
  top: 50vh;
}

.context h1 {
  text-align: center;
  color: #fff;
  font-size: 50px;
}

.area {
  background: #222263;
  background: -webkit-linear-gradient(to left, #8f94fb, #222263);
  width: 100%;
  height: 100vh;
}

.circles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  max-height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  height: 100vh;
  z-index: 1;
  caret-color: transparent;
}

.circles li {
  position: absolute;
  display: block;
  list-style: none;
  width: 20px;
  height: 20px;
  background: rgba(255, 255, 255, 0.2);
  animation: animate 25s linear infinite;
  bottom: 0vh;
}

.circles li:nth-child(1) {
  left: 25%;
  width: 80px;
  height: 80px;
  animation-delay: 0s;
}

.circles li:nth-child(2) {
  left: 10%;
  width: 20px;
  height: 20px;
  animation-delay: 2s;
  animation-duration: 12s;
}

.circles li:nth-child(3) {
  left: 70%;
  width: 20px;
  height: 20px;
  animation-delay: 4s;
}

.circles li:nth-child(4) {
  left: 40%;
  width: 60px;
  height: 60px;
  animation-delay: 0s;
  animation-duration: 18s;
}

.circles li:nth-child(5) {
  left: 65%;
  width: 20px;
  height: 20px;
  animation-delay: 0s;
}

.circles li:nth-child(6) {
  left: 75%;
  width: 110px;
  height: 110px;
  animation-delay: 3s;
}

.circles li:nth-child(7) {
  left: 35%;
  width: 150px;
  height: 150px;
  animation-delay: 7s;
}

.circles li:nth-child(8) {
  left: 50%;
  width: 25px;
  height: 25px;
  animation-delay: 15s;
  animation-duration: 45s;
}

.circles li:nth-child(9) {
  left: 20%;
  width: 15px;
  height: 15px;
  animation-delay: 2s;
  animation-duration: 35s;
}

.circles li:nth-child(10) {
  left: 85%;
  width: 150px;
  height: 150px;
  animation-delay: 0s;
  animation-duration: 11s;
}

@keyframes animate {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
    border-radius: 0;
  }

  100% {
    transform: translateY(-1000px) rotate(720deg);
    opacity: 0;
    border-radius: 50%;
  }
}
