/* ---------- BODY ---------- */

body{
    margin:0;
    padding:0;
    background-color:#000;
    color:white;
    font-family:"Pixelify Sans", sans-serif;
}

/* ---------- HEADER ---------- */
.rainbow-mode{
    animation: rainbow 5s linear infinite;
}

@keyframes rainbow{
    0%{background:#ff0000;}
    16%{background:#ff8000;}
    33%{background:#ffff00;}
    50%{background:#00ff00;}
    66%{background:#00bfff;}
    83%{background:#8a2be2;}
    100%{background:#ff0000;}
}
header {
  width: 100%;
  background-color: black;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 0;
  box-sizing: border-box;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}
h1 {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  border: 2px solid white;
  padding: 20px 22px;
  border-radius: 15px;
  font-weight: bold;
  font-size: 30px;
  color: white;
    background: linear-gradient(90deg, red, orange, yellow, lime, cyan, blue, magenta, red);
  background-size: 400% 400%;
  animation: rgbBackground 6s linear infinite;

  box-shadow: 0 0 15px rgba(255, 255, 255, 0.25);
  font-family: "Aldrich", sans-serif;
  transition: transform 0.2s, box-shadow 0.2s;
  margin-top: 0;
  width: 100%;
  box-sizing: border-box;
}

h1:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}
@keyframes rgbBackground {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-top: 20px;
}

nav a {
  border: 2px solid white;
  font-family: "Pixelify Sans", sans-serif;
  text-decoration: none;
  color: white;
  padding: 11px 12px;
  border-radius: 15px;
  font-weight: bold;
  background-color: black;
  font-size: 15px;
  box-shadow: 0 0 8px rgba(218, 100, 100, 0.1);
  transition: transform 0.2s, background 0.2s;
}

nav a:hover {
  text-decoration: underline;
  transform: translateY(-2px);
}
/* ---------- NAVIGATION ---------- */


/* ---------- MAIN ---------- */

main{
    width:85%;
    max-width:1100px;
    margin:40px auto;
}

/* ---------- SEARCH ---------- */

#searchBar{

    width:100%;
    padding:15px;

    background:#111;
    color:white;

    border:2px solid white;
    border-radius:12px;

    font-size:18px;
    font-family:"Pixelify Sans", sans-serif;

    outline:none;

    transition: transform 0.2s, background 0.2s;

}

#searchBar:focus{
     transform: scale(1.005);
  box-shadow: 0 0 10px rgba(231, 227, 227, 0.25);
    

}

/* ---------- GLOSSARY CARDS ---------- */

.term{

    margin-top:25px;

    padding:25px;

    background:#111;

    border:2px solid white;

    border-radius:15px;

    transition:.3s;

}

.term:hover{

    transform:translateY(-6px);


}

/* ---------- TITLES ---------- */

.term h2{

    margin-top:0;

    color:white;

    font-size:28px;

}

/* ---------- PARAGRAPHS ---------- */

.term p{

    color:#ddd;

    line-height:1.7;

    font-size:17px;

}

/* ---------- SCROLL BAR ---------- */

::-webkit-scrollbar{

    width:12px;

}

::-webkit-scrollbar-track{

    background:#111;

}

::-webkit-scrollbar-thumb{

    background:white;

    border-radius:20px;

}

/* ---------- FADE IN ---------- */

@keyframes fadeUp{

    from{

        opacity:0;
        transform:translateY(25px);

    }

    to{

        opacity:1;
        transform:translateY(0);

    }

}

.term{

    animation:fadeUp .5s ease;

}

/* ---------- FOOTER ---------- */

footer{

    margin-top:60px;
    padding:20px;

    text-align:center;

    background:#111;

    border-top:3px solid white;

}

/* ---------- RESPONSIVE ---------- */

@media(max-width:768px){

    header h1{

        font-size:35px;

    }

    nav a{

        display:block;
        margin:10px auto;

    }

    .term h2{

        font-size:22px;

    }

}
buy-btn:hover,
.mybutton.selected{
    animation: pulse .7s infinite;
}
@keyframes rainbowBorder {

    0%{
        border-color:red;
    }

    16%{
        border-color:orange;
    }

    33%{
        border-color:yellow;
    }

    50%{
        border-color:lime;
    }

    66%{
        border-color:cyan;
    }

    83%{
        border-color:blue;
    }

    100%{
        border-color:magenta;
    }

}

h1{
    animation:
    rgbBackground 6s linear infinite,
    rainbowBorder 6s linear infinite;
}
#noResults{

    text-align:center;

    margin-top:25px;

    color:#ff5555;

    font-size:20px;

    font-family:"Pixelify Sans", sans-serif;

}