:root {
  --bg: eeeeeee1;
  --bg-image: url(https://picsum.photos/1920/1080?random=1);
  /* --bg-image: url(https://source.unsplash.com/1920x1080/) */
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #222529e1
  }
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: eeeeeee1;
  }
}

[data-theme="light"] {
    --bg: #eeeeeee1;
}

[data-theme="dark"] {
    --bg: #222529e1;
}

body {
  display: block;
  background: var(--bg) center / cover no-repeat var(--bg-image);
  max-width: 37rem;
  margin: auto;
}

#wrapper-all {
  display: grid;
  grid-row-gap: .75rem;
  justify-content: center;
  align-items: center;
}

nav {
  padding: .5rem;
  margin: 0;
  list-style: none;
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  border-radius: 10px;
  background: var(--bg);
}

#banner {
  padding: 0;
  margin: 0 auto;
  max-width: 100%;
  border: none;
  border-radius: 10px;
}

/* search bar */
#search-wrapper {
  padding: .25rem;
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-around;
  align-items: center;
  border: solid 2px var(--bg);
  border-radius: 10px;
  background-color: var(--bg);
}

#search-wrapper:hover {
  border: solid 2px var(--accent);
}

#input-wrapper {
  flex: 1;
}

#search-input {
  border: none;
  outline: none;
  padding: .125rem;
  width: 100%;
  font-family: inherit;
  font-size: inherit;
  color: var(--text);
  background-color: inherit;
}

#search-button {
  border-radius: 12px;
}

#search-button:hover {
  cursor: pointer;
}

/* categories */
#list-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  border-radius: 10px;
  background: var(--bg);
}

.category {
  padding: 1rem 0 1rem 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
  transition: all 0.2s;
}

.category ul {
  padding: 0;
  list-style-type: none;
}

.category:hover {
  background-color: var(--bg-light);
  transform: scale(1.06);
}

.category:hover .icons {
  color: var(--accent);
  fill: var(--accent);
  transition: fill 0.5s;
  transition: color 0.5s;
}

.category label .icons {
  width: 1.6rem;
  height: 1.6rem;
}

.category label {
  margin-bottom: .5rem;
}

@media (min-width: 720px) and (min-height: 550px) {
  body {
    align-content: center;
  }
}

/* add padding on small screen */
@media only screen and (max-width: 720px), (max-height: 550px) {
  body {
    padding: .5rem .5rem 0 .5rem;
  }
}

/* icons settings */
.icons {
  width: 1.3rem;
  height: 1.3rem;
  aspect-ratio: 1/1;
  display: inline-block;
  vertical-align: middle;
  color: var(--text);
  fill: var(--text);
  background-color: transparent;
  cursor: pointer;
}

.icons:hover {
  background-color: transparent;
  color: var(--accent);
}

/* some global css */
.theme-transition {
  transition: color 0.3s ease, background-color 0.3s ease;
}

.no-style {
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 0
}

.no-style:hover {
  background-color: transparent;
  color: var(--accent);
}
