@font-face {
    src: url('fonts/Boogaloo-Regular.ttf');
    font-family: Book;
}

@font-face {
    src: url('fonts/Lobster.ttf');
    font-family: Lobster;
}

html {
    height: 100vh;
    margin: 0;
}

body {
    display: grid;
    grid-template-columns: 60px 1fr;
    margin: 0;
    background: url('pictures/bookshelves.jpg');
    background-size: 100%;
}

header {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(250,250,250,0.4);
}

.upperIcons, .lowerIcons {
    display: flex;
    flex-direction: column;
    row-gap: 30px;
}

.upperIcons > button, .lowerIcons > button {
    width: 40px;
    height: 40px;
    border: none;
}

.lowerIcons {
    margin-bottom: 15px;
}

button:hover {
    cursor: pointer;
}

#search {
    background-image: url('pictures/search.png');
    background-size: cover;
    background-color: transparent;
    margin-top: 15px;
}

#sort {
    background-image: url('pictures/sort.png');
    background-size: cover;
    background-color: transparent;
}

#settings {
    background-image: url('pictures/settings.png');
    background-size: cover;
    background-color: transparent;
}

#account {
    background-image: url('pictures/user.png');
    background-size: cover;
    background-color: transparent;
}

#addBook {
    background-image: url('pictures/addBook.png');
    background-size: cover;
    background-color: transparent;
}   

#deleteBook {
    background-image: url('pictures/removeBook.png');
    background-size: cover;
    background-color: transparent;
}

main {
    padding-left: 15px;
    padding-top: 3vh;
    padding-bottom: 3vh;
    padding-right: 15px;
    display: grid;
    grid-template-columns: repeat(auto-fit, 200px);
    grid-auto-rows: 30%;
    grid-auto-flow: row;
    gap: 3rem;
    justify-content: center;
    overflow: auto;
}

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

.book {
    
    border: 1px solid aqua;
    height: 100%; 
    background-size: 100% 100%;  
}

.book:hover {
    cursor: pointer;
}

.mouseHover {
    transform: scale(1.3);
}

.bookHover {
    transform: scale(1.1);
}

[title="The Principles of Object-Oriented JavaScript"] {
    background-image: url('pictures/thePrinciplesOfObjectOrientedJavaScript.jpg');
}

[title="Inside the Machine: An Illustrated Introduction to Microprocessors and Computer Architecture"] {
    background-image: url('pictures/insideTheMachineAnIllustratedIntroToMicro.jpg');
}

[title="Structure and Interpretation of Computer Programs"] {
    background-image: url('pictures/structureAndInterpretationOfComputerPrograms.jpg');
}

[title="Design Patterns: Elements of Reusable Object-Oriented Software"] {
    background-image: url('pictures/designPatternsElementsOfReusableOOSoftware.jpg');
}

[title="Code: The Hidden Language of Computer Hardware and Software"] {
    background-image: url('pictures/codeTheHiddenLanguageOfComputerHardwareAndSoftware.jpg');
}

[title="Cracking the Coding Interview: 189 Programming Questions and Solutions"] {
    background-image: url('pictures/crackingTheCodingInterview.jpg');
}

[title="Code Complete: A Practical Handbook of Software Construction"] {
    background-image: url('pictures/codeComplete.jpg');
}

[title="Programming Pearls"] {
    background-image: url('pictures/programmingPearls.jpg');
}

[title="The Pragmatic Programmer: Your Journey to Mastery"] {
    background-image: url('pictures/thePragmaticProgrammer.jpg');
}

[title="Code Simplicity"] {
    background-image: url('pictures/codeSimplicity.jpg');
}

[title="Algorithms to Live By: The Computer Science of Human Decisions"] {
    background-image: url('pictures/algorithmsToLiveBy.jpg');
}

[title="Clean Code: A Handbook of Agile Software Craftmanship"] {
    background-image: url('pictures/cleanCode.jpg');
}

[title="Think Like a Programmer: An Introduction to Creative Problem Solving"] {
    background-image: url('pictures/thinkLikeAProgrammer.jpg');
}

[title="Introduction to Algorithms"] {
    background-image: url('pictures/introductionToAlgorithms.jpg');
}

.searchDiv {
    display: flex;
    width: 95%;
    height: 60px;
    border-radius: 0 4px 4px 0;
    background-color: rgba(250, 250, 250, 0.4);
}

.searchBar {
    width: 80%;
    height: 60px;
    background-color: transparent;
    border: none;
    padding-left: 5px;
    font-weight: bold;
}

.searchBar:focus {
    outline: none;
}

.searchBar:focus::placeholder {
    color: transparent; 
}

.searchBarButton {
    border-radius: 4px;
    width: 20%;
    height: 60px;
    background-color: rgba(127, 255, 212, 0.577);
    border: none;
}

.searchBarButton::after {
    content: "Search";
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
}

::placeholder {
    color: black;
    text-align: center;
    font-family: 'Courier New', Courier, monospace;
}

.hideBook {
    display: none;
}

.showAll {
    width: 100px;
    height: 40px;
}

.showAll::after {
    content: "Show All Books";
}

.sortDiv {
    margin-top: 74px;
    display: flex;
    width: 100%;
    height: 60px;
    justify-content: center;
    align-items: center;
    column-gap: 10px;
}

.sortSelect {
    width: 50%;
    text-align: center;
    height: 30px;
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
}

