/* ################################################################################
   ################################################################################
   ###  
   ###  GENERAL
   ###  
   ################################################################################
   ################################################################################ */
   .relative {
	position: relative;
}

/* ################################################################################
   ################################################################################
   ###  
   ###  STOLEN FROM TD-OKINI
   ###  
   ################################################################################
   ################################################################################ */
html {
    line-height: 1.15;
    -ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: "PT Sans", sans-serif;
    color: #333;
    font-size: 1.1rem;
    background-color: #FBFBFB;
}

button, input, optgroup, select, textarea {
    font-family: sans-serif;
    font-size: 100%;
    line-height: 1.15;
    margin: 0;
}

textarea, input[type="text"], input[type="email"], input[type="search"], input[type="password"] {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    width: 100%;
    padding: 10px;
    border: none;
    border-bottom: solid 2px #c9c9c9;
    transition: border 0.3s;
    outline: none;
    -moz-outline: none;
    -webkit-outline: none;
    font-family: "PT Sans", sans-serif;
}

/* ################################################################################
   ################################################################################
   ###  
   ###  LOGIN
   ###  
   ################################################################################
   ################################################################################ */
div.login_box {
    width: 400px;
    border: 1px #ccc solid;
    padding: 40px;
    border-radius: 2px;
    margin: 0 auto;
    margin-top: 100px;
    overflow: hidden;
    background: #f6f6f6;
}
div.login_box h3 {
	margin-top: unset;
    text-align: center;
}
div.login_box span.msg {
	color: red;
}
div.login_box form {
	text-align: center;
}
div.login_box .btn-submit {
    margin-top: 20px;
}

/* ################################################################################
   ################################################################################
   ###  
   ###  HEADER
   ###  
   ################################################################################
   ################################################################################ */
header {
    font-size: 24px;
    font-weight: bold;
    background-color: #FFEB3B;
    padding: 0 20px;
    line-height: 2.5;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 9999;
    box-sizing: border-box;
}
header div {
	float: right;
    line-height: 2.1;
}
header div a {
	font-size: 14px;
}
header div a:visited {
    color: initial;
}

/* ################################################################################
   ################################################################################
   ###  
   ###  BODY
   ###  
   ################################################################################
   ################################################################################ */
/* GENERAL */
main {
	max-width: 800px;
	margin: 0 auto;
    background-color: #FBFBFB;
	padding: 60px 10px 200px 10px;
	z-index: 9;
}
.stepNumber {
    height: 150px;
    width: 150px;
    margin: 100px auto;
    margin-bottom: 0;
    text-align: center;
    background-color: #cccccc;
    border-radius: 100%;
    line-height: 5;
    font-size: 29px;
    color: #fff;
}
form h3 {
    text-align: center;
    margin-bottom: 100px;
}
.row {
	margin-bottom: 10px;
	position: relative;
}
#row-attachements,
#row-submit {
	text-align: center;
}
.textarea {
	max-width: 100%;
}
#row-replyto .col-3 {
	width: 25%;
	display: inline-block;
	box-sizing: border-box;
	float: left;
}
#row-replyto .col-9 {
	width: 75%;
	display: inline-block;
	box-sizing: border-box;
	padding-left: 25px;
}
.btn-submit {
	min-width: 130px;
    line-height: 2;
    border: 1px #a0a0a0 solid;
    border-radius: 2px;
    background-color: #ffeb3b;
    cursor: pointer;
    color: #3c3c3c;
    transition: all .25s;
}
.btn-submit:hover {
	background-color: #f2d611;
}
.btn-submit:focus {
	transform: scale(0.9);
}

/* RECIPIENTS */
#table-recipients {
	width: 100%;
	border-collapse: collapse;
}
#table-recipients td {
	padding: 6px 10px;
}
#table-recipients thead {
	font-weight: bold;
	background-color: #a5a5a5;
	color: #fff;
}
#table-recipients tbody tr.odd {
	background-color: #ececec;
}
#table-recipients tbody tr.even {
	background-color: #cfcfcf;
}
#table-recipients tbody tr.odd:hover,
#table-recipients tbody tr.even:hover {
		background-color: #cfc800;
}
#table-recipients tbody td.no-email {
	color: red;
}
#table-recipients tbody tr td:nth-child(4) {
	max-width: 300px;
	overflow: hidden;
}

