/*
Josh's Custom CSS Reset
https://www.joshwcomeau.com/css/custom-css-reset/
*/

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

html {
    scroll-behavior: smooth;
}
*{
margin: 0;
}

@media (prefers-reduced-motion: no-preference) {
html {
interpolate-size: allow-keywords;
}
}

body {
line-height: 1.5;
-webkit-font-smoothing: antialiased;
width: 100vw;
height: 100vh;
overflow-x: hidden;
}

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

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

p, h1, h2, h3, h4, h5, h6 {
overflow-wrap: break-word;
}

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

#root, #__next {
isolation: isolate;
}
input:-webkit-autofill {  /* reset the autofill style */
    transition: background-color 5000s ease-in-out 0s; /* delays weird color flashes */
  }
  
/* Styling starts from here */

/* Side-bar styling starts from here */

.sidebar{
    position: fixed;
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 13%;
    background-color: #F8F8F8;
}

.logo-container{
    display: flex;
    align-items: center;
    padding-left: 15%;
    height: 11%;
}

.logo{
    display: flex;
    align-items: center;
    gap: 5px;
}

svg #logo-img path, #polygon{
    fill: #2196F3;
}

.logo-text{
    color: #4c4a4a;
    font-size: xx-large;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
}

.menu{
    height: 60%;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    margin-top: 15%;
    padding-left: 15%;
}

.menu .heading{
    color: rgb(160, 159, 159);
    padding-bottom: 15px;
}

.category{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    height: 8%;
    border-radius: 5px 5px 5px 5px;
}

.category:hover{
    cursor: pointer;
    color: #2196F3;
}

.category p{
    font-weight: 200;
}

.category:hover p{
    font-weight: bolder;
}

.category svg {
    transition: all 0.5s ease;
}

.category:hover path{
    fill: #2196F3;
}

.category-container{
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.5s ease;
}

.category:hover .category-container{
    transition: transform 0.5s ease;
    transform: translateX(15px);
}

.selected{
    visibility: hidden;
    height: 72%;
    width: 5px;
    background-color: #2196F3;
    border-radius: 5px 0px 0px 5px;
}

#setting{
    padding-top: 40px;
}

/* Classes which got add / remove via Java-script start from here */

.svg_fill{
    fill: #2196F3;
    width: 30px;
    height: 30px;
}

.svg_size{
    width: 30px;
    height: 30px;
}

.category_style{
    color: #2196F3;
    font-weight: bolder !important;
    font-size: large;
}

/* Classes which got add / remove via Java-script ends here */


