@import url('https://fonts.googleapis.com/css2?family=Comic+Neue:wght@400&display=swap');

:root {
    --top-title-modal: 20px;
    --marginBottom-modal: 20px;
    --top-modal: 120px;
    --height-modal: 1200px;
}

html {
    width: 100%;
    height: 100%;
}

body {
    overflow: hidden;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    font-family: 'Montserrat', sans-serif;
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
    height: 100vh;
    background-color: black;
}

.containerLogoGaia {
    position: absolute;
    top: 1250px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

/*
.containerFooterLogo{
    display: flex;
    align-items: center;
    justify-content: center;
    position:absolute;
    bottom:50px;
}

.containerFooterLogo > img{
width:px;
}

*/

/* MODAL PLAY AUDIO */
#_smartpage_activate_audio,
#_smartpage_shootphoto {
    display: none;
    background-color: rgb(0, 0, 0, 0.4);
    z-index: 1000000;
}

#_smartpage_activate_audio .modal-title {
    font-size: 30px;
}

#_smartpage_activate_audio .modal-header,
#_smartpage_activate_audio .modal-footer {
    border-top: 0 !important;
    border-bottom: 0 !important;
}

#_smartpage_activate_audio .modal-content {
    height: 350px !important;
    width: 500px !important;
}

#_smartpage_shootphoto .modal-header {
    border-bottom: 0 !important;
}

#_smartpage_shootphoto .modal-dialog {
    top: 589px;
    left: 197px;
    position: absolute;
}


#_smartpage_shootphoto .modal-content {
    width: 687px;
    height: 801px;
    border-radius: 24px;
}

.modalShootPhoto_content {
    margin-top: 40px;
}

.modalShootPhoto_content h1 {
    color: #9DC448;
    font-size: 30px;
    font-weight: 900;
}

.modalShootPhoto_content p {
    color: #666666;
    font-size: 20px;
}

.closemodalBox {
    margin-top: 38px;
    margin-bottom: 49px;
}

.closemodalBox button {
    background: #5A5A5A;
    box-shadow: 0px 3px 6px #00000029;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 0;
    padding: 0;
}

.closemodalBox .iconclose {
    width: 50%;
    height: 50%;
}

.closemodalBox button span {
    font-weight: 900;
    font-size: 37px;
    color: #fff;
}


/* PRELOADER */

.preloader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .4s ease-in-out;
    z-index: 99999;
}

.fade-out-animation {
    opacity: 0;
    visibility: hidden;
}

.spinner {
    width: 48px;
    height: 48px;
    color: #9DC448 !important;
}


/* logo */
#logo {
    width: 100%;
    height: 45px;
    position: absolute;
    /* top: 24px; */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.logoGaia {
    height: auto;
    position: relative;
    top: 230px;
    object-fit: cover;
    width: 900px;
}

.logoReload {
    width: 30px;
    height: 30px;
    left: 10px;
    position: absolute;
}

/*
#logo img {
    height: 90.48px;
    object-fit: cover;
    width: 225px;
}
*/

.grid {
    width: 100%;
    height: 100%;
    position: relative;
}

/* CSS per background dinamici */
.image_background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background-color: black;
    /* Fallback nero */
}

.image_blur {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(4px);
    -webkit-filter: blur(4px);
    transition: opacity 0.5s ease-in-out;
    /* Effetto di transizione fluido */
}

.image_blur.current {
    opacity: 1;
    /* L'immagine visibile */
    z-index: 1;
}

.image_blur.next {
    opacity: 0;
    /* L'immagine in preparazione */
    z-index: 2;
}

.smartpage_modal_position {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
}

.smartpage_hide {
    display: none;
}

/*CSS FOR BOT MESSAGE*/

a {
    color: #EE932C !important;
}

.card {
    background-color: transparent;
    border: none;
    outline: none;
}

#bot_message {
    margin-right: 15px;
}

