/*
Theme Name:     Anima-child
Theme URI:      http://www.cryoutcreations.eu
Description:    Anima child theme.
Author:         Réseau Koumbit
Author URI:     https://www.koumbit.org/
Template:       anima
Version:        0.5.0
*/

/* Size logo width */

a#logo > img{
	width:auto;
}

/* Remove container top margin from pages */

body.page .main {
	padding-top: 0em !important;
	padding-bottom: 2.5em;
}

/* Change mobile menu */

#nav-toggle .icon-menu:before{
	color:#fff;
}

nav#mobile-menu a{
	color:#fff;
}

nav#mobile-menu li.current-menu-item a{
	color:#000;
}

nav#mobile-menu .icon-search:before{
	color:#000;
}

nav#mobile-menu .dropdown-toggle{
	padding: 0em;
	font-size:2em;
}

/* Remove sharing buttons on landing page elements */
.seriousslider-caption-text .addtoany_share_save_container, .lp-text-content .addtoany_share_save_container{
	display:none;
}

/* Change landing page text area height and background positioning */
.lp-text{
	min-height:400px;
	background-position: 50% 50% !important;
}

/* There is Safari-specific CSS for landing page text area, applying the same rule here */
body.safari, .safari #masthead .header-image, .safari .lp-text {
	background-position: 50% 50% !important;
}

/* Removing the title from landing page text areas for now */
.lp-text .lp-text-title, #lp-page .entry-title{
	display:none;
}

/* Manual adjustments to the icons on the landing page, otherwise the circle disappears */

.lp-block i {
	border-color: #f0f0f0 !important;
}

.lp-block i:hover, .lp-block:hover i {
	border-color: #f47920 !important;
}

/* Manual adjustments to breadcrumbs */

#breadcrumbs-nav{
	color: #fff !important;
}

/* Putting footer hyperlinks in bold to improve legibility */

#footer-inside{
	background-color: #000;
}

#footer-inside a{
	color: #fff !important;
}

#colophon a, #footer a{
	font-weight:bold;
}

/* Make the hamburger menu appear when screen width is less than 1000 px
  (to avoid having menu items appear on two lines */
@media (max-width: 1000px) {

	.cryout #site-title a span {
		padding-right: 0;
	}

	.cryout #nav-toggle {
		display: block;
	}

	.cryout #site-header-main-inside {
		display: block;
	}

	.cryout #branding {
		margin-right: 3em;
	}

	#masthead.cryout #access {
		display: none;
	}

	.cryout #sheader-container {
		margin-left: 0;
		margin-right: 3em;
	}

}

/* Typewriter effect */
.typewriter h1, .typewriter h2, .typewriter h3, .typewriter h4, .typewriter h5, .typewriter h6 {
  overflow: hidden; /* Ensures the content is not revealed until the animation */
  white-space: nowrap; /* Keeps the content on a single line */
  margin: 0 auto; /* Gives that scrolling effect as the typing happens */
  letter-spacing: .15em; /* Adjust as needed */
  animation: 
    typing 3.5s steps(40, end);
}

/* Disable typewriting effect on vertical mobile devices to avoid hidden overflow */
@media (max-width: 480px) {
	.typewriter h1, .typewriter h2, .typewriter h3, .typewriter h4, .typewriter h5, .typewriter h6 {
	  overflow: visible;
	  white-space: normal;
	  animation: none;
	}
}

/* The typing effect */
@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

/* Jumelage display */

/* Change magazine-three layout to five items per row on bigger screens */
@media only screen and (min-width: 1000px) {

	/* Reduce width to accommodate five items per row */
	.post-type-archive-ami_blanc.anima-magazine-three #content-masonry article.hentry {
		float: left;
		width: 18%;
	}

	/* Clear after five items */
	.post-type-archive-ami_blanc.anima-magazine-three #content-masonry article.hentry:nth-child(5n+1) {
		clear: both;
	}

	/* Do not clear after three items */
	.post-type-archive-ami_blanc.anima-magazine-three #content-masonry article.hentry:nth-child(3n+1) {
		clear: none !important;
	}

	/* Reduce margin to accommodate five items */
	.post-type-archive-ami_blanc #content-masonry article.hentry{
		margin-right:1%;
		margin-left: 1%;
	}

}

