* {
	margin: 0;
	padding: 0;
}

p {
	margin: 1em 0;
}


a {
	color: #22ba08;
	text-decoration: underline;
	white-space: nowrap;
}

a:hover {
	color: #29dc09;
	text-decoration: none;
}


.ht {
	color: #22ba08;
	font-weight: bold;
}

span.fn {
	display: inline-block;
	min-width: 25%;
}

.fne {
	margin-left: 40px;
}

.center {
	text-align: center;
}

img.side {
	box-shadow: 0 0 4px rgba(50,50,50,0.5);
}

img.floatR {
	float: right;
	margin-left: 30px;
	margin-bottom: 30px;
}

img.floatL {
	float: left;
	margin-right: 30px;
	margin-bottom: 30px;
}

body {
	font-family: "Open Sans", Arial;
	font-size: 15px;
}


html {
	height: 100%;

}

html.god{
	background: url("images/back.jpg");
}


body {
	background: rgba(39,212,9,0.90);
	min-height: 100%;
	padding: 20px 0;
	transition: background 3s ease-in-out;
}

body.god {
	background: rgba(39,212,9,1);
}

#holder {
	max-width: 900px;
	margin: 0 auto;
}

#box {
	background: white;
	box-shadow: 0 0 10px rgba(50,50,50,0.5);
}

#header {
	padding: 20px 40px;
}

#header a {
	text-decoration: none;
	color: inherit;
}

#header #h1 {
	font-size: 2em;
}

#header #h2 {
	text-align: right;
	float: right;
}

#header #h21 {
	font-size: 1.2em;
}

#header #h22 {
	font-size: 1.0em;
}


#navigation {
	background: rgba(40,40,40,1);
	color: white;
	text-align: center;
	border-bottom: 4px solid #22ba08;
	clear: both;
}

#navigation > .item {
	display: inline-block;
	color: white;
	text-decoration: none;
	padding: 12px;
	margin-bottom: 1px; /*border-bottom: 1px solid transparent;*/
	cursor: pointer;

	transition: background 0.15s ease-in-out;
	background: transparent;
}

#navigation > .item.selected {
	margin-bottom: 0;
	padding-bottom: 13px;
}

#navigation > .item:hover, #navigation > .item.selected {
	background: #22ba08;
}

#contents {
	position: relative;
	min-height: 450px;
}

.content {
	overflow: hidden;

	height: 0;
	opacity: 0;
	padding: 0 40px;

	transition: none;
}

.content.visible {
	height: auto;
	padding: 30px 40px 60px 40px;
	opacity: 1;

	transition: all 0.2s ease-out;
}

.content > .title {
	font-size: 1.5em;
	margin-bottom: 1.5em;
	border-bottom: 1px solid #22ba08;
	clear: both;
}


/* === Plant lists === */

[data-list="grid"] #plants_list { display: flex; }
[data-list="lines"] #plants_list_lines { display: flex; }
[data-list="details"] #plants_list_details { display: flex; }

#plants_list {
    display: none;
    flex-wrap: wrap;
    justify-content: center;
}
#plants_list_lines {
	display: none;
    flex-direction: column;
	gap: 1em;
}
#plants_list_details {
	display: none;
    flex-direction: column;
	gap: 1em;
}

.plant {
    box-shadow: 0 0 4px rgb(50 50 50 / 50%);
}
#plants_list .plant {
	display: inline-block;
	margin: 5px;
	width: 200px;
}
#plants_list_lines .plant {
	display: block;
}
#plants_list_details .plant {
	display: block;
	padding: 1em;
	box-shadow: none;
}

.plant .image_holder {
    display: flex;
	cursor: pointer;
	background: #eaeaea;
}
#plants_list .plant .image_holder {
	position: relative;
	min-height: 267px;
	min-width: 200px;
	max-height: 267px;
	max-width: 200px;
	background: #eaeaea;
}
#plants_list_lines .plant .image_holder {
    gap: 1em;
    align-items: stretch;
}

