/* =================== */
/* == F U E N T E S == */
/* =================== */

@font-face {
    font-family: UnicaOne;
    src: url(../fuentes/UnicaOne-Regular.ttf);
}

/* =============== */
/* == R E S E T == */
/* =============== */

*{box-sizing: border-box;}
html{scroll-behavior: smooth;}

body{
    width: 100%; height: 100vh;
    margin: 0;
    display: flex; align-items: center; justify-content: center;

    position: relative;
    
    font-family: "UnicaOne"; font-size: 16px;
    
    background-image: url("https://thumbs.dreamstime.com/b/9-un-desordenado-escritorio-con-un-mont%C3%B3n-de-papeles-y-una-taza-de-caf%C3%A9-370701518.jpg"); background-size: cover;
}

button, a, input, textarea, select, option{
    font: inherit;
    text-decoration: none;
    background: none;
    border: none;
    border-radius: none;
}

/* ======================= */
/* == E L E M E N T O S == */
/* ======================= */

#monitor{
    width: 100%;
    height: 100%;
    z-index: 2;
    display: flex;
    flex-direction: column;
}

#pantalla{
    width: 100%;
    height: 95%;
    padding: 50px;
    
    display: grid;
    grid-template-columns: 50px 50px 50px 50px;
    grid-template-rows: 50px 50px 50px 50px;
    gap: 50px;
    
    position: relative;
    overflow: hidden;
    
    background-color: greenyellow;
}

#menuInicio{
    width: 37%;
    height: 51%;
    padding: 5px;

    position: absolute;
    
    display: flex;
    flex-direction: column;
    gap: 5px;

    background-color: blue;
    top: 49%;
    left: 0%;
    transform-origin: bottom left;
    
    .menuInicio_elementos{
        padding: 20px;

        border: 3px solid white;

        color: white;
    }
}


.desactivado{
    display: none !important;
}

#barraInferior{
    width: 100%;
    height: 5%;
    
    display: flex;
    flex-direction: row;
    justify-content: left;
    align-items: center;
    gap: 10px;
    
    background-color: rgb(118, 199, 172);
}

#barraInferior_inicio{
    padding: 5px;
    
    label{
        font-weight: 600;
    }
}

.barraInferior_programa{
    width: 150px;
    padding: 6px;
    
    cursor: pointer;
    user-select: none;
    
    background-color: orange;
    label{
        margin: 0;
    }
}

.programaEscritorio{
    width: 50px;
    height: 50px;
    
    background-color: rgb(255, 189, 47);
    
    transition: transform 0.2s;

    label{
        user-select: none;
    }
}

.programaEscritorio:hover {
    transform: scale(1.05);
    rotate: 3deg;
    background-color: rgb(255, 210, 80);
}


.programa{
    min-width: 200px; 
    display: flex;
    flex-direction: column;
    padding: 0;

    resize: both;
    overflow: hidden;

    box-shadow: 0 10px 30px rgba(0,0,0,0.3);

    position: absolute;
    top: 30%;
    left: 30%; 

    background-color: rgb(192, 168, 88);

    .programa_barritaArriba{
        padding: 5px 15px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;

        h2{
            margin: 0;
            font-size: 90%;
        }

        label{
            user-select: none;
        }
    }

    .programa_ventana{
    flex-grow: 1;
    
    width: 100%;
    height: 100%;
    
    position: relative;
    
    display: flex;
    align-items: center;
    justify-content: center;
    
    overflow: hidden;
    background: #000;
    }

    .programa_ventana iframe {
        width: 100%;
        height: 100%;
        border: none;
        display: block;
    }

    .programa_barritaArriba {
        flex-shrink: 0; 
        user-select: none;
    }

    .programa_barritaArriba h2 {
        margin: 0;
        font-size: 14px; 
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}    

.iframe-app {
    border: none;
    transform-origin: center center;
    position: absolute;
    scale: .7;
}

.programa_barritaArriba {cursor: grab;}
.programa_barritaArriba:active {cursor: grabbing;}

#monitor {
    cursor: url("../fotos/cursor.png"), auto;
}

.programaEscritorio, #menuInicio, label, iframe div{
    cursor: url("../fotos/cursorMano.png"), auto;
}