/* General Reset */
* {
  margin: 0;
  padding: 0;
  font-family: 'Cursive';
  font-size: 20px;
  font-weight: bold;
}

body {
  color: rgb(6, 10, 6);
}

h1 {
  font-size: 75px;
  font-weight: bold;
  background-color: #191210;
  color: rgb(240, 230, 230);
  text-align: center;
  padding: 10px;
  text-shadow: 3px 3px 3px #504a4b;
}

nav {
  display: grid;
  place-items: center;
  color: #e5e4e2;
  padding: 25px;
}

.array-inputs {
  display: flex;
  padding: 25px;
  background-color: #413839;
  border-radius: 10px;
  justify-content: space-evenly;
  align-items: center;
}

.array-inputs button {
  height: 90px;
}

.input-group {
  display: flex;
  align-self: center;
  max-width: 350px;
  padding: 10px 20px;
}

.input-group p {
  margin-right: 5px;
}

nav .array-inputs #a_generate {
  color: #e5e4e2;
  transition: color 0.3s ease;
  width: 300px;
  height: 55px;
  font-size: 20px;
  padding: 0 15px;
  background-color: transparent;
  border-radius: 10px;
}

nav .array-inputs #a_generate:hover {
  cursor: pointer;
  background-color: #f00f0f;
}

.algos {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  border: 1px solid black;
}

.algos button {
  margin: 5px;
  padding: 10px 20px;
  font-size: 16px;
  transition: padding 0.3s, font-size 0.3s, height 0.3s;
  border-radius: 5px;
  border: #f00f0f;
}

.algos button:hover,
.algos button:focus {
  padding: 12px 20px;
  height: 44px;
  font-size: 18px;
  background-color: #f00f0f;
  color: #fff;
}

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

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

section #Info_Cont1,
section #Info_Cont2 {
  padding: 5% 5%;
}

#array_container {
  display: flex;
  width: 100%;
  height: 150%;
  justify-content: center;
  align-items: flex-end;
}
article{
  height: 450px;
}
hr{
  border:1px solid black;
}
/* Responsive Design */
@media only screen and (max-width: 800px) {
  h1 {
    font-size: 60px;
  }

  nav {
    padding: 15px;
    display: flex;
    align-items: start;
  }

  .array-inputs {
    border-radius: 0 10px 10px 0;
    position: relative;
    left: -2.5%;
    padding: 15px 20px;
  }
  nav .array-inputs #a_generate{
    width: 300px;
    font-size: 16px;
  }
  .input-group {
    flex-direction: column;
    width: 100%;
  }
  .input-group p{
    font-size: 16px;
  }
  article{
    height: 600px;
    display: flex;
    /* align-items: center; */
    flex-direction: row;
    gap:0.5%;
    border: 1px solid black;
    margin: 0 0 2% 0;
    background-color: #000;
  }
  .algos {
    display: flex;
    flex-direction: column;
    height: 90%; 
    width: 300px; 
    background-color: #191210;
    padding-top: 20px;
    align-items: center;
    border-radius: 0 50px 50px 0;
  }

  .algos button {
    margin: 10px 0;
    padding: 15px 20px;
    font-size: 14px;
    width: 90%;
    border: none;
    background-color: transparent;    
    color: white;
    text-align: center;
    transition: background-color 0.3s ease;
    border-radius: 50px;
  }

  .algos button:hover {
    background-color: #f00f0f;
  }

  section {
    width: 80%; 
    color: white; 
  }
  section #Info_Cont1{
    width: 265px;
    height: 160px;
    position: relative;
    top: 68%;
    padding-left: 10%;
    left: 7%;
    border-radius: 10px;
    background:linear-gradient(to left,transparent 10%,#f00f0f);
  }
  section #Info_Cont1 p,section #Info_Cont2 p{
    font-size: 16px;
  }
  section .Complexity_Containers .Pair_Definitions{
    display: flex;
    align-items: center;
    margin-top: 5%;
  }
  section #Info_Cont2{
    width: 265px;
    height: 160px;
    position: relative;
    top: 68%;
    left: -149%;
    padding-left: 10%;
    border-radius: 10px;
    background:linear-gradient(to left,transparent 10%,#f00f0f);
  }
  #array_container{
    height: 63%;
    width: 570px;
    border: 1px solid black;
    position: relative;
    left: -30%;
    top: 3.5%;
  }
}