._smartpage_bot_message {
    color: #FFFFFF;
    background-color: #3771A3 !important;
    width: 459px !important;
    height: auto !important;
    font-size: 24px;
    line-height: 35px;
    box-shadow: 0px 3px 6px #00000029;
    border-radius: 0 30px 30px;
    transition: opacity 2s;
    -webkit-transition: opacity 2s;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    width: 600px !important;
}

.iframe-responsive {
    width: 100%;
    height: 400px;
    border-radius: 30px;
}

.remove_opacity {
    opacity: 1;
}


/*----------------------------------------------------------------------------
  |                 Query per display  Verticale                               |
  ----------------------------------------------------------------------------*/

@media (min-width: 768.01px) and (orientation: portrait) {
    .w-50 {
        width: 75% !important;
    }
}


._smartpage_controller_on {
    width: 40%;
    height: 10%;
    /* min-width: 310px; */
    /* max-width: 320px; */
    border-radius: 40px;
    position: absolute;
    bottom: 35%;
    z-index: 5;
    left: 50%;
    transform: translate(-50%, 0);
    display: initial;
    background: #00000040 0% 0% no-repeat padding-box;
    box-shadow: 0px 3px 63px #00000029;
    justify-items: center;
}

/* Container per microfono e frecce */
#arrow-and-mic {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

._smartpage_controller_on_two {
    width: 85%;
    height: 10%;
    /* min-height: 40px;
    min-width: 320px;
    max-width: 770px; */
    /* padding: 15px 25px; */
    border-radius: 40px;
    position: absolute;
    bottom: 20%;
    z-index: 2;
    left: 50%;
    transform: translate(-50%, 0);
    background: #00000040 0% 0% no-repeat padding-box;
    box-shadow: 0px 3px 63px #00000029;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.subtitlesGaia {
    justify-content: flex-end;
}

.subtitlesGaia-p {
    color: #ddd;
    font-size: 30px;
    text-align: center;
    margin-bottom: 0px;
    right: -100%;
    position: relative;
    -webkit-animation: slide 6s forwards !important;
    animation: slide 6s forwards !important;
    text-wrap: nowrap;
}

._smartpage_controller_on_two p {
    color: #ddd;
    font-size: 30px;
    text-align: center;
    margin-bottom: 0px;
    right: -100%;
    position: relative;
    -webkit-animation: slide 3s forwards;
    animation: slide 3s forwards;
    text-wrap: nowrap;
}

@-webkit-keyframes slide {
    100% {
        right: 0;
    }
}

@keyframes slide {
    100% {
        right: 0;
    }
}


#messageSuggestionGaiaContent {
    color: #ddd;
    font-size: 75%;
    text-align: center;
    width: 90%;
}

#messageSuggestionGaiaContent sub {
    bottom: 0;
    color: #ddd;
    font-size: 30px;
}

#wave {
    width: 100%;
    height: 100%;
    fill: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
}

#Line_1 {
    animation: pulse 1s infinite;
    animation-delay: 0.15s;
}

#Line_2 {
    animation: pulse 1s infinite;
    animation-delay: 0.3s;
}

#Line_3 {
    animation: pulse 1s infinite;
    animation-delay: 0.45s;
}

#Line_4 {
    animation: pulse 1s infinite;
    animation-delay: 0.6s;
}

#Line_5 {
    animation: pulse 1s infinite;
    animation-delay: 0.75s;
}

#Line_6 {
    animation: pulse 1s infinite;
    animation-delay: 0.9s;
}

#Line_7 {
    animation: pulse 1s infinite;
    animation-delay: 1.05s;
}

#Line_8 {
    animation: pulse 1s infinite;
    animation-delay: 1.2s;
}

#Line_9 {
    animation: pulse 1s infinite;
    animation-delay: 1.35s;
}

