/************************ ERROR *************************************/
/* Pour les messages d'erreur au login */
.gad_error_log {
	border: solid 1px red;
	background-color: rgb(206, 143, 143);
	color: rgb(65, 24, 24);
	padding: 5px;
	/* hidden by default */
	display: none;
}

.gad_form_field_error {
	border: dashed 1px red;
	/*background-color: rgb(206, 143, 143);*/
	color: red;
	padding: 5px;
	/* hidden by default */
	display: none;
	margin-top: 10px;
	margin-bottom: 10px;
	border-radius: 5px;
}

/************************** DEBUG **********************************/
/* Pour le debuggage */
.gad_debug_log {
	border: solid 1px dark;
	background-color: rgb(26, 26, 26);
	color: white;
	padding: 5px;
	/* hidden by default */
	display: none;
	overflow-wrap: break-word;
}

/* Pour le debug */
.gad_debug_log, .terminal {
	border: solid 1px black;
	background-color: rgb(19, 19, 19);
	color: white;
	font-family: "Menlo", "Monaco", "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", serif;
	padding: 10px;
	overflow-wrap: break-word;
}

/**************************** BACKGROUND ***********************/
body {
	background-color: #040404;
	font-family: "Maven Pro", serif;
	font-weight: 400;
	background-image: url("/theme/images/background-page-2023-05-03-moon-club-seb-1920.jpg");
	background-size: calc(1920px + 300px);
	background-position-y: -270px;
	background-repeat: no-repeat;
	background-position-x: 50%;
}

/**************************** MAIN *****************************/
#gad_main {
	/* color */
	background-color: rgba(255, 255, 255, 0.82);
	/* set page width */
	width:900px;
	/* align center */
	margin-left: auto;
	margin-right: auto;
	/* make nice border */
	border: 2px solid #27272c;
	border-radius: 10px;
}

#gad_copyright {
	/* set page width */
	width:900px;
	/* align center */
	margin-left: auto;
	margin-right: auto;
	/* texte */
	text-align: center;
	color: lightgray;
	font-style: italic;
}

@media (max-width: 900px) {
	#gad_main {
		width: 100%;
		/* align center */
		margin-left: auto;
		margin-right: auto;
	}

	#gad_copyright {
		width: 100%;
		/* align center */
		margin-left: auto;
		margin-right: auto;
	}
}

.gad_page_title {
	font-weight: 700;
	text-align: center;
	font-size: 36px;
}

h1 {
	font-weight: 600;
	font-size: 28px;
	text-align: left;
}

h2 {
	font-weight: 500;
	font-size: 24px;
	text-align: left;
}

h3 {
	font-weight: 400;
	font-size: 20px;
	text-align: left;
}

/**************************** TITLE BAR *************************/
#gad_title_bar {
	background-image: url("/theme/images/background-top-bar-le-coeur-logo-only-gad-small.jpg");
	background-size: 100% 100%;
	background-color: rgb(19, 18, 32);
	color: white;
	height: 90px;
	padding: 20px;
	border-top-right-radius: 10px;
	border-top-left-radius: 10px;
}

#gad_title_bar h1 {
	text-shadow: 3px 3px 3px black;
}

@media (max-width: 900px) {
	#gad_title_bar {
		background-image: url("/theme/images/background-top-bar-le-coeur-logo-phone.jpg");
	}
}

#gad_title_bar h1 {
	text-align: left;
}

span#gad_title_bulle {
	width:100px;
	display: inline-block;
}

/**************************** MENU *****************************/
#gad_menu {
	width: 100%;
	background-color: #3b3b39;
	height: 50px;
	color: white;
	font-weight: bold;
}

#gad_menu ul {
	list-style-type: none;
	margin: 0;
	padding: 0;
	height: 50px;
}

#gad_menu ul li {
	display: inline;
	float: left;
	height: 50px;
}

#gad_menu ul li.logged_in, #gad_menu ul li.logged_in a {
	float: right;
	border: 0px solid;
	padding: 0px;
}

.logged_in img {
	border: 0px solid;
	height: 50px;
	width: 50px;
}

#gad_menu ul li a {
	display: inline-block;
	height: 28px;
	color:rgb(125, 201, 224);
	padding: 10px;
	background-color: #3b3b39;
	border: dotted black 1px;
}

#gad_menu ul li a:hover {
	background-color: rgb(48, 69, 114);
	color: white;
}