.plant .image_holder img {
    object-fit: cover;
}
#plants_list .plant .image_holder img {
	display: block;
	max-width: 200px;
	max-height: 267px;
}
#plants_list_lines .plant .image_holder .img {
	display: block;
    flex: 0 0 10em;
    min-height: 7em;
    background-size: cover;
    background-position: center;
}

#plants_list .plant .image_holder .name {
	position: absolute;
	bottom: 0;
	right: 0;
	left: 0;
	color: white;
	text-align: center;

	transition: all 0.1s ease-in-out;

	background: rgba(0,0,0,0.75);
	padding: 5px;
}
#plants_list .plant .image_holder:hover .name {
	background: rgba(0,0,0,0.85);
	padding: 10px 5px;
}

#plants_list_lines .plant .image_holder .info {
	padding: 0.5em 0 1em;
	display: flex;
	flex-direction: column;
    justify-content: center;
}
#plants_list_lines .plant .image_holder .name {
	padding-bottom: 0.5em;
	font-weight: bold;
}
#plants_list_lines .plant .image_holder .item {
	font-size: .9em;
}
#plants_list_lines .plant .image_holder .item .title {
    color: #3e8c0d;
}

.switch {
	display: inline-block;
    background: #282828;
    border-radius: 1em;
    padding: .2em;
    margin-bottom: 1em;
}
.switch > * {
	display: inline-block;
    padding: .2em 1em;
    border-radius: 1em;
    cursor: pointer;
    color: white;
    min-width: 4em;
    transition: background 0.15s ease-in-out;
}
.switch > *:hover {
    background: #22ba08c0;
}
.switch > *[data-selected] {
    background: #22ba08;
}

/* === Plant more === */


.plant .more_holder.visible .more {
	display: inline-block;
}

.plant .more_holder .more {
	display: none;
	position: fixed;
	z-index: 10;
	background: white;
	top: 60px;
	right: 40px;
	left: 40px;
	padding: 20px;
	max-width: 700px;
	max-height: calc(100% - 140px);
	overflow-y: auto;
	margin: 0 auto;
	box-shadow: 0 0 4px rgba(50,50,50,0.5), 0 0 40px rgba(50,50,50,0.25);
}

.plant .more .item {
	margin: 1em 0;
	text-align: left;
}

.plant .more .item .title {
	display: inline-block;
	min-width: 120px;
	color: #22ba08;
}

.plant .more .name {
	font-size: 1.2em;
	margin-bottom: 0.5em;
	text-align: center;
}

.plant .more .close {
	float: right;
	padding: 2px 5px;
	cursor: pointer;
}

.plant .more .close:hover {
	color: #22ba08;
}

.plant .more .images {
	border-top: 1px solid #22ba08;
	padding: 10px 0;
    text-align: center;
}

.plant .more img {
	width: 180px;
	max-width: 30%;
	margin: 5px;
	vertical-align: middle;
	box-shadow: 0 0 4px rgba(50,50,50,0.5);
}

.plant .more_holder.visible .back {
	position: fixed;
	top: 0;
	right: 0;
	left: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.53);
	z-index: 10;
}

ul#plants_sort {
	padding-left: 30px;
}

#footer {
	background: #282828;
	color: #b5b5b5;
	text-align: center;
	padding: 4px;
	font-size: 0.75em;
	clear: both;
}

#footer a {
	color: inherit;
	text-decoration: none;
}
#footer a:hover {
	color: inherit;
	text-decoration: none;
}

#footer .space {
	margin: 0 4px;
}


@media only screen and (max-width: 600px) {

#header #h2 {
	float: none;
}

nav#navigation {
    display: flex;
    flex-wrap: nowrap;
}

nav#navigation > a {
    display: inline-block;
    flex: 1 1 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

img.floatR {
	float: none;
	display: block;
	margin: 0 auto;
}

img.floatL {
	float: none;
	display: block;
	margin: 0 auto;
}

}




