/*
Theme Name: Impulso Da Vinci
Theme URI: http://madsparrow.us/
Author: Satelier Diego
Description: Custom changes
Version: 1.2
License: GNU General Public License v2 or later
Template: most
*/

/* Add your own modification from here
-------------------------------------------------------------- */

/* TOTAL POLL
-------------------------------------------------------------- */
#totalpoll.totalpoll-wrapper .totalpoll-question-choices-item-content-container { border-radius: 24pt } 
#totalpoll.totalpoll-wrapper .totalpoll-question-choices-item-control,
#totalpoll.totalpoll-wrapper .totalpoll-question-choices-item-container{ 
	background: transparent!important; 
	border-width: 0!important
}
#totalpoll.totalpoll-wrapper .totalpoll-question-choices-item-content-container,
#totalpoll.totalpoll-wrapper .totalpoll-question-choices-item-content{ 
	padding: 0!important;
	border: 0px!important
}
#totalpoll.totalpoll-wrapper .totalpoll-question-choices-item-content:after {
	content: '';
	background-color: rgba(0, 0, 0, 0.65);
}
#totalpoll.totalpoll-wrapper .totalpoll-question-choices-item-label {
	background: transparent!important;
	padding-top: 0.95em!important;
}
#totalpoll.totalpoll-wrapper .totalpoll-question-choices-item-label span {
	font-size: 16px!important;
	text-transform: uppercase;
	color: var(--color-contrast-higher)
}
#totalpoll.totalpoll-wrapper .totalpoll-modal-open:after { 
	background-color: rgba(0, 0, 0, 0.4)!important;
	transition: all 1s;
}
#totalpoll.totalpoll-wrapper .totalpoll-question-choices-item-content-container::after { background-color: rgba(0, 0, 0, 0.15)!important }
#totalpoll.totalpoll-wrapper .totalpoll-question-choices-item-label,
#totalpoll.totalpoll-wrapper label {
	user-select: none;
}

/* fix voting icon */
#totalpoll.totalpoll-wrapper .totalpoll-question-choices-item-control { flex-direction: row-reverse!important }
#totalpoll.totalpoll-wrapper .totalpoll-question-choices-item-selector { padding-right: .75em!important }
#totalpoll.totalpoll-wrapper .totalpoll-question-choices-item-selector-box { 
	position: relative;
	background: none!important;
	border: 2px solid #e4e4e4!important;
}
#totalpoll.totalpoll-wrapper .totalpoll-question-choices-item-selector-box #totalpoll-check-icon { display: none!important }
#totalpoll.totalpoll-wrapper .totalpoll-question-choices-item-selector-box {
	transition-duration: 0.1s!important;
	width: 1.8em!important;
	height: 1.8em!important;
}
#totalpoll.totalpoll-wrapper .totalpoll-question-choices-item-checked .totalpoll-question-choices-item-selector-box {
	border-color: #4CAF50!important;
    fill: #4CAF50!important;
}

/* fix */
.totalpoll-question-choices-item-content a img {
	pointer-events: none;
}

/* fix weird shift */
#totalpoll.totalpoll-wrapper .totalpoll-question-choices-item-content-container.has-thumbnail:hover { margin: 0!important }
/* change animation on hover */
#totalpoll.totalpoll-wrapper .totalpoll-question-choices-item-content-container:hover .totalpoll-question-choices-item-content {
	transform: scale(1)!important;
}
#totalpoll.totalpoll-wrapper .totalpoll-question-choices-item-content {
	transition: all .3s!important;
}
input[type="radio"]:checked + .totalpoll-question-choices-item {
    background-color: #f0f8ff;
    border-color: #0088cc;
}
/* Already voted message (results), hide to not logged in */
.voted-message { display: none }
.logged-in .voted-message { display: block }

