/* COLORS 
	
	Full color green: rgba(10, 152, 72, 1)
	Pale green: rgba(165, 209, 166, 1)
	Full red: #9e0c0c
	Pale red:  rgba(226, 84,85, 1)
	
*/

body {
	font-family: 'Montserrat', sans-serif;
	background: rgba(165, 209, 166, .8);
	margin: 0;
	padding: 0;
	color: #000;
	line-height: 1.5;
}

body::before {
	content: "";
	background: url('img/eight_horns.png');
	opacity: .5;
	position: fixed;
	top: 0;
	left: 0;
	height: 100%;
	width: 100%;	
	z-index: -1;	
}

img { max-width: 100%; }
.float-right { float: right; }
.float-left { float: left; }
hr {
	border: 0;
	border-bottom: 1px solid rgba(165, 209, 166, 1);
}

main {
	max-width: 50em;
	margin: auto;
	padding: 1em;
}

.app-feedback {
	position: fixed;
	bottom: 0;
	left: 0;
	padding: .25em;
	text-align: center;
	border-top: .25em solid #9e0c0c;
	background: rgba(226, 84,85, .9);
	color: #fff;
	font-weight: bold;
	width: 100%;
}

.app-feedback.dismissed {
	height: 0;
	padding: 0;
	transition: all .4s ease;
}

header {
	background: rgba(226, 84,85, .9);
	padding: 1em;
	border-bottom: .25em solid #9e0c0c;
	margin-bottom: 2em;
}

header .inner-wrap {
	max-width: 50em;
	margin: auto;
}

header .logo {
	float: left;
	width: 25%;
	max-width: 7em;
	margin-top: -1em;
}

a { color: #9e0c0c; }

a:hover, a:focus {
	color: #fff;
	background: #9e0c0c;
	text-decoration: none;
	border-radius: .25em;
}

header h1 { display: inline; }

header a {
	color: #FFF;
	text-decoration: none;
	padding: 0 .25em;
}

#menu-link { 
	font-size: 2em;
	float: right; 
}

main {clear: both;}

#main-navigation ul.principle-actions {
	list-style: none;
	margin: 0;
	padding: 0;
}

.reader-only {
	position: fixed;
	left: -9999em;
}

#login label{
	display: block;
}

#login input[type="text"], #login input[type="password"] {
	width: 100%;
}

.edit-links { text-align: right; }

.text-container, .comment-wrapper, .highlighted-container {
	/* These are technically the same, but use both */
  overflow-wrap: break-word;
  word-wrap: break-word;

  -ms-word-break: break-all;
  /* This is the dangerous one in WebKit, as it breaks things wherever */
  word-break: break-all;
  /* Instead use this non-standard one: */
  word-break: break-word;

  /* Adds a hyphen where the word breaks, if supported (No Blink) */
  -ms-hyphens: auto;
  -moz-hyphens: auto;
  -webkit-hyphens: auto;
  hyphens: auto;
}

.highlighted-container {
	background: rgba(255,255,255, .8);
	border: .25em solid rgba(10, 152, 72, 1);
	border-radius: .5em;
	padding: .5em;
	color: rgba(10, 152, 72, 1);
}

.profile-image {
	height: 3em;
	width: 3em;
	border-radius: 100em;
	border: .25rem solid rgba(10, 152, 72, 1);
}

/* ====================== List of people pages ====================== */

.user-pages {
	list-style-type: none;
	padding: 0;
}

.user-pages li {
	width: 50%;
	display: inline-block;
	margin: .25em auto;
	box-sizing: border-box
}

.user-pages li a {
	display: block;
	min-height: 4em;
	line-height: 4em;
	padding: 0 .5em;
	box-sizing: border-box;
}

.user-pages li a:hover, .user-pages li a:focus {
	background: rgba(226, 84,85, .9);
}

