@font-face {
    font-family: 'oswaldlight';
    src: url('../fonts/oswald/oswald-light-webfont.eot');
    src: url('../fonts/oswald/oswald-light-webfont.eot?#iefix') format('embedded-opentype'),
        url('../fonts/oswald/oswald-light-webfont.woff') format('woff'), url('../fonts/oswald/oswald-light-webfont.ttf')
        format('truetype'), url('../fonts/oswald/oswald-light-webfont.svg#oswaldlight') format('svg');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'roboto';
    src: url('../fonts/roboto/roboto.eot');
    src: url('../fonts/roboto/roboto.eot?#iefix') format('embedded-opentype'),
        url('../fonts/roboto/roboto.woff') format('woff'), url('../fonts/roboto/roboto.ttf')
        format('truetype'), url('../fonts/roboto/roboto.svg#roboto') format('svg');
    font-weight: normal;
    font-style: normal;
}


* {
	margin: 0px;
	padding: 0px;
	font-family: roboto,Arial,Helvetica,sans-serif;
}

body {
	background-color: #dbdbdb;
    font-size: 100%;
}

/* page */
#page {
	max-width: 1280px;
	min-width: 653px;
	width: 100%;
	margin: 0px auto;
	position: relative;
	border-top: solid 1px #2d2d2d;

}

/* header */
h1 {
	font-size: 100%;
	/*height: 145px;*/
	position: relative;

}
h1::before {
	content: "";
	display: block;
	position: absolute;
	width: 100%;
	border-bottom: 2px dashed #2d2d2d;
	bottom: -5px;
}

h1::after {
	content: "";
	display: block;
	clear: both;
}

.header {
	font-family: "oswaldlight";
	position: relative;
	background: #2d2d2d url("../img/main/triangulos.png") 150px top no-repeat;
}

.header * {
	font-family: "oswaldlight";
	font-weight: normal;
	color: #dbdbdb;
}

.header:after {
	content: "";
	display: block;
	clear: both;
	visibility: hidden;
	line-height: 0;
}

#leftSide {
	/*background-color: olive;*/
	float: left;
	height: 150px;
	position: relative;
	padding-left: 140px;
}

.unam{
	font-family: roboto,Arial,Helvetica,sans-serif;
	font-size: 18px;
	/*background-color: cyan;*/
	width: 230px;
	display: block;
	text-decoration: none;
	text-transform: uppercase;
	text-align: center;
	margin-top: 37px;
	margin-bottom: 25px;
	position: relative;
	outline: none;
}
.unam::before {
    /*background-color: navy;*/
    content: "";
    display: block;
    left: -100px;
    position: absolute;
    top: -16px;
    width: 80px;
    height: 117px;
    background-image: url("../img/main/logo_unam.png");
}

.dgtic {
	font-family: roboto,Arial,Helvetica,sans-serif;
	font-size: 18px;
	/*background-color: green;*/
	width: 120px;
	margin: auto;
	display: block;
	text-decoration: none;
	text-transform: uppercase;
	text-align: center;
	outline: none;
}

.projectName {
	/*background-color: gold;*/
    float: right;
    height: 150px;
    text-align: right;
    text-transform: uppercase;
    width: 230px;
    padding-right: 40px;
    background-color: #2d2d2d;
}

.projectName > span {
	display: block;
}
.firstRow {
	font-size: 20px;
	line-height: 30px;
	margin-top: 15px;
}
.secondRow {
	font-size: 42px;
	line-height: 52px;
}
.thirdRow {
	font-size: 26px;
	line-height: 36px;
}
.superior {
	font-weight: bold;
}



/* main grid */

#nav {
	margin: 30px auto 5px;
	width: 75.5%;
}

#nav ul {
	list-style-type: none;
}

#nav li {
	float: left;
	margin: 0px .75% 15px .75%;
	width: 23.4%;
	/*background-color: blue;*/
}