@keyframes pulse {
    0% {
        transform: scaleY(1);
        transform-origin: 50% 50%;
    }

    50% {
        transform: scaleY(0.7);
        transform-origin: 50% 50%;
    }

    100% {
        transform: scaleY(1);
        transform-origin: 50% 50%;
    }
}

._smartpage_microphone_position {
    height: 80px;
    width: 80px;
    position: relative;
    bottom: 0;
    cursor: pointer;
    top: 0px;
    left: 50%;
    transform: translate(-50%, 0);
}



.loading_microphone {
    width: 160px;
    height: 160px;
    bottom: -42px;
    left: 71% !important;
    top: -109px;
}

/* css per modale audio */
.btn-modal {
    background-color: #9DC448 !important;
    color: #fff !important;
    border: none;
    width: 146px;
    height: 146px;
    border-radius: 100%;
    box-shadow: 0px 3px 6px #00000029;
}

.btn-modal>img {
    left: 5px;
    position: relative;
}

.btn-third {
    border: 1px solid #333 !important;
    background-color: #ffffff !important;
    color: #333 !important;
}

/* Stilizzo l'avatar */
#render_avatar {
    /*  top: 130px; */
    top: 5%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    height: auto;
    float: left;
    position: absolute !important;
    pointer-events: none;
    opacity: 0;
    filter: brightness(0.3);
    transform: scale(0.95);
    transition: opacity 5s ease-out, filter 5s ease-out, transform 5s ease-out;
}

#render_avatar.avatar-visible {
    opacity: 1;
    filter: blur(0px) brightness(1);
    transform: scale(1);
}

/* shoot container */
.shootContainer {
    right: -100%;
    height: 100%;
    width: 100% !important;
    position: fixed;
    z-index: 99999;
    background: linear-gradient(0deg, rgb(0 0 0 / 50%), rgb(0 0 0 / 50%));
    /*   background: linear-gradient(0deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)), url(../img/background.png); */
    backdrop-filter: blur(25px);
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    max-width: 100% !important;
}

.shootContainerCompleted {
    right: -100%;
    height: 100%;
    width: 100% !important;
    transition: forward .1s ease;
    position: fixed;
    z-index: 99999;
    background: linear-gradient(0deg, rgb(0 0 0 / 50%), rgb(0 0 0 / 50%));
    /*   background: linear-gradient(0deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)), url(../img/background.png); */
    backdrop-filter: blur(25px);
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    max-width: 100% !important;
}

.shootPhoto {
    background: #00000040 0% 0% no-repeat padding-box;
    box-shadow: 0px 3px 63px #00000029;
    position: absolute;
    height: 150px;
    width: 89px;
    border-radius: 50px 0px 0px 50px;
    transform: translateY(20%);
    top: 258px;
    right: 0;
}

.shootPhoto_exit {
    background: #00000040 0% 0% no-repeat padding-box;
    box-shadow: 0px 3px 63px #00000029;
    position: absolute;
    height: 120px;
    width: 120px;
    border-radius: 60px;
    transform: translateX(480px);
    top: 170px;
    z-index: 99999;
}

.shootPhoto button {
    width: 25px;
    height: 25px;
    position: relative;
    background: transparent;
    outline: none;
    border: none;
    padding: 54px 10px 54px 27px;
    margin: 0;
}

.shootPhoto_exit button {
    width: 100%;
    height: 100%;
    position: relative;
    background: transparent;
    outline: none;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.shootPhoto .cameraIcon {
    width: 47px;
    height: 42px;
}

.contaierPhotoboot {
    position: absolute;
    width: 870px;
    height: 1160px;
    margin-left: 40px;
    left: 60px;
    top: 340px;
    background: #FFFFFF 0% 0% no-repeat padding-box;
    box-shadow: 4px 8px 8px 0px #00000029;
    border-radius: 25px;
}

.containerPhotobooth__up {
    top: 340px !important;
}

.contaierPhotobootCompletedShoot {
    left: 30px !important;
    top: 430px !important;
}

.shootContainer .footer,
.shootContainerCompleted .footer {
    position: fixed !important;
    bottom: -100px !important;
}

.contaierPhotoboot .container,
.shootContainerCompleted .container {
    margin-right: 25px;
    margin-left: 25px;
    height: 100vh
}

.contaierPhotoboot .row,
.shootContainerCompleted .row {
    margin-right: 25px;
    margin-left: 25px;
}

#boxShare {
    bottom: -200px;
}