#gad_menu .gad_submenu {
	position: absolute;
	float: initial;
	display: none;
	z-index: 100000;
}

@media (min-width: 900px) {
#gad_menu li:hover .gad_submenu
{
	display: block;
}
}

#gad_menu .gad_submenu li {
	display: block;
	float: initial;
}

#gad_menu .gad_submenu li a {
	display: block;
}

#gad_menu .gad_submenu li.gad_submenu_req_auth_True, #gad_menu li.gad_submenu_req_auth_True  {
	display: none;
}

#gad_menu .gad_submenu li.gad_submenu_req_auth_False {
	display: block;
}

/**************************** BODY CONTENT ***********************/
#gad_content_body {
	padding: 10px;
	text-align: justify;
}

#gad_content_body img {
	/*width: 100%;*/
	max-width: 100%;
}

/******************************* FORM ****************************/
.gad_form form {
	width: 100%;
	text-align: left;
}

.gad_form form .gad_form_field_name {
	vertical-align: top;
	padding-top:10px;
	padding-bottom: 10px;
	font-weight: bold;
}

.gad_form_field_extra_infos {
	font-style: italic;
}

.gad_form_field_required {
	font-style: italic;
	font-size: 0.8em;
	color: red;
}

.gad_form form .gad_form_value_name {
	width: 70%;
}

.gad_form_textarea_editor_container {
	border-radius: 20px;;
}

.gad_form_textarea_editor_container .editor-toolbar {
	background-color: lightgray;
}

.gad_form_textarea_editor_container .editor-statusbar {
	color: black;
}

.gad_form textarea, .gad_form_textarea_editor_container .CodeMirror.cm-s-paper {
	background-color: white;
}

.gad_form form input, .gad_form form textarea, .gad_input_url, .gad_form select {
	border-radius: 5px;
	border: solid darkgray 1px;
	padding: 4px;
	padding-top: 7px;
	padding-bottom: 10px;
	width: calc(100% - 8px);
}

.gad_input_url {
	background-color: gray;
}

.gad_form form extarea {
	height: 15em;
}

.gad_form_button_submit:hover {
	background-color: rgb(59, 155, 187);
}

.gad_form_button_submit {
	border-radius: 5px;
	border: solid darkblue 1px;
	background-color: rgb(93, 178, 206);
	padding:10px;
	margin-left: auto;
	margin-right: 0px;
	margin-top: 40px;
	margin-bottom: 20px;
}

.gad_form form .gad_form_input_error {
	background-color: rgb(253, 200, 200);
	color: rgb(126, 3, 3);
}

.gad_form form .gad_form_input_valid {
	background-color: rgb(169, 223, 169);
	color: rgb(2, 63, 2);
}

/************************ ELEMENT LIST *****************************/
/*for presetation & loan */
.gad_element_list{
	width: 100%;
	border: solid 1px black;
	border-collapse: collapse;
}

.gad_element_list tr td{
	border: solid 1px black;
	cursor: pointer;
	padding: 5px;
}

.gad_element_list tr th{
	border: solid 1px black;
	padding: 5px;
}

.gad_element_list tr:hover {
	background-color: lightblue;
}

.gad_element_list .gad_selected {
	background-color: lightgreen;
}

/************************ PRESTATIONS *****************************/
.gad_section {
	border: 1px solid rgb(20, 20, 20);
	background-color: #7d7d7d4f;
	border-radius: 10px;
	padding: 20px;
	margin-top: 20px;
	margin-bottom: 20px;
}

#gad_prestations_details {
	width: 100%;
	border: solid 1px rgb(60, 60, 60);
	border-collapse: collapse
}

#gad_prestations_details tr th {
	text-align: left;
	vertical-align: middle;
	border: solid 1px rgb(60, 60, 60);
	padding: 10px;
	padding-right: 20px;
	width: 10em;
}

#gad_prestations_details td {
	border: solid 1px rgb(60, 60, 60);
	padding: 10px;
}

#gad_prestations_details tr {
	padding-top: 20px;
	padding-bottom: 20px;
}

#gad_prestations_details tr:hover {
	background-color: lightblue;
}

#gad_prestations_animators {
	border-collapse: collapse;
	margin-bottom: 20px;
}

#gad_prestations_animators tr th, #gad_prestations_animators tr td {
	padding:20px;
	text-align: center;
	border: 1px solid white;
}

