body{
     background-color: white;
     margin: 0;
     padding: 0 0 100px 0;
     background-color: rgb(241, 241, 241);
     font-family: 'Roboto', sans-serif;
     font-size: 20px;
}

div,
button,
input,
a{
    transition: all 0.3s ease;
}

h1, h2, h3, h4, h5{
     margin: 0;
}

h1{
     font-size: 45px;
}

hr{
     margin: 30px;
     height: 1px;
     background-color: rgba(1,1,1,0.5);
     border: none;
}

input{
     width: 100%;
     outline: none;
     border: 0;
}

.button{
     width: 100%;
     padding: 10px;
     font-family: 'Roboto', sans-serif;
     font-size: 20px;
     margin-top: 15px;
     font-weight: 600;
}

.button:hover{
     cursor: pointer;
}

.container{
     margin: auto;
     text-align: center;
     width: 75%;
     height: inherit;
     max-width: 1280px;
}

.clearfix{
     content: "";
     display: table;
     clear: both;
}

/*
============================ N A V I G A T I O N ==============================
*/

nav{
     background-color: #4711ae;
     height: 70px;
     font-weight: 300;
     box-shadow: 0 0 10px rgba(0,0,0,1);
     position: relative;
}

nav a{
     display: inline-block;
     color: white;
     text-decoration: none;
     line-height: 70px;
     padding: 0 30px;
     vertical-align: middle;
     float: left;
}

nav a:hover{
     background-color: #2a0671;
}

nav .logo{
     background-color: #2a0671;
     font-size: 50px;
     font-weight: 100;

}

.logo span{
     font-weight: 600;
}

nav .left,
nav .right{
     height: inherit;
}

nav .left{
     float: left;
}

nav .right{
     float: right;
     font-weight: 500;
}

nav .shown,
nav .librarian{
     display: none;
}

nav .active{
     background-color: #2a0671;
}

/*
============================== M A I N  I N F O ================================
*/

section .container{
     background-color: white;
}

section .inside{
     padding: 30px;
}

/*
================================ S E A R C H ===================================
*/

.search {
     margin: 30px 0 0 0;
     position: sticky;
     top: 10px;
     z-index: 100;
}

.search .container{
    background-color: unset;
    position: relative;
}

.search .container .inside{
    border: 5px solid #4711ae;
}

.search .container .inside:hover{
     border-color: #2a0671;
     box-shadow: 0 0 30px rgba(1,1,1,0.3);
}

.search .inside{
     padding: 0;
     width: 90%;
     display: flex;
     justify-content: space-between;
     background-color: white;
     float: left;
     position: relative;
}

.search input{
     padding: 0 20px;
     font-size: 30px;
     height: 60px;
     display: inline-flex;
     background-color: unset;
}

.search button{
    display: inline-flex;
    background-color: unset;
    border: none;
    outline: none;
    padding: 0 15px;
    opacity: 0.6;
}

.search button:hover{
    cursor: pointer;
    opacity: 1;
}

.search #results{
    position: absolute;
    top: -95vh;
    background-color: white;
    width: 100%;
    box-shadow: 0 20px 30px rgba(1,1,1,0.3);
    max-height: 79vh;
    overflow: auto;
    transition: all 0.3s ease 0.2s;
}

.search input:focus ~ #results{
    top: 60px;
}

.search .table{
    margin: 0;
}

.table .inside .anchor{
    top: -80px;
}



.search .tag-button{
    border-radius: 50%;
    font-size: 60px;
    line-height: 40px;
    height: 70px;
    width: 70px;
    float: right;
    transform: rotate(90deg);
    color: #4711ae;
}

.tags:hover{
    cursor: pointer;
}

.search .tags-list li{
    list-style-type: none;
}

.search .tags-list a{
    text-decoration: none;
}

.tags{
    position : relative;
}

.tags ul {
    position: absolute;
    right: 0; 
    top: 55px; 
    display: none;
    margin: 0;
    padding: 30px 0 0 0;
}

.tags li{
    background-color: white;
    box-shadow: 0 0 30px rgba(1,1,1,0.3);
    padding: 5px 30px;
    border-left: 5px solid #4711ae;
    margin-left: 10px;
    float: right;
    color: #4711ae;
}

.tags .tag-button:hover + ul {
    display:block;
}

ul:hover{
    display: block;
}

/*
================================ T A B L E ===================================
*/

table{
     width: 100%;
}

.table{
    margin-top: 50px;
}

.table input{
    white-space: pre-line;
}

.table input,
.books select,
.books textarea{
    font-size: 20px;
    font-family: inherit;
    background-color: unset;
    text-decoration: none;
    color: #4711ae;
    font-weight: 500;
    padding: 10px 0;
    height: 100%;
}

.table input:hover:not(.inactive){
    color: #2a0671;
    cursor: pointer;
}

.table td{
     border-bottom: 1px solid rgba(1,1,1,0.2);
     border-right: 1px solid rgba(1,1,1,0.2);
}

.table tr > td:last-child{
     border-right: none;
     position: relative;
}

