@font-face {
    font-family: Raleway;
    src: url("https://www.centro-virtual.com/recursos/tipografias/Raleway-Bold.ttf");
    font-weight: bold;
}
@font-face {
    font-family: Raleway;
    src: url("https://www.centro-virtual.com/recursos/tipografias/Raleway-Medium.ttf");
    font-weight: 600;
}
@font-face {
    font-family: Raleway;
    src: url("https://www.centro-virtual.com/recursos/tipografias/Raleway-Regular.ttf");
    font-weight: normal;
}

body {
    color: #3d3d3d;
    font-family: "Raleway";
    font-weight: normal;
}

h1 {
    color: #fff;
    font-weight: bold;
    margin-left: 0.5em;
}

h2 {
    font-weight: bold;
}

a {
    color: #3d3d3d;
}

a:hover {
    color: #d0cc08;
}

.color-cua {
    color: #ede709;
}

.container {
    margin-top: 3%;
    width: 67%;
}

/*Estilos de los encabezados */
.header {
    padding: 1.2%;
    background-color: #3d3d3d;
}

.page .header {
    /*background-color: #ededed;*/
    padding: 0.5% 2%;

    /* Color de fondo gradiente (generado automáticamente) */
    background: rgba(237, 237, 237, 1); /* Old Browsers */
    background: -moz-linear-gradient(top, rgba(237, 237, 237, 1) 0%, rgba(237, 237, 237, 1) 11%, rgba(226, 226, 226, 1) 100%); /* FF3.6+ */
    background: -webkit-gradient(
        left top,
        left bottom,
        color-stop(0%, rgba(237, 237, 237, 1)),
        color-stop(11%, rgba(237, 237, 237, 1)),
        color-stop(100%, rgba(226, 226, 226, 1))
    ); /* Chrome, Safari4+ */
    background: -webkit-linear-gradient(top, rgba(237, 237, 237, 1) 0%, rgba(237, 237, 237, 1) 11%, rgba(226, 226, 226, 1) 100%); /* Chrome10+,Safari5.1+ */
    background: -o-linear-gradient(top, rgba(237, 237, 237, 1) 0%, rgba(237, 237, 237, 1) 11%, rgba(226, 226, 226, 1) 100%); /* Opera 11.10+ */
    background: -ms-linear-gradient(top, rgba(237, 237, 237, 1) 0%, rgba(237, 237, 237, 1) 11%, rgba(226, 226, 226, 1) 100%); /* IE 10+ */
    background: linear-gradient(to bottom, rgba(237, 237, 237, 1) 0%, rgba(237, 237, 237, 1) 11%, rgba(226, 226, 226, 1) 100%); /* W3C */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ededed', endColorstr='#e2e2e2', GradientType=0 ); /* IE6-9 */
}

/* Estilos de la búsqueda */
.has-feedback .form-control {
    font-size: 16px;
    height: 50px; /* necesario para que funcione en firefox */
    padding: 0 1.5em;
}

.form-control-feedback.fa.fa-search.ng-scope {
    font-size: 20px;
    margin-right: 0.5em;
    margin-top: 0.7em;
}

.fa.fa-times.form-control-feedback.ng-scope {
    cursor: pointer;
    font-size: 22px;
    margin-right: 0.7em;
    margin-top: 0.6em;
}

.has-feedback a {
    text-decoration: none;
    pointer-events: auto;
}

/* Estilos miga de pan */
.miga {
    padding-top: 0.6%;
}

.miga > span {
    font-size: 1.4em;
}

i.fa.fa-long-arrow-right {
    margin: 0 0.6%;
}

/* Estilos de las asignaturas */
.asignatura a:hover {
    text-decoration: none;
}
.asignatura .thumbnail:hover {
    background-color: #eee;
}
.asignatura .thumbnail h4 {
    text-align: center;
}

/*Fix para que el grid de Bootstrap funcione bien a pesar de no usar .row en las categorías (vista de 4 columnas) */
@media (min-width: 768px) {
    .asignatura:nth-child(4n + 5) {
        clear: left;
    }
}

@media (max-width: 992px) {
    .asignatura {
        padding-left: 5px;
        padding-right: 5px;
    }
}

/*Fix para que el grid de Bootstrap funcione bien a pesar de no usar .row en las categorías (vista de 2 columnas) */
@media (max-width: 768px) {
    .asignatura:nth-child(2) {
        margin-top: 0px;
    }
    .asignatura:nth-child(odd) {
        clear: left;
        color: red;
    }
    .asignatura {
        padding-left: 5px;
        padding-right: 5px;
    }
}

/* Estilos de los items */
.media-left a {
    text-decoration: none !important;
}

.gallery-icon {
    width: 64px;
    height: 64px;
    background-color: #337ab7;
    display: table;
    border-radius: 50%;
}

.media-heading {
    cursor: pointer;
}

.gallery-icon:hover {
    background-color: #5bc0de;
}

.gallery-icon span {
    display: table-cell;
    text-align: center;
    vertical-align: middle;
    font-size: 25px;
    color: white;
}

/*Fix para que el grid de Bootstrap funcione bien a pesar de no usar .row en los items */
/*@media(min-width:768px){
	.media:nth-child(2){
		margin-top:0px;
	}
	.media:nth-child(odd){
		clear:left;
	}
}*/

/* Mensaje de "No se han encontrado resultados" */
.help-msg {
    text-align: center;
}

.help-msg .glyphicon {
    width: 64px;
    height: 64px;
    color: #337ab7;
    font-size: 64px;
    clear: both;
}