#gad_prestations_animators .gad_date_anim_status_avail {
	background-color: green;
	color: white;
}

#gad_prestations_animators .gad_date_anim_status_possible {
	background-color: lightsalmon;
	color: back;
}

#gad_prestations_animators .gad_date_anim_status_unavail {
	background-color: lightcoral;
	color: white;
}

#gad_prestations_animators .gad_date_anim_status_unknown {
	background-color: gray;
	color: white;
}

.gad_prestations_comment {
	border: dotted 1px black;
	padding: 10px;
	border-radius: 10px;
}

#gad_presatation_comment_form textarea {
	width: 100%;
	height: 20em;
}

/************************ SPINNER *****************************/
.gad_ajax_busy_spinner {
	display: block;
	top: 0;
	left: 0;
	margin: 0px;
	padding: 0px;
	width: 100%;
	height: 100%;
	position: absolute;
	background-color: black;
	z-index: 1000;
	opacity: 0.4;
} 

/**************************** AGENDA *************************/
.gad_agenda_entries {
	padding-left: 0px;
}

.gad_agenda_entry:first-child {
	border-top: dashed 1px gray;
}

.gad_agenda_entry {
	list-style: none;
	width: 100%;
	border-bottom: dashed 1px gray;
	padding-top:10px;
	padding-bottom: 10px;
	cursor: pointer;
}

/*.gad_agenda_entry {
	display: none;
}*/

.gad_agenda_entry table {
	width: 100%;
}

.gad_agenda_entry:hover .gad_agenda_date, .gad_agenda_entry:hover .gad_agenda_time {
	background-color: lightblue;
}

.gad_agenda_entry.gad_agenda_entry_passed:hover .gad_agenda_date, .gad_agenda_entry.gad_agenda_entry_passed:hover .gad_agenda_time {
	background-color: lightblue;
}

.gad_agenda_today .gad_agenda_date, .gad_agenda_today .gad_agenda_time {
	background-color: lightgreen;
}

.gad_agenda_img {
	background-image: url('/theme/images/icon-cone.png');
	background-size: 80% 80%;
	background-position: 50% 50%;
	background-repeat: no-repeat;
}

.gad_agenda_img.gad_agenda_img_periode {
	background-image: url('/theme/images/icon-period-cut.png');
	background-size: 100% 100%;
	background-repeat: no-repeat;
}

.gad_agenda_img.gad_agenda_img_conference_publique, .gad_agenda_img.gad_agenda_img_adherents_presentation {
	background-image: url('/theme/images/icon-pres.jpg');
	background-size: 100% 100%;
	background-repeat: no-repeat;
}

.gad_agenda_img.gad_agenda_img_adherents {
	background-image: url('/theme/images/icon-adherents.png');
	background-size: 100% 100%;
	background-repeat: no-repeat;
}

.gad_agenda_img.gad_agenda_img_adherents_sortie {
	background-image: url('/theme/images/icon-sortie.png');
	background-size: 100% 100%;
	background-repeat: no-repeat;
}

.gad_agenda_img.gad_agenda_img_observation_publique {
	background-image: url('/theme/images/icon-sortie.png');
	background-size: 100% 100%;
	background-repeat: no-repeat;
}

.gad_agenda_img.gad_agenda_img_ephemeride {
	background-image: url('/theme/images/icon-ephemeride.svg');
	background-size: 165% 100%;
	background-position: 50% 50%;
	background-repeat: no-repeat;
}

.gad_agenda_img.gad_agenda_img_stand {
	background-image: url('/theme/images/icon-stand.png');
	background-size: 100% 100%;
	background-repeat: no-repeat;
}

.gad_agenda_entry .gad_agenda_description
{
	display: none;
}

.gad_agenda_entry .gad_agenda_description.show
{
	display: table-cell;
}

.gad_agenda_entry .gad_agenda_date, .gad_agenda_entry .gad_agenda_time, .gad_agenda_entry .gad_agenda_img, .gad_agenda_entry .gad_agenda_description, .gad_agenda_entry .gad_agenda_time_phone {
	border: solid 1px black;
	background-color: white;
	box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
	border-radius: 10px;
	padding-left: 1em;
	padding-right: 1em;
	height: 6em;
	width: 4em;	
	text-align: left;
}

.gad_agenda_entry .gad_agenda_time_phone {
	display: none;
	height: auto;
	text-align: center;
}

