﻿:root {
	--main-cta: #fff;
    --section-bckg: #003d8e;
}

*, *::before, *::after {
	font-family: inherit;
}

.bolded { font-weight: bold; }
.no-margin { margin: 0 !important; }
.no-margin-top { margin-top: 0 !important; }
.no-float { float: none !important; }
.centered { text-align: center !important; }
.righted { text-align: right !important; }
.lefted { text-align: left !important; }
.hide { display: none !important; }
.nobr {	white-space: nowrap !important; }
.pointer { cursor: pointer !important; }

@font-face {
    font-family: 'drakoheart';
    src: url('drakoheart.woff2') format('woff2'), url('drakoheart.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

html {
    box-sizing: border-box;
}
*, *::before, *::after {
    box-sizing: inherit;
    letter-spacing: inherit;
}
  
html, body, nav, main, #container, #main_content { 
	height: 100%;
	min-height: 100%;
	letter-spacing: 1px;
}

html { font-size: 62.5%; }

body {
	margin: 0;
	padding: 0;
	border: none;
	text-align: center;
	font-family: 'Loved by the King', cursive;
    font-family: 'Epilogue';
	font-size: 1.4em;
	z-index: 1;
	line-height: 0;
	background-image: url(/assets/pirate.jpg);
	background-size: cover;
	overflow: hidden;
} 

body * {
	line-height: 125%;
}

form
{
	border: 0;
	padding: 0;
	margin: 0;
	display: inline;
}

a:link, a:hover, a:visited {
	text-decoration: none;
	color: var(--section-bckg);
}

a img {
	border: 0;
}

table {
	width: 100%;
}
tr { 
	vertical-align: top;
}
td {
	position: relative;
}
thead.sticked {
    position: sticky;
    top: -30px;
    z-index: 2;
}
p {
	text-align: left;
}
button:focus {
	outline: none;
	box-shadow: none;
}
p.Guid {
	white-space: nowrap;
	text-align: center;
	font-weight: bold;
	font-family: Arial, Helvetica, sans-serif;
}
header {
	position: absolute;
	width: 100%;
	height: 70px;
	z-index: 2000;
	opacity: 0.9;
    background-color: #fff;
}
header ul {
	display: flex;
	flex-direction: row;
	list-style: none;
	padding-left: 0;
	margin-bottom: 0;
}
a.inline-link::before {
	padding-right: 5px;
}

a.nav-link {
	padding: 5px 10px;
}

#container {
	margin: auto;
	position: relative;
	padding: 55px 5vw 15px 5vw;
	display: inline-block;
	width: 100%;
	overflow: auto;
	display: flex;
	align-items: center;
	justify-content: center;
}

section {
	min-width: 500px;
	max-width: 860px;
	background-color: var(--section-bckg);
    color: #fbe407;
    opacity: 0.88;
	padding: 30px;
	border-radius: 30px 0;
	max-height: 85vh;
	overflow-y: auto;
	overflow-x: hidden;
}

section.extended {
	min-width: 90vw;
	width: 90vw;
	text-align: left;
}

section label:not(.button) {
	width: 100%;
}

footer {
	position: sticky;
	bottom: 0;
	width: 100%;
	line-height: 30px; 
	text-align: right;
	height: 40px;
	padding: 15px;
}

section.splash {
	font-size: 5rem;
	animation: splash .5s ease-in-out .5s forwards, pulse 1.8s infinite ease-in-out;
	opacity: 0;
	width: 90vw;
	background-image: url(/assets/bg_moulin.png);
	background-size: contain;
	background-repeat: no-repeat;
	min-width: 200px;
	max-width: 360px;
}

section.splash img {
	width: 100%;
}

section.splash img.wheel {
	animation: moulin 20s linear infinite;
}

section.splash img.pan {
	animation: pan 1s ease-out forwards 1.5s;
	transform: translateY(-3000px);
}

section.splashhome {
    font-size: 1.8rem;
	animation: splash .5s ease-in-out .5s forwards;
    opacity: 0;
	width: 90vw;
    text-align: left;
}

section.splashhome h1 {
    font-family: "Oooh Baby", cursive;
    padding: 6px;
    margin-top: 40px;
    font-size: 6rem;
}

section.splashhome h2 {
    font-size: 3rem;
    padding-top: 30px;
}