.sortSelect:hover {
    cursor: pointer;
}

.sortSelectButton {
    border-radius: 5px;
    width: 70px;
    height: 30px;
    border: none;
    font-family: 'Courier New', Courier, monospace;
    background-color:chartreuse;
    font-weight: bold;
}

.sortSelectButton::after {
    content: "Sort";
}

.settingsDiv {
    margin-top: 148px;
    display: flex;
    width: 100%;
    height: 60px;
    justify-content: center;
    align-items: center;
    column-gap: 10px;
}

.settingsSelect {
    width: 50%;
    text-align: center;
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    height: 30px;
}

.settingsSelect:hover {
    cursor: pointer;
}

.settingsSelectButton {
    border-radius: 5px;
    width: 70px;
    height: 30px;
    font-family: 'Courier New', Courier, monospace;
    background-color:crimson;
    font-weight: bold;
    border: none;
}

.settingsSelectButton::after {
    content: "Change";
    color: gold;
}

.headerBlueTheme {
    background-color: rgba(6, 243, 243, 0.4);
}

.headerGreenTheme {
    background-color: rgba(44, 255, 1, 0.4);
}

.bookGreenTheme {
    border: 1px solid rgb(44, 255, 1);
}

.headerRedTheme {
    background-color: rgba(255, 0, 0, 0.4);
}

.bookRedTheme {
    border: 1px solid rgb(255,0,0);
}

.headerYellowTheme {
    background-color: rgba(251, 255, 0, 0.4);
}

.bookYellowTheme {
    border: 1px solid rgb(251,255,0);
}

.addBookDiv {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-left: 5px;
    margin-right: 5px;
}

.hide {
    display: none;
    
}

.form {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    width: 360px;
    background-color: white;
    height: 60%;
    border-radius: 2px;
}

.formExitDiv {
    display: flex;
    justify-content: flex-end;
}

.formExitButton {
    width: 20px;
    height: 20px;
    background-image: url('pictures/x-button.png');
    margin-top: 10px;
    margin-right: 10px;
    background-size: cover;
    border: none;
    background-color: transparent;
}

.formTitle {
    display: flex;
    justify-content: center;
    height: 70px;
    color:rgb(43, 107, 226);
    font-family: Book;
    font-size: 2rem;
    font-weight:800;
}

.input {
    width:250px;
    height: 30px;
    border-image: linear-gradient(to right, rgb(4, 172, 250) 0%, aqua 100%) 0 0 100% 0;
}

.input:focus {
    outline: none;
}

.input::placeholder {
    text-align: left;
    font-family:'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    color: gray;
    font-weight: 100;
}

.input:focus::placeholder {
    color: transparent;
}

.read {
    display: flex;
    column-gap: 15px;
}

.inputs {
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 25px;
}

label, option, select {
    font-family: Book;
}

#submit {
    margin-top: 20px;
    width: 50%;
    height: 40px;
    border-radius: 15px;
    border: none;
    color:ghostwhite;
    font-family: book;
    font-size: 1.5rem;
    background-image: linear-gradient( to right, blue, rgb(119, 0, 255));
}

span {
    font-family: Book;
}

.deleteBookIcon {
    border: none;
    margin-top: -15px;
    margin-right: -15px;
    float: right;
    background-image: url('pictures/red-x.png');
    background-size: cover;
    background-color: transparent;
    width: 25px;
    height: 25px;
}

.deleteBookIcon:hover {
    cursor: crosshair;
}

.rotationOne {
    transition: 0.4s;
    transform: rotateY(90deg);
}

.rotationTwo {
    transition: 0.4s;
    transform: rotateY(90deg) rotateY(90deg);
    background-image: none;
    background-color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    
}

.rotationThree {
    transition: 0.4s;
    transform: rotateY(180deg) rotateY(-90deg);
    background-image: none;
    background-color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;

}

.rotationFour {
    transition: 0.6s;
    transform: rotateY(90deg) rotateY(-90deg);
}


.bookRead {
    transform: scale(-1,1);
    margin-bottom: 15px;
    padding: 0.6em 2em;
    width: 90%;
    height: 40px;
    border: none;
    outline: none;
    color: rgb(255, 255, 255);
    background: #111;
    cursor: pointer;
    position: relative;
    z-index: 0;
    border-radius: 10px;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}
    
.bookRead:before {
  content: "";
  background: linear-gradient(
    45deg,
    #ff0000,
    #ff7300,
    #fffb00,
    #48ff00,
    #00ffd5,
    #002bff,
    #7a00ff,
    #ff00c8,
    #ff0000
  );
  position: absolute;
  top: -2px;
  left: -2px;
  background-size: 400%;
  z-index: -1;
  filter: blur(5px);
  -webkit-filter: blur(5px);
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  animation: glowing-button-85 20s linear infinite;
  transition: opacity 0.3s ease-in-out;
  border-radius: 10px;
}
    
@keyframes glowing-button-85 {
  0% {
    background-position: 0 0;
  }
  50% {
    background-position: 400% 0;
  }
  100% {
    background-position: 0 0;
  }
}
    
.bookRead:after {
  z-index: -1;
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: #222;
  left: 0;
  top: 0;
  border-radius: 10px;
}

.bookRead:hover {
    cursor:grab;
}

.div {
    text-align: center;
    transform: scale(-1, 1);
    font-family: Book;
    padding: 5px;
}
