@tailwind base;
@tailwind components;
@tailwind utilities;

/* COLOURS */
:root {
	--main: #425c8e;
	--accent: #7d9ab9;
	--link: #a28f5b;
	--font: #072553;
	--font-alt: #fff;
	--canvas: #fffdf4;
	--hover: #d8dae6;
	--statusactive: lightgreen;
    --statusinactive: gainsboro;
    --statuspending: lightblue;
    --statussent: sandybrown;
    --statusdeceased: lightcoral;
}

* {
	font-family: "source sans pro", "helvetica neue", sans-serif;
	font-weight: 400;
	color: var(--font);
	text-align: center;
	-webkit-box-sizing: unset !important;
	-moz-box-sizing: unset !important;
	box-sizing: unset !important;
}

html, body {
	margin: 0;
	padding: 0;
	height: 100%;
	background: var(--canvas);
	overflow-x: hidden;
}

h1, h2, h3, h4 {
	font-family: "gelica", serif;
	font-weight: 700;
}

h1 {
	font-size: 36px;
	margin-bottom: 0;
	padding-bottom: 0;
	text-align: center;
	text-transform: uppercase;
}

h2 {
	font-size: 24px;
	margin-top: 0;
	padding-top: 0;
	color: var(--accent);
}

h3 {
	font-size: 21px;
	font-weight: 400;
}

h4 {
	font-size: 18px;
	font-weight: 400;
}

strong {
	font-weight: 600;
}

a {
	color: var(--link);
	background: none;
	padding: 0;
	display: inline-block;
	text-decoration: none;
	cursor: pointer;
	font-weight: bold;
}

a:hover, i {
	color: var(--accent);
}

hr {
	width: 95%;
	border: 1px solid var(--hover);
	margin-top: 0;
}

button:hover {
	background: var(--link);
}

form {
	margin: 50px auto;
	width: 60%;
}

form input[type="checkbox"] {
	width: auto;
	margin: 0;
}

label[for="remember_me"] span, label[for="accepttc"] span {
	padding-left: 5px;
}

i {
	font-size: 24px;
	margin-left: 10px;
	margin-bottom: 4px;
	vertical-align: middle;
	cursor: pointer;
}

#content {
	margin: 0;
	padding: 0;
	height: 100%;
}

.mainmenu {
	background: var(--main);
	border-bottom: 5px solid var(--accent);
	color: var(--font-alt);
	height: 52px;
	padding: 0;
}

.mainmenu > div {
	width: calc(60% + 100px);
    margin: 0 auto;
    overflow: hidden;
    height: 52px;
	display: flex;
	justify-content: space-evenly;
	span {
		font-size: 17px;
	}
}

.mainmenu span, .mainmenu i {
	color: var(--font-alt);
	font-size: 18px;
	margin: 0;
}

.mainmenu a > span {
	vertical-align: sub;
  	margin-left: 10px;
  	text-decoration: none;
}

#ll-logo {
	background: none;
  	float: left;
	/*z-index: 9;
	background: none;
	position: relative;
	margin-left: 12%;
	width: min-content;
	float: unset;*/
}

#ll-logo, #ll-logo img {
	padding: 0;
	height: 52px;
}

#ll-logo img {
	width: 300px;
}

.nav-link {
	background: var(--main);
	color: var(--font-alt);
	text-decoration: none;
	cursor: pointer;
	padding: 13px 25px;
	float: left;
	position: relative;
	z-index: 99;
}

.nav-link button {
	padding: unset;
	background: unset;
	border: unset;
	font-weight: 600;
	cursor: pointer;
	color: var(--font-alt);
	font-size: 16px;
}

.nav-link:hover {
	background-color: var(--accent);
	color: var(--font-alt);
	text-decoration: none;
}

.nav-link-right, #logout {
	float: right;
}

#welcome button {
	float: unset;
}

#welcome p {
	width: 48%;
	float: left;
	text-align: left;
	margin: 0 1% 50px 1%;
}

.secondary-button, .nav-link {
	background: var(--main);
	color: var(--font-alt);
	text-decoration: none;
	cursor: pointer;
	padding: 13px 25px;
	width: max-content;
}

.secondary-button {
	padding: 5px 25px;
	float: right;
	font-size: 16px;
}

.form-checkbox, .primary-button {
	color: var(--font-alt);
	text-decoration: none;
	cursor: pointer;
	float: left;
	font-size: 18px;
	font-weight: 600;
	padding: 5px 25px;
	margin: 10px 23px 0 0;
}

.primary-button {
	background: var(--main);
	float: unset;
    margin: 50px auto 0 auto;
    width: max-content;
}

.page {
	width: 80%;
	margin: 0 auto;
	min-height: 76.8%;
	background: white;
	padding: 50px 50px 100px 50px;
	box-shadow: 0 8px 10px 1px var(--hover);
}