section.splashhome ul {
    margin-bottom: 0;
    list-style-type: "\22B3";
}
section.splashhome li {
    padding-left: 5px;
}
section.splashhome p {
    padding-left: 20px;
}

section.splashhome div.chapter {
    margin-top: 10px;
    text-decoration: underline;
    font-weight: bold;
    font-size: 1.2em;
    line-height: 200%;
}

section.splashhome div.call {
    width: 100%;
    border: 2px solid #666;
    margin-top: 30px;
    font-weight: bold;
    background-color: #eee;
    padding: 10px;
}

section.splashhome img.middle {
    position: absolute;
    right: 0;
    z-index: -1;
    transform: translateY(140px);
}

section.splashhome img.wheel {
    animation: moulin 20s linear infinite;
    width: 150px;
}

section.splashhome img.pan {
    width: 150px;
}

section.splashhome div.moulin {
	background-image: url(/assets/bg_moulin.png);
	background-size: contain;
	background-repeat: no-repeat;
	width: 150px;
    position: absolute;
    right: 10px;
    z-index: -1;
}

div.form-group-header {
	margin-top: 24px;
	font-size: 1.2em;
	border-bottom: 1px dotted #a4a4a4;
	margin-bottom: 8px;
	/**/
    line-height: 250%;
}

div.edit-box {
	width: 50%;
	padding-right: 30px;
	font-size: 1.2em;
	display: inline-block;
	position: relative;
	vertical-align: top;
}

div.edit-box + div.edit-box {
	padding-left: 30px;
	padding-right: 0;
	border-left: 1px solid #D4D4D4;
	width: calc(50% - 2px);
}

div.form-group {
	vertical-align: top;
}
div.form-group a {
    color: #fff;
}
div.form-comment {
	font-style: italic;
	opacity: 0.8;
	font-size: 1em;
	padding-top: 5px;
	text-align: right;
}
input:not([type="checkbox"]), textarea.form-control {
	font-size: 0.8em;
	font-family: Arial, Helvetica, sans-serif;
}
textarea.form-control {
    min-height: 3.2em;
}
div.attendance input {
    font-size: inherit;
}
div.edit-box div.form-group > label {
	display: inline-block;
	width: 40%;
	vertical-align: top;
	padding-right: 15px;
    /**/
    line-height: 125%;
}
div.edit-box div.form-group > label.form-check-label {
	width: 100%;
	padding-left: 1em;
}
div.edit-box div.form-group.under-question > label.form-check-label {
    padding-left: 3em;
}
div.edit-box div.form-group > label.form-check-label input {
	margin-left: -1.6em;
    /*margin-top: 0.6em;*/
}
div.edit-box div.form-group.disabled {
    color: #bbb;
    pointer-events: none;
}
div.edit-box div.form-group.disabled input {
	color: #bbb;
	border-color: #bbb;
}
div.edit-box div.form-group input:not([type="checkbox"]),
div.edit-box select {
	display: inline-block;
	width: 60%;
	color: #fff;
    background-color: #02512c;
    border: 1px solid #ced4da;
	font-size: 0.8em;
	font-family: Arial, Helvetica, sans-serif;
}
div.edit-box div.form-group input::placeholder {
	font-style: italic;
	opacity: 0.75;
    color: #c2c2c2;
}
div.input-group {
	display: inline-block;
	width: 60%;
}
div.input-group input {
	margin-bottom: 6px !important;
	width: 100% !important;
}
input.input-validation-error {
	border: 1px solid #c00 !important;
	animation: shake 0.6s ease-in-out 0.5s;
}

div.navbar-collapse.show {
	position: absolute;
	background-color: #eee;
	right: 0;
	top: 50px;
	text-align: right;
	padding: 5px;
	width: 100%;
	background-color: #d4d4d4;
}

