* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #999999;
    font-family:  'Graphik Light' !important;
    font-weight: 400;
    text-align: center;
    max-height: 100vh !important;
    max-width: 100vw !important;
}

a{
    text-decoration: none;
}

:root {
    --main-color: #5295c6;
}

@font-face{
    font-family: 'Graphik Light';
    src: url('../fonts/GraphikLight.otf');
}


@font-face{
    font-family: 'Graphik Medium';
    src: url('../fonts/GraphikMedium.otf');
}

/* INFO */

.blackBack{
    pointer-events: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10000;
    background-color: rgba(0, 0, 0, 0.233);
    opacity: 0;
    transition: all 0.3s;
}

.info-wrapper{
    position: absolute;
    pointer-events: none;
    left: 0; 
    right: 0; 
    margin-left: auto; 
    margin-right: auto; 
    top: 0;
    bottom: 0;
    margin-top: auto; 
    margin-bottom: auto;
    width: 640px;
    height: 520px;
    z-index: 100000;
    background-color: rgb(255, 255, 255);
    border-radius: 2px;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.348667);
    opacity: 0;
    transition: all 0.3s;
}

.info-texts-wrapper{
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    padding: 20px 20px 20px 20px;
    align-items: flex-start;
    align-content: flex-start;
    justify-content: space-between;
}

.top-info-texts-wrapper{
    width: 100%;
}

.times svg {
    width: 15px;
    height: 15px;
    cursor: pointer;
}

.title{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    font-family: 'Graphik Medium';
    font-size: 20px;    
}

.credits{    
    padding-top: 22px;
    font-size: 16px;
}

.copyright{
    font-size: 14px;
}

@media only screen and (max-width: 640px),(max-height: 640px) {
    .info-wrapper{ 
        width: 90%;
        height: fit-content;
    }
    .title{
        font-size: 18px;
    }
    .credits{    
        padding-top: 12px;
        font-size: 14px;
    }
    .copyright{
        padding-top: 5px;
        font-size: 12px;
    }
}
@media only screen and (max-width: 400px), (max-height: 400px) {
    .info-wrapper{ 
        width: 95%;
        height: fit-content;
    }
    .title{
        font-size: 16px;
    }
    .credits{    
        padding-top: 12px;
        font-size: 12px;
    }
    .copyright{
        padding-top: 5px;
        font-size: 10px;
    }
}

/* FIN INFO */

.wrapper {
    position: relative;
    display: inline-block;
    width: 1250px;
    height: 95vh;
    max-width: 100%;
    grid-auto-columns: 100%;
    background: rgb(255, 255, 255);
    text-align: left;
}

.interactiu {
    position: absolute;
    width: 100%;
    height: 100vh;
    float: left;
    background: rgb(255, 255, 255);}

.interactiu.active {
    opacity: 1;
    visibility: visible;
}

#next {
    position: absolute;
    bottom: 0;
    right: -70px;
    width: 50px;
    height: 40px;
    cursor: pointer;
    user-select: none;
}

  
/* INFO */

body{
    height: 100vh;
    width: 100vw;
    max-width: 100vw;
    max-height: 100vh !important;
}

.info-icon{
    width: 33%;
    background-color: white;
    border-radius: 50%;
    height: auto;
    cursor: pointer;
}
.info-icon:hover{
    outline: rgba(240, 255, 240, 0.568) 4px solid;
}

.wrapper{
    position: relative;
    width: 100%;
    height: 100%;
}

.wrapper:nth-child(2){
    background: rgba(255, 0, 0, 0.2);
}


/* ARQUITECTURA CENTRAL */

.interactiu-wrapper{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-self: center;
    align-items: flex-start;
    height: 100%;
    width: 100%;
    max-width: 100vw !important;
    max-height: 100vh !important;
    transform-origin: center;
    background-color: #cccccc;
}

.container{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 83%;
    height: 100%;      
    max-height: 100vh !important;
    max-width: 100vw !important;
    background-color: #cacaca;
}

/*---------HEADER----------*/
.header{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 8%;  
    font-weight: 600;
    background-color: var(--main-color);
    color: white;
    font-size: 1.5em;
    padding: 0.5%;
}
@media screen and (max-width: 768px){
    .header{
        font-size: 1em;
    }
}

.title-header{
    display: flex;
    justify-content: start;
    align-items: center;
    width: 82%;
    height: 100%;
    padding-left: 1%;
}

.marc-icons{
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    width: 18%;
    height: 100%;
    padding-right: 1%;
}

.header-btn{
    height: 90%;
    width: 90%;
    cursor: pointer;
}

/*PARTE CENTRAL*/
.parte-central{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-evenly;
    align-items: center;
    width: 100%;
    height: 92%;
    background-color: rgb(255, 255, 255);
}

