*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
  font: inherit;
}

html {
  color-scheme: dark light;
}

body {
  min-height: 100vh;
}

body::-webkit-scrollbar {
  display: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  text-wrap: balance;
}

p,
li,
figcaption {
  text-wrap: pretty;
  max-width: 65ch;
}

img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
}

input,
textarea,
button,
select {
  font: inherit;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
  font: inherit;
}

html {
  color-scheme: dark light;
}

body {
  min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  text-wrap: balance;
}

p,
li,
figcaption {
  text-wrap: pretty;
  max-width: 65ch;
}

img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
}

input,
textarea,
button,
select {
  font: inherit;
}

/* Project Below */

@font-face {
  font-family: "Audiowide";
  src: url("./fonts/Audiowide-Regular.woff2") format("woff2"),
    url("./fonts/Audiowide-Regular.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Exo";
  src: url("./fonts/Exo-Regular.woff2") format("woff2"),
    url("./fonts/Exo-Regular.woff") format("woff");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Exo Bold";
  src: url("./fonts/Exo-Bold.woff2") format("woff2"),
    url("./fonts/Exo-Bold.woff") format("woff");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Exo Medium Italic";
  src: url("./fonts/Exo-MediumItalic.woff2") format("woff2"),
    url("./fonts/Exo-MediumItalic.woff") format("woff");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

body {
  background-color: #0a1f44;
  position: relative;
}

.container {
  height: 100%;
  display: flex;
  flex-direction: column;
  margin-bottom: 2rem;
}
/**********/
/* Header */
/**********/
.header {
  background-color: #1c1c1c;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 9rem;
  box-shadow: 0 3px 10px #c0c0c0;
  padding-top: 2rem;
  padding-bottom: 2rem;
  position: sticky;
  top: 0;
  z-index: 2;
}

.header h1 {
  font-size: 2.1rem;
}

.header h1,
.header h2 {
  color: #00ffff;
  font-family: "Audiowide", Impact, Haettenschweiler, sans-serif;
  text-shadow: 0 0 5px #ff007f, 0 0 10px #ff007f, 0 0 20px #ff007f,
    0 0 40px #ff007f;
}

.header h2 {
  font-size: 1.5rem;
}

/*********/
/* Main */
/********/
.main {
  padding: 6rem 2rem 0 2rem;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-auto-rows: 25rem;
  justify-items: center;
  align-items: center;
}

.main .cards {
  height: 23rem;
  width: 15rem;
  border-radius: 2rem;
  background-color: #1c1c1c;
  border: 0.5px solid #00ffff;
  box-shadow: 0px 0px 5px #ff007f, 0px 0px 10px #ff007f, 0px 0px 20px #ff007f;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cards img {
  height: 100%;
  width: 100%;
  border-radius: 2rem;
}

/*****************/
/* Card Buttons */
/****************/
.card-button-div {
  position: absolute;
  z-index: 1;
  top: 0.3rem;
  right: 1rem;
  display: flex;
  gap: 0.2rem;
}
.card-buttons {
  height: 1.8rem;
  width: 1.8rem;
  background-color: #1c1c1c;
  border: none;
  border-radius: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.card-buttons > img {
  filter: invert(15%) sepia(65%) saturate(7489%) hue-rotate(322deg)
    brightness(98%) contrast(107%);
  height: 1.2rem;
  width: 1.2rem;
}

/***************/
/* Text Cards */
/**************/
.text-cards {
  display: none;
  align-content: end;
  padding-left: 1rem;
  padding-right: 2rem;
  background-color: #ff007f;
  font-family: "Exo Bold", Arial, Helvetica, sans-serif;
  color: #1c1c1c;
  height: 80%;
  width: 100%;
  opacity: 0.95;
}

.text-cards ul {
  display: flex;
  flex-direction: column;
  justify-content: start;
  margin-top: 2rem;
  gap: 1.25rem;
}

.text-cards li {
  list-style-type: none;
  font-size: 0.9rem;
}

.cards:hover .text-cards {
  display: flex;
  position: absolute;
}

/**********************/
/* "Add Book" button" */
/**********************/
.main .add-book-button {
  position: fixed;
  bottom: 3rem;
  right: 3rem;
  height: 5rem;
  width: 5rem;
  border-radius: 5rem;
  border: none;
  font-size: 4rem;
  padding-bottom: 0.5rem;
  background-color: #1c1c1c;
  color: #00ffff;
  text-shadow: 0 0 5px #ff007f, 0 0 10px #ff007f;
  box-shadow: 0px 0px 1rem #c0c0c0;
  z-index: 2;
}

/* Dialog Box and Form for "Add Book" Button */
#dialog:open {
  left: 34.75%;
  top: 16.5%;
  height: 80%;
  width: 30%;
  padding-top: 1rem;
  padding-bottom: 1rem;
  border-radius: 2rem;
  border: none;
  background-color: #ff007f;
  font-family: "Exo Bold", Arial, Helvetica, sans-serif;
  color: #1c1c1c;
  font-size: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

#dialog::backdrop {
  backdrop-filter: blur(1.5px);
}

#dialog::-webkit-scrollbar,
#description::-webkit-scrollbar {
  display: none;
}

.form input,
#description {
  border-radius: 1rem;
  border: none;
  font-family: "Exo Medium Italic", Helvetica Italic;
  color: #1c1c1c;
  background-color: white;
  padding: 0.3rem 0.75rem;
}

.form input:focus,
.form #description:focus {
  outline: none;
}

#description {
  resize: vertical;
  max-height: 7rem;
}

/* Form Element */
.form-element {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.5rem;
  gap: 0.2rem;
  position: relative;
}

.form-element svg {
  height: 0.65rem;
  display: inline-block;
  margin-left: 0.2rem;
}

/* Description - Text Area */
#description {
  resize: none;
}

/* Checkbox */
.read-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
}

/* Form Buttons */
.form-button-container {
  display: flex;
  flex-direction: row;
  gap: 1rem;
}

.form-buttons {
  background-color: #1c1c1c;
  color: #00ffff;
  font-size: 1rem;
  height: 2rem;
  width: 7rem;
  border-radius: 2rem;
  border: none;
}