#nav a {
	display: block;
	width: 164px;
	height: 164px;
	overflow: hidden;
	margin:auto;
	line-height: 302px;
	font-weight: bold;
	text-align: center;
	text-decoration: none;
	text-transform: lowercase;
	color: #FFF;
	font-size: 1em;

	background-color: black;
	cursor: pointer;
	position: relative;

}
#nav a:hover {
}

a.nav-link:before {
	/*content:""*/
	position: absolute;
	width: 152px;
	height: 132px;
	line-height: 132px;
	top: 6px;
	left: 6px;
	font-size: 90px;

}

.btnRP::before {
    border-radius: 100%;
    box-shadow: 0 0 19px 9px rgba(0, 0, 0, 0.8);
    content: "";
    display: block;
    height: 24px;
    left: 11%;
    position: absolute;
    top: 26px;
    width: 74%;
    z-index: -1;
}
.btnRP {
    background: rgba(0, 0, 0, 0) url("../img/btn_rp.svg") no-repeat scroll 0 0;
    color: white;
    display: block;
    height: 55px;
    margin: 25px 0;
    padding-left: 72px;
    padding-top: 5px;
    position: relative;
    text-decoration: none;
    width: 225px;
}

/* Object list */
#content {
	width: 100%;
	position: absolute;
	top: 0px;
	bottom: 0px;
	left: 0px;
	z-index: 5;
	opacity: 1;
}

.closeButton {
    background-image: url("../img/btnCerrar.png");
    display: block;
    height: 31px;
    overflow: hidden;
    position: absolute;
    right: 24px;
    text-indent: -9999px;
    top: 4px;
    width: 32px;
    z-index: 2;
}
.courseContainer {
	border: none;
	/*border-top: solid 5px #fff;*/
	background-image: url("../img/fondo.png");
	width: 100%;
	min-height: 100%;
}

.inactive {
	display:none;
}
.active {
	display:block;
}

.objectList {
	list-style-type: none;
	margin: auto;
}

.objectList > li {
	position: relative;
	float: left;
	width: 26.85%;
	margin: 15px 3.2%;
	/*background-color: blue;*/
}


.object {
    background-color: rgba(255, 255, 255, 0.98);
    /*border: 5px solid #9A5FA3;*/
    color: black;
    height: 175px;
    margin: auto;
    overflow: hidden;
    /*padding: 5px;*/
    position: relative;
    width: 260px;
}


.screenshotContainer {
	float: left;
	margin-bottom: 3px;
	margin-right: 3px;

}

.screenshotContainer a img {
	border: none;
	width: 90px;
	height: 175px;
}

.description {
    font-size: 0.71875em;
    line-height: 16px;
    margin-left: 95px;
    margin-right: 5px;
}

.title {
	margin-bottom: 5px;
	line-height: 19px;
}
.title a {
	font-weight: bold;
	text-decoration: none;
	color: #333;
	font-size: 1em;
/*	line-height: 22px;*/
}

.title > a:before {
    content: "";
    display: block;
    height: 175px;
    position: absolute;
    width: 260px;
    z-index: 2;
}

.support {
	background-color: rgba(0,0,0,0.2);
	position: absolute;
	bottom: 0px;
	left: 0px;
	list-style-type: none;
	z-index: 1;
}

.support li {
	display: block;
	float: left;
	width: 32px;
	height: 56px;
	text-indent: -9999px;
	overflow: hidden;
	background-image: url("../img/iconos.png");
	margin: 0px;
}

.htmlIcon {
	background-position: -32px center;
}
.androidIcon {
	background-position: -96px center;
}
.iosIcon {
	background-position: -128px center;
}
.javaIcon {
	background-position: 0px center;
}
.flashIcon {
	background-position: -65px center;
}


#oxigeno_mnm .description,
#obj_arte .description {
	font-size: 10pt;
}

