/* * * * * * * * * *
*
* STYLING DEFAULTS
*
* * * * * * * * * */
* { margin: 0px; padding: 0px; }

html { height: 100%; box-sizing: border-box; }

body {
  position: relative;
  margin: 0;
  padding-bottom: 6rem;
  min-height: 100%;
}
 

ul, ol { margin-left: 40px; }
/* forms */
form {
	width: 100%;
	margin: 5px auto;
	padding-bottom: 50px;
}
form input, form select, form textarea {
	width: 100%;
	display: block;
	padding: 13px 13px;
	font-size: 1em;
	margin: 5px auto 10px;
	border-radius: 3px;
	box-sizing : border-box;
	background: transparent;
	border: 1px solid #3E606F;
}

form input:focus {
	outline: none;
}

/* tables */
table {
    border-collapse: collapse;
    width: 70%;
    margin: 20px auto;
}

th, td {
    padding: 8px;
    text-align: left;
    border: 1px solid #ddd;
}
th {
	text-align: center;
}
 

/* buttons */
form .btn {
	color: white;
	float: right;
	background: #565151;
	text-align: center;
	border: 1px;
	border-radius: 5px;
	display: block;
	letter-spacing: .1em;
	padding: 13px 20px;
	 
	text-decoration: none;
}
/* * * * * * * * * *
*
* HEADER
*
* * * * * * * * * */

.header {
	padding: 15px 45px;
	font-family: 'Noto Serif', serif;
	color: white;
	background: black;
}
.header .logo {
	width: 50%;
	float: left;
}
.header .logo h1 {
	color: white;
}
.header .user-info {
	width: 10%;
	margin-top: 10px;
	float: right;
}
.header .logout-btn {
	color: red;
	text-decoration: none;
}
.header:after{
	content: "";
	display: block;
	clear: both;
}


.containerd {
	width: 90%;
	margin: 5px auto 50px;
	border: 1px solid #BFBCB3;	
}
.containerd:after {
	content: "";
	display: block;
	clear: both;
}
.containerd.dashboard h1 {
	text-align: center;
	margin: 25px;
}
 .containerd.dashboard .stats{
	width:100%;
	 
	padding:60px;
 }
.containerd.dashboard .stats a {
	display: inline-block;
	padding: 30px; 
	color:black;
	width: 49.8%;
	text-align: center;
	border-radius: 3px;
	border: 1px solid #BFBCB3;
}
.containerd.dashboard .stats a.first {
	 
}

.containerd.dashboard .stats a:hover {
	cursor: pointer;
	background-color: #949BA4;
}

.containerd.dashboard .buttons {
	margin-left: 15px;
}

.containerd.dashboard .buttons a {
	display: inline-block;
	margin: 10px;
	text-decoration: none;
	color: #444;
	padding: 10px 25px;
	border: none;
	background-color: #0E7D92;
	 
}

 
.container {
	width: 100%;
	margin: 0px auto;
}

/* * * * * * * * * *
*
* PAGE CONTENT
*
* * * * * * * * * */

.container.content .menu {
	width: 16%;
	float: left;
	padding: 40px 10px;
}

/* Menu card */
.container.content .menu .card .card-header {
	padding: 10px;
	text-align: center;
	border-radius: 3px 3px 0px 0px;
	background: #3E606F;
}
.container.content .menu .card .card-header h2 {
	color: white;
}

.container.content .menu .card .card-content a {
	display: block;
	box-sizing: border-box;
	padding: 8px 10px;
	border-bottom: 1px solid #e4e1e1;
	color: #444;
}

.container.content .menu .card .card-content a:hover {
	padding-left: 20px;
	background: #F9F9F9;
	transition: 0.1s;
}

/* Actions div (at the middle) */
.container.content .action {
	width: 35%;
	float: left;
	text-align: center;
}
.container.content .action form {
	width: 90%;
}
.container.content .action .page-title {
	margin: 25px;
}

.container.content .action.create-post-div {
	width: 80%;
}

/* Table div (Displaying records from DB) */
.table-div {
	float: left;
	width: 47%;
}
.table-div .message {
	width: 90%;
	margin-top: 20px;
}

.table-div table {
	width: 90%;
}

.table-div a.fa {
	color: white;
	padding: 3px;
}

.table-div .edit {
	background: #004220;
}
.table-div .delete {
	background: #F70E1A;
}
.table-div .publish {
	background: red;
}
.table-div .unpublish {
	background: green;
}
.table-div .publishComment {
	background: red;
}
.table-div .unpublishComment {
	background: green;
}



/* * * * * * * * * *
*
* VALIDATION ERRORS
*
* * * * * * * * * */
.message {
	width: 100%; 
	margin: 0px auto; 
	padding: 10px 0px; 
	color: #3c763d; 
	background: #dff0d8; 
	border: 1px solid #3c763d;
	border-radius: 5px; 
	text-align: center;
}

.error {
	color: #a94442; 
	background: #f2dede; 
	border: 1px solid #a94442; 
	margin-bottom: 20px;
}

.validation_errors p {
	text-align: left;
	margin-left: 10px;
}