#invia {
    width: 100%;
    height: fit-content;
    border: none;
    outline: none;
    background: red;
    padding: 15px;
    text-align: center;
    text-transform: uppercase;
    font-size: 30px;
    line-height: 25px;
    color: #fff;
}

.shootingPhoto {
    width: 100%;
    height: 1160px;
    position: relative;
    border-radius: 25px;
    padding: 20px;
}


.imgCornice {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
}

#carousel-demo {
    top: 0;
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 11;
}

.carousel-item>img {
    width: 100%;
    height: 1078px;
}

#video,
#videoPhotobooth {
    /*
    width: 800px;
    height: 900px;
    */
    object-fit: cover;
    position: relative;
    left: 10px;
    top: 15px;
    border-radius: 15px;
}

.imgShooted {
    position: relative;
    /*
    width: 800px;
    height: 900px;
    */
    left: 10px;
    top: 15px;
    border-radius: 15px;
}

.dateShoot {
    display: block;
    align-items: center;
    font-family: "Comic Neue", sans-serif;
    font-size: 70px;
    transform: rotate(-15deg);
    color: #fc01c8;
    position: absolute;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
}

.logoPhoto {
    height: 70px;
    position: absolute;
    bottom: 50px;
}

/*
.logoPhoto img {
    max-width: 100px;
    height: 100%;
    object-fit: contain;
    position: relative;
    bottom: 0;
}
*/

/*
#canvas {
    width: 800px;
    height: 900px;
    position: relative;
    object-fit: cover;
    left: 10px;
    top: 15px;
    border-radius: 15px;
}
*/

#imagePlaceholder {
    width: 800px;
    position: relative;
    top: 15px;
    border-radius: 15px;
    width: 100%;
}


#click-photo {
    width: 574px;
    height: 146px;
    position: absolute;
    z-index: 9999;
    bottom: -275px;
    left: 0;
    background: #5A5A5A 0% 0% no-repeat padding-box;
    border-radius: 30px;
    text-align: center;
    display: block;
    margin-left: 130px;
}

.click-photo_content {
    top: 0;
    position: absolute;
    display: flex;
    justify-content: center;
    text-align: center;
    width: 100%;
    height: 100%;
    vertical-align: middle;
    display: flex;
    align-items: center;
    justify-content: center;
}

.click-photo_content img {
    height: 50px;
    left: 90px;
    width: 50px;
    position: absolute;
    right: 0;
}

.click-photo_content span {
    position: absolute;
    left: 200px;
    text-align: center;
    vertical-align: middle;
    font-family: Montserrat;
    font-weight: 500;
    color: #fff;
    font-size: 40px;
}

#countdown {
    text-align: center;
    z-index: 9999;
    font-size: 160px;
    font-weight: 900;
    text-align: center;
    position: relative;
    color: #fff;
    transform: translate(-50%, -50%);
    top: 35%;
    left: 50%;
    background: #9DC448C2 0% 0% no-repeat padding-box;
    border: 15px solid #9DC448;
    border-radius: 50%;
    height: 300px;
    width: 300px;
}

#countdown p {
    font-size: 50px;
    top: 42px;
    position: relative;
}

#countdown h3#countdownTime {
    font-size: 100px;
    top: 19px;
    position: relative;
}

/* @media screen and (min-width: 1600px) {
    #render_avatar {
        transform: translate(-1%, 0);
    }
}

@media screen and (min-width: 1200px) {
    #render_avatar {
        transform: translate(-1%, 0);
    }
} */