.table tr:last-child td{
     border-bottom: none;
}

.table tr:first-child{
     font-weight: bold;
}

.table tr:not(.add-user):not(.add-book):first-child td{
    padding: 10px;
}

.table tr:hover{
    background-color: rgba(1,1,1,0.05);
}

.table .container{
    position: relative;
}

.table h2{
    font-size: 50px;
    color: #bc98ff;
    position: absolute;
    left: 30px;
    top: -30px;
}

.table .anchor{
    position: absolute;
    top: -110px;
}

.users input,
.books input{
    text-align: center;
    text-decoration: none;
    color: rgba(1,1,1,0.9);
    height: inherit;
    min-width: 100%;
}

.users input:focus:not(.inactive),
.books input:not([type="radio"]):focus,
.books textarea:focus,
.books select:focus{
    outline: 5px solid #4711ae;
    background-color: white;
}

.users select{
    height: 45px;
    width: 100%;
    border: none;
    float: right;
    font-size: inherit;
    font-family: inherit;
    background-color: unset;
    font-weight: inherit;
}

.users select:focus{
    outline: none;
}

.users .add-user select{
    color: rgba(1,1,1,0.5);
}

.table .button{
    width: 200px;
    background-color: #4711ae;
    color: white;
    text-decoration: none;
    position: absolute;
    right: 30px;
    bottom: -25px;
    border: 0;
}

.books textarea{
    min-width: 94%;
    max-width: 94%;
    border: none;
    background-color: unset;
    min-height: 45px;
    padding: 10px;
    text-align: center;
}

.books .description{
    width: 350px;
    max-width: 350px;
}

.books select{
    width: 100%;
    height: 45px;
    border: none;
    background-color: unset;
    color: rgba(1,1,1,0.6);
    padding: 0 0 0 20px;
}

.books label{
    display: inline-block;
}

.books label input{
    min-width: auto;
    width: auto;
    margin-left: 10px;
}

.books .radio{
    vertical-align: middle;
    color: rgba(1,1,1,0.6);
    padding-top: 10px;
}

.books .copies{
    width: 100px;
}

.books .add-book td,
.books .edit-delete-books td{
    vertical-align: top;
}

.books .edit-delete-books .description{
    width: 250px;
    max-width: 250px;
}

.books .edit-delete-books select{
    padding: 0;
}

.books .edit-delete-books .type{
    width: 80px;
}

.books .edit-delete-books .copies{
    width: 60px;
}

.books .edit-delete-books label input{
    margin-left: 0;
}

.books .edit-delete-books label input:last-child{
    margin-left: 5px;
}

.books .edit-delete-books textarea{
    min-width: 92%;
    max-width: 92%;
}

.books td:first-child,
.users td:first-child{
    position: relative;
}

#intro-dm-log tr td{
    font-weight: 400;
    padding: 10px;
}

#intro-dm-log span{
    font-weight: 600;
}





.users .buttons,
.books .buttons{
    display: none;
    flex-wrap: wrap;
    justify-content: start;
    position: absolute;
    top: 0;
}

.users tr:hover .buttons,
.books tr:hover .buttons{
    display: inline-flex;
}

.users .left-buttons,
.books .left-buttons{
    left: -55px;
    padding-right: 10px;
}

.users .right-buttons,
.books .right-buttons{
    right: -110px;
    width: 110px;
}

.users .buttons button,
.books .buttons button{
    width: 45px;
    height: 45px;
    display: inline-flex;
    justify-content: center;
    background-color: #4711ae;
    border: none;
    margin-bottom: 10px;
    outline: none;
}
.users .buttons button:hover,
.books .buttons button:hover{
    cursor: pointer;
}

.users .right-buttons button,
.books .right-buttons button{
    margin-left: 10px;
}

.books .left-buttons button:hover,
.users .left-buttons button:hover{
    background-color: #0D56A6;
}

.books .right-buttons button[name = edit]:hover,
.users .right-buttons button[name = edit]:hover{
    background-color: #2a0671;
}

.books .right-buttons button[name = delete]:hover,
.users .right-buttons button[name = delete]:hover,
.users .right-buttons .reject:hover{
    background-color: #EF002A;
}

.books .right-buttons button[name = clear]:hover{
    background-color: #FFD300;
}

.users .right-buttons .accept:hover{
    background-color: #53DF00;
}

.users .list-books{
    z-index: 10;
    display: inline;
    position: absolute;
    top: 0px;
    left: 0px;
    width: 0;
    height: 0;
    overflow: auto;
    box-shadow: 0 0 30px rgba(0,0,0,0.3);
    text-align: left;
    background-color: white;
}

.users .list-books tr:nth-child(2n + 1){
    background-color: rgba(70,17,174,0.1);
    font-weight: 600;
    color: #2a0671;
    padding: 10px;
}

.users .link:hover .list-books{
    width: 20vw;
    height: 15vw;
}

.users .left-buttons button:hover .list-books{
    width: 20vw;
    height: 15vw;
}

.users .list-books span{
    line-height: 43px;
    padding: 10px;
}