div.navbar-collapse.show li,
div.navbar-collapse.show li button:not(.close) {
	font-size: 1.6em;
	background-color: #4d4d4d;
    color: #fff  !important;
    border-radius: 10px 0;
    text-align: left;
    padding: 10px;
    margin-bottom: 6px;
}
div.navbar-collapse.show li button:not(.close) {
	padding: 0;
}
div.navbar-collapse.show li a {
	color: white !important;
}
div.navbar-collapse.show li + li {
	border-top: 1px dashed #999;
}
li.nav-item {
	padding: 0 20px;
}
a.nav-link, button.nav-link {
	font-size: 1.4em;
	border: none;
	border-radius: 10px 0;
	background-color: #d4d4d4;
    white-space: nowrap;
}
.navbar-light .navbar-toggler {
	font-size: 1.2em;
	background-color: var(--main-cta);
}
.navbar-light .navbar-nav .nav-link.principal {
	background-color: var(--section-bckg);
	color: white;
}
div.navbar-collapse.show a.nav-link,
div.navbar-collapse.show button.nav-link {
	background-color: transparent;
}
#DocsRepository {
	text-align: left;
    background-color: #eee;
}
#DocsRepository.highlight {
	background-color: #D3D3D3;
	opacity: 0.7;
	border: 10px dashed #999;
}
#DocsRepository input {
	display: none;
}
#DocsRepository progress {
	position: absolute;
	width: 80%;
	left: 10%;
	top: 45%;
	height: 30px;
	display: none;
}
#DocsRepository.active progress {
	display: inline-block;
}

#DocsRepository div.file {
	display: inline-block;
	width: 120px;
	height: 120px;
	text-align: center;
	position: relative;
	margin: 1vw;
	background: linear-gradient(135deg, rgba(169,3,41,0) 0,rgba(169,3,41,0.07) 34%,rgba(109,0,25,0.2) 91%,rgba(239,227,229,0) 99%,rgba(255,255,255,0) 100%);
	vertical-align: top;
	max-width: 30vw;
}

#DocsRepository div.file label {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	word-break: break-all;
	text-align: center;
	font-size: 0.7em;
	padding: 5px;
	max-height: 40px;
	overflow-y: hidden;
	font-family: Arial, Helvetica, sans-serif;
}

#DocsRepository div.file::before {
	font-size: 6rem;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	text-align: center;
}

#DocsRepository img.preview {
	max-width: 100px;
}

#DocsRepository:not(.reactive) form {
	display: inline-block;
	height: 35px;
}

#container button:not(.close), #container .button:not(.close) {
	position: relative;
	height: 40px;
	font-size: 0.8em;
	border: 1px solid #999;
	border-radius: 6px;
	background: none;
	background-color: #ddd;
	font-weight: normal;
	padding: 8px 16px 8px 40px;
	text-transform: uppercase;
	cursor: pointer;
	margin-top: 30px;
	line-height: 20px;
	text-shadow: none;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 1px 2px rgba(0, 0, 0, 0.15);
	display: inline-block;
	vertical-align: middle;
	margin: 0;
	text-align: center;
	white-space: nowrap;
	min-width: 120px;
	text-decoration: none !important;
}

#container button:hover, #container .button:hover {
	box-shadow: inset 3px 3px 3px rgba(255, 255, 255, 0.5), 2px 3px 3px rgba(0, 0, 0, 0.15);
}

#container button::before, #container .button::before {
	font-size: 2em;
	padding-right: 8px;
	position: absolute;
	top: 0;
	left: 10px;
}

#container button.mainbutton {
	top: 30px;
	float: right;
	background-color: var(--main-cta);
	margin-bottom: 30px;
    color: var(--section-bckg);
}

#container a.button.mainbutton {
	background-color: var(--main-cta);
    color: var(--section-bckg);
}

#container button.intermediary {
	font-size: 0.7em;
}

#container button.cgicon-only {
	max-width: 40px;
	min-width: 40px;
	padding: 0;
	font-size: 0.6em;
	float: right;
}
#container div.content-header button {
	font-size: 0.6em;
	padding: 2px 10px 2px 30px;
	height: 32px;
	margin-left: 30px;
}
#container div.content-header div.counter {
    float: right;
}
div.content {
	top: 55px;
	bottom: 25px;
	left: 5vw;
	right: 5vw;
	background-color: var(--section-bckg);
	opacity: 0.88;
	padding: 30px;
	border-radius: 30px 0;
	overflow-x: auto;
	max-height: 85vh;
}

div.content h1 {
	position: absolute;
	width: 100%;
	display: inline-block;
	top: 30px;
	text-align: center;
}

div.content div.content-header {
    font-size: 1.2em;
	font-family: Arial, Helvetica, sans-serif;
    text-align: left;
    color: #fff;
}

div.content table {
	font-size: 0.8em;
	font-family: Arial, Helvetica, sans-serif;
	margin-top: 20px;
}