#footer {
	position: relative;
	background-color: #2d2d2d;
	color: #dbdbdb;
}

#footer p,
.contacto {
	font-size: 10pt;
	padding: 10px;
	text-align: center;
	padding-bottom: 0px;
}
#footer .contacto {
	padding-top: 2px;
	padding-bottom: 10px;

}
#footer .contacto a {
	color: #dbdbdb;
}

.correo {
	background-image: url("../img/correo.png");
	background-repeat: no-repeat;
	display: block;
	position: absolute;
	width: 40px;
	height: 40px;
	top: -40px;
	right: 0px;
	text-indent: -9999px;
	overflow: hidden;

}

h2 {
	color: white;
	margin: 0px 0px 30px;
	padding: 5px;
	min-height: 40px;
	line-height: 40px;
	text-align: center;
	position: relative;
	overflow: hidden;
}

/* autor en citas */
.author {
	display: block;
	text-align: right;
	font-size: smaller;
}

/************************************************* ICONOS MATERIAS******************************************************/
#content h2:before {
	/*content: "";*/
	display: block;
	position: absolute;
	top: 0px;
	width: 50px;
	height: 50px;
	line-height: 40px;
	color: #fff;
	box-shadow: 1px 2px 4px black;
	font-size: 30px;
}

/****************************************************************TERMINA ICONOS MATERIAS*******************************************************/


h2:before {
	left: -1px
}
h2:after {
	right: -25px
}
/************************************************COLOR BORDE Y FONDO  MATERIAS *************************************************/

.grupoA h2,
.grupoA.nav-link::before {
	background-color: #9A5DA0;
}
.grupoA .object {
	border:5px solid #9A5DA0;
}

.grupoB h2,
.grupoB.nav-link::before {
    background-color: #F47932;
}
.grupoB .object {
    border:5px solid #F47932;
}

.grupoC h2,
.grupoC.nav-link::before {
    background-color: #1f9cd9;
}
.grupoC .object {
    border:5px solid #1f9cd9;
}

.grupoD h2,
.grupoD.nav-link::before {
    background-color: #118e38;
}
.grupoD .object {
    border:5px solid #118e38;
}

.grupoE h2,
.grupoE.nav-link::before {
    background-color: #de9505;
}
.grupoE .object {
    border:5px solid #de9505;
}


.grupoF h2,
.grupoF.nav-link::before {
    background-color: #414BA3;
}
.grupoF .object {
    border:5px solid #414BA3;
}



/************************************************COLOR BORDE   MATERIAS *************************************************/

/* overlay */
.overlay {
	position: fixed;
	top:0px;
	left:0px;
	width: 100%;
	height: 100%;
	/*background-color: rgba(0,0,0,0.5);*/
	background-image: url("../img/fondo.png");
	z-index: 4;
}

.loading {
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
}

/* Clearfix */
#nav ul:after,
.objectList:after,
.support:after {
	content:".";
	display: block;
	clear: both;
	line-height: 0px;
	visibility: hidden;
}

/******LECCIONES DE MATEMATICAS*****/
.leccionMatematicas .screenshotContainer {
	float: none;

}

.leccionMatematicas .screenshotContainer a img {
	border: none;
	width: auto;
}

.leccionMatematicas .description {
    display: none;
}

.leccionMatematicas .title {
    position: absolute;
    right: 5px;
    top: 19px;
    width: 222px;
}

.leccionMatematicas .title a {
    color: #FFF;
}

/********************
*******CRÉDItoS
****************/

.regresoSitio {
    margin: 30px 0;
}
.btn_back::before {
    background-color: grey;
    border-radius: 0 20px 20px 0;
    box-shadow: 0 0 9px 6px rgba(0, 0, 0, 0.63);
    content: "";
    display: block;
    height: 3px;
    left: 12px;
    position: absolute;
    top: 40px;
    -webkit-transform: translateZ(-5px);
    transform: translateZ(-5px);
    width: 146px;
    z-index: -22;
}