._html5Player {
    /* width: 800px !important; */
    overflow: hidden;
    border-radius: 50%;
    
    width: 100% !important;
    height: 100% !important;
    max-width: 1000px;
    max-height: 1000px;
    overflow: hidden;
    z-index: 100 !important;
    position: relative;
    bottom: 0px;
    -webkit-mask-image: radial-gradient(circle, black 65%, transparent 70%);
    mask-image: radial-gradient(circle, black 65%, transparent 70%);
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

.main_container {
    width: 100% !important;
    height: 110% !important;
    max-width: 1000px !important;
    max-height: 1000px !important;
    margin: 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: flex-end !important;
}

.character {
    width: 100%;
    height: 100%;
    margin: 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

#containerMessage {
    width: 100%;
    position: relative;
    overflow: hidden;
    height: 650px;
    /* z-index: 1; */
    top: -200px;
    /* float: left; */
}

#boxMessage {
    height: auto;
    width: 100%;
    position: absolute;
    bottom: 0px;
}


/* box utente */
._smartpage_avatar_message {
    color: #ffffff;
    text-align: left;
    height: fit-content;
    background-color: #9DC448 !important;
    box-shadow: 5px 2px 3px rgb(90 90 90 / 50%);
    width: fit-content !important;
    max-width: 600px !important;
    font-weight: 400;
    font-size: 24px;
    line-height: 35px;
    position: relative;
    top: 0;
    right: 25px !important;
    font-family: 'Montserrat', sans-serif;
    border-radius: 30px 0 30px 30px;
}

/*
._smartpage_avatar_message textarea {
    border: none;
    text-align: left;
    resize: none;
    overflow: hidden;
    background-color: #9DC448;
    color: #ffffff;
    width: 100%;
}
*/


/* blocco microfono */
.blockMicrophone {
    height: 40%;
    width: 100%;
    position: absolute;
    bottom: 25%;
    left: 0;
    right: 0;
    margin: auto;
}

@keyframes microphone-pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}



/* Applica l'animazione  SVG */
#mic_on {
    position: relative;
    width: 150px;
    height: 140%;
    cursor: pointer;
    animation: microphone-pulse 1.5s infinite ease-in-out;
    transition: transform 0.3s;
    flex-shrink: 0;
}

#mic_loading {
    bottom: 10px;
    position: relative;
    left: 50%;
    transform: translate(-50%, -35%);
}


._smartpage_microphone_position {
    height: 80px;
    width: 80px;
    position: relative;
    bottom: 0;
    cursor: pointer;
    top: 0px;
    left: 50%;
    transform: translate(-50%, 0);
}



.loading_microphone {
    width: 160px;
    height: 160px;
    bottom: -42px;
    left: 71% !important;
    top: -109px;
}

.arrow {
    position: relative;
    width: 35%;
    height: 50%;
    fill: rgba(255, 255, 255, 0.6);
    stroke: #3771a3;
    flex-shrink: 0;
    cursor: pointer;
    transition: transform 0.3s, fill 0.3s;
}

#arrow-left {
    transform: rotate(180deg);
    left: 40%;
}

#arrow-right {
    transform: rotate(180deg);
    right: 40%;
}

/* css per la parte del riconoscimento del umano davanti alla telecamera */
#cnv-width {
    display: none;
}

#canvasvideo-holder {
    height: auto;
    width: auto;
}

#canvasvideo-holder>canvas {
    display: none;
}

/* css per il footer */
.footer {
    height: 17%;
    width: 100%;
    position: absolute;
    float: left;
    bottom: 0%;
    padding-inline: 15px;
}

.footer .container-fluid {
    margin: 0;
    padding: 0;
}

.footerBottom .logoAnd {
    width: 220px;
    height: 100px;
    object-fit: cover;
}


.logoAnd {
    width: 212px;
    height: 55px;
}

.logoIbm {
    height: 190px;
    /* 66px */
    object-fit: contain;
}