.user-pages li .profile-image {
	display: inline-block;
	margin: 0 1em -1.37em 0;
}
 .page-header .profile-image {
	 height: 8em;
	 width: 8em;
	 display: block;
	 margin: auto;
 }
 
 .page-header {
	 text-align: center;
 }

/* ====================== FORMS ====================== */

form { display: inline; }

input, textarea, button { 
	font-size: 1em; 
	font-family: inherit;
}

input[type="text"], input[type="password"], input[type="number"], input[type="search"], textarea {
	background: rgba(255,255,255, .25);
	border: 1px solid rgba(165, 209, 166, 1);
	border-radius: .25em;
	padding: .5em;
	box-sizing: border-box;
	margin-bottom: .5em;
}

textarea { 
	display: block; 
	width: 100%;
	box-sizing: border-box;
}

button {
	padding: .5em;
	border-radius: .25em;
	background: rgba(165, 209, 166, 1);
	border: 1px solid rgba(10, 152, 72, 1);
	cursor: pointer;
	margin-right: .5em;
}

button:active{
	background: rgba(10, 152, 72, 1);
}

textarea[name="page_content"], textarea[name="wishlist_content"]{
	min-height: 15em;
}

/* ====================== LIKES ====================== */

.like-container {float: right;}

.like-container a { color: rgba(10, 152, 72, 1); }

.like-container .unlike-button {display: none;}

.like-container.liked .like-button {display: none;}

.like-container.liked .unlike-button {display: inline;}

.num-likes {
	margin-left: .25em;
}


/* ====================== CARDS ====================== */

.card {
	background: rgba(255,255,255, .95);
	top: 0;
	width: 100%;
	box-sizing: border-box;
	z-index: 900;
	height: 100%;
	overflow: auto;
	-webkit-overflow-scrolling: touch;
}

.card.closed { 
	left: 100%;
	position: fixed;
	transition: all .4s ease;
}

.card.opened { 
	left: 0;
	position: fixed;
	transition: all .4s ease;
	box-shadow: 0 .5em .5em .25em rgba(0,0,0, .4);
}

.card .card-inner {
	max-width: 40em;
	margin: auto;
	padding: 1em;
}

.card a.close-card {
	display: block;
	margin: 0;
	padding: .5em;
	border-bottom: .25em solid #9e0c0c;
	background: rgba(226, 84,85, .9);
	color: #fff;
}

.card a.close-card:hover, .card a.close-card:focus {
	border-radius: 0;
	color: #9e0c0c;
}

/* ====================== ITEMS ====================== */

.items {
	padding-left: 1.5em;
}

.items input[type="text"]{
	width: 100%;
}

.items input[type="number"] {
	width: 7em;
	margin-right: .5em;
}

#new-item-description {
	width: 20em;
	max-width: 100%;
}

#new-item-price {
	width: 7em;
	margin-right: .5em;
}

/* ====================== COMMMENTS ====================== */

.comments {
	list-style: none;
	margin: 0;
	padding: 0;
}

.comments li {
	display: block;
	background: rgba(255,255,255, .6);
	border: 1px solid rgba(165, 208, 165, 1);
	border-radius: .25em;
	padding: .5em;
	margin: .25em 0;
	overflow: auto;
}


.comments li form { display: none;}
.comments li.editing form {display: inline;}

.comments a.edit-comment {
	float: right;
	margin: auto 1em;
	color: inherit;
}

.comments a.edit-comment:hover, .comments a.edit-comment:focus, .comments a.edit-comment.active-edit {
	color: rgba(10, 152, 72, 1);
	background: transparent;
}

.comments .editing .comment-wrapper {
	display: none;
}

@media (max-width: 25em){
	header h1, #menu-link {
		font-size: 1.4em;
	}

	
	.large-only {
		position: fixed;
		left: -9999em;
	}
}

@media (max-width: 320px){
	.user-pages li .profile-image {
		height: 2em;
		width: 2em;
		margin: 0 .5em -1em 0;
	}
}