﻿/* IVQ Anchor */
#ivq-anchor {
	position: fixed;
	width: 48px;
	height: 48px;
	right: 16px;
	bottom: 72px;
	place-items: center;
	border-radius: 50%;
    cursor: pointer;
	background-color: #0c8fdc;
    box-shadow: 0px 0px 2px 1px #FFFFFF;
	
    display: grid;
    z-index: 99999;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transition: none;
}
#ivq-anchor.is-ready {
    transition: opacity 0.5s ease,
                visibility 0.5s ease,
                z-index 0.5s ease,
                background-color 0.33s ease,
                box-shadow 0.33s ease;
}
#ivq-anchor.is-hidden {
    z-index: -1;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
#ivq-anchor:hover {
    background-color: #30a0e1;
    box-shadow: 0px 0px 6px 1px #FFFFFF;
}

#ivq-anchor-inner {
	display: block;
}

#ivq-anchor .fas {
	color: #ffffff;
	font-size: 32px;
}

.elementor-9 .elementor-element.elementor-element-d02d454 {
    z-index: 9999 !important;
    right: 16px !important;
}
@media (max-width: 767px) {
    .elementor-9 .elementor-element.elementor-element-d02d454 {
        top: 93% !important;
    }
}
a.elementor-button[href="#top-anchor"] {
	width: 48px !important;
    height: 48px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* IVQ Overlay */
#ivq-overlay {
    position: fixed;
    bottom: 0px;
    right: 0px;
    background: black;
    align-items: center;
    justify-content: center;
    overflow: hidden;

    display: flex;
    z-index: -1;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition: none;
}
#ivq-overlay.is-ready {
    transition: opacity 0.5s ease,
                visibility 0.5s ease,
                z-index 0.5s ease;
}
#ivq-overlay.is-visible {
    z-index: 99999;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

#ivq-overlay-content {
    position: relative;
    overflow: hidden;
}

#main-container {
    display: flex;
    overflow: hidden;
    width: 360px;
}
#main-container:has(#f-container.scrollable) {
    width: 375px;
}


/* Inner */
#tools-container {
    max-width: 100%;
    margin: 0 auto;

    display: flex;
    justify-content: space-between;
}

.my-container {
    max-width: 100%;
    margin: 0 auto;

    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: end;
    gap: 8px;
    text-align: center;
    opacity: 0;
}
.my-container.visible {
    opacity: 1;
    transition: opacity 0.5s ease;
    pointer-events: all !important;
    display: flex !important;
}

/* q-container */
#q-container {
    aspect-ratio: 9 / 16;
    width: 100%;

    pointer-events: none;
    background: #000000;
    padding: 16px 24px 16px 24px;

    background-image: url("images/bgQ.png");
    background-position: center top;
    background-repeat: no-repeat;
    background-size: auto 100%;
}

#q-title {
    white-space: pre-line;

    font-size: 32px;
    color: #ffffff;
    text-shadow: #000000 0px 0 4px;

    display: inline-block !important;
    user-select: text !important;
}

#q-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

#q-actions .my-btn {
    width: 100%;
    min-width: 100%;
}

/* e-container */
#e-container {
    aspect-ratio: 9 / 16;
    width: 100%;

    pointer-events: none;
    background: #000000;
    padding: 16px 24px 16px 24px;

    background-image: url("images/bgE.png");
    background-position: center top;
    background-repeat: no-repeat;
    background-size: auto 100%;
}

#e-title {
    white-space: pre-line;

    font-size: 32px;
    color: #ffffff;
    text-shadow: #000000 0px 0 4px;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    flex-wrap: wrap;
}

#e-title .e-title-half {
    color: magenta;
    font-size: 50%;
    margin-left: auto;
    text-align: right;
}

#e-form {
    display: flex;
    flex-direction: column;
    gap: 16px;

    width: 100%;
    padding: 0px;
}

.e-row {
    display: flex;
    flex-direction: row;
    gap: 16px;
}

