@font-face {
    font-family: League Spartan;
    src: url('../fonts/league-spartan/LeagueSpartan-Bold.otf');
}

body {
	padding: 0;
	margin: 0;
	width: 100%;
	color: #6c7980;
	font-family: 'Ubuntu', 'sans-serif';
}

textarea {
    border: none;
    overflow: auto;
    outline: none;

    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;

    resize: none; /*remove the resize handle on the bottom right*/
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active  {
	-webkit-box-shadow: 0 0 0 30px white inset !important;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: "League Spartan";
}

button[type="submit"] {
	cursor: pointer;
}

h2.title {
	width: 100%;
	margin-top: 15px;
	margin-bottom: 45px;
	padding-bottom: 20px;
	border-bottom: 1px solid lightgray;
}

.spacer {
    display: block;
    width: 100%;
    height: 20px;
}

.delete-form,
.delete-form .form-group {
	padding: 0 !important;
	margin: 0 !important;
	margin-bottom: 0 !important;
}

.delete-button {
	border: none;
	background: none;
	cursor: pointer;
}

.paginate {
	width: 100%;
	text-align: center;
	display: flex;
	justify-content: center;
	padding: 50px 0 0;
}

/* .nav {
	display: block;
} */

/* .navbar {
	position: fixed;
	top: 30px;
	width: 80%;
	left: 50%;
	transform: translateX(-50%);
	padding: 15px 0;
	z-index: 999;
} */

.nav-vertical {
	display: block;
}

#index-top-banner {
	background: url('../img/header.png') no-repeat center center;
	-webkit-background-size: cover;
	background-size: cover;
    padding: 30px 0;
}

.overlay {
	position: absolute;
	width: 100%;
	left: 0;
	top: 0;
	bottom: 0;
	/*background: #fe5e2f;*/
	/*background: #74bcf2;*/
	/*background: #c62c2e;*/
	background: rgb(57,80,212);
	background: linear-gradient(162deg, rgba(57,80,212,.87) 0%, rgba(29,40,106,.87) 40%, rgba(0,0,0,0.87) 100%);
}

#main-content {
	padding: 0;
	padding-bottom: 50px;
}

.centered-row {
 	display: flex;
  	align-items: center;
}

#title,
#login {
	margin: 0 auto;
}

#title {
	width: 100%;
	color: #fff;
	position: relative;
	top: 50%;
	transform: translateY(-50%);
	text-align: center;
    padding: 0 0 10px;
}

#title img {
	width: 40%;
}

#title h2 {
	margin-bottom: 0
}

#title h2 {
	font-size: 2em;
}

#title p {
	font-style: italic;
	font-size: 1.2em;
}

#login {
	width: 100%;
	padding: 20px;
	background: #fff;
	border-radius: 5px;
}

#login h2 {
	font-size: 20px;
	padding-bottom: 10px;
	border-bottom: 1px solid lightgrey;
}

#login input,
#login button {
	margin-top: 20px;
}

#login .btn-warning,
#register .btn-warning {
	background: #3390d5;
	border: 1px solid #3390d5;
	color: #fff;
}

#login .btn-warning:hover,
#register .btn-warning:hover {
	background: #4ca9ee;
	border: 1px solid #4ca9ee;
}

.mc-calendar--modal {
    z-index: 99999 !important;
}

#slider {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	width: 100%;
	height: 300px;
	background: linear-gradient(to right, rgba(245, 246, 252, 0.52), rgba(57, 80, 212, 0.5)), url('../img/panorama.jpg') center bottom;
	background-size: cover;
}

.tab-content {
	width: 100%;
}

.tab-pane {
	padding: 20px;
	background: #f8fafc;
	border-left: 1px solid #dee2e6;
}

#link-to-top {
	position: fixed;
	left: 40px;
	bottom: 20px;
	background: #fff;
	border-radius: 50%;
	-webkit-box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.75);
	-moz-box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.75);
	box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.75);
	opacity: 0;
	transition: .5s opacity;
}