.gad_agenda_entry .gad_agenda_title_phone{
	display: none;
}

@media (max-width: 700px) {
	/*.gad_agenda_entry .gad_agenda_time {
		display: none;
	}*/

	/*.gad_agenda_entry .gad_agenda_time_phone {
		display: table-cell;
	}*/

	.gad_agenda_entry .gad_agenda_title {
		display: none;
	}

	.gad_agenda_entry .gad_agenda_title_phone {
		display: table-cell;
		text-align: center;
	}
}

.gad_agenda_entry.gad_agenda_entry_passed .gad_agenda_img{
	opacity: 0.5;
}

.gad_agenda_entry.gad_agenda_entry_passed .gad_agenda_tags
{
	border: dashed 1px black;
	background-color: rgb(190, 190, 190);
}

.gad_agenda_entry.gad_agenda_entry_passed .gad_agenda_date, .gad_agenda_entry.gad_agenda_entry_passed .gad_agenda_time, .gad_agenda_entry.gad_agenda_entry_passed .gad_agenda_img {
	border: dashed 1px black;
	background-color: rgb(190, 190, 190);
	box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
	border-radius: 10px;
	padding-left: 1em;
	padding-right: 1em;
	height: 6em;
	width: 4em;	
}

.gad_agenda_entry .gad_agenda_day_name {
	font-weight: bolder;
	text-align: center;
}

.gad_agenda_entry .gad_agenda_day {
	text-align: center;
	font-weight: bold;
	font-size: 3em;
	color: #404040;
}

.gad_agenda_entry .gad_agenda_month_name {
	text-align: center;
}

.gad_agenda_entry .gad_agenda_hour, .gad_agenda_entry .gad_agenda_minute {
	text-align: center;
	font-weight: bold;
	font-size: 2em;
	color: #404040;
}

.gad_agenda_entry .gad_agenda_title, .gad_agenda_entry .gad_agenda_title_phone {
	vertical-align: middle;
	padding:20px;
	font-weight: bold;
	font-size: larger;
}

.gad_agenda_entry .gad_agenda_tags {
	background-color: lightblue;
	color: dark;
	border: 1px blue;
	border-radius: 4px;
	width: calc(12em - 4px);
	margin: 5px;

	border: solid 1px black;
	background-color: white;
	box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
	border-radius: 10px;
	padding: 2px;
	text-align: center	;
	height: 1rem;
}

.gad_agenda_event_astro, .gad_agenda_event_astro:hover {
	background-color: #5e5e5e;
	color: white;
}

.gad_agenda_event_private, .gad_agenda_event_private:hover {
	background-color: #3678c3;
	color: white;
}

.gad_agenda_event_public, .gad_agenda_event_public:hover {
	background-color: #040404;
	color: white;
}

.gad_agenda_event_rencontre, .gad_agenda_event_rencontre:hover {
	background-color: #8b8b8b;
	color: black;
}

/************************* LETTRE LISTE ***************************************/
.gad_object_list {
	/*display: inline-block;*/
	text-align: left;
	grid-template-columns: 140px 140px 140px 140px 140px 140px;
}

.gad_object_list .gad_object_list_item {
	text-align: center;
	font-weight: bold;
	padding: 5px;
	margin: 5px;
	display: inline-block;
	width: 140px !important;
	vertical-align: top;
}

.gad_object_list .gad_object_list_item img {
	border: 1px solid black;
	background-color: white;
	width: 140px !important;
}

.gad_object_list .gad_object_list_item img:hover {
	background-color: lightblue;
	opacity: 0.5;
}

/************************ GALLERY **************************/
#gad_content_body .gad_gallery div a img {
	width:auto;
}

@media (max-width: 900px) {
	#gad_content_body .gad_gallery div a img {
		width:32%;
	}
}

#gad_content_body .gad_gallery div a {
	text-decoration: none;
}

#gad_content_body .gad_gallery div a {
	text-align: justify;
}

.inline-gallery-container {
    width: 100%;

    /* set 60% height */
    height: 0;
    padding-bottom: 65%;
}

/********************** MENU SMARTPHONE RESPONSIVE *********/