/* Animaciones para mensaje de no encontrado */
@-webkit-keyframes rotateIn {
    0% {
        -webkit-transform-origin: center center;
        -webkit-transform: rotate(-200deg);
        opacity: 0;
    }
    100% {
        -webkit-transform-origin: center center;
        -webkit-transform: rotate(0);
        opacity: 1;
    }
}
@keyframes rotateIn {
    0% {
        transform-origin: center center;
        transform: rotate(-200deg);
        opacity: 0;
    }
    100% {
        transform-origin: center center;
        transform: rotate(0);
        opacity: 1;
    }
}
.help-msg .glyphicon.ng-hide-remove {
    -webkit-animation-duration: 0.5s;
    animation-duration: 0.5s;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
}

.help-msg .glyphicon.ng-hide-remove-active {
    -webkit-animation-name: rotateIn;
    animation-name: rotateIn;
}

/* Animaciones al cambiar de página o buscar */
@-webkit-keyframes bounceIn {
    0% {
        opacity: 0;
        -webkit-transform: scale(0.3);
    }

    50% {
        opacity: 1;
        -webkit-transform: scale(1.05);
    }

    70% {
        -webkit-transform: scale(0.9);
    }

    100% {
        -webkit-transform: scale(1);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }

    70% {
        transform: scale(0.9);
    }

    100% {
        transform: scale(1);
    }
}

.media.ng-move,
.media.ng-enter {
    -webkit-animation-duration: 0.7s;
    animation-duration: 0.7s;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
}

.media.ng-move.ng-move-active,
.media.ng-enter.ng-enter-active {
    -webkit-animation-name: bounceIn;
    animation-name: bounceIn;
}

/* Animaciones al cambiar de vista (categorías o items)*/
@-webkit-keyframes fadeInUp {
    0% {
        opacity: 0;
        -webkit-transform: translateY(10px);
    }
    100% {
        opacity: 1;
        -webkit-transform: translateY(0);
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.page.ng-move,
.page.ng-enter {
    -webkit-animation-duration: 0.7s;
    animation-duration: 0.7s;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
}

.page.ng-move.ng-move-active,
.page.ng-enter.ng-enter-active {
    -webkit-animation-name: fadeInUp;
    animation-name: fadeInUp;
}

/* Animaciones para cambios en la vista de categorías */
.asignatura.ng-move,
.asignatura.ng-enter {
    -webkit-animation-duration: 0.7s;
    animation-duration: 0.7s;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
}
.asignatura.ng-move.ng-move-active,
.asignatura.ng-enter.ng-enter-active {
    -webkit-animation-name: bounceIn;
    animation-name: bounceIn;
}

/* Animacion slide (no me funciona) */
@keyframes slide {
    from {
        height: 100%;
    }
    to {
        height: 0;
    }
}

span.ng-slide {
    animation: 0.5s slide;
}

/* Apartado area */
.table-hover {
    margin-top: 2.5%;
}

.table > tbody > tr {
    background-color: #f5f5f5;
}

.table > tbody > tr:hover {
    background-color: #ede709;
}

td > a > h4 {
    padding-left: 2%;
}

td > a:hover {
    color: #3d3d3d;
    text-decoration: none;
}

.table > tbody > tr > td:last-child {
    border-bottom: 1px solid #ddd;
}

/* Apartado unidades */
.unidades {
    background-color: #f1f1f1;
    border-top: 2px solid #ddd;
    display: table;
    margin: 2% 0;
    width: 100%;
}

.unidades > h4 {
    cursor: pointer;
    padding: 2% 2%;
}
.unidades > h4 span strong {
    font-weight: 600;
}
.recursos {
    display: table;
    margin-left: 2%;
}

.asignaturas {
    background-color: #f1f1f1;
    margin: 5px 5px 5px 30px;
    width: 80%;
}

.unidad {
    margin-left: 0.5%;
}

.unidad:hover {
    color: #d0cc08;
    text-decoration: underline;
}

.unidades > .recursos:first-of-type {
    margin-top: -0.7%;
}

.unidades > .recursos:last-of-type {
    padding-bottom: 3%;
}

.media-heading {
    color: #666;
    margin-left: 1%;
}

.media-heading:hover {
    color: #d0cc08;
    text-decoration: underline;
}

.espacio-i {
    color: #d0cc08;
    display: inline-block;
    float: left;
    margin-left: -0.5%;
    margin-top: 0.1%;
    width: 1.6%;
}

.download-icon {
    color: #f1f1f1;
    float: left;
    margin-top: 0.4%;
}

.media-heading:hover + .download-icon {
    color: #d0cc08;
}

.extra {
    margin-top: 18px;
    border-bottom: 1px solid #f1f1f1;
    padding-bottom: 15px;
}
.extra a {
    outline: transparent;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}
.extra a:hover,
.extra a:focus {
    text-decoration: none;
}
.extra a:hover {
    color: #d0cc08;
}
.extra a:focus {
    color: inherit;
}
.extra img {
    width: 32px;
    height: 32px;
    margin-right: 10px;
}

/* Vista nueva pestaña */
.help-msg > i {
    font-size: 5em;
    color: #d0cc08;
}

.btn-cua {
    color: #333 !important;
    background-color: #d0cc08;
    font-weight: bold;
}

/* Resultados busqueda */
.text-center .pagination > li > a,
.text-center .pagination > li > span {
    border: 1px solid #bbb;
    color: #d0cc08;
}

.pagination > .active > a,
.pagination > .active > a:focus,
.pagination > .active > a:hover,
.pagination > .active > span,
.pagination > .active > span:focus,
.pagination > .active > span:hover {
    background: #d0cc08;
    border-color: #d0cc08;
    color: #fff;
}

.pagination > li.active > a {
    color: #fff;
}

.pagination > li.active > a:hover {
    background: #d0cc08;
    color: #fff;
}