.logoIbm_small {
    width: 75px;
    height: 32px;
}

.logoAnd_small {
    width: 113px;
    height: 29px;
}


.nomargin {
    margin: 0 !important;
}

.rotate {
    transform: rotate(-15deg);
}

.spaceWebcam {
    top: 0;
    position: absolute;
    border-radius: 0px 0px 80px 80px;
    z-index: 9999;
}

/* css per il logo di Gaia al centro */
.boxLogo {
    top: 65%;
    position: absolute;
    width: 100%;
    height: 90px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.boxLogoGaia {
    height: auto;
    position: fixed;
    bottom: 250px;
    left: 50%;
    transform: translateX(-50%);
    object-fit: cover;
    width: 800px;
    margin: 0 auto;
    display: block;
    z-index: 9999;
    opacity: 0.9;
}


/**
 * ==============================================
 * Dot Pulse
 * ==============================================
 */
.dot-pulse {
    position: relative;
    left: -9999px;
    width: 10px;
    height: 10px;
    border-radius: 5px;
    background-color: white;
    color: white;
    box-shadow: 9999px 0 0 -5px;
    animation: dot-pulse 1.5s infinite linear;
    animation-delay: 0.25s;
}

.dot-pulse::before,
.dot-pulse::after {
    content: "";
    display: inline-block;
    position: absolute;
    top: 0;
    width: 10px;
    height: 10px;
    border-radius: 5px;
    background-color: white;
    color: white;
}

.dot-pulse::before {
    box-shadow: 9984px 0 0 -5px;
    animation: dot-pulse-before 1.5s infinite linear;
    animation-delay: 0s;
}

.dot-pulse::after {
    box-shadow: 10014px 0 0 -5px;
    animation: dot-pulse-after 1.5s infinite linear;
    animation-delay: 0.5s;
}

@keyframes dot-pulse-before {
    0% {
        box-shadow: 9984px 0 0 -5px;
    }

    30% {
        box-shadow: 9984px 0 0 2px;
    }

    60%,
    100% {
        box-shadow: 9984px 0 0 -5px;
    }
}

@keyframes dot-pulse {
    0% {
        box-shadow: 9999px 0 0 -5px;
    }

    30% {
        box-shadow: 9999px 0 0 2px;
    }

    60%,
    100% {
        box-shadow: 9999px 0 0 -5px;
    }
}

@keyframes dot-pulse-after {
    0% {
        box-shadow: 10014px 0 0 -5px;
    }

    30% {
        box-shadow: 10014px 0 0 2px;
    }

    60%,
    100% {
        box-shadow: 10014px 0 0 -5px;
    }
}

#messageSuggestionGaiaContent sub {
    bottom: 0;
    color: #ddd;
    font-size: 30px;
}

/* script per il riconoscimento della persona */
#video {
    position: relative;
    top: -500px;
    z-index: 9999;
    left: 24%;
    display: none;
}

.imgPhotobooth {
    height: 50px;
    padding-right: 24px;
}

.ButtonsForDownload {
    top: 70px;
    width: 100%;
    height: fit-content;
    position: relative;
    display: flex;
    justify-content: space-evenly;
}

.btnForDownload {
    width: 300px;
    padding: 10px;
    height: 100px;
    background: #5A5A5A 0% 0% no-repeat padding-box;
    border-radius: 30px;
    text-align: center;
    text-align: center;
    vertical-align: middle;
    font-family: Montserrat;
    font-weight: 500;
    color: #fff;
    font-size: 40px;
}



/* EFFETTO POLAROID PHOTOBOOT */

/* 1. Container camera */
.photobooth-camera-container {
    background: #ffffff !important;
    /* Già bianco */
    padding: 16px 16px 70px 16px;
    max-width: 500px;
    margin: 0 auto;
    border-radius: 2px;
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.12),
        0 4px 12px rgba(0, 0, 0, 0.15),
        0 10px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    /* Per posizionare scritta e logo */
}