/*
============================== B O O K  P A G E ================================
*/

.book .left,
.book .right{
     float: left;
}

.book .left{
     width: 40%;
}

.book .button{
     color: #4711ae;
     border: 2px solid #4711ae;
     background-color: white;
}

.book .button:hover{
     background-color: #4711ae;
     color: white;
}

.book .right{
     width: 60%;
}

.book .right .inside{
     padding: 30px;
}

.book td{
     padding: 20px 10px;
}

.book tr:nth-child(odd) td{
     padding: 10px;
     font-weight: 600;
     text-align: left;
     color: #2a0671;
     background-color: rgba(70,17,174,0.1)
}

/*
================================= S I G N - U P  ====================================
*/
.sign-in-up{
     margin-top: 100px;
}

.sign-in-up .container{
     background: none;
}

.sign-in-up .inside{
     display: inline-block;
     width: 35%;
     background-color: white;
     vertical-align: top;
}

.sign-up{
     margin-left: 50px;
}

.sign-in .border,
.sign-up .border{
     border: 2px solid #4711ae;
     margin-bottom: 15px;
     padding: 0 20px;
     height: 40px;
}

.sign-in .field,
.sign-up .field{
     height: 30px;
     font-size: 20px;
     width: 100%;
     margin-top: 4px;
}

.sign-in .border:first-child,
.sign-up .border:first-child{
     margin-top: 50px;
}

.sign-in .button,
.sign-up .button,
.profile button{
     background-color: #4711ae;
     color: white;
     border: 2px solid #4711ae;
}

.sign-in .button:hover,
.sign-up .button:hover,
.profile button:hover{
     background-color: #2a0671;
     color: white;
     border: 2px solid #2a0671;
}

.sign-up .status{
    height: 45px;
    line-height: 40px;
}

.sign-up select{
    height: 45px;
    width: 50%;
    border: none;
    float: right;
    font-size: inherit;
    font-family: inherit;
    border: 2px solid #4711ae;
}

.sign-up select:focus{
    outline: none;
}

/*
================================ P R O F I L E =================================
*/

.table table{
     width: 100%;
}

.profile .left,
.profile .right{
     float: left;
}

.profile .left{
     width: 40%;
}

.profile .button:not(button){
     color: #4711ae;
     border: 2px solid #4711ae;
     background-color: white;
}

.profile .button:not(button):hover{
     background-color: #4711ae;
     color: white;
}

.profile .right{
     width: 60%;
}

.profile .right .inside{
     padding: 30px;
}

.profile #intro-dm td{
     padding: 20px 10px;
}

.profile tr:nth-child(odd) td{
     padding: 10px;
     font-weight: 600;
     text-align: left;
     color: #2a0671;
     background-color: rgba(70,17,174,0.1)
}

.profile .list{
     display: none;
     background-color: white;
}

.profile .list td{
     padding: 10px;
     text-align: left;
}

.profile #foo2,
.profile #foo1{
    padding: 0;
}

.profile button{
    width: 85px;
    float: right;
    margin: 0;
}

.profile #intro-dm-books td{
    text-align: left;
}

.profile #intro-dm-books span{
    line-height: 50px;
    padding-left: 10px;
}

.profile .change-password{
    display: flex;
    justify-content: space-between;
}

.profile .change-password div{
    display: inline-flex;
}

.profile .change-password .field{
    border: 2px solid #4711ae;
    flex-grow: 5;
    padding: 10px;
}

.profile .change-password .btn{
    flex-grow: 1;
    font-size: inherit;
}

.profile .change-password .btn button{
    font-size: inherit;
    width: 100%;
}

.profile .change-password .btn button{
    cursor: pointer;
}

.profile .change-password .field input{
    font-size: inherit;
}

.profile #intro-dm-img .image{
    width: 100%;
    height: 30vw;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.profile #intro-dm-img .image:hover .change-img{
    opacity: 1;
}

.profile #intro-dm-img .change-img{
    width: 100%;
    height: 100%;
    opacity: 0;
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    background-color: rgba(1,1,1,0.7);
}

.profile #intro-dm-img .change-img .label{
    width: 100%;
    color: white;
    padding-bottom: 15px;
    font-size: 25px;
    font-weight: 600;
}

.profile #intro-dm-img .change-img .field{
    flex-grow: 5;
    padding: 10px;
    border: 2px solid #4711ae;
    background-color: white;
}

.profile #intro-dm-img .change-img .field input{
    font-size: inherit;
}

.profile #intro-dm-img .change-img .btn{
    flex-grow: 2;
}

.profile #intro-dm-img .change-img .btn button{
    font-size: inherit;
    width: 100%;
    height: 100%;
}

.profile #intro-dm-img .change-img .btn button:hover{
    cursor: pointer;
}
/*
================================ F O O T E R ==================================
*/






.tests .container{
    padding: 30px;
}

.tests .buttons{
    display: flex;
    justify-content: space-around;
    margin-bottom: 80px;
}

.tests button{
    display: inline-flex;
    justify-content: center;
    flex-basis: 30%;
}