div.content table th {
	color: #eee;
}

div.content table td, div.content table th {
	padding: 4px;
	text-align: left;
    background-clip: padding-box;
}

div.content table th {
    background-color: #686868;
}

div.content table td {
    background-color: #c8c8c8;
}

div.content table tr:nth-child(2n) td {
	background-color: #e8e8e8;
}

div.content table tr:hover td {
	opacity: 0.8;
}

span.non-mais-allo::before {
	content: attr(title);
}

span.attention {
    color: indianred;
}

table.manage-groups td:nth-child(1),
table.manage-groups td:nth-child(4),
table.manage-groups td:nth-child(6) {
	border-right: 1px solid var(--main-cta);
}

div.list_actions::before {
    font-size: 2.4rem;
}

#container button.attendance,
#container button.fiche {
	height: 30px;
	padding: 0;
	min-width: 30px;
	color: var(--main-cta);
}
#container button.attendance::before,
#container button.fiche::before {
	opacity: 0;
	left: 20%;
}

#container tr:not(.fiche) button.fiche {
	background-color: #DC143C;
	color: #fff;
    border-color: #DC143C;
}

#container tr.present button.attendance {
    background-color: #006400;
    color: #fff;
	border-color: #004400
}

#container tr.present button.attendance::before { opacity: 1; }
#container tr.fiche button.fiche::before { opacity: 1; }

div.content.nopres #btn_hidepresent { display: none; }
div.content.nopres tr.present { display: none; }
div.content:not(.nopres) #btn_showpresent { display: none; }

div.content table tr td.alert,
div.content table tr.bad-beid td.beid {
	background-color: #DC143C;
	color: #fff;
}

div.content table tr.celebrate td.birthday {
    background-color: #d2691e;
    color: #fff;
}

div.section textarea,
div .content table textarea {
	width: 400px;
	padding: 5px;
	height: 48px;
}

div.section textarea {
    background-color: #02512c;
}

div.content table textarea.notsaved {
	animation: shake 0.5s ease-in-out;
}

div.content table textarea.saved {
	animation: updated 0.5s ease-in-out;
}

section.splashhome p.lefttext {
    padding-left: 60px;
}

section.splashhome img.lefttext {
    position: absolute;
    width: 50px;
}

section.splashhome p.righttext {
    padding-left: 0;
    padding-right: 60px;
}

section.splashhome img.righttext {
    position: absolute;
    right: 30px;
    width: 50px;
}

section.splashhome img.bigger {
    width: 60px;
}

section.splashhome p.shortedtext {
    padding-left: 70px;
    padding-right: 80px;
}

section.splashhome img.endimage {
    margin-top: 20px;
    width: 100%;
    opacity: 0.5;
    position: absolute;
    left: 0;
    top: 0;
}

div.mainbutton {
    padding-top: 50px;
    padding-bottom: 50px;
}

@keyframes splash {
	from { opacity: 0; }
	20%	 { transform: translateY(-100%); }
	30%	 { transform: translateY(40%) scale(0.5); }
	50%	 { transform: translateY(40%) scale(1.5); }
	to   { opacity: 0.92; transform: scale(1); }
}

@keyframes pulse {
	0% { transform: scale(1); }
	14% { transform: scale(1.05); }
	28% { transform: scale(1); }
	48% { transform: scale(1.03); }
	70% { transform: scale(1); }
}

@keyframes moulin {
	from { transform: rotate(0); }
	to { transform: rotate(360deg); }
}

@keyframes pan {
	from { transform: translateY(-3000px); }
	52% { transform: translateY(0) skew(-10deg, 0) scale(1.1); }
	58% { transform: skew(10deg, 0) scale(0.9); }
	64% { transform: translateY(0) skew(-5deg, 0) scale(1.05); }
	72% { transform: skew(5deg, 0) scale(0.95); }
	80% { transform: skew(-3deg, 0) scale(1.03); }
	90% { transform: skew(3deg, 0) scale(0.97); }
	to { transform: skew(0,0) scale(1); }
}

@keyframes shake {
	from { left: 0; }
	10% { left: 2px; }
	20% { left: 0; }
	30% { left: 2px; }
	40% { left: 0; }
	50% { left: 2px; }
	60% { left: 0; }
	70% { left: 2px; }
	80% { left: 0; }
	90% { left: 2px; }
	to { left: 0; }
}