html {
    height: 100%;
}

body {
  font-family: Arial, sans-serif;
    background-color: #b6e3e9;
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100vw;
    overflow: hidden;
    font-size: 100%;
}

.headercontainer {
    border: 1px solid #666;
    display: flex;
    background-color: #f7f7f7;
    justify-content: space-between;
    align-items: center;
    padding: 2px;
    width: 100vw;
    color: #03C;
    height: 60px;
}

.mainbodycontainer {
    background-color: #b6e3e9;
    background-image: url('../img/fondo.jpg');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
    height: calc(100vh - 89px - 60px);
    /* Altura entre header y footer */
    width: 100vw;
    position: relative;
}


.footercontainer {
    background-color: #f7f7f7;
    width: 100%;
    height: 89px;
    border: 1px solid #666;
    left: 0;
    position: fixed;
    bottom: 0;
    text-align: center;
}

form {
    padding: 2vh;
    border-radius: 2px;
    margin: auto;
    background-color: #f7f7f7;
    border: blue 5px outset;
    max-width: 100%;
}

input#abrir-cerrar {
    visibility: hidden;
    position: absolute;
}

.cerrar {
    display: none;
    color: #0472fc;
    font-weight: bold;
    font-size: larger;
}

.abrir {
    color: #0472fc;
    font-weight: bold;
    font-size: larger;
}

#sidebar {
    width: 0;
}

#contenido {
    margin-left: 0;
}

input#abrir-cerrar:checked~#sidebar {
    width: 42%;
    max-width: 100%;
}

input#abrir-cerrar:checked+label[for="abrir-cerrar"],
input#abrir-cerrar:checked~#contenido {
    margin-left: 5vw;
    transition: margin-left .4s;
    max-width: 100%;
}

input#abrir-cerrar:checked+label[for="abrir-cerrar"] .cerrar {
    display: inline;
}

input#abrir-cerrar:checked+label[for="abrir-cerrar"] .abrir {
    display: none;
    color: #1676F8;
}

.sidebar {
    position: fixed;
    height: 100%;
    width: 0;
    top: 0;
    left: 0;
    z-index: 1;
    background-color: #00324b;
    overflow-x: hidden;
    transition: 0.4s;
    padding: 1rem 0;
    box-sizing: border-box;
}

#contenido {
    transition: margin-left .4s;
    padding: 1rem;
}

.abrir-cerrar {
    color: #2E88C7;
    font-size: 1rem;
}

.back {
    background-color: #E5E5E5;
    color: black;
    margin-top: 0px;
    margin-bottom: 50px;
}

#tituloFormulario {
    text-align: center;
    font-size: 200%;
    font-family: Cambria;
}

#Titulo {
    width: 100vw;
    margin: 0px auto;
    position: relative;
    top: 0px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    margin-right: 10px;
}

h5 {
    color: #312097;
}

h2 {
  color: black;
}

.estiloCompensatoria {
    color: #FF0000;
    font-weight: bold;
    font-size: 25px;
}


@media only screen and (max-device-width: 480px) and (orientation: portrait) {

    .mainbodycontainer {
        background-size: 65%;
        background-color: #b6e3e9;
        background-image: url('../img/fondo_moviles.jpg');
        background-repeat: no-repeat;
        background-position: center center;
        height: calc(100vh - 89px - 60px);
        width: 100vw;
    }

           .mainbodycontainer::before {
               content: "";
               position: absolute;
    
               /* POSICIÓN (ajusta fino si quieres) */
               top: 45%;
               left: 65%;
               transform: translateX(20px) rotate(-10deg);
    
               /* TAMAÑO MÁS GRANDE */
               width: 300px;
               height: 300px;
    
               background-image: url('../img/frio-oso.gif');
               background-size: contain;
               background-repeat: no-repeat;
    
               pointer-events: none;
               z-index: 2;
           }

        body::before {
            content: "";
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
    
            background-image: url('../img/nieve.gif');
            background-repeat: repeat;
            background-size: cover;
    
            pointer-events: none;
            /* no bloquea la web */
            z-index: 9999;
            /* siempre encima */
        }
    /* SOL quitado */
    .mainbodycontainer::after {
        content: none;
    }

    input#abrir-cerrar:checked~#sidebar {
        width: 60%;
    }
}