body.sticky-header #link-to-top {
	opacity: 1;
}

#link-to-top a {
	width: 60px;
	height: 60px;
	line-height: 60px;
	text-align: center;
	border-radius: 50%;
	display: block;
	font-size:22px;
}

#link-to-top a i {
	line-height: 60px;
}

.table tr:nth-child(even) {
    background: rgba(0,0,0, .05)
}


/********************************
*********************************
*            HEADER             *
*********************************
********************************/

#top-header {
	background: #3950d4;
	height: 25px;
	padding-top: 0;
	padding-bottom: 0;
	color: rgba(255, 255, 255, 0.85);
}

#top-header a.social {
	color: rgba(255, 255, 255, 0.85);
	margin-right: 20px;
}

#top-header a.social:hover {
	color: #fff;
}

#main-header {
	height: 65px;
	width: 100%;
	background: #fff;
	position: relative;
	z-index: 999;
	box-sizing: border-box;
	background: #fff;
}

.navbar-toggler-line {
    width: 30px;
    display: block;
    height: 2px;
    background: #000;
    margin-top: 5px;
    opacity: 1;
    transition: all .5s;
    position: relative;
    left: 0;
}

.navbar-toggler-line:last-child {
    margin-bottom: 5px;
}

.navbar-toggler-line:first-child {
    top: 0;
}

.navbar-toggler-line:last-child {
    bottom: 0;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-line:nth-child(2) {
    opacity: 0;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-line:first-child {
    transform: rotate(45deg);
    position: relative;
    top: 7px;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-line:last-child {
    transform: rotate(-45deg);
    position: relative;
    bottom: 7px;
}

.navbar-collapse {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

body.sticky-header #main-header {
	width: 100%;
	left: 0;
	transform: none;
	top: 0;
	position: fixed;
	z-index: 1000;
}

body.sticky-header #main-header .container {
	max-width: 100%;
	width: 100%;
}

#main-nav {
	height: 65px;
}

#main-header .navbar,
#main-header .nav-wrapper {
	width: 100%;
}

#main-header .navbar-brand img {
	width: 40px;
}

#main-header #main-nav .nav-link {
	height: 65px;
	line-height: 65px;
	padding-top: 0;
	padding-bottom: 0;
	border-bottom: 4px solid #fff;
	box-sizing: border-box;
	position: relative;
}

#main-header #main-nav .nav-link:not(.no-hover):hover {
	border-bottom: 4px solid rgb(57,80,212);
}

#main-header #main-nav .profile-link a {
	height: 45px;
	line-height: 45px;
	margin-top: 10px;
	border-bottom: none !important;
	padding: 0 15px;
}

#main-header #main-nav .profile-link a:hover {
	background: rgba(0,0,0, .05);
	border-radius: 33px;
}

.menu-avatar {
	width: 30px;
	height: 30px;
    margin: 0;
	border-radius: 50%;
}

#main-header #main-nav .profile-link .name {
    margin-left: 5px;
}

#main-header #main-nav .user-menu > a {
	border-bottom: none !important;
	height: 45px;
	margin-top: 10px;
	width: 45px;
	line-height:45px;
	background: rgba(0,0,0,.02);
	border-radius: 33px;
	text-align: center;
}
#main-header #main-nav .user-menu > a i {
	line-height: 45px;
}


#main-header #main-nav .user-menu > a:hover {
	background: rgba(0,0,0,.05);
}

#main-header #main-nav .user-menu i {
	transition: .3s all;
}

#main-header #main-nav .user-menu.show .fa-caret-down {
	transform: rotate(-180deg);
}

#main-header #main-nav .user-menu .user-menu-profile {
	padding: 10px 30px 10px 10px;
}

#main-header #main-nav .user-menu .user-menu-profile .menu-avatar {
	width: 50px;
	height: 50px;
	display: inline-block;
	vertical-align:top;
}

#main-header #main-nav .user-menu .user-menu-profile .text {
	display: inline-block;
	vertical-align:top;
	font-size: 12px;
}