.svg-container{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    align-content: center;
    width: 100%;
    height: 75%;
    background-color: white;
}

.central-svg{
    height: 100%;
    width: auto;
}


/*-----------QUESTION--------*/

.question-wrapper{
    display: flex;
    opacity: 1;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    align-content: center;
    width: 85%;
    height: 18%;
    background-color: #dde3ec;
    font-size: 1.75vw;
    padding: 1%;
}

.answer-input-wrapper{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    align-content: center;
    width: 100%;
}

.input-answer{
    max-width: 9%;
    margin-left: 1%;
    margin-right: 1%;
    font-family: 'Graphik Medium';
    font-size: 0.9em;
}

.evaluation{
    margin-left: 1%;
}

.eval{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    align-content: center;
    width: 95%;
    font-family: 'Graphik Medium';
    font-weight: bold;
}


/*----------Footer----------*/

.footer{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 10%;    
    background-color: var(--main-color);
}

.footer-left{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    padding-left: 3%;
    height: 100%;
    width: 50%;
}

.logo{ /*logo casals*/
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    height: 100%;
}

.text-casals{
    margin-left: 2%;
    font-size: 1.5em;
    color: white;
    font-weight: bolder;
}

.footer-right{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    padding-right: 3%;
    height: 100%;
    width: 50%;
}
.icon-footer{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-left: 1%;
    height: 35px;
    width: 35px;
    background-color: rgba(0, 0, 0, 0.2);    
    cursor: pointer;
}

.info-icon-footer{    
    border-radius: 50%;
}

/*ESQUEMA*/
.part-esquema{
    cursor: pointer;
}

.bigimg-wrapper{
    position: absolute;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    left: 0; 
    right: 0; 
    margin-left: auto; 
    margin-right: auto; 
    top: 0;
    bottom: 0;
    margin-top: 40%; 
    margin-bottom: auto;
    width: fit-content;
    height: fit-content !important;
    min-height: fit-content;
    max-width: 25vw;
    max-height: 100vh;
    z-index: 100000;
    background-color: rgb(255, 255, 255);
    border-radius: 2px;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.348667);
    padding: 0.5%;
}

.closebigimg{
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    width: 100%;
    height: 5%;
    padding-bottom: 0.5%;
}

.btn{
    cursor: pointer;
}

/* ------ ESTILOS DE ELEMENTOS COMUNES A OTROS INTERACTIVOS:: ------ */

/*------------- BOTONES ------------*/
/*
.interactive-button{
    width: fit-content;
    height: fit-content;
    padding: 1%;
    font-size: 1em;
    font-weight: normal !important;
    color: white;
    background-color: #b1bf2f;
    border: none;
    border-radius: 5px;
    box-shadow: #999999;
    box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.1);
}
.interactive-button:hover{ 
    background-color: #9ca82a;
}
*/

/* ------------ SCROLLBAR ------------ */
/*
.container-option-selected::-webkit-scrollbar {
    width: 10px;      
    margin-right: 20px;   
  }  
  .container-option-selected::-webkit-scrollbar-track {
    background: rgba(0, 255, 55, 0);   
  }  
  .container-option-selected::-webkit-scrollbar-thumb {
    background-color: #b1bf2f;   
    border-radius: 20px;        
  }
*/

/* ------------ RADIO BUTTON FORM ------------ */
/*
.container ul{
    list-style: none;
    margin: 0 0 0 20px;
    padding: 0;
    overflow: auto;
}
  
ul li{
    color: #5c5c5c;
    display: block;
    position: relative;
    float: left;
    width: 100%;
    height: fit-content;
}
  
ul li input[type=radio]{
    position: absolute;
    visibility: hidden;
}
  
ul li label{
    display: block;
    position: relative;
    padding: 0 0 0 30px;
    z-index: 9;
    cursor: pointer;
    -webkit-transition: all 0.25s linear;
}
  
ul li:hover label{
    color: #363636;
}
  
ul li .check{
    display: block;
    position: absolute;
    border: 2px solid #b1bf2f;
    border-radius: 100%;
    height: 20px;
    width: 20px;
    margin-top: 2.5px;
    z-index: 5;
    transition: border .25s linear;
    -webkit-transition: border .25s linear;
}
  
ul li:hover .check {
    border: 2px solid #b1bf2f;
}

ul li .check::before {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    content: '';
    border-radius: 100%;
    height: 10px;
    width: 10px;
    margin: 3px 0 0 3px;
    transition: background 0.25s linear;
    -webkit-transition: background 0.25s linear;
}

input[type=radio]:checked ~ .check {
    border: 2px solid #b1bf2f;
}

input[type=radio]:checked ~ .check::before{
    background: #b1bf2f;
}

input[type=radio]:checked ~ label{
    color: #000000;
}
*/