/* Reduce to four per row on smaller screens  */
@media only screen and (max-width: 999px) and (min-width: 750px)   {

	/* Adjust width to accommodate four items per row */
	.post-type-archive-ami_blanc.anima-magazine-three #content-masonry article.hentry {
		width: 23%;
	}

	/* Clear after four items */
	.post-type-archive-ami_blanc.anima-magazine-three #content-masonry article.hentry:nth-child(4n+1) {
		clear: both;
	}

	/* Reduce margin to accommodate five items */
	.post-type-archive-ami_blanc #content-masonry article.hentry{
		margin-right:1%;
		margin-left: 1%;
	}

}

/* Reduce to two per row on smaller screens  */
@media only screen and (max-width: 749px) and (min-width: 500px)   {

	/* Reduce width to accommodate two items per row */
	.post-type-archive-ami_blanc.anima-magazine-three #content-masonry article.hentry {
		width: 44%;
	}

	/* Clear after five items */
	.post-type-archive-ami_blanc.anima-magazine-three #content-masonry article.hentry:nth-child(2n+1) {
		clear: both;
	}

	/* Reduce margin to accommodate five items */
	.post-type-archive-ami_blanc #content-masonry article.hentry{
		margin-right:2%;
		margin-left: 2%;
	}

}

/* Used to display name, age and interests in blue */
.ami_label{
	color: #00aeef;
}

/* Double button size on profile view */
.ami_profil .wp-block-button-status{
	font-size:1.75em;
	margin-bottom:2.75em;
}

/* Lighter grey on "Déjà pris" buttons */
article.ami_blanc.statut-deja-pris .wp-block-button__link{
	background-color:#828587;
}

/* Have smaller text for "see below" link */
.ami_lien{
	font-size:0.75em;
	line-height:0.25em;
	font-weight:normal;
}

/* Reduce spacing between elements inside the button */
.ami_profil p.has-large-font-size{
	margin-bottom:0.5em;
}

/* Contest list */
body.post-type-archive-soumissions a.continue-reading-link{
	display:none;
}

/* Ami list */

/* Hide the "Continue reading" link */
body.post-type-archive-ami_blanc a.continue-reading-link{
	display:none;
}

/* Hide the summary and meta on profiles */
body.post-type-archive-ami_blanc div.entry-summary, body.post-type-archive-ami_blanc div.entry-meta{
	display:none;
}

/* Hide the no comments text */
p.nocomments{
	display:none;
}

.main #comments-title {
	background: black;
	padding: 25px;
	color: white;
	border-radius: 10px;
	font-size: 2em;
}
	/**
/* Stretch comment textfield to full width */
#nep_fake_textarea{
	width:100% !important;
}

/* Post ratings spacing and image size */

.post-ratings{
	margin-top:20px;
}

.post-ratings img, .post-ratings-loading img, .post-ratings-image img{
	width:1.5rem;
	height:auto;
}

/* CSS changes for other Ami Pages */

.single-ami_blanc .wpcf7 #comments .commentlist li:last-child{
	list-style:none;
}

.single-ami_blanc .wpcf7  #comments .wpcf7-list-item{
	position: relative;
	display:block;
	clear: both;
	padding: 1em;
	margin-bottom: 15px;
	border: 1px solid transparent;
	line-height: 1.7;
	border-radius: 5px;
	border-color: #eeeeee;
	background: #828282;
	color: white;
	text-align: right;
}

.single-ami_blanc .wpcf7  #comments .wpcf7-list-item::after{
	content:'';
	display:block;
	width: 0;
	height: 0;
	border-top: 10px solid transparent;
	border-top-color: transparent!important;
	border-bottom: 10px solid transparent;
	border-left: 10px solid #828282 !important;
	border-style:solid;
	position: absolute;
	top: 35%;
	left: 99.8%;
	margin-left: 1px;
	border-color: transparent;
	border-width: 10px;
}

.single-ami_blanc .wpcf7  #comments .wpcf7-list-item-label{
	line-height: 1.7;
	cursor:pointer;
}

.single-ami_blanc .wpcf7  #comments .wpcf7-list-item input{
	display:none;
}

.single-ami_blanc .wpcf7  #comments input[type="text"]{
	max-width:200px;
	background-color: #828282;
	color: #fff;
	border-style:none none solid none;
	border-radius:0px;
	text-align:right;
	padding:0px 0px 5px 0px;
}

.single-ami_blanc .wpcf7  #comments .bubble{
	display:inline-block;
	background: #d0ecf7;
	color: #535151;
	border:1px solid #eeeeee;
	padding:1em;
	line-height: 1.7;
	border-radius: 5px;
	margin-bottom:30px;
}