#ivq-overlay .e-row input {
    width: 100%;
    padding: 8px 32px 8px 10px;

    background-repeat: no-repeat;
    background-position: right 4px center;
    background-size: 24px;

    border-radius: 0.375rem !important;
}

#ivq-overlay .e-row input::placeholder {
  color: #cecece !important;
}
#ivq-overlay .e-row input::-moz-placeholder {
  color: #cecece !important;
}
#ivq-overlay .e-row input::-ms-input-placeholder {
  color: #cecece !important;
}
#ivq-overlay .e-row input:-ms-input-placeholder {
  color: #cecece !important;
}

#ivq-overlay .e-row input.my-valid {
    box-shadow: #00ff007f 0 0 0 3px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 640'%3E%3Cpath fill='%2300c000' d='M320 576C178.6 576 64 461.4 64 320C64 178.6 178.6 64 320 64C461.4 64 576 178.6 576 320C576 461.4 461.4 576 320 576zM320 112C205.1 112 112 205.1 112 320C112 434.9 205.1 528 320 528C434.9 528 528 434.9 528 320C528 205.1 434.9 112 320 112zM390.7 233.9C398.5 223.2 413.5 220.8 424.2 228.6C434.9 236.4 437.3 251.4 429.5 262.1L307.4 430.1C303.3 435.8 296.9 439.4 289.9 439.9C282.9 440.4 276 437.9 271.1 433L215.2 377.1C205.8 367.7 205.8 352.5 215.2 343.2C224.6 333.9 239.8 333.8 249.1 343.2L285.1 379.2L390.7 234z'/%3E%3C/svg%3E");    
}
#ivq-overlay .e-row input.my-invalid {
    box-shadow: #ff00007f 0 0 0 3px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 640'%3E%3Cpath fill='%23c00000' d='M320 112C434.9 112 528 205.1 528 320C528 434.9 434.9 528 320 528C205.1 528 112 434.9 112 320C112 205.1 205.1 112 320 112zM320 576C461.4 576 576 461.4 576 320C576 178.6 461.4 64 320 64C178.6 64 64 178.6 64 320C64 461.4 178.6 576 320 576zM231 231C221.6 240.4 221.6 255.6 231 264.9L286 319.9L231 374.9C221.6 384.3 221.6 399.5 231 408.8C240.4 418.1 255.6 418.2 264.9 408.8L319.9 353.8L374.9 408.8C384.3 418.2 399.5 418.2 408.8 408.8C418.1 399.4 418.2 384.2 408.8 374.9L353.8 319.9L408.8 264.9C418.2 255.5 418.2 240.3 408.8 231C399.4 221.7 384.2 221.6 374.9 231L319.9 286L264.9 231C255.5 221.6 240.3 221.6 231 231z'/%3E%3C/svg%3E");    
}

#e-actions {
    display: flex;
    gap: 16px;
}
#e-actions, #e-actions .my-btn {
    width: 100%;
    min-width: 100%;
}

#e-alerts {
    display: flex;
    flex-direction: column;
    gap: 8px;

    width: 100%;
    padding: 6px 0px 0px 0px;
}

#e-alerts:empty {
    display: none;
}

#e-alerts .e-alert {
    width: 100%;
    text-align: left;
    color: #c00000;
    background-color: #f8d7da;
    border-left: .25rem solid #f1aeb5;
    padding: 4px 8px 4px 8px;
}

/* f-container */
#f-container {
    aspect-ratio: 9 / 16;
    width: 100%;

    pointer-events: none;
    background: #000000;
    padding: 16px 24px 16px 24px;

    background-image: url("images/bgE.png");
    background-position: center top;
    background-repeat: no-repeat;
    background-size: auto 100%;

    background-color: rgba(0, 0, 0, 0.75);
    background-blend-mode: darken; /* Or multiply */

    justify-content: flex-start;
    overflow-y: auto;
    direction: rtl;
}
#f-container > * {
  direction: ltr; 
}

#f-title {
    white-space: pre-line;

    font-size: 32px;
    color: #ffffff;
    text-shadow: #000000 0px 0 4px;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    flex-wrap: wrap;
}

