@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@200;400;600&display=swap");
:root {
  --dark-grey: #151922;
  --med-grey: #ccc;
  --light-grey: #ddd;
  --lightest-grey: #f4f4f4;
  --blue-grey: #121b30;
  --active: #4a4a4a;
  --not-active: #4a4a4a;
  --highlight: #fed431;
  --light-green: #7cfc00;
  /* #7b68ee; #ffce06; #3498db; fd7c23*/
  --highlight-accent: #fbc730;
  /* 3498db; c39d03; 0b79c3; fda737*/
  --link-underline: #ffce06;
  --status: rgba(255, 0, 0, 1);
  --search-outline: #4a4a4a;
  --dark-blue: #131c28;
  --med-blue: #11386b;
  --lighter-blue: #1a57a8;
  --lightest-blue: #3d7af4;
  --input-focus: rgba(255, 0, 0, 1);
  --export: #6928caaa;
}

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

html,
body {
  height: 100vh;
}

body {
  font-family: arial;
  background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-position: 50% 50%;
  background-size: 1.5rem 1.3rem;
  padding: 10px;
}

header {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
header img {
  width: 150px;
}
header h2 {
  margin: 0;
  padding: 0;
  position: relative;
  background-color: #f4f4f4;
  opacity: 0.8;
  text-align: center;
}

nav {
  display: flex;
  justify-content: right;
  align-items: center;
  padding: 10px 0;
}

.add,
.update,
.export,
.login,
.logout {
  background-color: var(--lightest-blue);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 14px;
  margin-right: 10px;
  cursor: pointer;
  transition: background-color 0.3s;
}
.add:hover,
.update:hover,
.export:hover,
.login:hover,
.logout:hover {
  background-color: #0056b3;
}
.export {
  background-color: var(--export);
}

.login {
  background-color: #f4f4f4;
}

.logout {
  background-color: #f4f4f4;
  color: #010101;
  border: 2px solid #ddd;
}
.logout:hover {
  color: #fff;
}

.btn {
  font-size: 14px;
}

/* login */
#login {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  height: 100vh;
}
#login img {
  width: 250px;
}
#login h2 {
  font-size: 24px;
  padding: 5px 50px;
  margin-bottom: 10px;
  position: relative;
  width: 210px;
  border-radius: 15px;
}
#login .form label {
  display: block;
  margin-bottom: 10px;
  font-weight: bold;
}
#login .form input[type=text],
#login .form input[type=password] {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}
#login .form button[type=submit] {
  background-color: var(--lightest-blue);
  color: white;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  transition: background-color 0.3s;
}
#login .form button[type=submit]:hover {
  background-color: #0056b3;
}

#search {
  background: var(--lightest-grey);
  display: flex;
  justify-content: space-between;
  padding: 0 5px;
}
#search .search-filter {
  display: flex;
  flex-direction: row;
  align-items: baseline;
}
#search .search-container {
  position: relative;
  max-width: 310px;
  margin-right: 10px;
}
#search .x {
  position: absolute;
  top: 50%;
  right: 20px;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  display: none;
  transform: translateY(-50%);
}
#search input,
#search select {
  padding: 10px;
  margin: 10px 5px;
  border: 2px solid #ccc;
  border-radius: 4px;
  text-transform: uppercase;
}
#search input {
  width: 300px;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
}
#search input:focus {
  border-color: var(--input-focus);
  outline: 0;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6);
}
#search input:not(:-moz-placeholder-shown) + .x {
  display: block;
}
#search input:focus + .x, #search input:not(:placeholder-shown) + .x {
  display: block;
}

.card-count {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 10px 0;
}
.card-count .count {
  font-style: italic;
}

/* input forms (add, edit etc)  */
#cardForm {
  text-align: center;
  margin: 20px auto;
  max-width: 400px;
}
#cardForm label {
  display: block;
  margin-bottom: 5px;
}
#cardForm input[type=text],
#cardForm input[type=number],
#cardForm input[type=file] {
  width: 90%;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}
#cardForm button[type=submit] {
  background-color: var(--lightest-blue);
  color: white;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  transition: background-color 0.3s;
}
#cardForm button[type=submit]:hover {
  background-color: #0056b3;
}

/* card list */
.cards {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #ccc;
}
.cards thead {
  position: sticky;
  top: 0;
  background-color: var(--lightest-blue);
  color: white;
  z-index: 99;
}
.cards th,
.cards td {
  padding: 10px;
  text-align: left;
  border: 1px solid #ccc;
  text-align: center;
}
.cards .series {
  text-transform: capitalize;
}
.cards th {
  background-color: var(--lightest-blue);
  color: white;
}
.cards tr:nth-child(even) {
  background-color: var(--light-grey);
}
.cards tr:hover {
  background-color: var(--light-green);
  border: 1px solid var(--link-underline);
}
.cards .fav {
  position: relative;
  color: var(--lighter-blue);
  font-size: 12px;
}
.cards .fav:hover::before {
  content: "Favorite";
  position: absolute;
  background-color: var(--light-grey);
  top: -20px;
  left: 0;
  padding: 10px;
}
.cards .actions {
  width: 150px;
}
.cards .actions .delete {
  background-color: #ee1b25;
  color: #fff;
  outline: none;
  border: 2px solid #000;
  padding: 5px 15px;
  margin: 0 auto;
}

.gpk-image {
  position: relative;
  margin: 0 auto;
}
.gpk-image .card {
  position: relative;
  display: none;
  width: auto;
  min-width: 200px;
  background-color: white;
  border: 1px solid #ccc;
  padding: 5px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
  z-index: 1;
}
.gpk-image .picture-label {
  cursor: pointer;
  text-decoration: underline;
}
.gpk-image:hover .card {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  opacity: 0;
  transition: opacity 0.3s;
}
.modal .modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 20px;
  border: 1px solid #ccc;
  border-radius: 4px;
  width: 80%;
  max-width: 400px;
  position: relative;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  transform: translateY(-20px);
}
.modal.open {
  display: block;
  opacity: 1;
  transform: translateY(0);
  z-index: 100;
}
.modal.open .modal-content {
  opacity: 1;
}

@media (max-width: 480px) {
  #search {
    flex-wrap: wrap;
    padding: 10px;
  }
  #search .search-filter {
    flex-direction: column;
  }
  #search .x {
    right: -25px;
  }
  #search input,
  #search select {
    padding: 10px;
    margin: 10px 0;
  }
  #search input {
    width: 350px;
  }
  #search .card-count {
    width: 100%;
    margin-top: 10px;
  }
}
@media (max-width: 768px) {
  .cards {
    width: 100%;
    max-width: none;
  }
  .cards th {
    display: none;
  }
  .cards td {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: left;
    padding: 10px;
    margin-bottom: 5px;
  }
  .cards td:before {
    content: attr(data-label);
    font-weight: bold;
    text-transform: uppercase;
    display: block;
    margin-bottom: 5px;
  }
  .cards .actions {
    width: 100%;
    text-align: center;
  }
  .cards .actions .btn {
    display: inline-block;
    margin: 5px;
  }
  .cards .gpk-image {
    text-align: center;
  }
}/*# sourceMappingURL=styles.css.map */