#main-header #main-nav .user-menu .user-menu-profile .text .name {
	display: block;
	font-size: 24px;
}

.invalid-feedback {
	display: block;
}

.avatar-delete-button {
    position: absolute;
    width: 50%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9;
}

.avatar-delete-button[disabled] {
    background: gray;
    cursor: not-allowed;
}


/********************************
*********************************
*           SECTIONS            *
*********************************
********************************/

section {
	padding: 50px 0;
	position: relative;
}

section h2,
h3.subtitle {
    display: block;
    text-align: center;
    margin-bottom: 35px
}



	/***************
	*** REGISTER ***
	***************/

	#register-form input,
	#login-form input {
		border-radius: 0 !important;
		background: transparent !important;
		border: 0;
		border-bottom: 3px solid lightgray;
		padding: 10px 5px;
		position: relative;
	}

	#register-form .input,
	#login-form .input {
		position: relative;
	}

	#register-form .input::after,
	#login-form .input::after {
		content: "";
		display: block;
		height: 3px;
		width: 0%;
		position: absolute;
		background: rgb(57,80,212);
		left: 0;
		bottom: 0;
		transition: .5s all;
	}

	#register-form .input:focus-within::after,
	#login-form .input:focus-within::after {
		width: 100%;
	}

	#register-form input:focus,
	#login-form input:focus {

		box-shadow: none;
	}

	#register-form input.gender-radio {
		visibility: hidden;
		width: 0;
		height: 0;
		position: absolute;
	}

	#register-form .gender-row {
		font-size: 0;
	}

	#register-form .gender-label {
		font-size: 14px;
		display: inline-block;
		width: 50%;
		padding: 10px 0;
		text-align: center;
		/*background-color: rgb(53, 55, 70);*/
		transition: all 300ms linear;
		color: #000;
		opacity: .2;
		cursor: pointer;
		position: relative;
		text-transform: uppercase;
	}

	#register-form .gender-label i {
		display: block;
		font-size: 60px;
	}

	#register-form .gender-radio:not(:checked) + label {
		/* box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.1); */
	}

	#register-form .gender-radio:not(:checked) + label:hover {
		/* box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2); */
		opacity: .4;
	}

	#register-form .gender-radio:checked + label {
		/* box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2); */
		opacity: .8;
	}

	#register-form .invalid-feedback {
		display: block;
	}

	.input-group .input-group-addon {
		line-height: 35px;
	}

	::placeholder {
		color: lightgray !important;
	}

	/***************
	*SECONDARY HEAD*
	***************/

	section#secondary-header {
		padding: 0;
	}

	body.sticky-header section#secondary-header {
		padding-top: 65px;
	}

	/***************
	*     STATS    *
	***************/

	section#stats {
		background: #fff;
		padding-top: 0;
	}

	section#stats i {
		margin-top: 50px;
		font-size: 70px;
		display: block;
		margin-bottom: 20px;
	}

	section#stats .increasing-number {
		display: block;
		font-size: 30px;
	}

	/***************
	*    MEMBERS   *
	***************/

	section#team .team-member {
		text-align: center;
	}

	section#team .team-member .member-image img {
		width: 60%;
	}

	section#team .team-member .member-name {
		font-size: 1.6em;
	}

	section#team a.social {
		display: inline-block;
		border-radius: 50%;
		width: 25px;
		line-height: 25px;
		color: #fff;
	}

	section#team a.social.fb {
		background: #3b5998;
	}

	section#team a.social.fb:hover {
		background: #4e71ba;
	}

	section#team a.social.twitter {
		background: #1DA1F2;
	}

	section#team a.social.twitter:hover {
		background: #5dbcf6;
	}

	section#team a.social.google {
		background: #d34836;
	}

	section#team a.social.google:hover {
		background: #df796c;
	}

	/***************
	*     ABOUT    *
	***************/

	section#about .small-text {
		font-size: 1em;
	}

	section#about .main-text {
		font-size: 1.2em;
	}

	/***************
	*     QUOTE    *
	***************/

	section#quote .spacer {
		display: block;
		width: 70%;
		height: 4px;
		background: #ecf0f1;
		margin: 0 auto;
	}

	section#quote .spacer.top {
		margin-bottom: 40px;
	}

	section#quote .spacer.bottom {
		margin-top: 40px;
	}

	section#quote .bq-background {
		position: absolute;
		opacity: .3;
		font-family: Spirax;
		left: 5%;
		top: 0;
		font-size: 90px;
	}

	section#quote blockquote.blockquote {
		margin-bottom: 0;
		position: relative;
	}

	section#quote footer.blockquote-footer {
		font-style: italic;
        margin-top: 0 !important;
	}

	/***************
	*    CONTACT   *
	***************/

	section#contact {

	}

	/***************
	*   DEPUTIES   *
	***************/

	#deputies {
		display: flex;
		flex-wrap: wrap;
	}

	.deputy {
		width: 50%;
		margin-bottom: 50px;
	}

	.deputy .deputy-name {
		font-size: 26px;
	}

	.deputy .constituency {
		color: #85939b;
		font-size: 18px
	}

	.deputy .photo img {
		object-fit: cover;
		width: 100%;
		height: auto;
	}

    /***************
    *    RULES     *
    ***************/

    .rulesContent {
        background: url("../img/handshake.png");
        background-size: 60%;
        background-repeat: no-repeat;
        background-position: top 20% right 10%;
    }


