@import url("https://fonts.googleapis.com/css2?family=Chivo:ital,wght@0,400;1,400;1,700&display=swap");

:root {
  /* COLORS */
  --dark-black: #121725;
  --white: #ffffff;
  --slayty: #2c344b;
  --neon: #54e6af;
  --silver: #c2cbe5;
  --light-slayty: #5a668a;
  --red: #fb3e3e;
  --gradient-from: #2f93e2a3;
  --gradient-to: #0c4470;
  --bg-gradient: linear-gradient(
    206.57deg,
    var(--gradient-from) 0%,
    var(--gradient-to) 100%
  );
  --header-height: 45px;
  /* FONTS */
  --ff-chivo: "Chivo", sans-serif;
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

html,
body {
  min-height: 100vh;
}

body {
  font-family: "Arial", sans-serif;
  display: flex;
  flex-direction: column;
  font-size: 1.1rem;
}

#header-line {
  height: 5px;
  background: linear-gradient(90deg, #69be28 33%, #29845a 33% 66%, #00afd7 66%);
}

#header-content {
  height: 400px;
  display: flex;
  align-items: center;
  flex-direction: column;
  background: var(--bg-gradient) 100% no-repeat,
    url(images/header-nocolor-bg.png) top center/cover no-repeat;
  color: white;
}

#statistics-page #header-content {
  height: 200px;
}

#header-title {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  background-color: var(--white);
  color: var(--dark-black);
  margin-left: 20px;
  margin-right: 20px;
}

#header-title > ul {
  display: flex;
  flex-direction: row;
  gap: 40px;
  list-style-type: none;
}

#header-filter {
  background-color: #dddddd;
  flex-direction: column;
  align-items: center;
  margin-top: 1rem;
  display: flex;
  flex-direction: row;
  color: var(--dark-black);
  border-color: #b6bbc4;
  border-style: solid;
  border-radius: 10px;
  font-size: 1rem;
}

header img {
  height: 80px;
  width: 220px;
}

nav {
  padding: 1.5rem;
  margin-top: 0px;
  display: flex;
  align-items: center;
  background: linear-gradient(206.57deg, #0f5b97c4 0%, #0c4470 100%);
  border-bottom: 2px solid #fff;
  color: var(--white);
  width: 100%;
}

nav ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

nav li {
  display: inline;
  margin-right: 20px;
}

nav a {
  text-decoration: none;
  color: var(--white);
}

#content-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

h1 {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 200;
  font-weight: 100;
}

#sort {
  padding: 1.5rem;
  margin-top: 0px;
  display: flex;
  align-items: center;
  justify-content: right;
  height: 60px;
  background: linear-gradient(
    206.57deg,
    rgba(15, 91, 151, 0.1) 0%,
    rgba(12, 68, 112, 0.1) 100%
  );
  border-top: 2px solid #fff;
  color: var(--white);
  width: 100%;
  font-size: 1rem;
  font-weight: bold;
}

#healder-filter {
  align-items: center;
  justify-content: center;
}

.header-filter__select {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  height: 100%;
}

#filters {
  border-top-left-radius: 15px;
  border-bottom-left-radius: 15px;
}

.header-filter__select label {
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  display: none;
}

select {
  width: 100%;
  display: flex;
  border-color: #dddddd;
  background-color: #dddddd;
  height: 100%;
  box-sizing: border-box;
  border-right: ridge;
}

button {
  display: flex;
  align-items: center;
  margin: 5px;
  height: 35px;
  background-color: #539165;
  color: var(--white);
  padding: 10px;
  border-color: #294b29;
  border-radius: 10px;
  border-style: solid;
  font-size: 1rem;
}

main {
  max-width: 90%;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
  padding: 20px;
}

#root > ul {
  width: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}

.books {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 10px;
  margin-bottom: 20px;
  list-style: none;
  max-width: 100%;
  box-sizing: border-box;
}

dl {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 100%;
}

dl img {
  width: 100%;
}

dd.book-name {
  font-size: 1rem;
  font-weight: bold;
}

.book-info {
  width: 100%;
  justify-content: space-between;
  display: flex;
  flex-direction: row;
  font-size: 1rem;
  gap: 5px;
}

footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: #0f3d6b url(images/footer-bg.png);
  background-size: cover;
  color: white;
  height: 2.5em;
  text-align: center;
  padding: 2em;
  width: 100%;
}

footer a {
  color: var(--white);
}

@media only screen and (min-width: 768px) {
  /* For desktop: */
  .books {
    flex: 1;
    margin: 0 10px 20px 0;
  }
}
@media only screen and (max-width: 768px) {
  /* For mobile: */
  #header-title {
    flex-direction: column;
  }
}
