﻿.container3dText {
    position: relative;
}

    .container3dText .Dtext {
        font-size:28px;
        position: absolute;
        top: 35%;
        width: 100%;
        text-shadow: 0 1px 0 hsl(174,5%,80%), 0 2px 0 hsl(174,5%,75%), 0 3px 0 hsl(174,5%,70%), 0 4px 0 hsl(174,5%,66%), 0 5px 0 hsl(174,5%,64%), 0 6px 0 hsl(174,5%,62%), 0 7px 0 hsl(174,5%,61%), 0 8px 0 hsl(174,5%,60%), 0 0 5px rgba(0,0,0,.05), 0 1px 3px rgba(0,0,0,.2), 0 3px 5px rgba(0,0,0,.2), 0 5px 10px rgba(0,0,0,.2), 0 10px 10px rgba(0,0,0,.2), 0 20px 20px rgba(0,0,0,.3);
    }
.cube {
    width: 100%;
    text-align: center;
    margin: 0 auto;
    height: 300px;
    -webkit-transition: -webkit-transform .33s;
    transition: transform .33s; /* Animate the transform properties */
    -webkit-transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    -moz-transform-style: preserve-3d;
    -o-transform-style: preserve-3d;
    transform-style: preserve-3d;
    -ms-transform-style: none;
    transform-style: preserve-3d; /* <-NB */
    margin-left: 5px;
    background-image: url('../../images/leyes.jpg');
    background-repeat: repeat;
   border: 1px solid black;
}

/* The two faces of the cube */
.backblue {
   
    color: white !important;
    font-weight: 700;
}
.backgreen {
   
    color: white !important;
    font-weight: 700;
}

    .backgreen h1, .backpurple h1, .backblue h1, .backgreen h2, .backpurple h2, .backblue h2 {
        color: white;
    }
.backpurple {
    background-image: url('../../images/pic04.jpg');
    color: white !important;
    background-repeat: repeat;
}
    .backpurple h1, .backpurple h2 {
        color: white;
    }
    .flippety, .flop {
        border: 1px solid rgba(147, 184, 189, .8);
        -webkit-border-radius: 5px;
        border-radius: 5px;
        -webkit-box-shadow: 0 5px 20px rgba(105, 108, 109, .3), 0 0 8px 5px rgba(208, 223, 226, .4) inset;
        box-shadow: 0 5px 20px rgba(105, 108, 109, .3), 0 0 8px 5px rgba(208, 223, 226, .4) inset;
        height: 300px;
    }

/* Position the faces */
.flippety {
    -webkit-transform: translateZ(100px);
    transform: translateZ(100px);
}

.flop {
    -webkit-transform: rotateX(-90deg) translateZ(-100px);
    transform: rotateX(-90deg) translateZ(-100px);
}

/* Rotate the cube */
.cube:hover {
    -webkit-transform: rotateX(90deg);
    transform: rotateX(90deg); /* Text bleed at 90º */
}
flippety p,.flop p {
    display: block;
    vertical-align: central;
    font-family: 'Times New Roman' !important;
    margin: 2px 4px;
    font-size: 12px;
    padding: 2px 10px;
    text-align:justify;
    width: 100%;
    line-height: 2em;
}
.flippety h1 {
    display: block;
    vertical-align: central;
    font-family: 'Times New Roman' !important;
    margin: 5px 0px;
    font-size: 28px;
    color: white;
    font-weight: 900;
    text-decoration: underline;
}
.flop ul {
    list-style:circle;
    font-size:12px;
    font-weight:900;
    text-align:left;
    padding:3px;

}
    .flop ul > li {
        padding:2px 10px;
        line-height:2em;
        margin:0px 4px;
    }