.space {
	display: block;
	clear: both;
	overflow: auto;
	margin: 20px auto;
}

.footer {
	background: var(--main);
	color: var(--font-alt);
	padding: 10px;
}

#pagination {
	width: 80%;
	margin: 0 auto;
}

#pagination a {
	display: inline-block;
	margin: 0 20px;
	width: 40%;
}

.formdiv {
	/*margin: 0 auto;
	text-align: center;*/
}

.formdiv span {
	margin: 0 auto;
	font-weight: 600;
}

form#logout {
	width: unset;
	margin: unset;
}
.formdiv {
	display: grid;
    grid-template-columns: 1fr 1fr;
}
.profileGroup {
	display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}
.profileGroup label {
	width: 100%;
	float: left;
	text-align: left;
}

.profileGroup label span {
	margin-left: 3px;
	font-weight: 600;
	color: var(--font);
}
form input, form textarea, form .select2-selection__rendered {
	font-weight: 400;
}

form .select2 {
	width: 100% !important;
}
.input-label {
	display: flex;
    flex-flow: column;
}
#profileUnlock {
	padding: 10%;
	margin: 0 auto;
	width: 73%;
	border: 1px solid var(--accent);
}

select {
	width: 100%;
	padding: 5%;
	cursor: pointer;
	text-align: left;
}

.selection {
	width: unset !important;
	margin: unset !important;
	height: unset !important;
}

.select2-dropdown {
	width: max-content !important;
	min-width: 300px;
}

.select2-dropdown > .select2-search {
	width: 94% !important;
}

.select2-container--default .select2-results > .select2-results__options {
	max-height: 500px !important;
}

.select2-container--default .select2-selection--single {
	width: 100%;
	height: 42px !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
	margin-top: 6px;
}

.select2-container {
	width: 100%;
}

.select2-results li, .select2-results li strong {
	text-align: left;
}

.select2-container .select2-selection--single .select2-selection__rendered {
	text-overflow: unset !important;
	width: 70%;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
	top: 8px !important;
}

.super {
	width: 80%;
}

.super input[type="name"] {
	width: 20%;
	margin: 0 30px;
}

#addSuperContact {
	display: none;
}

.input-label {
	text-align: left;
	width: 100%;
	display: block;
	margin: 0 auto;
	font-weight: 600;
}
.text-input {
	text-align: left;
	width: -webkit-fill-available;
	margin: 0 auto 10px auto;
	padding: 10px;
}
.formSingle {
	grid-template-columns: 1fr;
}
textarea.text-input {
	display: block;
	min-height: 200px;
}

.gologo {
	border-radius: 10px;
	box-shadow: 0 0 5px 0 var(--hover);
	display: inline-block;
	margin: 0 7px;
	height: 40px;
	padding: 10px;
}

.alert {
	width: fit-content;
	padding: 2% 3%;
	margin: 0 auto;
	display: none;
}

.notice {
	background-color: rgba(0,0,255,0.1);
	border: 1px solid blue;
	display: block;
}

.success {
	background-color: rgba(0,255,0,0.1);
	border: 1px solid green;
	display: block;
}

.error {
	background-color: rgba(255,0,0,0.1);
	border: 1px solid red;
	display: block;
}

.popup {
	display: none;
	width: fit-content;
	height: fit-content;
	position: absolute;
	background: white;
	left: 0;
	right: 0;
	top: 100px;
	margin: 0 auto;
	padding-bottom: 25px;
	box-shadow: 0 0 5px 0 var(--hover);
}

.popup h3 {
	width: 95%;
	text-align: left;
	display: inline-block;
}

.popup > a {
	font-size: 30px;
	font-weight: 600;
	text-align: right;
	margin-right: 5px;
}

.popup div {
	padding: 20px;
	width: 90%;
	margin: 0 auto;
}

.popup i {
	float: right;
}

.attconfirm {
	cursor: default;
	width: 40%;
	margin-top: 25%;
}

.attconfirm a {
	width: unset !important;
	float: left;
	color: var(--link) !important;
}

#outlooksignin, #googlesignin {
	width: 40%;
}

#tc {
	width: 60%;
	height: 600px;
}

#tc div {
	height: 85%;
}

#tc div div {
	overflow: scroll;
}

#scinfo, #scheduleinfo, #deleteletter, #deleterecipient, #scheduleletter {
	margin-top: 15%;
	width: 40%;
}

#deleteletter form, #deleterecipient form {
	width: unset;
}

#scheduler {
	overflow: auto;
}

#scheduler label {
	width: 30%;
	margin: 0 25px !important;
	float: unset !important;
}

#charactercount {
	width: 90%;
	margin: 0 auto;
	text-align: right;
}

.supercontact-part {
	margin: 25px auto;
}