/* 2. Preview container - con scritta e logo */
#photoboothPreviewContainer {
    background: #ffffff;
    padding: 14px 16px 70px 12px;
    max-width: 500px;
    margin: 0 auto;
    border-radius: 2px;
    transition: transform 0.3s ease;
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.12),
        0 4px 12px rgba(0, 0, 0, 0.15),
        0 10px 40px rgba(0, 0, 0, 0.1);
    position: relative;
}

/* 3. SCRITTA A MANO - spostata più a destra per il nuovo logo */
#photoboothPreviewContainer::before,
.photobooth-camera-container::before {
    content: "Gimò 25 anni... una storia che continua";
    display: block;
    position: absolute;
    bottom: 21px;
    left: 115px;
    /* MODIFICATO: da 20px a 120px per il logo sinistro */
    right: 60px;
    font-family: 'Comic Neue', 'Brush Script MT', cursive;
    font-size: 17px;
    color: #2c3e50;
    font-weight: 400;
    line-height: 1.3;
    text-align: left;
    letter-spacing: 0.5px;
}

/* 4. LOGO AZIENDALE - basso a destra (ridotto a metà) */
#photoboothPreviewContainer::after,
.photobooth-camera-container::after {
    content: '';
    display: block;
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 40px;
    height: 20px;
    background-image: url('../img/and_logo_black.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.85;
}

/* LOGO AZIENDALE - basso a sinistra */
/* NUOVO: LOGO AZIENDALE - basso a sinistra (soluzione corretta) */
.photobooth-camera-container,
#photoboothPreviewContainer {
    position: relative;
}

/* Aggiungi questo stile al container della preview */
#photoboothPreviewContainer,
.photobooth-camera-container {
    background-image:
        url('../img/gimo_svg_LOGO.svg'),
        /* Logo sinistro */
        linear-gradient(to bottom, #ffffff 0%, #fefefe 100%),
        repeating-linear-gradient(0deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.008) 2px,
            rgba(0, 0, 0, 0.008) 4px) !important;
    background-position:
        15px calc(100% - 15px),
        /* Posizione logo sinistro */
        0 0,
        0 0 !important;
    background-size:
        80px 40px,
        /* Dimensione logo sinistro */
        100% 100%,
        100% 100% !important;
    background-repeat:
        no-repeat,
        no-repeat,
        repeat !important;
}


/* 5. EFFETTO VINTAGE REALISTICO sull'immagine */
.photobooth-preview-img {
    width: 100%;
    height: auto;
    display: block;
    border: none;
    aspect-ratio: 0.91 / 1;
    object-fit: cover;
    transform: rotate(180deg);
    border-radius: 2px;

    /* Effetto vintage più pronunciato */
    /* Tono caldo vintage */
    /* Contrasto leggermente aumentato */
    /* Colori meno saturi */
    /* Leggermente più luminoso */
    /* Leggera virata verso il giallo/rosso */
    filter:
        sepia(0.15) contrast(1.15) saturate(0.85) brightness(1.05) hue-rotate(-5deg);

    /* Texture carta fotografica */
    background: linear-gradient(to bottom,
            rgba(255, 253, 250, 0.05) 0%,
            rgba(255, 248, 240, 0.08) 100%);
    background-blend-mode: overlay;
}

/* 6. EFFETTO "INVECCHIAMENTO" - vignettatura */
.photobooth-preview-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.15);
    /* Vignettatura ai bordi */
    border-radius: 2px;
}

/* 7. Video camera - stesso effetto vintage (opzionale durante scatto) */
#videoPhotoboothModal {
    object-fit: cover;
    width: 100%;
    height: auto;
    aspect-ratio: 0.91 / 1;
    border-radius: 2px;
    transform: rotate(180deg);
    border-radius: 2px;

    /* Applica filtro anche al video live */
    filter:
        sepia(0.1) contrast(1.1) saturate(0.9) brightness(1.03);
}