/* TOTALPOLL RESULTS 
#totalpoll.totalpoll-wrapper.is-screen-results .totalpoll-question-choices-item-votes { display: none!important }
#totalpoll.totalpoll-wrapper.is-screen-results .totalpoll-question-choices-item-content { position: relative }
#totalpoll.totalpoll-wrapper.is-screen-results .totalpoll-question-choices-item-content::after,
#totalpoll.totalpoll-wrapper.is-screen-results .totalpoll-question-choices-item-content::before {
	content: '';
	pointer-events: none;
	position: absolute!important;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	border-radius: 24px;
	background-repeat: no-repeat;
	background-position: center;
}
#totalpoll.totalpoll-wrapper.is-screen-results .totalpoll-question-choices-item-content::after { 
	opacity: 0;
	background-color: transparent!important;
	transition: opacity 1s;
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3e%3cpath fill='none' d='M0 0h24v24H0V0z'/%3e%3cpath fill='%23ffffff' d='M15.5 14h-.79l-.28-.27c1.2-1.4 1.82-3.31 1.48-5.34-.47-2.78-2.79-5-5.59-5.34-4.23-.52-7.78 3.04-7.27 7.27.34 2.8 2.56 5.12 5.34 5.59 2.03.34 3.94-.28 5.34-1.48l.27.28v.79l4.26 4.25c.41.41 1.07.41 1.48 0l.01-.01c.41-.41.41-1.07 0-1.48L15.5 14zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14zm0-7c-.28 0-.5.22-.5.5V9H7.5c-.28 0-.5.22-.5.5s.22.5.5.5H9v1.5c0 .28.22.5.5.5s.5-.22.5-.5V10h1.5c.28 0 .5-.22.5-.5s-.22-.5-.5-.5H10V7.5c0-.28-.22-.5-.5-.5z'/%3e%3c/svg%3e");
}
#totalpoll.totalpoll-wrapper.is-screen-results .totalpoll-question-choices-item-content::before { background-color: #0000002B; z-index: 2 }
#totalpoll.totalpoll-wrapper.is-screen-results .totalpoll-question-choices-item-content:hover::after { 
	z-index: 9;
	opacity: 1!important;
	background-size: 36px;
}

/* text position
#totalpoll.totalpoll-wrapper.is-screen-results .totalpoll-question-choices-item-container { 
	position: relative;
	border-radius: 32px;
    overflow: hidden;
}
#totalpoll.totalpoll-wrapper.is-screen-results .totalpoll-question-choices-item-label { 
	pointer-events: none;
	background: linear-gradient(0deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0) 100%)!important;
	z-index: 3;
	position: absolute!important;
	padding: 40px!important;
	opacity: 0;
	bottom: 0;
	left: 0;
	right: 0;
	transition: all .3s!important
}
#totalpoll.totalpoll-wrapper.is-screen-results .totalpoll-question-choices-item-label span {
	color: rgb(255, 250, 250)!important;
	font-size: 18px!important;
	font-weight: 800!important;
}
#totalpoll.totalpoll-wrapper.is-screen-results .totalpoll-question-choices-item-container:hover .totalpoll-question-choices-item-label {
	opacity: 1;
}
/* hover animation
#totalpoll.totalpoll-wrapper.is-screen-results .totalpoll-question-choices-item-container img {
	will-change: transform, filter;
    transition: all .6s var(--ease-out);
}
#totalpoll.totalpoll-wrapper.is-screen-results .totalpoll-question-choices-item-container:hover img {
	transform: scale(1.08);
	animation: hoverfilter .6s var(--ease-out);
}
*/

#totalpoll.totalpoll-wrapper.is-screen-results .totalpoll-question-choices-item-votes {	display: none!important; }

.modalidad-online,
.modalidad-presencial {
	height: 20px;
	width: 26px;
	margin-right: 14px;
	display: inline-block;
	background-repeat: no-repeat;
	background-size: contain
}
.modalidad-online { background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-satellite-dish"><path d="M4 10a7.31 7.31 0 0 0 10 10Z"/><path d="m9 15 3-3"/><path d="M17 13a6 6 0 0 0-6-6"/><path d="M21 13A10 10 0 0 0 11 3"/></svg>')}
.modalidad-presencial { background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-school"><path d="M14 22v-4a2 2 0 1 0-4 0v4"/><path d="m18 10 4 2v8a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-8l4-2"/><path d="M18 5v17"/><path d="m4 6 8-4 8 4"/><path d="M6 5v17"/><circle cx="12" cy="9" r="2"/></svg>')}

/* dont display default modal */
.totalpoll-modal,
.totalpoll-is-visible{ display: none!important }
.sl-wrapper .sl-navigation button,
.sl-wrapper .sl-close { color: #fff }
html { overflow: auto!important }

/* glightbox captions */
.glightbox-clean .gslide-description { background: transparent!important; }
.glightbox-clean .gslide-description .gdesc-inner { padding: 10px 0; }
.glightbox-clean .gslide-description .gdesc-inner .gslide-title { color: #ffffff }

/* hide login for logged in user */
.logged-in #login-section { display: none }

/* hide error message (login) */
.totalpoll-message.totalpoll-message-error { display: none!important }

/* hide login text to logged in users */
.logged-in .google-login-wrapper { display: none }

/* google button */
.nsl-container .nsl-button.nsl-button-default.nsl-button-google {
    border-radius: 52px;
    padding: 10px 20px;
}

/* gracias */
#totalpoll p {
    color: var(--color-contrast-higher)!important;
    font-size: 24px!important;
    font-weight: 600!important;
    text-transform: uppercase!important;
    text-align: center!important;
}

.portfolios .media-wrapper:before {
	content: 'CERRADO';
	position: absolute;
	display: block;
	right: -60px;
	top: 30px;
	width: 200px;
	padding: 5px 10px;
	background-color: #7e22ce;
	color: #fff;
	font-size: large;
	font-weight: bolder;
	letter-spacing: 2px;
	text-transform: uppercase;
	text-align: center;
	transform: rotate(45deg);
	z-index: 9;
	box-shadow: 0px 12px 13px -10px rgba(0, 0, 0, 0.26);
}
/* ACTIVE PORFOLIO */
.portfolios.portfolios_categories-votando .media-wrapper:before {
	content: 'VOTÁ';
	background-color: var(--color-primary);
}

/* PORFOLIO GRID */
/* shadow in text when the porfolio is type overlay */
.portfolio_wrap .overlay .ms-p-content {
	background: linear-gradient(0deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0) 100%);
	border-bottom-left-radius: 32px;
	border-bottom-right-radius: 32px;
}