/* RECIPIENTS - MENU */
#menu-msg {
	width: 100%;
	overflow: hidden;
	float: left;
	margin-top: 20px;
	display: none;
}
#menu-loading {
	width: 100%;
	height: 0px;
	overflow: hidden;
	text-align: center;
	line-height: 5;
	transition: height .25s;
}
#menu-loading img {
	height: 40px;
	width: 40px;
	transform: translateY(15px);
}
#menu-loading.show {
	height: 87px;	/* Has to be hardcoded for animation */
}
.rec-menu {
	width: 100%;
	overflow: hidden;
	margin-bottom: 25px;
}
.rec-menu-main {
	width: 25%;
	float: left;
}
.rec-menu-main p {
	position: relative;
	text-align: center;
	line-height: 3;
	background-color: #ccc;
	color: #fff;
	margin: 0;
	box-sizing: border-box;
}
.rec-menu-main p::before {
	content: "";
    display: block;
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 0;
    background: #333;
    transition: width .25s;
}
.rec-menu-main:hover p::before {
	width: 100%;
}
.rec-menu-main .rec-menu-sec {
	transition: max-height .25s;
	padding-bottom: 10px;
}
.rec-menu-main.active p::before {
	width: 100%;
}
.rec-menu-main.active .rec-menu-sec {
	padding-bottom: 10px;
}
.rec-menu-sec div {
	padding: 10px 10px 0 10px;
}
.rec-menu-sec div label {
	margin-left: 10px;
}
div.menu-radio {
	height: 20px;
	width: 20px;
	border: 3px #FFEB3B solid;
	border-radius: 100%;
	float: left;
	padding: 0;
	box-sizing: border-box;
}
div.menu-radio,
div.menu-row {
	transition: all .25s;
	position: relative;
	cursor: pointer;
}
div.menu-row label {
	cursor: pointer;
}
div.menu-row:hover .menu-radio {
	transform: scale(1.3);
}
div.menu-row .menu-radio::before {
    content: "";
    height: 10px;
    width: 10px;
    position: absolute;
    top: 2px;
    left: 2px;
    border-radius: 100%;
    background-color: transparent;
	transition: all .25s;
}
div.menu-row.checked .menu-radio::before {
    background-color: #a5a5a5;
}

/* MESSAGES */
#msg-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 75px;
    left: 15px;
    height: 60px;
    width: 60px;
    transform: translateX(-100px);
    transition: all .7s;
    background-color: #fff;
    border: 1px #bbb solid;
    border-radius: 2px;
    box-shadow: 0 0 10px #bbb;
	box-sizing: border-box;
}
#msg-wrapper.show {
	transform: translateX(0);
}
#msg-wrapper.msg-show-msg {
	width: 500px;
	transform: translateX(calc(50vw - 250px));
}
#msg-wrapper.msg-success,
#msg-wrapper.msg-error {
	padding-left: 50px;
	padding-right: 10px;
	background-repeat: no-repeat;
	background-position: 10px center;
}
#msg-wrapper.msg-success {
    background-color: #DFF2BF;
    color: #4F8A10;
    border: 1px #4F8A10 solid;
	background-image: url('../data/icons/success32x32.png');
}
#msg-wrapper.msg-error {
    background-color: #FFBABA;
    color: #D8000C;
    border: 1px #D8000C solid;
	background-image: url('../data/icons/error32x32.png');
}
#loading {
    height: 40px;
    width: 40px;
}
#loading img {
	height: 100%;
	width: 100%;
}
#logoutput {
	font-size: 14px;
	width: 1000px;
	height: auto;
	padding: 10px 0;
	overflow-x: auto;
	transition: .4s;
}
#logoutput.hidden {
	height: 0px;
	padding: 0;
}
#logoutput.loading {
	background: url('../data/loading_fs.gif') 50%/40px no-repeat;
	min-height: 250px;
}

/* INFOBOX */
#box-infos-overlay {
	background-color: rgba(0, 0, 0, 0);
	height: 100vh;
	width: 100vw;
	position: fixed;
	top: 0;
	left: 0;
}
#box-infos-overlay.show {
	background-color: rgba(0, 0, 0, 0.4);
	z-index: 1;
}
.box-infos {
    position: fixed;
    width: 400px;
    top: 20%;
    left: 50%;
    padding: 50px;
    transform: translateX(-50%);
    background-color: #fff;
    box-shadow: 0 0 10px #bbb;
    opacity: 0;
}
.box-infos.show {
	opacity: 1;
	z-index: 1;
}
#box-infos-overlay,
.box-infos {
	transition: .4s;
	z-index: -1;
}
.box-infos ul {
	margin: 0;
	padding-left: 15px;
}
.box-infos table {
	margin-top: 4px;
	width: 100%;
	font-size: 14px;
	font-family: courier, consolas, serif;
}
.box-infos-close {
	position: absolute;
	height: 40px;
	width: 40px;
	top: 0;
	right: 0;
	cursor: pointer;
	text-align: center;
	line-height: 2;
}
.open-infos {
	height: 16px;
	width: 16px;
	position: absolute;
	top: calc(50% - 18px);
	left: calc(100% + 5px);
	padding: 10px;
	background: url('../data/icons/info.svg') 50%/50% no-repeat;
	cursor: pointer;
}
div#row-subject:hover #infobox-subject,
div#row-body:hover #infobox-body,
div#row-attachements:hover #infobox-attachements,
div#row-replyto:hover #infobox-replyto,
div#row-verification:hover #infobox-verification {
	transition: all .7s;
    transform: translateY(-50%) translateX(30px);
}
div#row-subject input:focus ~ #infobox-subject,
div#row-body textarea:focus ~ #infobox-body,
div#row-replyto input:focus ~ #infobox-replyto,
div#row-verification input:focus ~ #infobox-verification {
    transform: translateY(-50%) translateX(-100%);
}

/* ################################################################################
   ################################################################################
   ###  
   ###  FOOTER
   ###  
   ################################################################################
   ################################################################################ */
@keyframes rainbow-footer {
	0%,19% { background-color: #4484CE; color: #BAF73C; }
	20%,39% { background-color: #F7C331; color: #850000; }
	40%,59% { background-color: #B82601; color: #86E2D5; }
	60%,79% { background-color: #006438; color: #E6CC22; }
	80%,100% { background-color: #EC576B; color: #0A3055; }
}