.supercontact-part input[type="name"] {
	width: 25%;
	margin-right: 0;
	margin-left: 10px;
}

.supercontact-part input {
	width: 65%;
	margin-left: 32px;
}

.supercontact-part div div a {
	float: left;
	padding-top: 10px;
	margin-left: 10px;
}

.supercontact-part div div a.nav-link {
	float: right;
	padding: 10px 5px;
}

.scconfirm {
	width: 100%;
	position: relative;
	top: 0;
}

#super-contacts {
	width: 100%;
  	position: relative;
}

#super-contacts #superContactForm {
	width: 85%;
}

#super-contacts #scinfo {
	width: 50%;
}

#add-recipient {
	margin-top: 150px;
}

#add-letter {
	margin-top: 200px;
}

#addLetterForm label, #editLetterForm label {
	float: left;
	margin-left: 25px;
}

#addRecipientForm a, #forgotkey {
	float: left;
	margin-top: 20px;
	margin-left: 15px;
}

#forgotkey {
	margin-left: 25px;
}

#dash-todo {
	width: 50%;
	margin: 0 auto;
	cursor: pointer;
}

#dash-todo ul {
	list-style: none;
	padding: 0;
}

#dash-todo li {
	margin: 0;
	padding: 5%;
	border: 1px solid grey;
	text-align: left;
	font-size: 21px;
}

#dash-todo ul li a {
	color: var(--font);
	font-weight: 400;
	width: 100%;
	text-align: left;
}

#dash-todo a span {
	float: right;
}

#result-list, #attachment-list, #users-list {
	width: 40%;
	margin: 0 auto;
	cursor: pointer;
}

#attachment-list, #users-list {
	width: 93.5%;
}

#result-list ul, #attachment-list ul, #users-list ul {
	list-style: none;
	padding: 0;
}

#result-list li, #attachment-list li, #users-list li {
	margin: 0;
	padding: 2%;
	border: 1px solid grey;
	text-align: left;
	font-size: 21px;
}

#result-list span:first-child, #attachment-list span, #users-list span {
	padding: 6px 15px;
	float: left;
	text-align: left;
}

#result-list span:last-child, #attachment-list span:last-child, #users-list span:last-child {
	float: right;
	text-align: right;
}

#result-list a, #attachment-list a, #users-list a {
	color: var(--font);
	font-size: 18px;
	width: 100%;
	vertical-align: middle;
}

#attachment-list a#download {
	width: unset;
}

#result-list span:last-child, #attachment-list span:first-child, #users-list span:first-child, .status {
	margin-right: 20px;
	padding: 5px 15px;
	border: 1px solid grey;
	border-radius: 30px;
	width: fit-content;
}
#users-list span:first-child {
	width: 100px;
    text-align: center;
}
#users-list ul li a {
	display: grid;
	grid-template-columns: 1fr 2fr 3fr 4fr 2fr;
}

#result-list span:last-child {
	margin: auto;
}

#couponcode {
	text-transform: uppercase;
}

.submenu {
	width: 100%;
	margin-top: -35px;
	height: 75px;
}

.submenu p {
	width: 33.3%;
	text-align: center;
	float: left;
}

.submenu p:first-child {
	text-align: left;
}

.submenu p:last-child {
	text-align: right;
}

.fileupload {
	margin: 0 auto 50px auto !important;
	border: 1px solid grey;
	padding: 10px 22px 10px 12px;
	cursor: pointer;
	float: unset !important;
	display: inline-block;
}

.fileupload input {
	display: none;
}

#delete {
	color: red;
	float: left;
	padding: 5px 25px;
	margin: 10px 23px 0 0;
	font-weight: 400;
}

#loading {
	display: none;
	background: rgba(255,255,255,0.5);
	top: 0;
	right: 0;
	left: 0;
	bottom: 0;
	position: fixed;
	z-index: 999;
}

#loading p {
	font-size: 30px;
	margin: 25%;
}

#scheduledpop {
	width: 45%;
	cursor: pointer;
}

#scheduledp strong {
	text-decoration: underline;
}

#datepicker {
	position: relative;
}
#datepicker div {
	text-align: center;
}
#datepicker * {
	margin: 0 auto !important;
	padding: 2% !important;
	text-align: center !important;
}
#datepicker .glyphicon-time, #datepicker .glyphicon-date {
	font-size: 18px !important;
}

.scheduledate {
	margin: 1% auto 3% auto;
	position: relative;
}

#prefs select {
	width: 88%;
}

@media screen and (max-width: 1200px) {
	#dash-todo {
		width: 60%;
	}
}

@media screen and (max-width: 768px) {
	.formdiv {
		grid-template-columns: 1fr;
	}
	.page {
		width: 90%;
    	padding: 50px 10px;
	}
	form {
		width: 80%;
	}
}