/*
    *****************
    DONE BY:-   VAIBHAV KESARWANI
    *****************
*/

:root {
  /*  change this for scaling  */
  --m: 1rem;

  --red: #ff6565;
  --pink: #ff64f9;
  --purple: #6b5fff;
  --blue: #4d8aff;
  --green: #5bff89;
  --yellow: #ffee55;
  --orange: #ff6d1b;
}

* {
  margin: 0;
  padding: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: large;
  font-weight: bold;
  text-transform: uppercase;
  color: whitesmoke;
}

body {
  background-color: #141516;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0;
}

nav {
  padding: 10px 20px;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-image: radial-gradient(
    farthest-corner at 40px 40px,
    #111 20%,
    #333 100%,
    #ddd 100%
  );
  color: white;
  display: grid;
  grid-template-columns: 30% 60%;
  column-gap: 10%;
}

nav .array-inputs {
  display: grid;
  grid-template-columns: 60% 40%;
  place-content: center;
  row-gap: 10%;
  padding-bottom: 20px;
  margin-top: 30px;
}

nav .array-inputs #a_size,
nav .array-inputs #a_speed {
  /* any style when required */
  cursor: pointer;
}

nav .array-inputs #a_generate {
  border: calc(0.08 * var(--m)) solid transparent;
  position: relative;
  color: #f3f3f3;
  font-family: "Space Grotesk";
  font-size: var(--m);
  border-radius: calc(0.7 * var(--m));
  padding: calc(0.5 * var(--m)) calc(1 * var(--m));
  display: flex;
  justify-content: center;
  cursor: pointer;
  background: linear-gradient(#121213, #121213),
    linear-gradient(#121213 50%, rgba(18, 18, 19, 0.6) 80%, rgba(18, 18, 19, 0)),
    linear-gradient(
      90deg,
      var(--orange),
      var(--yellow),
      var(--green),
      var(--blue),
      var(--purple),
      var(--pink),
      var(--red)
    );
  background-origin: border-box;
  background-clip: padding-box, border-box, border-box;
  background-size: 200%;
  animation: animate 2s infinite linear;
}

nav .array-inputs #a_generate::before {
  content: "";
  background: linear-gradient(
    90deg,
    var(--orange),
    var(--yellow),
    var(--green),
    var(--blue),
    var(--purple),
    var(--pink),
    var(--red)
  );
  height: 30%;
  width: 60%;
  position: absolute;
  bottom: -20%;
  z-index: -5;
  background-size: 200%;
  animation: animate 2s infinite linear;
  filter: blur(calc(0.8 * var(--m)));
}

nav .array-inputs #a_generate:hover,
nav .array-inputs #a_generate::before {
  animation: animate 0.5s infinite linear;
}

@keyframes animate {
  0% {
    background-position: 0;
  }
  100% {
    background-position: 200%;
  }
}

nav .header_right {
  display: flex;
  flex-direction: column;
}

nav .header_right .nav-heading {
  display: inline-block;
  font-size: xxx-large;
  padding: 3% 0%;
}

nav .header_right .algos {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 20px;
}

nav .header_right .algos button {
  background-color: transparent;
  gap: 10px;
  color: white;
  outline: 1px;
  padding: 10px;
  font-size: x-large;
  border-radius: 20px;
}

nav .header_right .algos button:hover {
  background-color: #f5f5f5;
  color: black;
  cursor: pointer;
}

nav .header_right .algos .butt_locked:hover,
nav .header_right .algos .butt_selected:hover,
nav .header_right .algos .butt_unselected:hover {
  cursor: pointer;
}

nav .header_right .algos .butt_selected {
  border: 2px solid yellow;
  background-color: #f5f5f5;
  color: black;
}

section {
  display: grid;
  grid-template-columns: 20% 60% 20%;
}

section .Complexity_Containers,
section .Complexity_Containers .Pair_Definitions {
  margin-top: 20%;
}

section .Complexity_Containers .Pair_Definitions p {
  display: inline;
}

section .Complexity_Containers .Pair_Definitions p.Sub_Heading {
  font-size: medium;
  text-transform: none;
}

section #Info_Cont1,
section #Info_Cont2 {
  padding: 20% 10%;
}

section #Info_Cont1 h3,
section #Info_Cont2 h3 {
  text-decoration: underline;
}

section #array_container {
  display: flex;
  width: 100%;
  height: 70vh;
}

.hide {
  display: none;
}

/* Media Queries */
@media (max-width: 480px) {
  /* Styles for Mobiles */
}

@media (min-width: 481px) and (max-width: 1250px) {
  /* Styles for Tablets */
}

@media (min-width: 1251px) {
  /* Styles for Laptops and up */
}