#f-title .f-title-half {
    color: magenta;
    font-size: 50%;
    margin-left: auto;
    text-align: right;
}

#f-form {
    display: flex;
    flex-direction: column;
    gap: 16px;

    width: 100%;
    padding: 0px;
}

.f-row {
    display: flex;
    flex-direction: column;
    text-align: left;
    gap: 0px;
}

.f-row .e-row {
    margin-top: 8px;
}
.f-control {
    color: #0a3622;
    background-color: #f8f9fa;
    border: 1px solid #a3cfbb;
    border-radius: 8px 8px 8px 8px;
    padding: 0px;
}

.f-rowU {
    display: block;
    color: #0a3622;
    background-color: #d1e7dd;
    border: 1px solid #a3cfbb;
    border-radius: 8px 8px 0px 0px;
    padding: 4px;
}
.f-rowU .f-rowU-num {
    color: #0a3622;
    background-color: #f8f9fa;
    border: 1px solid #a3cfbb;
    border-radius: 4px 4px 4px 4px;
    padding: 0px 4px;
    margin-right: 4px;
}

.f-rowD {
    /*display: flex;*/
    color: #0a3622;
    background-color: #f8f9fa;
    border: 1px solid #a3cfbb;
    border-radius: 0px 0px 8px 8px;
    padding: 4px;
}

#f-container #f-form .f-label {
    color: #0a3622;
    background-color: #e8f3ee;
    border: 0px solid #a3cfbb;
    border-bottom: 1px solid #a3cfbb;
    border-radius: 8px 8px 0px 0px;
    padding: 4px;
    font-size: 75%;
}
#f-container #f-form .f-input {
    border: 0px solid #a3cfbb;
    border-radius: 0px 0px 8px 8px;
    padding: 4px;
}

#ivq-overlay .f-row input {
    width: 100%;
    padding: 8px 32px 8px 10px;

    background-repeat: no-repeat;
    background-position: right 4px center;
    background-size: 24px;

    border-radius: 0.375rem !important;
}

#ivq-overlay .f-row input.my-valid {
    box-shadow: #00ff007f 0 0 0 3px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 640'%3E%3Cpath fill='%2300c000' d='M320 576C178.6 576 64 461.4 64 320C64 178.6 178.6 64 320 64C461.4 64 576 178.6 576 320C576 461.4 461.4 576 320 576zM320 112C205.1 112 112 205.1 112 320C112 434.9 205.1 528 320 528C434.9 528 528 434.9 528 320C528 205.1 434.9 112 320 112zM390.7 233.9C398.5 223.2 413.5 220.8 424.2 228.6C434.9 236.4 437.3 251.4 429.5 262.1L307.4 430.1C303.3 435.8 296.9 439.4 289.9 439.9C282.9 440.4 276 437.9 271.1 433L215.2 377.1C205.8 367.7 205.8 352.5 215.2 343.2C224.6 333.9 239.8 333.8 249.1 343.2L285.1 379.2L390.7 234z'/%3E%3C/svg%3E");    
}
#ivq-overlay .f-row input.my-invalid {
    box-shadow: #ff00007f 0 0 0 3px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 640'%3E%3Cpath fill='%23c00000' d='M320 112C434.9 112 528 205.1 528 320C528 434.9 434.9 528 320 528C205.1 528 112 434.9 112 320C112 205.1 205.1 112 320 112zM320 576C461.4 576 576 461.4 576 320C576 178.6 461.4 64 320 64C178.6 64 64 178.6 64 320C64 461.4 178.6 576 320 576zM231 231C221.6 240.4 221.6 255.6 231 264.9L286 319.9L231 374.9C221.6 384.3 221.6 399.5 231 408.8C240.4 418.1 255.6 418.2 264.9 408.8L319.9 353.8L374.9 408.8C384.3 418.2 399.5 418.2 408.8 408.8C418.1 399.4 418.2 384.2 408.8 374.9L353.8 319.9L408.8 264.9C418.2 255.5 418.2 240.3 408.8 231C399.4 221.7 384.2 221.6 374.9 231L319.9 286L264.9 231C255.5 221.6 240.3 221.6 231 231z'/%3E%3C/svg%3E");    
}

