@font-face {
    font-family: 'Venice';
    src: url('VeniceClassic.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}



body {
    font-family: 'Venice';
    -webkit-touch-callout: none;                /* prevent callout to copy image, etc when tap to hold */
    -webkit-text-size-adjust: none;             /* prevent webkit from resizing text to fit */
    -webkit-user-select: none; 
    user-select: none;
    margin: 0px;
    transform-origin: left top;
    background-color: #000000;
    font-size: 10px;
    color: white;
    text-align: center;
    font-size: 24px;
}


#viewport{
    position: absolute;
    width: 700px;
    /*height: 100%;*/
    aspect-ratio: 1;
    top: 50%;
    left: 50%;
    overflow: hidden;
    transform: translate(-50%, -50%);
    border: 1px solid red;
    /*cursor: none;*/
}

#bg{
    background: url(../img/test3.jpg);
    height: 1400px;
    width: 1866px;
    background-size: cover;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-46%, -61%) scale(1);
    background-color: wheat;
}


.backToStudy{
    animation: 1s backToStudy forwards;
}

@keyframes backToStudy {
    100%{
        top: 50%;
        left: 50%;
    }
}

#matamoscas{

    position: absolute;
    top: 0;
    left: 0;
    width: 58px;
    height: 200px;
    z-index: 1000;
    display: none;
}

#mm1{
    position: absolute;
    top: -45%;
    left: -50%;
    width: 100%;
    height: 100%;
    background: url(../img/matamoscas1.png);
    pointer-events: none; 
}

#mm2{
    position: absolute;
    top: -45%;
    left: -50%;
    width: 100%;
    height: 100%;
    background: url(../img/matamoscas2.png);
    display: none;
    pointer-events: none; 
}

#mosquito_ext{
    position: absolute;
    top: 62.2%;
    left: 42.4%;
    width: 25px;
    height: 25px;
    z-index: 9900;
    border: 1px solid rgba(255, 255, 255, 0);
}

#mosquito_pre{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 11px;
    height: 11px;
    border: 1px solid rgba(255, 0, 0, 0);
}


#mosquito{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 3px;
    height: 3px;
    background-color: rgba(0, 0, 0, 0.712);
}

#estudio_ext{
    z-index: 2000;
    position: absolute;
    top: 23px;
    left: 1%;
    width: 50%;
    height: 30px;
    border: 1px solid #4e6e7f;
    background-color: #4e6e7f8f;
    transform: translate(0%, -50%);
}

#estudio{
    position: absolute;
    left: 0;
    width: 1%;
    top: 0;
    height: 100%;
    background-color: #719cab;
    padding-left: 5px;
    text-align: left;
}


#ira_ext{
    z-index: 2001;
    position: absolute;
    top: 73px;
    left: 1%;
    width: 50%;
    height: 30px;
    border: 1px solid #8e291b;
    background-color: #8e281b8f;
    transform: translate(0%, -50%);
}

#ira{
    position: absolute;
    left: 0;
    width: 1%;
    top: 0;
    height: 100%;
    background-color: #b63b29;
    padding-left: 5px;
    text-align: left;
}

#cronometro{

    position: absolute;
    top: 618px;
    left: 651px;
    width: 254px;
    height: 56px;
    font-size: 75px;
    line-height: 52px;
    color: black;

}

#cortina{
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.801);
    z-index: 5000;
    font-size: 75px;
}

#cortina2{
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.801);
    z-index: 5000;
    font-size: 75px;
    display: none;
}

#texto2{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 30%;
    
}

#texto{
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 30%;
    font-size: 50px;
}

#startAgain{
    width: 100%;
    height: auto;
    position: absolute;
    top: 75%;
    left: 50%;
    transform: translate(-50%, 0%);
    background-color: rgba(255, 255, 255, 0.123);
    border-top: 1px solid white;
    border-bottom: 1px solid white;
    
}

#start{
    width: 100%;
    height: auto;
    position: absolute;
    top: 75%;
    left: 50%;
    transform: translate(-50%, 0%);
    background-color: rgba(255, 255, 255, 0.123);
    border-top: 1px solid white;
    border-bottom: 1px solid white;
}

#espacio{
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translate(-50%, 0);
    z-index: 1000;
    display: none;
    font-size: 30px;
}