/* Base styles and resets */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html{
  background-color: black;
 
  height: 100%;
} 

body {
  font-family: "Lexend", sans-serif;
  height: 100%;
  background-size: fill;
   background-image: url(./assets/standard.jpg);
  background-repeat: no-repeat;
  background-position: center;
  background-color: black;
  background-size: cover;
  display: flex;
  flex-direction: column;
  justify-content: top;
  align-items: center;
  padding: 1.5rem;
}

footer{
  position: absolute;
  bottom: 0;
  width: 100%;
  text-align: center;
  padding: 0.5rem;
  color: white;
  z-index: 0;
  padding: 1.5rem;
}

.container {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  justify-items: center;
  width: 100%;
  max-width: 900px;
  z-index: 1;
}

/* Pokedex styling */
.searchbox {
  justify-self: center;
  /* From https://css.glass */
background: rgba(75, 218, 243, 0.2);
border-radius: 16px;
box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
backdrop-filter: blur(5px);
-webkit-backdrop-filter: blur(5px);
border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 
      0 10px 20px rgba(0, 0, 0, 0.2),
      inset 0 2px 10px rgba(255, 255, 255, 0.2);
  position: relative;
  justify-content: center;
  justify-items: center;
  align-items: center;
  width: 100%;
  text-align: left;
}

#search {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
}

.logo{
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.5rem;
  width: 50%;
}

.badge {
  position: relative;
  top: -1.5rem;
  left: 0;
  padding: 0.75rem 1.5rem;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 9999px;
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  text-align: center;
  backdrop-filter: blur(6px); /* optional: blur behind the badge */
}

.badge a {
  text-decoration: none;
  font-weight: bold;
  
  /* TEXT CUT-OUT EFFECT */
  color: transparent;
  background: inherit; /* or manually set the same bg as the parent of .badge */
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}



/* Search section */
.search-section {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

#search-input {
  width: 75%;
  flex: 1;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
}

#search-button {
  width: 25%;
  padding: 0.75rem 1.5rem;
  background: #2196f3;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

#search-button:hover {
  background: #1976d2;
}

#output{
  display: flex;
  flex-direction: column;
  align-items: left;
  justify-content: center;
  height: 250px;
  margin-top: 1.5rem;
  padding: 1rem;
  color: white;
  text-align: left;

}

#output p{
  width: 100%;
  text-align: left;
}

footer a{
  color: white;
  text-decoration: none;
}

 @media screen and (max-width: 768px) {
    .logo{
      width:35vw;
      margin-bottom: 1rem;
    }

    #search{
      gap: 0.5rem;
      align-items: center;
    }

    #output {
      width: 100%;
      height: auto;
      padding: 1rem;
      margin-top: 1rem;
      font-size: 0.5rem;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
    }

    #output p{
      padding: 0.5rem 0;
    }

    .badge {
      position: relative;
      top: none;
      left: none;
      transform: none;
      padding: 0.5rem 1rem;
      background-color: rgba(255,255,255, 0.5);
      color: var(--primary);
      border-radius: 9999px;
      font-size: 0.875rem;
      font-weight: 500;
      margin-bottom: 1.5rem;
    }

    footer{
      position: absolute;
      width: 100%;
      padding: 1.5rem;
      background-color: rgba(0, 0, 0, 0.5);
    }

    #search-input {
      width: 67%;
      margin-top: 1rem;
      height:100%;
      padding: none;
    }

    #search-button {
      width: 33%;
      margin-top: 1rem;
      padding: none;
      text-overflow: ellipsis;
      white-space: nowrap;
      text-align: center;
      height: 80%;
    }
  }