body {
	font-family: 'Spectral SC', serif;
}

nav {
	background-color: #2c3a28;
	color: #fff;
}

a {
	color: inherit;
}

a:hover {
	color: inherit;
	text-decoration: none;
}

.nav-link {
	color: inherit!important;
}

.jumbotron {
	background-image: url("../images/book.jpg");
	background-size: cover;
	text-align: center;
	margin: 0;
}

.jumbo-div {
	padding: 10px 0;
    margin: 0 auto;
    background-color: #00000078;
    color: #f3f2f2;
}

.jumbo-head {
	font-size: 3.5rem;
	letter-spacing: 4px;
}

.index-container {
	background-color: #2c3a28;
	color: #fff;
	padding: 2rem 0;
}

.index-button {
	margin-bottom: 20px;
	width: 50%;
}

#signupForm {
	margin-top: 20px;
	width: 70%;
    margin: 0 auto;
}

.index-minor-header {
	text-align: center;
	margin-bottom: 40px;
}

.index-articles {
	width: 80%;
	margin: 0 auto;
}

.index-article {
	margin-bottom: 25px;
}

.index-article:last-of-type {
	border: 0;
}

.index-hr {
	width: calc(100% - 30px);
    background-color: #fff;
    margin-top: 0;
    margin-bottom: 2rem;
}

#login-form {
	position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
}

#update-form {
	margin-bottom: 30px;
}

.main-title {
	text-align: center;
    margin: 10px;
    font-size: 50px;
}

#buttons {
	margin-bottom: 20px;
	max-width: 500px;
}

.item {
	display: block;
	position: relative;
}

#buttons button {
	width: 100%;
	margin-bottom: 15px;
}

.small-book-title {
    margin: 0;
}

.small-book-image {
	display: none;
	height: 50px;
	width: 50px;
	vertical-align: top;
}

.small-book-container .fa {
	font-size: 60px;
}

.cancel {
	float: right;
	margin-right: 5px;
}

#active-trades, #trade-requests {
	padding-top: 5px;
    width: 100%;
    position: absolute;
    border: 1px solid grey;
    background-color: #fff;
    z-index: 1;
    max-width: 500px;
}

#active-trades div, #trade-requests div {
	padding-left: 5px;
	margin-bottom: 10px;
}

.add-books:hover {
	cursor: default;
}

.book-container {
	margin-bottom: 20px;
}

.book-title {
	height: 10vh;
	overflow: hidden;
	margin-bottom: 20px;
}

.book-image {
	height: 200px;
    width: 150px;
}

.book-author {
	margin-top: 10px;
	max-width: 150px;
    max-height: 25px;
	font-weight: bold;
}

.request-text {
	display: inline;
}

.loader {
	border-top: 16px solid blue;
	border-right: 16px solid green;
	border-bottom: 16px solid red;
	border-left: 16px solid pink;
	border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

.search-box {
	margin-bottom: 20px;
}

/*Style for snackbar, error message that is shown if database operation such as requesting trade fails*/
#snackbar {
	position: fixed;
	min-width: 250px; 
    margin-left: -125px; 
    background-color: #000;
    color: #fff;
    text-align: center;
    border-radius: 2px;
    padding: 16px;
    z-index: 1;
    left: 50%;
    bottom: 30px;
    animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

@keyframes fadein {
    from {bottom: 0; opacity: 0;}
    to {bottom: 30px; opacity: 1;}
}

@keyframes fadeout {
    from {bottom: 30px; opacity: 1;}
    to {bottom: 0; opacity: 0;}
}

@media screen and (min-width: 768px) {

	.jumbo-div {
		width: 55%;
	}

	.jumbo-head {
		font-size: 4.5rem;
	}

	.index-articles {
		width: 100%;
	}

	.index-article {
		border-right: 1px solid #fff;
		margin-bottom: 0;
    	border-bottom: none;
	}

	.index-hr {
		display: none;
	}
	
	#login-form {
		width: 30%;
	}

	#buttons button {
		width: unset;
	}

	.small-book-container {
		display: flex;
		justify-content: space-evenly;
	}

	.small-book-title {
		display: inline-block;
		width: 70%;
	}

	.small-book-image {
		display: unset;
	}

}