/********************************
*********************************
*            FOOTER             *
*********************************
********************************/

footer#main-footer {
	padding-top: 30px;
	background-color: #3950d4;
	/*color: #d8d8d8;*/
	color: #9bb3c7;
	font-size: 14px;
}

footer#main-footer h3 {
	text-transform: uppercase;
	font-size: 16px;
	color: #fff;
}

footer#main-footer i {
	margin-right: 5px;
}

footer#main-footer a {
	color: #9bb3c7;
	display: inline-block;
}

footer#main-footer a:hover,
footer#main-footer a.active {
	color: #6c7d8b;
	text-decoration: none;
}

footer#main-footer .copyright {
	background: #0934a0;
	margin-top: 15px;
	padding: 20px 0;
}

footer#main-footer .copyright p {
	margin: 0;
}

#contact i,
#footer-contact i {
	color: #1874c1;
	display: inline-block;
	width: 22px;
	margin-right: 20px;
	text-align: center;
}

section#map {
	padding: 0;
	background: #000;
	font-size: 0;
}

section#map .map-inner {
	opacity: .8;
	transition: all .3s;
}

section#map .map-inner:hover {
	opacity: 1;
}

.footer-logo {
	padding: 20px;
}

.footer-logo img {
	width: 150px;
	padding: 20px;
	background: rgba(255, 255, 255, .05);
	border-radius: 50%;
}

/********************************
*********************************
*            FOOTER             *
*********************************
********************************/

.missing-role {
	padding: 250px 0;
}

/********************************
*********************************
*            VOTES              *
*********************************
********************************/

.votes .likes * {
	color: #addbad !important;
}

.votes .dislikes * {
	color: #eca9a7 !important;
}

.votes .likes:hover *,
.votes .likes.active *{
	color: #5cb85c !important;
}

.votes .dislikes:hover *,
.votes .dislikes.active *{
	color: #d9534f !important;
}

/*

.votes .like-btn,
.votes .dislike-btn {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
}

.votes .like-btn {
    color: #3750D5;
    border: 1px solid #3750D5;
}

.votes .like-btn:hover,
.votes .like-btn.active {
    color: #fff;
    background: #3750D5;
}

.votes .dislike-btn {
    color: #C42D2E;
    border: 1px solid #C42D2E;
}

.votes .dislike-btn:hover,
.votes .dislike-btn.active {
    color: #fff;
    background: #C42D2E;
}

*/

