/* Containers */

body {
	min-width: 700px;
	font-family: $font_para, sans-serif;
	font-size:1em;
	background-color: $gray-300;
	margin:0;
	color: $col_main_1;
}

/* Typography */

a:visited, a {
	color: $col_main_1;
	text-decoration: none;
	font-weight: bold;
}

a:active, a:focus, input:active, input:focus  {
	outline: none;
}

a:hover {
	text-decoration: none;
}

/* Common Classes */

.transition {
	transition: all 0.3s ease 0s !important;
}

.clickable {
	cursor: pointer;
}

.hidden {
	display: none;
}

@mixin catc-round($radius) {
	border-radius: 0 $radius $radius $radius;
}

/* Common Classes - Containers */

#container {
	position: absolute;
	left: 1em;
	right: 1em;
	top: 1em;
	bottom: 1em;
}

.template-items {
	display: none;
}

/* Common Classes - Inputs */

a.button {
	font-weight: normal;
	height: 40px;
	width: 40px;
	line-height: 40px;
	font-size: 1.0em;
	text-align: center;
	color: $gray-600;
	border-radius: 3px;
	background-color: $gray-400;
}
a.button:hover {
	color: white;
	background-color: $col_main_2;
}
a.button:active {
	color:white;
	background-color: $col_main_2;
}

.input-group-text i.fal {
	@extend .fa-fw; 
}

/* Common Classes - Feedback */

#feedback {
	position: absolute;
	bottom: 1em;
	right: 1em;
	width: 33%;
	z-index: 1000;
}

/* Header */

#header {
	position: relative;
	height: 138px;
	width: 50%;
	
	#logo_box {
		width: 100%;
		height: 100%;
		background: url('../images/logo.png') 0 0 no-repeat;
		
		a {
			display: block;
			width: 116px;
			height: 100%;
		}
	}

	#desc_box {
		position: absolute;
		top: 0;
		left: calc(116px + 1em);
		height: 111px;
		
		.desc {
			text-transform: uppercase;
			font-family: 'Roboto', sans-serif;
			font-size: 15px;
			width: 70px;
			transform: translateY(-50%);
			top: 50%;
			position: absolute;
			
			span {
				color: $col_main_2;
				font-weight: bold;
			}
		}
	}
}

/* Menu */

#menu {
	position: absolute;
	display: none;
	top: 0;
	right: 0;
	width: 50%;
	height: 111px;
	
	.navbar {
		top: 50%;
		transform: translateY(-50%);
	}
}

/* Search bar */

.ui-helper-hidden-accessible {
	display: none;
}

/* Main */

#main_title {
	margin-top: 1em;
	
	h1 {
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}
}

#main {
	display: none;
	position: absolute;
	top: calc(138px + 4em);
	bottom: 2rem;
	right:0;
	left:0;
	border-radius: 0.5em;
	padding: 1em;
	overflow: auto;
}

/* Side */

#side {
	position: absolute;
	left: 100%;
	top: 203px;
	padding: 1em;
	bottom: 2rem;
	overflow: hidden;
	display: none;
	
	.tag {
		margin-bottom: 1em;
		
		a {
			@extend .shadow;
			display: inline-block;
			text-align: center;
			width: 50px;
			background: $gray-200;
			border-radius: 0.5em;
			font-size: 0.8rem;
			line-height: 25px;
			
			&:hover {
				color: $gray-200;
				background: $gray-400;
			}
		}
		
		&.write a {
			font-size: 1rem;
			padding: 0;
			line-height: 50px;
		}
	}
}

/* Settings */

#settings table tr td {
	text-align:left;
} 

/* Errors */

#errors {
	position:fixed;
	bottom:-2px;
	background-color:white;
	width:696px;
	border:2px solid red;
}
#errors ul li {
	list-style-image: url(../images/error.png);
	color:red;
	font-weight: bold;
	font-size:24px;
}

fieldset {
	margin:20px auto;
	width:90%;
}

fieldset p {
	text-align: justify;
}

/* Feedback */

.notice {
	padding:0;
	color:#997E60;
}

.error {
	padding:0 0.5em;
	color: red;
	background:#FFB2B2;
}
.warning {
	padding:0 0.5em;
	color:orange;
	background:#FFE4B2;
}
.success {
	padding:0 0.5em;
	color:green;
	background:#B2D9B2;
}

/* Footer */

footer {
	position: absolute;
	bottom: 0;
	text-align: center;
	color: $gray-400;
	font-size: 0.8em;
	width: 100%;
	height: 2rem;
	
	span {
		transform: translateY(-50%);
		position: relative;
		top: 50%;
		
		a {
			color: $gray-400 !important;
		}
	}
}