.single-ami_blanc .wpcf7  #comments .bubble2{
	display:inline-block;
	float:right;
	background: #828282;
	color: #fff;
	border:1px solid #eeeeee;
	padding:1em;
	line-height: 1.7;
	border-radius: 5px;
}

.single-ami_blanc .wpcf7  #comments .wpcf7-submit{
	display:block;
	float:right;
	background: #828282;
	color: #fff;
	border-color: #eeeeee;
	padding:1em;
	line-height: 1.7;
	border-radius: 5px;
	cursor:pointer;
	clear:both;
	margin-bottom:30px;
}


.delay-1s{
   -webkit-animation-delay: 1000ms;
   animation-delay: 1000ms;
}

.delay-2s{
   -webkit-animation-delay: 2000ms;
   animation-delay: 2000ms;
}

.delay-3s{
   -webkit-animation-delay: 3000ms;
   animation-delay: 3000ms;
}

.delay-5s{
   -webkit-animation-delay: 5000ms;
   animation-delay: 5000ms;
}


.animated.delay-7s {
   -webkit-animation-delay: 7000ms;
   animation-delay: 7000ms;
}

.animated.delay-10s {
   -webkit-animation-delay: 10000ms;
   animation-delay: 10000ms;
}

.correspondance_intro {
	font-size: 1.5em;
	text-transform: uppercase;
	line-height: 1.2em;
}

.correspondance_intro strong {
	color: black;
}

#confirm_button .wp-block-button {
	background-color: #00aeef;
	padding: 15px;
	color: white;
	font-size: 1.2em;
	font-weight: bold;
	border-radius: 28px;
	width: 300px;
	margin-bottom: 2.75em;
}

.correspondance_intro{
	margin-bottom: 20px;
}

/*Making comments on Ami pages look more like a chat*/

/* Separate section with disclaimer before displaying the chat */
#pre_comments{
	width: 70%;
	margin: 0 15% 0 auto;
}

#comments {
	width: 70%;
	margin: 0 auto 0 32%;
}

@media screen and (max-width: 710px) {
	#comments {
		width: 100%;
		margin: 0;
	}
}

#comments .help_text {
	font-size: 15px;
	position: absolute;
	right: 28%;
	/*padding-bottom: 100px;*/
	line-height: 20px;
}

li.comment.ami_blanc article {
	display: grid;
	grid-template-columns: 1fr 5fr;
}

li.comment.personne_racisee article {
	display: grid;
	grid-template-columns: 5fr 1fr;
	text-align: right;
}

.comment-meta {
	font-size: .7em;
	line-height: 20px;
}

.personne_racisee .comment-meta {
	float: right;
}

.comment-header {
	width: 100px;
	padding-top: 20px;
}

.ami_blanc .comment-header {
        text-align: left;
}  

.personne_racisee .comment-header {
	text-align: right;
	margin-right: 0;
	margin-left: auto;
	display: inherit;
}

.ami_blanc .comment-meta {
	float: right;
}

.commentlist .comment-date { 
	display: none;
}

li.ami_blanc .comment-body {
	background: #efefef;
	color: #535151;
	margin-top: 20px;
}

li.personne_racisee .comment-body {
	background: #828282;
	color: white;
	text-align: right;
	margin-top: 20px;
}

.personne_racisee .comment-author {
	float: right;
}

.commentlist .ami_blanc .comment-body::before {
	width: 0; 
	height: 0; 
	border-top: 10px solid transparent;
	border-bottom: 10px solid transparent; 
	border-right:10px solid #efefef; 
	position: absolute;
	left: -20px;
	top: 30%;
}

.commentlist .personne_racisee .comment-body::after {
	width: 0;
	height: 0;
	border-top: 10px solid transparent;
	border-bottom: 10px solid transparent;
	border-left: 10px solid #828282;
	position: absolute;
	top: 35%;
	left: 99.8%;
}

.commentlist .comment-body::before, .commentlist .comment-body::after {
    border-top-color: transparent!important;
}

.comment article {
	margin-bottom: 1.5em;
}

.author-name {
	line-height: 1.2em;
}

/*make gravatars square*/

.main .commentlist img.avatar {
	border-radius: 0%;
}

/*hide author name for each comment after a comment made by same author*/

.same_author .comment-author {
	display: none;
}

.same_author .comment-meta-body {
	margin-top: -25px;
}

.same_author .comment-body {
	margin-top: 0px!important;
}

.comment-author {
	display: grid;
}

.main .commentlist img.avatar {
    height: auto;
    width: 80px;
}

.comment-author .author-name {
	font-size: 0.9em;
}

