body {
  font-family: Arial, sans-serif;
  color: #333;
  margin: 0;
  padding: 0;
}

.container {
  display: block;
  position: relative;
  padding-left: 35px;
  margin-bottom: 12px;
  cursor: pointer;
  font-size: 22px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Hide the browser's default checkbox */
.container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

/* Create a custom checkbox */
.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 25px;
  width: 25px;
  background-color: #eee;
}

/* On mouse-over, add a grey background color */
.container:hover input ~ .checkmark {
  background-color: #ccc;
}

/* When the checkbox is checked, add a blue background */
.container input:checked ~ .checkmark {
  background-color: #2196F3;
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

/* Show the checkmark when checked */
.container input:checked ~ .checkmark:after {
  display: block;
}

/* Style the checkmark/indicator */
.container .checkmark:after {
  left: 9px;
  top: 5px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 3px 3px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

.btn-group button {
  background-color: #04AA6D; /* Green background */
  border: 1px solid green; /* Green border */
  color: white; /* White text */
  padding: 10px 24px; /* Some padding */
  cursor: pointer; /* Pointer/hand icon */
  float: center; /* Float the buttons side by side */
}

/* Clear floats (clearfix hack) */
.btn-group:after {
  content: "";
  clear: both;
  display: table;
}

.btn-group button:not(:last-child) {
  border-right: none; /* Prevent double borders */
}

/* Add a background color on hover */
.btn-group button:hover {
  background-color: #3e8e41;
}

body::before {
  content: "";
  background: url('background.webp') no-repeat center center fixed;
  background-size: cover;
  position: fixed; /* Mantém o background fixo durante o scroll */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.5; /* Ajuste a opacidade conforme necessário */
  z-index: -1; /* Coloca o pseudo-elemento atrás do conteúdo do body */
}

header {
  background-color: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 10px 0;
  text-align: center;
}

.opac h1{
  color: #FFF
}

nav a {
  margin: 0 15px;
  color: #fff;
  text-decoration: none;
}

main {
  padding: 20px;
  margin: 10px;
  border-radius: 10px;
  
}

.edit {
  margin-bottom: 40px;
}

.edit h1{
  color: #000000;
  padding: 10px;
  margin: 0 -20px 10px;
  text-align: center;
  border-radius: 5px;
}

.button_edit{
  color: #fff;
}

.arc {
  margin-bottom: 40px;
}

.arc h2 {
  background-color: #444;
  color: #fff;
  padding: 10px;
  margin: 0 -20px 10px;
  text-align: center;
  border-radius: 5px;
}

.name {
  color: #000;
  background-color: rgb(255 254 254 / 10%);
}

.add{
  text-align: center;
  display: flex;
  width: 100%;
  height: 100%;
}

.manga-grid {
  display: flex;
  overflow-x: auto;  /* Habilita o scroll horizontal */
  padding: 10px;
  gap: 10px;
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.6);
  white-space: nowrap; /* Impede a quebra de linha */
}

.manga-item {
  flex: 0 0 150px; /* Define a largura fixa dos itens */
  width: 150px; 
  min-width: 150px;
  height: 220px; /* Define a altura fixa dos itens */
}

.item-error {
  flex: 0 0 150px; /* Define a largura fixa dos itens */
  width: 150px; 
  min-width: 150px;
  height: 220px; /* Define a altura fixa dos itens */
}

.manga-item-owened img {
  width: 150px;
  height: 220px;
  min-width: 150px;
  border: 2px solid #ccc;
  border-radius: 5px;
  white-space: nowrap;
  flex: 0 0 150px; /* Define a largura fixa dos itens */
}

.manga-item-edit img {
  width: 300px;
  height: 500px;
  min-width: 150px;
  border: 2px solid #ccc;
  border-radius: 5px;
  white-space: nowrap;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.manga-item-not-owned img {
  width: 150px;
  min-width: 150px;
  flex: 0 0 150px; /* Define a largura fixa dos itens */
  height: 220px;
  filter: saturate(0)  grayscale(40%) sepia(30%);
  mix-blend-mode: multiply;
  border: 2px solid #ccc;
  border-radius: 5px;
  white-space: nowrap;
}

.manga-item .status {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 5px;
  border-radius: 5px;
}

footer {
  background-color: rgba(0, 0, 0, 0.8);
  color: #fff;
  text-align: center;
  padding: 10px 0;
  position: fixed;
  width: 100%;
  bottom: 0;
}