html,
body {
    display: flex;
    margin: 0;
    width: 100%;
    min-height: 100%;
    color: #0000c9;
    font-family: 'Bebas Neue Pro';
    font-weight: normal;
    font-style: normal;

    color: #fff;
} 
body {
    font-size: 24px;
} 

/* shared */
.mobile {
    display: none;
}


.btn{
    cursor: pointer;
    transition: transform .2s linear;
}

.btn:hover{
    transform: scale(1.06);
}

.btn.solved{
    pointer-events: none;
}


.content {
    position: relative;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    display: flex;
    min-height: 100%;
    flex: 1;
    background-image: url(./img/bkg.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    user-select: none;
}
.content:after{
    content: '';
    position: absolute;
    bottom: 20px;
    left: 40px;
    width: 192px;
    height: 42px;
        background-image: url(./img/logoIncyte.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    z-index: 1000;
}

.logoOpzelura{
    display: none;
    position: absolute;
    bottom: 20px;
    right: 40px;
    width: 190px;
    height: 65px;
    background-image: url(./img/logoOpzelura.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    z-index: 1000;
}

.aifa{
    position: absolute;
    bottom: -30px;
    left: 0px;
    width: 100%;
    text-align: center;
    font-size: 12px;
}

.animatedBkg,
.screen{
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    position: absolute;
}

.animatedBkg{
    overflow: hidden;
}
.animatedBkg::before,
.animatedBkg::after{
    content: '';
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    position: absolute;
    background-image: url(./img/bkg.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    animation: bkgGrowing 12s linear infinite;
    transform-origin: center ;
}

.animatedBkg~*{
    z-index: 5;
}
.animatedBkg::before{
    animation-delay: 6s;
}

@keyframes bkgGrowing {
    0% {
/*        background-size: 120%;  */
        transform: scale(1.0);
        z-index: 0;
        opacity: 1;
    }
    80%{
        opacity: 1;
        z-index: 2;
    }               
    100% {
        opacity: 0;
        z-index: 2;
        transform: scale(1.2);
/*        background-size: 120%;  */
    }
}

.title {
    color: #F000F0;
    font-weight: bold;
    font-size: 3.6em;
    margin:  0;
}

.logo {
    background-image: url(./img/logoTitle.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 100%;
    flex: 1;
    max-height: 380px;
}

.form-container {}

.login-container {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.input-field {
    display: flex;
    width: 100%;
}
.input-label{
    font-size: 1em;
    padding: 6px 14px;
    min-width: 90px;
    flex: 0.4;
    display: flex;
    align-items: center;
}

.input-field.user {}

.input-field.password {}

.input-icon {
    width: 50px;
    height: 50px;
    background-color: #F000F0;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 30% auto;
}

.input-field.user .input-icon {
    background-image: url(./img/icon-usr.png);
}

.input-field.password .input-icon {
    background-image: url(./img/icon-pwd.png);
}

.input-content {
    font-family: 'Bebas Neue Pro', sans-serif;
    flex: 1;
    display: flex;
    align-items: center;
}
  

#footer {}

.register .error-container {
    /*    color: red;*/
}

a,
a:visited {
    color: inherit;
    text-decoration: none;
/*    color: #F000F0;*/
}

a:hover {
    text-decoration: underline;
}



input {
    font-family: 'Bebas Neue Pro', sans-serif;
}
input[type="password"],
select,
input[type="email"],
input[type="text"] {
    padding: 5px 10px;
    border: none;
    background: #fff;
    color: #4D4D4D;
    font-size: 1em;
    width: 250px;
    box-sizing: border-box;
     height: 100%; 
}

.register input[type="password"],
.register select,
.register input[type="email"],
.register input[type="text"] {

     height: auto; 
}

.submit-container{
    /* display: flex; */
    /* justify-content: center; */
    text-align: center;
}

.submit-container .button{
    position: relative;
    margin: 20px auto;
    display: inline-block;
}


.submit-container .button .side{
    position: absolute;
    left: 100%;
    top: 0;
    width: 300px;
    text-align: left;
    padding-left: 20px;
    display: flex;
    gap: 10px;
    font-size: .8em;
    height: 100%;
    align-items: flex-end;
}

.btn-register{
    font-size: 1.2em;
    text-decoration: underline;

}

.errors-container { 
    color: #ffca00;
    margin:10px auto ;
    text-align: center;
}

input[type="submit"],
input[type="button"] {
    width: 120px;
    margin: 0;
    /* display: flex; */
    height: 50px;
    border: none;
    font-size: 1em;
    color: #4D4D4D;
    background-color: #0CFFD1;
}

.recuparpassword {
    margin-top: 10px;
    float: right;
    clear: right;
    font-size: .8em;
    color: #fff;
}


::placeholder {
    /* Chrome, Firefox, Opera, Safari 10.1+ */
    color: #4d4d4d;
    opacity: .4;
    /* Firefox */
}

:-ms-input-placeholder {
    /* Internet Explorer 10-11 */
    color: #5c6f98;
}

::-ms-input-placeholder {
    /* Microsoft Edge */
    color: #5c6f98;
}

:focus-visible {
    outline: none;
}

.jconfirm {
    color: #333;
    font-weight: 400;
}



.popup{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    width: 70%;
    min-height: 70%;
    padding: 20px;
    background-color: rgba(31, 22, 70, .9);
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 92%;
    overflow: auto;
    z-index: 10001;
} 

.popup form{
    display: flex;
    align-items: center;
    justify-items: center;
    flex-direction: column;
    gap: 60px;
/*    overflow: auto;*/
}

.register.popup form{
    gap: 2px;
}

.register a, .register  a:visited {
    text-decoration: underline;
}

.popup form.reset-form{
    gap: 20px;

}

.close-popup{
    position: absolute;
    top: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #F000F0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.close-popup::before{
    font-family: sans-serif;
    font-size: 30px;
    content: '✖';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    width: 50px;
    height: 50px;
    color: #fff;
    line-height: 50px;
    text-align: center;
}


.reset-password{
    /* width: auto; */
    border: none;
    color: #fff;
    /* background-color: #F000F0; */
    /* height: auto; */
}
.reset-password input{
    font-size: 1.1em;
    width: 600px;
    padding: 10px 20px;
}

.register input:not(input[type="checkbox"]){
    font-size: large;
    padding: 6px 14px;
    width: 100%;
    box-sizing: border-box;
}

.register form{
    width: 90%;
    margin: auto;
}

.register-check-box{
    display: flex;
    justify-content: flex-start;
    width: 100%;
}
.register-check-box input[type="checkbox"]{
    margin: 0 10px;
}

.casa{
    pointer-events: none;
    opacity: 0.00000000001;
    position: absolute;
    z-index: -10000;

}

.register-row{
    display: flex;
    justify-content: space-between;
    flex: 1;
    width: 80%;
}
.message{
    text-align: center;
    font-size: 2em;
    color: #fff;
}

.message-ok{
   text-align: center;
    font-size: 1em;
    color: #8bc34a;
}

.logo-container{
    flex: 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-direction: column;
    box-sizing: border-box;
    padding-top: 60px;
}
.logo-container .logo{
    max-height: 540px;
}
.mainbuttons-container{
    display: flex;
    gap: 80px;
}

.shaped-btn{
    background-image: url(./img/buttonBkg.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 228px;
    height: 193px;
    flex: 1;
    max-height: 400px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: .9em;
}

.shaped-btn:hover{
    background-image: url(./img/buttonBkgOn.png);

}


.logout-container{
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    height: 50px;
    z-index: 10;
}

.bagliore:before{
    content: '';
    width: 90px;
    height: 90px;
    position: absolute;
    top: -20px;
    left: -85px;
    background-image: url(./img/bagliore.png);
    background-size: cover;
    aspect-ratio: 1/1;
}

.user-container{
    background-color: #fff;
    color: #F000F0;
    box-sizing: border-box;
    padding: 10px 40px 10px 10px;
    z-index: 1;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.logout-icon{
    width: 45px;
    background-color: #F000F0;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 50% auto;
    background-image: url(./img/icon-logout.png);
    aspect-ratio: 1/1;
}

.screen{
    display: flex;
    flex-direction: column;
    padding: 40px;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
/* GAME */

.hidden{
    display: none !important;
} 
.btn-home{
    position: absolute;
    top: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background-image: url(./img/icon-home.png);
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: contain;
    z-index: 100;
}

.btn-biblio{
    position: absolute;
    top: 20px;
    left: 90px;
    width: 50px;
    height: 50px;
    background-image: url(./img/icon-biblio.png);
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: contain;
}

.biblio{
    display: none; 
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    background-color: rgb(31 22 70 / 100%);
    padding: 30px 70px;
    text-align: left;
    font-size: 22px;
        flex-direction: column;
}
.biblio-on .biblio{
    display: flex;
}

.biblio p{
    margin: 2px;
}
.biblio p.title{
    text-align: left;
}

.game-container{
    position: relative;
    background-color: rgb(31 22 70 / 80%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    margin: 80px;
    width: 90%;
    max-width: 1080px;
    color: #fff;
}
.violet{
    color: #F000F0;
}

.bigger{
    font-size: 1.1em;
    font-weight: bold;
}

.biblio::before,
.game-container::before{
    width: 110px;
    height: 110px;
    top: -40px;
    left: -40px;
}

.biblio-on .game-start,
.biblio-on .game-content{ display: none; }

.game-start{
    display: flex;
    flex: 1;
    height: 100%;
    box-sizing: border-box;
}

.game-desc{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    font-size: 2.4em;
    flex: 1;
    padding: 40px;
}

.hacker{
    margin: 20px 10px 0px 20px;
    flex: 1;
    background-image: url(./img/hacker.png);
    background-repeat: no-repeat;
    background-position: bottom center;
    background-size: contain;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.game-content{
    position: absolute;
    width: 100%;
    min-height: 100%;
    top: 0px;
    left: 0px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
/*.game-content:after{
    content: '';
    width: 290px;
    height: 210px;
    position: absolute;
    right: -200px;
    bottom: -110px;
    background-image: url(./img/logoMini.png);
    background-size: cover;
}
*/



.btn-rcp{
    position: absolute;
    right: -80px;
    bottom: -50px;
    background-image: url(./img/buttonRcp.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 228px;
    height: 193px;
    max-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 32px;
    color: #F000F0;
    font-weight: bold;
}

.menu{
    position: relative;
    display: flex;
    gap: 30px;
}
.menu::before,
.menu::after{
    content: '';
    position: absolute;
    width: 104%;
    height: 1px;
    left: 50%;
    border-top: #F000F0 1px solid;
    transform: translateX(-50%);
    z-index: 10;
    top:20px;
}
.menu::after{
    top:auto;
    bottom:20px;

}

.letter-container{
    width: 130px;
    height: 300px;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 160px;
    font-weight: bold;
}

.solved .number{
    display: none;
}

.solved .letter{

    display: block;
}

.letter{
    display: none;
    color: #0CFFD1;
}

.number{
    color: #F000F0;
}



.quiz-container{
    flex: 1;
    width: 100%;
    padding: 30px 50px;
    box-sizing: border-box;
    font-size: 52px;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
}


.question-container{
    display: flex;
    gap: 10px;
    text-transform: uppercase;
}

.question-index{
    color: #F000F0;
}

.question-content.smaller {
    line-height: 46px;
    font-size: 40px;
}


/*
.options-container{
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}


 

.option{
    cursor: pointer;
    opacity: 0; 
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease-out forwards;
    background: #fff;
    color: #F000F0;
    font-size: 49px;
    flex: 1 1 50%; 
    padding: 20px;
    background-color: #f0f0f0;
    border: 2px solid #ddd;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    box-sizing: border-box;
}*/

.options-container {
    display: -ms-grid; /* Fallback per IE11 */
    display: grid;
    grid-template-columns: 1fr 1fr; /* Due colonne uguali per browser moderni */
    grid-auto-rows: 1fr;
    grid-gap: 20px;
    width: 100%;
    max-width: 900px;
    

    /* Grid compatibile con IE11 */
    -ms-grid-columns: 1fr 20px 1fr; /* Definisce due colonne con gap di 10px per IE11 */
    -ms-grid-rows: auto auto; /* IE11 non supporta grid-auto-rows, quindi altezza automatica */
    margin-top: 30px;
}

.disabled{
    pointer-events: none;
}
/* Posizionamento per IE11 */
.option:nth-child(1) {
  -ms-grid-column: 1;
  -ms-grid-row: 1;
}
.option:nth-child(2) {
  -ms-grid-column: 3;
  -ms-grid-row: 1;
}
.option:nth-child(3) {
  -ms-grid-column: 1;
  -ms-grid-row: 2;
}
.option:nth-child(4) {
  -ms-grid-column: 3;
  -ms-grid-row: 2;
}

/* Stili per le box */
.option {
    padding: 4px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    box-sizing: border-box; /* Assicura che padding e bordi siano inclusi nelle dimensioni */
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease-out forwards;
    background: #fff;
    color: #F000F0;
    font-size: 32px;
    padding: 4px 20px;
/*    text-transform: uppercase;*/
}


.option.selected,
.option:active{
    background-color: #F000F0;
    color: #fff;
}

.option.blink{
    transform:none;
    opacity: 1;
        animation: blink-animation .2s steps(2, start) infinite;
        -webkit-animation: blink-animation .2s steps(2, start) infinite;
}


.option:nth-child(1) {
    animation-delay: .2s;
}

.option:nth-child(2) {
    animation-delay: .4s;
}

.option:nth-child(3) {
    animation-delay: .6s;
}

.option:nth-child(4) {
    animation-delay: .8s;
}

.note{
    opacity: 0;
font-size: 12px;
    color: #fff;
    margin-top: 20px;
    align-self: flex-start;
    animation: fadeInUp 0.5s 1s ease-out forwards;

}

.note i{
    margin-right:4px ;
}

sup{
    font-size: 0.5em;    
    line-height: 0px;
} 

.popup-right{
    position: absolute;
    top: 50%;
    left: 0px;
    width: 100%;
    height: 60%;
    transform: translateY(-50%);
    background-color: #F000F0;
    color: #FFF;
    font-size: 110px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
}

.popup-wrong{
    position: absolute;
    top: 50%;
    left: 50%;
    width: 90%;
    height: 90%;
    transform: translate(-50%,-50%);
    background-color: rgb(240 0 240 / 80%);
    color: #FFF;
    font-size: 140px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    text-align: center;
    line-height: 120px;
    z-index: 10;
}

.popup-wrong .close-popup{
    color: #fff;
    background-color: rgb(31,22,70);
}

.final{
    position: absolute;
    bottom: 0px;
    width: 100%;
    text-align: center;
    font-size: 50px;
    font-weight: bold;
    padding: 10px;
    box-sizing: border-box;
    line-height: 44px;
}
.terms{box-sizing: border-box;padding: 20px;overflow-y: auto;align-items: flex-start;
    height: 70%;}
.terms-content{
     padding: 20px;
     box-sizing: border-box;
     flex-direction: column;
     justify-content: flex-start;
     font-size: 40px;
     color: #fff;
     font-weight: 300;
 }
 .terms-content strong{

     font-weight: normal;
 }
.title{
    text-align: center;
     font-size: 1.4em; 
     margin-bottom:20px ;
}
label{
    color: #fff;
}


/* Gallery  */

.gallery{

}

.gallery-container{
    width: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gallery-content{
    /* border-bottom: 1px solid #888; */
    display: flex;
    padding: 20px 20px;
    background: #22184488;
}

.gallery-video{
    width: 192px;
    height: 108px;
    background-color: #000;
}
.gallery-video img{
    width: 100%;
}

.gallery-title{
    flex: 1;
    color: #F000F0;
    padding-left: 30px;
    font-size: 1.5em;
    font-weight: bold;
}
.gallery-sub-title{
    color: #74f8fa;
}


/*email-reminder*/

 .email-reminder.container {
        width: 60%;
        margin: 20px auto;
        font-family: Arial, sans-serif;
        color: #444;
    }
    .email-reminder .email-selector {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
    }
    .email-reminder .list-container {
        width: 40%;
        border: 1px solid #ccc;
        padding: 10px;
        background: #f9f9f9;
        height: 300px;
        overflow-y: auto;
    }
    .email-reminder ul {
        list-style-type: none;
        padding: 0;
        font-size: 14px;
    }
    .email-reminder li {
        padding: 5px;
        border-bottom: 1px solid #ddd;
        display: flex;
        align-items: center;
        gap: 10px;
    }
    .email-reminder li label{
        color: #444;
    }
    .email-reminder li.sent label{

        color: #0a0;
    }
    .email-reminder .controls {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    .email-reminder .controls button {
        padding: 5px 10px;
        font-size: 16px;
        cursor: pointer;
    }
    .email-reminder #email-content {
        width: 100%;
        height: auto;
        margin-bottom: 10px;
        padding: 10px;
        border: 1px solid #444;
    }
    .email-reminder #send-emails {
        width: 100%;
        padding: 10px;
        font-size: 16px;
        background: #007bff;
        color: white;
        border: none;
        cursor: pointer;
    }
    .email-reminder #send-emails.disabled{
        background: #aaa;
        color: #444;

    }
    .email-reminder #send-emails:hover {
        background: #0056b3;
    }


/* Animazione per il fade-in delle opzioni */

@-webkit-keyframes fadeInUp {
    0% {
        opacity: 0;
        -webkit-transform: translateY(20px);
    }
    100% {
        opacity: 1;
        -webkit-transform: translateY(0);
    }
}


@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

      @keyframes blink-animation {
        from{ background-color: #F000F0; color: #FFF; }
        to { background-color: #FFF; color: #F000F0;}
      }
      @-webkit-keyframes blink-animation {
        from{ background-color: #F000F0; color: #FFF; }
        to { background-color: #FFF; color: #F000F0;}
      }

.swirl-in-bck {
    -webkit-animation: swirl-in-bck 0.65s ease-out both;
            animation: swirl-in-bck 0.65s ease-out both;
}


@-webkit-keyframes swirl-in-bck {
  0% {
    -webkit-transform: rotate(540deg) scale(5);
            transform: rotate(540deg) scale(5);
    opacity: 0;
  }
  100% {
    -webkit-transform: rotate(0) scale(1);
            transform: rotate(0) scale(1);
    opacity: 1;
  }
}
@keyframes swirl-in-bck {
  0% {
    -webkit-transform: rotate(540deg) scale(4);
            transform: rotate(540deg) scale(4);
    opacity: 0;
  }
  100% {
    -webkit-transform: rotate(0) scale(1);
            transform: rotate(0) scale(1);
    opacity: 1;
  }
}