/* Fullscreen Mobile Navigation */
@media (max-width: 900px) {
	#gad_nav {
		width: 100%;
		display: block;
		background-color: #3b3b39;
	}

	/* Desktop Navigation */
	#gad_menu {
		display: flex;
		z-index: 1000000;
	}

	#gad_menu ul {
		list-style: none;
		display: flex;
		/*gap: 1.5rem;*/
		height: 4000px;
	}

	#gad_menu ul li a {
		color: #fff;
		font-size: 1rem;
		transition: color 0.3s ease;
		height: auto;
	}

	#gad_menu ul li a:hover {
		color: #ffa400;
	}

    #gad_menu {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        min-height: 100%;
        padding-bottom: 200px;
        background-color: #333;
        flex-direction: column;
        /*justify-content: center;*/
        align-items: center;
        transform: translateX(100%);
        transition: transform 0.5s ease-in-out;
        z-index: 15;
    }

    #gad_menu.show {
        transform: translateX(0); /* Slide into view */
        overflow: scroll;
    }

    body:has(#gad_menu.show) {
        overflow: clip;
    }

    #gad_menu ul {
        flex-direction: column;
        text-align: center;
        /*gap: 2rem;*/
    }

    #gad_menu ul li a {
        font-size: 1.3rem;
    }

	#gad_menu ul {
		width:100%;
	}

	#gad_menu ul li {
		height: auto;
	}

	#gad_menu ul li a {
		width:calc(100% - 22px);
		height: auto;
		text-align: left;
	}

	/*#gad_menu ul li ul {
		/*position: absolute;
		top: 3em;
		left: 0px;
		width: 100%;
		height: 100%;*/
		/*width: 100%;
		background-color: #040404;
	}*/

	#gad_menu .gad_submenu {
		/*position: initial !important;
		//float: none !important;*/
		float: none;
		/*display: block;*/
		position: inherit;
		height: auto;
	}

	#gad_menu .gad_submenu li a {
		padding-left: 40px;
		text-align: left;
		background-color: #505050;
		font-size: 1rem;
		width: calc(100% - 52px);
	}
}

/* Hamburger Menu */
.gad_menu_phone_button {
    display: none;
    flex-direction: column;
    gap: 0.3rem;
    cursor: pointer;
    z-index: 20;
}

.gad_menu_phone_button span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: #fff;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Animate Hamburger to X */
.gad_menu_phone_button.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.gad_menu_phone_button.active span:nth-child(2) {
    opacity: 0; /* Hide the middle bar */
}

.gad_menu_phone_button.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Show Hamburger Menu on Mobile */
@media (max-width: 900px) {
    .gad_menu_phone_button {
        display: flex;
		padding:20px;
    }
}

/*********************** NEWS ********************/
.gad_news_2 {
	display: grid;
	grid-template-columns: 50% 50%;
}

.gad_news_3 {
	display: grid;
	grid-template-columns: 33% 33% 33%;
}

.gad_news .gad_news_item .gad_news_item_list p{
	padding:0;
	margin:0px;
	display: div
}

.gad_news .gad_news_item{
	border: solid 1px gray;
	border-radius: 4px;
	background-color: #b8b8b867;
	padding: 20px;
	padding-top: 0px;
	margin: 10px;
}

.gad_new .gad_news_item:hover {
	background-color: #72707085;
}

.gad_news .gad_news_item h2 {
	text-align: center;
}

.gad_news .gad_news_item div {
	text-align:  center;
}

@media (max-width: 900px) {
	.gad_news {
		display: block;
	}
	.gad_news_2 .gad_news_item {
		width:100%;
	}

	.gad_news_3 .gad_news_item {
		width:100%;
	}
}

.gad_legal_link {
	color: rgb(113, 113, 241);
	text-shadow: 2px 2px 2px black;
}

/************************* CALENDAR *********************/

#calendar table {
	background-color: white;
	border-radius: 5px;
}

#calendar .fc-day-today {
	background-color: #e4d49f;
}

/************************* USER ADMIN *******************/
.gad_user_list_details th {
	width: 150px;
	vertical-align: top;
}

.gad_user_list_details h2 {
	text-align: center;
}

.gad_user_list_details td ul {
	padding-left: 0px;
	padding-top: 0px;
	margin:0px;
	list-style-type: none;
}

/************************** SOURCE EDIR ******************/
#gad_markdown_editor {
	width: 150%;
	margin-left: -25%;
	background-color: #15191d;
	font-size: larger;
	padding: 10px;
	border-radius: 10px;
}

@media (max-width: 1300px) {
	#gad_markdown_editor {
		margin-left: 0px;
		width: 98%;
	}
}