.mlp {
        position: relative;
}

.mlp:before {
        content: "";
        position: absolute;
        width: 300px;
        height: 300px;
        top: -147px;
	left: 80px;
        background-repeat: no-repeat;
}


.mlp.derpy:before { background-image: url("/style/mlp/derpy.png"); top: -148px; }
.mlp.pp1:before { background-image: url("/style/mlp/pp1.png"); top: -189px; }
.mlp.pp2:before { background-image: url("/style/mlp/pp2.png"); top: -173px; }
.mlp.rd:before { background-image: url("/style/mlp/rd.png"); top: -147px; }
.mlp.tri1:before { background-image: url("/style/mlp/tri1.png"); top: -185px; }
.mlp.tri2:before { background-image: url("/style/mlp/tri2.png"); top: -185px; }
.mlp.twi1:before { background-image: url("/style/mlp/twi1.png"); top: -147px; }
.mlp.twi2:before { background-image: url("/style/mlp/twi2.png"); top: -147px; }

body {
	margin: 0;
	padding: 0;
	font-family : Verdana, "Bitstream Vera Sans", "DejaVu Sans", Tahoma, Geneva, Arial, Sans-serif;
	font-size: 12px;
	aa-color: #635c4a;
	color: #ADB3C6;
	background-color: black;
}

table {
	width: 100%;
}

a, .control li[onclick] {
	color: blue;
}

.message {
        background-color: #ddffdd;
        border: 1px solid #88dd88;
        clear: left;
        border-radius: 5px;
        padding: 5px;
}

.error {
        background-color: #ffdddd;
        border: 1px solid #dd8888;
        clear: left;
        border-radius: 5px;
        padding: 5px;
}

/* all links and clickable should show a pointer curosr */
[onclick], h2[onclick]:before, h3[onclick]:before {
	cursor: pointer;
}

a:hover {
	background-color: rgb(225, 225, 225);
}

body > .content, body .control {
	margin: 10px;
	float: left;
	width: calc(100% - 20px);
}

body .control {
	aa-border-top: 1px solid #AAA391;
	aa-border-bottom: 1px solid #AAA391;
	aa-background-color: #ebe4d2;
	aa-color: #736c5a;
	border-top: 1px solid #666D7E;
	border-bottom: 1px solid #666D7E;
	margin: 5px 0 5px 0;
	padding: 5px 10px 5px 10px;
	background-color: #15162E;
	color: #9DA3B6;
	text-align: right;
}

body .control[data-opt=true] {
	display: none;
}

body .control .brand {
	float: left;
	color: red;
	font-weight: bold;
}

body .control .brand:before { content: "["; color: #736c5a; }
body .control .brand:after  { content: "]"; color: #736c5a; }

.fortune {
	padding: 5px;
	display: block;
	width: calc(100% - 10px);
}

.fortune p {
	width: calc(100% - 20px);
	margin-left: 10px;
	display: block;
	text-align: left;
}

.fortune:before {
	content: "❝";
	font-size: 500%;
	float: left;
	margin-top: -27px;
	margin-left: -22px;
}

.fortune:after {
	content: "";
}

/* Add a background image on the right (as well as some added information in test.html) when wide enough */
@media (min-width: 1000px) {
	body > .content {
		width: calc(100% - 300px - 20px);
	}
	body .roo {
		margin-top: 10px;
		float: right;
		width: 300px;
		height: 323px;
		background-image: url("wedding-coco.jpg");
		background-repeat: no-repeat;
		background-position: center;
	}
	body .roo .control {
		padding: 0;
		margin-left: 10px;
		margin-right: 10px;
		margin-top: calc(323px + 20px);
	}
	body .control[data-opt=true] {
		display: block;
	}
}

h1.banner {
	margin: 0;
	padding: 10px;
	aa-color: #534c3a;
	color: transparent;
	background-size: 100% 150px;
	background-image: url("atomium.png");
	background-repeat: no-repeat;
	height: 100px;
}

h1.banner .chan {
	color: green;
}

h1.banner:before { content: ""; color: rgb(222, 231, 236); }
h1.banner:after  { content: ""; color: rgb(222, 231, 236); }

h1.banner .subtitle {
	float: right;
	color: rgb(222, 231, 236);
}

h2[data-expanded="true"]:before, h3[data-expanded="true"]:before {
}

h2 {
	border-bottom: 1px solid #AAA391;
}

h3 {
	border-bottom: 1px solid #AAA391;
	margin-left: 20px;
}

h2[onclick]:hover {
}

h3[onclick]:hover {
}

h3 .link {
	text-decoration: none;
}

.upload [type="file"] {
	width: calc(100% - 80px);
	font-size: 120%;
}

.upload [type="submit"] {
	font-size: 120%;
	float: right;
	background-color: #EBE4D2;
	border: none;
	color: #635C4A;
	height: 30px;
	font-weight: bold;
	border: 1px solid #635C4A;
        border-radius: 10px;
}

.upload [type="submit"]:hover {
	color: #AAA391;
}

.gallery .pic {
	float: left;
	text-decoration: none;
	width: 128px;
	height: 128px;
	overflow: hidden;
	position: relative;
	margin: 1px;
}

.gallery .pic .img {
	height: 128px;
	overflow: hidden;
}

.gallery .pic .desc {
	text-align: center;
	position: absolute;
	bottom: 0;
	margin: 0;
	color: white;
	background-color: rgba(0, 0, 0, 0.4);
	width: calc(100% - 10px);
	font-weight: bold;
	overflow: hidden;
	padding: 5px;
	
	transition: transform 0.3s;
	transform: translate(0, 100%);
}

.gallery .pic:hover .desc {
	transition: transform 0.3s;
	transform: translate(0, 0);
}

@media screen and (max-width: 670px) {
	.gallery .pic {
		width: calc(20% - 2px);
		height: auto;
	}
	.gallery .pic .img, .gallery .pic .img img {
		width: 100%;
		height: auto;
	}
}

@media screen and (max-width: 510px) {
	.gallery .pic {
		width: calc(33% - 2px);
		height: auto;
	}
}

@media screen and (max-width: 320px) {
	.gallery .pic {
		width: calc(50% - 2px);
		height: auto;
	}
}

@media screen and (max-width: 200px) {
	.gallery .pic {
		width: 100%;
		height: auto;
	}
}