.btn_back {
    background: rgba(0, 0, 0, 0) url("../img/inicio.png") no-repeat scroll 0 0;
    color: white;
    display: block;
    font-size: 21px;
    height: 46px;
    line-height: 46px;
    margin: 25px 0;
    position: relative;
    text-align: center;
    text-decoration: none;
    width: 193px;
}


.credits::after {
    background-image: url("../img/back_dots.png");
    content: "";
    height: 625px;
    position: absolute;
    top: -171px;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    width: 912px;
}

.credits::before {
    border-radius: 100%;
    bottom: 0;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.51) inset;
    content: "";
    display: block;
    height: 423px;
    left: 0;
    margin: auto;
    position: absolute;
    right: 0;
    text-align: center;
    top: 0;
    width: 423px;
}

.credits {
/*    background: rgba(0, 0, 0, 0) url("../img/back_dots.png") no-repeat scroll center center;*/
    position: relative;
    text-align: center;
    top: -45px;
    width: 100%;
    z-index: -1;
}	

.credits  p {
margin: 32px;
color: #3f3f3f;
}

.credito_tit {
    color: #63c1ed;
}

.credito {
    color: #0b7bbc;
    font-weight: bold;
}

.credits--title {
    border-bottom: 1px dotted #0e4f75;
    color: #0b7bbc;
    display: block;
    font-size: 23px;
    font-weight: lighter;
    margin-left: auto;
    margin-right: auto;
    margin-top: auto;
    text-transform: uppercase;
    width: 250px;
}

section {
    margin: 68px auto;
    width: 430px;
}

#content.ng-hide,
.overlay.ng-hide {
	opacity: 0;
}
#content.ng-hide-add, #content.ng-hide-remove,
.overlay.ng-hide-add, .overlay.ng-hide-remove {
  /* this is required as of 1.3x to properly
     apply all styling in a show/hide animation */
  -webkit-transition: 0s linear all;
  transition: 0s linear all;
}

#content.ng-hide-add-active,
#content.ng-hide-remove-active,
.overlay.ng-hide-add-active,
.overlay.ng-hide-remove-active {
  /* the transition is defined in the active class */
  -webkit-transition: 400ms linear all;
  transition: 400ms linear all;
}

#content.ng-hide-add {}
#content.ng-hide-add.ng-hide-add-active {}
#content.ng-hide-remove {}
#content.ng-hide-remove.ng-hide-remove-active {}

/****************
** RESPONSIVE
*****************/
@media screen and (min-width: 1200px) {

	nav li {
		/*background-color: green;*/
	}

	.objectList > li {
		margin: 0px .75% 15px .75%;
		width: 23.4%;
		/*background-color: green;*/
	}

}


@media screen and (max-width: 1024px) {

	#nav li {
		margin: 0px 0.6% 15px 0.6%;
		width: 32%;
		/*background-color: orange;*/
	}

	.objectList > li {
		/*background-color: orange;*/
	}

}

@media screen and (max-width: 915px) {

	#nav {
		margin: 30px auto 5px;
		width: 83%;
	}

	#nav li {
		margin: 0px 0.6% 15px 0.6%;
		width: 32%;
		/*background-color: orange;*/
	}

	.objectList > li {
		margin: 0px 2.5% 15px 2.5%;
		width: 45%;
		/*background-color: orange;*/
	}

}

@media screen and (max-width: 670px) {


	#nav {
		margin: 30px auto 5px;
		width: 90%;
	}

	#nav li {
		margin: 0px 2.5% 15px 2.5%;
		width: 45%;
		/*background-color: red;*/
	}

	.objectList > li {
		margin: 0px 2.5% 15px 2.5%;
		width: 100%;
		/*background-color: red;*/
	}

}



@media screen and (max-width: 653px) {

	.projectName {

		border-left: 1px solid #7c7c7c;
	}

}