.votes .likes .active,
.votes .dislikes .active,
.votes .likes.active .inactive,
.votes .dislikes.active .inactive {
	display: none;
}

.votes .likes.active .active,
.votes .dislikes.active .active {
	display: inline-block;
}
/*.votes .likes.active:hover *,
.votes .dislikes.active:hover * {
	color: #6c7980 !important;
}*/

/********************************
*********************************
*        CUSTOM STYLES          *
*********************************
********************************/

.custom-checkbox-wrapper {
	position: relative;
}

/* Hide the browser's default checkbox */
.custom-checkbox-wrapper input {
	position: absolute;
	opacity: 0;
	cursor: pointer;
}

.custom-checkbox-wrapper label {
	cursor: pointer;
}

/* Create a custom checkbox */
.custom-checkbox {
	position: absolute;
	top: 0;
	left: 0;
	height: 25px;
	width: 25px;
	background-color: #eee;
}

/* On mouse-over, add a grey background color */
.custom-checkbox-wrapper input:hover ~ label > .custom-checkbox {
	background-color: #ccc;
}

/* When the checkbox is checked, add a blue background */
.custom-checkbox-wrapper input:checked ~ label > .custom-checkbox {
	background-color: #2196F3;
}

/* Create the checkmark/indicator (hidden when not checked) */
.custom-checkbox:after {
	content: "";
	position: absolute;
	display: none;
}

/* Show the checkmark when checked */
.custom-checkbox-wrapper input:checked ~ label > .custom-checkbox:after {
	display: block;
}

/* Style the checkmark/indicator */
.custom-checkbox:after {
	left: 10px;
	top: 6px;
	width: 6px;
	height: 11px;
	border: solid white;
	border-width: 0 3px 3px 0;
	-webkit-transform: rotate(45deg);
	-ms-transform: rotate(45deg);
	transform: rotate(45deg);
}

.custom-checkbox-wrapper label {
	padding-left: 30px;
}

.d-flex {
    display: flex;
}

.align-middle {
    align-items: center;
}

.flex-right {
    justify-content: flex-end
}

.flex-center {
    justify-content: center;
}

.flex-column {
    flex-direction: column;
}

/********************************
*********************************
*            FB FEED            *
*********************************
********************************/

.fb-post .bubble {
    padding: 5px 15px;
    transition: .3s all;
}

.fb-post .bubble:hover {
    transform: scale(1.02);
}

.fb-post .bubble:after {
    display: block;
    position: absolute;
    content: '';
    border-left: 1px solid rgba(0, 0, 0, 0.125);
    border-top: 1px solid rgba(0, 0, 0, 0.125);
    background: #fff;
    left: -8px;
    top: 10px;
    width: 15px;
    height: 15px;
    transform: rotate(-45deg);
}

.fb-post .bubble .go-to-page a {
    color: lightblue;
    font-size: 3em;
}

.fb-post .bubble .go-to-page a:hover {
    color: #83bbcd;
}

.fb-post .time {
    padding-top: 10px;
    font-size: .8em;
    color: lightgray;
}

.fb-post .post-img img {
    max-width: 100%;
    max-height: 100%;
}

.collapse-btn .collapse-hidden {
    display:inline;
}

.collapse-btn:not(.collapsed) .collapse-hidden {
    display:none
}

.collapse-btn.collapsed .collapse-shown {
    display:none
}

@media only screen and (max-width: 767px) {

    .fb-post .from {
        text-align: center;
    }

    .fb-post .bubble:after {
        left: 50%;
        top: -3px;
        transform: rotate(45deg) translateX(-50%);
    }

}

.poll-option .progress{
    height: 10px;
    width: 100%;
    position: relative;
    background: #f0f0f0;
    margin: 8px 0 3px 0;
    border-radius: 30px;
    pointer-events: none;
}

.poll-option .progress:after{
    position: absolute;
    content: "";
    height: 100%;
    background: #28a745;
    width: calc(1% * var(--w));
    border-radius: inherit;
    transition: all 1s ease;
}