.sidebar-end{
    height: 30%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.upgrade{
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 15px;
    transition: transform 0.8s ease;
}
.upgrade button{
    width: 90%;
    height: 40px;
    background-color:#2196F3;
    color: white;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 700;
    border-radius: 5px 5px 5px 5px;
    border: none;
}
.upgrade button:hover{
    cursor: pointer;
    transform: scale(1.03);
}
.social{
    display: flex;
    justify-content: center;
    padding-bottom: 25px;
    transition: transform 0.8s ease;
}
.my-svgs{
    display: flex;
    justify-content: space-evenly;
    width: 90%;
    gap: 5px;
}
.my-svgs svg:hover{
    cursor: pointer;
    transform: scale(1.1);
}

/* Side-bar styling ends here */

/* nav-bar styling starts from here */
.navbar{
    margin-left: 13.5%;   /* its the same as the width of the sidebar so that they dont overlapp */
    height: 8vh;
    width: 86vw;
    position: sticky;
    top: 15px;
    border-radius: 10px 10px 10px 10px;
    background-color: #bdddf5;
    z-index: 1;
}
.nav-container{
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.search-bar{
    display: flex;
    align-items: center;
    width: 70%;
    height: 60%;
    margin-left: 20px;
    border-radius: 10px 10px 10px 10px;
    gap: 5px;
    padding-left: 5px;
    background-color: #F8F8F8;
}
.search-bar form {
    width: 100%;
    height: 100%;
}
.search-bar input{
    height: 100%;
    width: 100%;
    border: none;
    font-size: large;
    font-family: Arial, Helvetica, sans-serif;
    background-color: #F8F8F8;
    border-radius: 10px 10px 10px 10px;
}
input:focus{
    outline: none;
}
.search-button:hover path{
    fill: #2196F3;
    transform: scale(1.05);
}
.search-button:active path{
    transform: scale(0.95);
}
.nav-end{
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    width: 12%;
    margin-right: 15px;
}
.line{
    height: 50px;
    width: 1px;
    background-color: #4c4a4a;

}
.nav-end svg:hover path{
    fill: #2196F3;
    width: 35px;
    height: 35px;
}
.account,.google_account{
    position: relative;
    height: 45px;
    width: 45px;
    border-radius: 50%;
    background-color: #168ae2;
    display: flex;
    justify-content: center;
    align-items: center;
}
.account:hover,.google_account:hover {
    transform: scale(1.1);
}
.account:active,.google_account:active {
    transform: scale(0.9);
}
.account p,.google_account p{
    font-size: xx-large;
    color: white;
    font-family: Arial, Helvetica, sans-serif;
    padding-bottom:1px;
}
.drop-down{
    user-select: none;
    visibility: hidden;
    position: absolute;
    bottom: -57px;
    right: 13px;
    width: 80px;
    height: 80px;
    outline: 0.1px solid black;
    border-radius: 10px 10px 10px 10px;
    background-color: rgba(255, 255, 255, 0.2); /* semi-transparent */
    backdrop-filter: blur(3px); 
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 10px;
    gap: 5px;
    font-weight: bold;
    font-family: Arial, Helvetica, sans-serif;
    color: #05284c;
}
.drop-down p:hover{
    color: #087df3;
    cursor: pointer;
    font-size: large;
    font-weight: bolder;
}
.log-out{
    display: none;
}

/* nav-bar styling ends here */

/* Collection Container styling starts form here */

.collection-container{
    margin-left: 15%;   /* its the same as the width of the sidebar so that they dont overlapp */
    height: 5vh;
    width: 86vw;
    margin-top: 25px;
    border-radius: 10px 10px 10px 10px;
    display: flex;
    align-items: center;
}
.collection{
    width: 70%;
    height: 5vh;
    border-radius: 10px 10px 10px 10px;
    background-color: #eeeded;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.collection .heading{
    font-size: x-large;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    padding-left: 30px;
}
.count-container{
    display: flex;
    align-items: center;
    gap: 5px;
}
.count{
    outline: 1px solid black;
    border-radius: 5px 5px 5px 5px;
    width: 100px;
    display: flex;
    justify-content: center;
    user-select: none;
}

.cover{
    margin-left: 35px;
    display: flex;
    align-items: center;
    outline: 1px solid black;
    border-radius: 5px 5px 5px 5px;
    height: 30px;
    width: 100px;
    gap: 3px;
    padding-left: 5px;
    user-select: none;
}
.title{
    display: flex;
    justify-content: space-between;
    outline: 1px solid black;
    width: 200px;
    height: 30px;
    margin-left: 15px;
    border-radius: 5px 5px 5px 5px;
    user-select: none;
}
.title-container{
    display: flex;
    align-items: center;
    gap: 5px;
    padding-left: 5px;
}
.line-arrow-container{
    display: flex;
    gap: 5px;
    align-items: center;
}
.line-arrow-container .line{
    height: 100%;
    width: 1px;
    background-color: #4c4a4a;
}
.filter{
    display: flex;
    align-items: center;
    justify-content: center;
    outline: 1px solid black;
    border-radius: 5px 5px 5px 5px;
    height: 30px;
    margin-left: 15px;
    padding-right: 5px;
    padding-left: 5px;
    background-color: #bdddf5;
    cursor: pointer;
    user-select: none;
}
.filter p{
    font-size: medium;
}

/* Collection Container styling ends here */

/* alphabets div styling starts from here */
.alphabets{
    margin-left: 13.5%;   /* its the same as the width of the sidebar so that they dont overlapp */
    margin-top: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: Arial, Helvetica, sans-serif;
    font-size: small;
    gap: 20px;
    user-select: none;

}
.alphabets span:hover{
    cursor: pointer;
    font-weight: bold;
    color: #2196F3;
}
.all{
    color:#2196F3;
    font-weight: bold;
}
/* alphabets div styling ends here */



/* output-result div styling starts from here*/
.output-result{
    margin-left: 14.5%;
    position: relative;
}
/* loader div styling starts from here */
.loader {
    visibility: hidden;
    position: fixed;
    top: 48%;
    left: 53%;
    width: 8px;
    height: 50px;
    border-radius: 4px;
    display: block;
    margin: 20px auto;
    background: currentColor;
    color: #2196F3;
    box-sizing: border-box;
    animation: animloader 0.2s 0.2s linear infinite alternate;
}
.loader::after, .loader::before {
    content: '';
    width: 8px;
    height: 50px;
    border-radius: 4px;
    background: currentColor;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 20px;
    box-sizing: border-box;
    animation: animloader 0.2s  0.45s  linear infinite alternate;
  }
.loader::before {
    left: -20px;
    animation-delay: 0s;
  }
  
@keyframes animloader {
    0%   { height: 48px} 
    100% { height: 4px}
}
     
.visiblity-true{
    visibility: visible !important;
}
.visiblity-false{
    visibility: hidden !important;
}
/* loader div styling ends here */

.no-result{
    visibility: hidden;
    font-family: Arial, Helvetica, sans-serif;
    font-size: large;
    color: #031829;
    position: fixed;
    top: 48%;
    left: 53%;
}

/* Login form styling starts from here */

.login-page{
    visibility: hidden;
    position: absolute;
    width: 500px;
    height: 500px;
    outline: 1px solid black;
    left: 31%;
    bottom: -570px;
    border-radius: 20px 20px 20px 20px;
    background-color: rgb(255, 255, 255);
    color: #2196F3;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.top{
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px;
    font-family: 'Poppins', sans-serif;
    gap: 5px;
}
.top .heading{
    font-size: 50px;
}
.top .description{
    font-size: medium;
    color: #626a72;
}
.close-icon{
    position: absolute;
    left: 450px;
}
.close-icon:hover{
    transform: scale(1.1);
}
.google{
    display: grid;
    place-items: center;
}
.google_btn_container{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background-color: #d3e5f457;
    border-radius: 20px 20px 20px 20px;
    height: 35px;
    width: 200px;
    margin-top: 10px;
    user-select: none;
    transition: transform 0.2s;
}
.google_btn_container:hover{
    transform: scale(1.1);
    transition: transform 0.2s;
    outline: 0.1px solid #2196F3!important;
}

.google_btn_container:active{
    transform: scale(0.98);
}
.google_btn_container svg path {
    fill: rgb(25, 181, 238); 
}
.google_btn_container p{
    color: #2196F3;
    font-weight: bold;
    font-family: 'Poppins', sans-serif;
}
.or{
    display: flex;
    justify-content: center;
}
.input-fields{
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 50px;
    padding-right: 50px;
    padding-bottom: 20px;
    font-family: 'Poppins', sans-serif;
    gap: 10px;
}
.input-fields label{
    font-weight: bold;
}
.input-fields input{
    background: none;
    border: 0.1px solid black;
    border-radius: 10px 10px 10px 10px;
    padding-left: 5px;
    background-color: #d3e5f457;
    height: 40px;
    /* border: none; */
}

.log_in_button_container{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
    padding-bottom: 10px;
}
.log_in_button{
    background-color: #2196F3;
    border: none;
    border-radius: 5px 5px 5px 5px;
    color: white;
    font-family: 'Poppins', sans-serif;
    height: 45px;
    width: 300px;
    transition: transform 0.3s;
}
.log_in_button:hover{
    transform: scale(1.05);
}
.log_in_button:active{
    transform: scale(0.95);
}
.forget_password{
    color:#2196F3;
    font-family: 'Poppins', sans-serif;
    font-size: small;
}
.auth_footer{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    height: 12%;
    border-radius: 0px 0px 20px 20px;
    background-color: whitesmoke;
}
.auth_footer p{
    font-size: medium;
    font-family: 'Poppins', sans-serif;
    color: rgb(94, 87, 87);
}
.auth_footer button{
    height: 55%;
    width: 30%;
    border-radius: 5px 5px 5px 5px;
    border: none;
    background-color: white;
    outline: 0.1px solid black;
}

.footer-signUp-button:hover , .footer-logIn-button:hover{
    transform: scale(1.1);
    transition: transform 0.2s;
    outline: 1px solid #2196F3!important;
}
/* Login form styling ends here */


/* Signup form styling starts from here */

.signUp-page{
    visibility: hidden;
    position: absolute;
    width: 500px;
    height: 500px;
    outline: 1px solid black;
    left: 31%;
    bottom: -570px;
    border-radius: 20px 20px 20px 20px;
    background-color: rgb(255, 255, 255);
    color: #2196F3;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.signUp-page .top .heading{
    font-size: 40px;
}

.signUp-page .input-fields{
    padding-top: 12px;

}
.signUp-page .log_in_button_container{
    padding-bottom: 20px;
}

.signUp-page .auth_footer{
    height: 10%;
}
.signUp-page .auth_footer p{
    font-size: 15px;

}
.signUp-page .auth_footer button{
    height: 60%;
    width: 20%;
    border-radius: 5px 5px 5px 5px;
    border: none;
    background-color: white;
    outline: 0.1px solid black;
}

/* Signup form styling ends here */


/* main-container styling starts from here */

.main-container{
    margin-top: 50px;
    height: auto;
    width: 86vw;
    display: grid;
    grid-template-columns: repeat(9,1fr) ;
}
.main-container p{
    height: 100%;
    width: 100%;
}
.book-container{
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 70%;
    transition:  transform 0.4s;
    padding-top: 10px;
}
.book-container img{
    height: 200px ;
    width: 120px ;
}
.book-container:hover{
    transform: scale(1.05) translateX(15px) translateY(-8px);   
    transition:  transform 0.3s;
}
.book-container:hover .cover-img img{
    opacity: 0.5;
}
.book-container:hover .add-btn{
    visibility: visible;
}

.cover-img{
    position: relative;
}
.cover-img button{
    visibility: hidden;
    position: absolute;
    top: 50%;
    left: 50%;
    border: none;
    border-radius: 10px 10px 10px 10px;
    width: 60px;
    background-color: #2196F3;
    color:  white;
    font-family: Arial, Helvetica, sans-serif;
    transform: translate(-50%, -50%); /* ← Moves the button back to true center */
    transition:  transform 0.5s;
}
.remove-btn{
    width: 75px !important;
}
.cover-img .add-btn:hover{
    font-size: medium;
    font-weight: bold;
    transition:  transform 0.5s;
}
.cover-img .add-btn:active{
    font-size: small;
    font-weight: bold;
}
.book-title{
    font-size: small;
    font-weight: bold;
    font-family: Arial, Helvetica, sans-serif;
}
.author-name{
    font-size: x-small;
}
/* main-container styling ends here */

/* output-result div styling ends here*/

.footer {
    position: fixed;
    left: 45%;
    top: 96%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-family: sans-serif;
    font-size: 14px;
    color: #5e5b5bcb;
    font-weight: bold;
    background-color: transparent;
    margin-top: auto;
    outline: 1px solid #5e5b5bcb;
    width: 20%;
    height: 30px;
    border-radius: 10px 10px 10px 10px;
    background-color: rgba(255, 255, 255, 0.2); /* semi-transparent */
    backdrop-filter: blur(10px); 
  }
  .footer a {
    color: #5e5b5bcb;
    text-decoration: none;
    font-weight: bold;
  }
  .footer a:hover {
    color: #2196F3;
    font-size: medium;
  }
  .footer:hover{
    outline: 2px solid #2196F3;
  }
  .github-logo {
    width: 20px;
    height: 20px;
    filter: invert(100%); /*Change white color to black and black color to white*/
    transition: transform 1s ease;
  }
  .github-logo:hover {
    transition: transform 1s;
    transform:  rotate(1080deg) scale(1.5);
  }