/* 8. TEXTURE CARTA - per effetto più realistico */
#photoboothPreviewContainer,
.photobooth-camera-container {
    /* Aggiungi texture sottile della carta */
    background:
        linear-gradient(to bottom, #ffffff 0%, #fefefe 100%),
        repeating-linear-gradient(0deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.008) 2px,
            rgba(0, 0, 0, 0.008) 4px);
}

/* 9. OMBRA più realistica tipo "foto su tavolo" */
#photoboothPreviewContainer:hover {
    transform: rotate(-1deg) scale(1.02);
    box-shadow:
        0 2px 5px rgba(0, 0, 0, 0.15),
        0 8px 20px rgba(0, 0, 0, 0.2),
        0 15px 50px rgba(0, 0, 0, 0.15);
}


.image_background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background-color: black;
    /* Fallback nero */
}

.image_blur {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(4px);
    -webkit-filter: blur(4px);
    transition: opacity 0.5s ease-in-out;
    /* Effetto di transizione fluido */
}

.image_blur.current {
    opacity: 1;
    /* L'immagine visibile */
    z-index: 1;
}

.image_blur.next {
    opacity: 0;
    /* L'immagine in preparazione */
    z-index: 2;
}

#footer-logo-primary {
    height: 15%;
    position: absolute;
    bottom: 10%;
    display: block;
}

#footer-logo-secondary {
    height: 35%;
    position: absolute;
    bottom: 0%;
    display: block;
}

/* #arrow-and-mic{
    justify-items: center;
}

@media screen and (max-height:1800px) {
    .blockMicrophone{
        bottom: 30%;
    }
}

@media screen and (max-height:1700px) {
        .blockMicrophone{
        bottom: 30%;
    }
}

@media screen and (max-height:1600px) {
        .blockMicrophone{
        bottom: 22%;
    }
} */

/* @media screen and (max-height:1450px) {
        .blockMicrophone{
        bottom: 10%;
    }
} */

/* @media screen and (max-width:800px) and (max-height:990px) {
    #messageSuggestionGaiaContent{
        font-size: 18px;
    } */
/* .footer{
        height: 240px;
    } */
/* ._smartpage_controller_on_two{
        height: 15%;
        bottom: 33%;
    } */

/* ._smartpage_controller_on{
        height: 50px;
        bottom: 53%;
        min-width: 250px;
    } */

/* .arrow{
        height: 30px;
        width: 28px;
    } */
/* #mic_on{
        height: 90%;
    } */
/* #render_avatar{
        width: 95% !important;
        left: 10px !important;
        height: 50% !important;
    } */
/* } */
/* height: 240px; */
/* } */

/* ._smartpage_controller_on_two{
        height: 15%;
        bottom: 33%;
    } */

/* ._smartpage_controller_on{
        height: 50px;
        bottom: 53%;
        min-width: 250px;
    } */

/* .arrow{
        height: 30px;
        width: 28px;
    } */
/* #mic_on{
        height: 90%;
    } */
/* #render_avatar{
        width: 95% !important;
        left: 10px !important;
        height: 50% !important;
    } */
/* } */

@media screen and (max-height: 730px) {
    .blockMicrophone{
        bottom: 32%;
    }
}

@media screen and (max-height: 685px) {
    .blockMicrophone{
        bottom: 17%;
    }
}

@supports (-webkit-touch-callout: none) {
  @media screen and (max-width: 430px) and (orientation: portrait) {
    
    /* 1. AVATAR - Riduci solo l'altezza massima */
    #render_avatar {
        max-height: 40vh !important;
    }
    
    ._html5Player {
        max-height: 450px !important;
    }
    
    .blockMicrophone {
        bottom: 28% !important;
    }
    
    .footer {
        height: 14% !important;
    }
    
    #footer-logo-primary,
    #footer-logo-secondary {
        height: 50% !important;
    }
  }
}