/********************************
LOGIN BUTTONS
 */

/* Shared */
.loginBtn {
    box-sizing: border-box;
    position: relative;
    /* width: 13em;  - apply for fixed size */
    padding: 8px 15px 8px 46px;
    border: none;
    text-align: left;
    line-height: 34px;
    white-space: nowrap;
    border-radius: 0.2em;
    font-size: 16px;
    color: #FFF;
    cursor: pointer;
}
.loginBtn:hover {
    color: #fff;
    text-decoration: none;
}
.loginBtn:before {
    content: "";
    box-sizing: border-box;
    position: absolute;
    top: 0;
    left: 0;
    width: 34px;
    height: 100%;
}
.loginBtn:focus {
    outline: none;
}
.loginBtn:active {
    box-shadow: inset 0 0 0 32px rgba(0,0,0,0.1);
}


/* Facebook */
.loginBtn-facebook {
    background-color: #4C69BA;
    background-image: linear-gradient(#4C69BA, #3B55A0);
    /*font-family: "Helvetica neue", Helvetica Neue, Helvetica, Arial, sans-serif;*/
    text-shadow: 0 -1px 0 #354C8C;
}
.loginBtn-facebook:before {
    border-right: #364e92 1px solid;
    background: url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/14082/icon_facebook.png') 6px 6px no-repeat;
}
.loginBtn-facebook:hover,
.loginBtn-facebook:focus {
    background-color: #5B7BD5;
    background-image: linear-gradient(#5B7BD5, #4864B1);
}


/* Google */
.loginBtn-google {
    /*font-family: "Roboto", Roboto, arial, sans-serif;*/
    background: #DD4B39;
}
.loginBtn-google:before {
    border-right: #BB3F30 1px solid;
    background: url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/14082/icon_google.png') 6px 6px no-repeat;
}
.loginBtn-google:hover,
.loginBtn-google:focus {
    background: #E74B37;
}

.notification:hover {
    background: rgba(227, 255, 255, 0.29);
}

.notificationsContent {
    background: url("../img/notifications.png");
    background-size: 30%;
    background-repeat: no-repeat;
    background-position: top 20% right 10%;
}


/********************************
*********************************
*          RESPONSIVE           *
*********************************
********************************/

@media only screen and (min-width: 768px) and (max-width: 866px) {

    #main-header #main-nav .nav-link {
        font-size: .88rem;
    }

    #main-header #main-nav .user-menu > a {
        height: 35px;
        margin-top: 15px;
        width: 35px;
        line-height: 35px;
    }

    #main-header #main-nav .profile-link a {
        height: 35px;
        line-height: 35px;
        margin-top: 15px;
        padding: 0 5px;
    }

}

@media only screen and (max-width: 968px) {

    .above-968 {
        display: none;
    }

}

@media only screen and (max-width: 1040px) {

    .above-1040 {
        display: none;
    }

}


@media only screen and (max-width: 767px) {
	.mobile-spacer {
	    display: block;
	    width: 100%;
	    height: 20px;
	}

	#main-header,
	#main-nav {
		height: auto;
		position: absolute;
	}

	section#secondary-header {
		padding-top: 90px;
	}

    body.sticky-header section#secondary-header {
        padding-top: 90px !important;
    }

    body.body-index.sticky-header #main-content {
        top: 0 !important;
        width: 100%;
    }

    #link-to-top {
        left: 10px;
    }

    /* #title {
        transform: translateX(-50%) translateY(-50%);
        left: 50%;
    } */
}

@media only screen and (min-width: 768px) {

    .navbar-collapse {
        overflow-y: visible;
    }

}

@media only screen and (min-width: 576px) {
	.modal-dialog {
		max-width: 800px;
	}
}



@media only screen and (max-width: 992px) {

    body {
        font-size: .9em;
    }

    #main-content {
        width: 100% !important;
    }

}

@media (min-width: 1200px) {
    .container {
        max-width: 90%;
    }
}