/*Chat bot styling*/

ol.commentlist {
	list-style-type: none;
}

/*Hide default CF7 success message during redirect process*/

.wpcf7 form.sent .wpcf7-response-output {
	display: none !important;
}

/*Quiz layout and colouring*/

body .wq_questionTextCtr h4 {
	font-weight: bold;
	line-height: 1.5em;
	padding: 5px 0px;
	text-align: center;
}

.wq-quiz.wq-skin-flat .wq_singleAnswerCtr {
	background-color: #cfa66f;
}

.wq-quiz.wq-skin-flat .wq_singleAnswerCtr.wq_hasImage {
	background-color: white;
}

.wq-trivia-question-explanation {
	background: #77e6eb;
	color: black!important;
	text-align: justify;
}

.wq-explanation-head {
	font-size: 25px;
	font-weight: bold;
	text-align: center;
	color: black;
}

.wq-explanation-text {
	color: black;
}

.wq_triviaQuestionExplanation .wq-explanation-head-correct, .wq_triviaQuestionExplanation .wq-explanation-head-incorrect {
	color: black;
}

.wq-question-answers .wq-answers .wq_answersWrapper {
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-column-gap: 5px;
}

.wq-quiz.wq-skin-flat .wq_singleAnswerCtr .wq_answerTxtCt {
	font-size: 1em;
	line-height: 1.2em;
}

.wq-quiz.wq-skin-flat .wq_singleAnswerCtr { 
	/*height: 150px;*/
	color: black;
}

.wq-answers .row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	justify-items: center;
	grid-gap: 0px;
	padding: 10px 0px 0px 0px;
}

.col-md-wq-6 {
	width: 100%;
}

.wq_answersWrapper .row::before, .wq_answersWrapper .row::after {
	content: none;
}

.wq-quiz.wq-skin-flat .wq-results {
	text-align: center;
	background-color:  #cfa66f;
	color: black;
}

.wq-results .wq_quizTitle {
	display: none;
}

.wq-results .wq_resultScoreCtr {
	font-size: 3.5em;
}

.wq-result-title {
	font-size: 2em;
	line-height: 1.2em;
	margin-bottom: 10px;
}

/*WP Quiz Share*/
.wq-share {
	display: flex;
	margin: 10px 30% 10px 30%;
}

@media screen and (max-width:1124px) {
	.wq-share {
		margin: 10px 25% 10px 25%;
	}
}

@media screen and (max-width:915px) {
	.wq-share {
		display: block;
	}
}

.wq-share p {
	font-size: 28px !important;
	margin-top: 25px;
	margin-right: 20px;
}

.wq-quiz.wq-skin-flat .wq_shareCtr button, .wq-quiz.wq-skin-flat .wq-results .wq_shareCtr button, .wq-quiz.wq-skin-flat .wq_quizForceShareCtr button, .wq-quiz.wq-skin-flat .wq_questionLogin button, .wq-quiz.wq-skin-flat .wq_retakeQuizBtn, .wq-quiz.wq-skin-flat .wq_quizEmailCtr form button, .wq-quiz.wq-skin-flat .wq_triviaQuestionExplanation {
	margin-top: 30px;
}

.wq_shareCtr button > span, .wq_quizForceShareCtr button > span, .wq_questionLogin button > span {
	display:none;
}

/*Modifications to video archive page to decrease spacing*/

.post-type-archive-soumissions.anima-magazine-three #content-masonry article.hentry {
	width: 30.333333333%;
}

.post-type-archive-soumissions #content-masonry article.hentry {
	margin-right: 1.5%;
	margin-bottom: 3.5%;
	margin-left: 1.5%;
}

.post-type-archive-soumissions .entry-utility {
	margin-bottom: 0px;
}

.post-type-archive-soumissions .post-ratings {
	margin-top: 0px;
}

/*Individual soumission page all videos button*/

.video-title {
	display: flex;
	flex-wrap: wrap;
}

.video-title .wp-block-button .wp-block-button__link {
	font-size: 1.2em;
}

.video-title .wp-block-buttons.alignright {
	margin-left: auto;
}

@media screen and (max-width:660px) {
	.video-title .wp-block-buttons.alignright {
		float: none;
		margin: 10px auto;
	}
}

/* Additional media queries to show/hide based on screen size */

.content-desktop{
	display:inherit !important;
}

.content-mobile{
	display:none !important;
}

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

	.content-desktop{
		display:none !important;
	}

	.content-mobile{
		display:inherit !important;
	}

}