#f-actions {
    display: flex;
    gap: 16px;
}
#f-actions, #f-actions .my-btn {
    width: 100%;
    min-width: 100%;
}

#f-alerts {
    display: flex;
    flex-direction: column;
    gap: 8px;

    width: 100%;
    padding: 6px 0px 0px 0px;
}

#f-alerts:empty {
    display: none;
}

#f-alerts .f-alert {
    width: 100%;
    text-align: left;
    color: #c00000;
    background-color: #f8d7da;
    border-left: .25rem solid #f1aeb5;
    padding: 4px 8px 4px 8px;
}

/* v-container */
#v-container {
    aspect-ratio: 9 / 16;
    width: 100%;

    position: relative;
    overflow: hidden;
    background: #000000;
}

#v-container iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.player-container {
    opacity: 0;
}

.my-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 999;
}

.my-overlay.visible {
    opacity: 1;
    transition: opacity 0.5s ease;
    pointer-events: all !important;
}

#paused-overlay div {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;    

    opacity: 1;
    font-size: 32px;
    color: #ffffff;
    text-shadow: #000000 0px 0 4px;
    pointer-events: none;
}
#paused-overlay i {
    font-size: 64px;
}

.no-select {
    user-select: none;
}

#ivq-overlay .my-btn {
    background-image: linear-gradient(#808080, #808080);
    border: 1px solid #cacaca;

    border-radius: 4px;
    box-sizing: border-box;
    color: #ffffff;
    cursor: pointer;
    direction: ltr;
    display: inline-block;
    font-family: "SF Pro Text","SF Pro Icons","AOS Icons","Helvetica Neue",Helvetica,Arial,sans-serif;
    font-size: 17px;
    font-weight: 400;
    letter-spacing: -.022em;
    line-height: 1.47059;
    min-width: 30px;
    overflow: visible;
    padding: 8px 16px;
    text-align: center;
    vertical-align: baseline;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    white-space: wrap;
    min-width: 128px;
}

#ivq-overlay .my-btn:disabled {
    cursor: not-allowed;
    opacity: .3;
}

#ivq-overlay .my-btn:not([disabled]):hover {
    background-image: linear-gradient(#808080, #808080);
    border: 1px solid #cacaca;
    text-decoration: none;
}

#ivq-overlay .my-btn:not([disabled]):active {
    background-image: linear-gradient(#404040, #404040);
    border: 1px solid #cacaca;
    outline: none;
}

#ivq-overlay .my-btn:not([disabled]):focus {
    outline: none;
}

#ivq-overlay .my-overlay-btn {
    position: absolute;
    z-index: 99999;

    cursor: pointer;
    background: transparent;
    border: none;
    outline: none;
    padding: 0;
}
#ivq-overlay .my-overlay-btn:disabled {
    cursor: not-allowed;
    opacity: .3;
}
#ivq-overlay .my-overlay-btn:not([disabled]) {
    transform: scale(1.0, 1.0);
    transition: transform 0.33s ease;
}
#ivq-overlay .my-overlay-btn:not([disabled]):hover {
    transform: scale(1.25, 1.25);
}

#ivq-overlay .my-overlay-btn i {
    color: white;
    width:auto;
    /*-webkit-text-stroke: 1px #0000007e;*/
}

#btn-close {
    right: 5px;
    top: 5px;
}
#btn-back {
    left: 5px;
    top: 50%;
}
body:has(#f-container.visible) #btn-back {
    left: 20px;
}
#btn-skip {
    right: 5px;
    top: 50%;
}
body:has(#f-container.visible) #btn-skip {
    display: none;
}

@media (max-width: 782px) {
    #main-container {
        width: 100vw;
        max-width: 100%;
        max-height: 100vh;
        height: auto;
    }

    #v-container {
        width: 100vw;
    }
}