﻿/*******************************************/
/*************** GENERAL *******************/
/*******************************************/

/* ALL ELEMENTS */

* {
	box-sizing: border-box;
	border-width: 1px;
	border-color: #041943;
}

/* ASPECT RATIO BOXES */

.rat4x3:before {
	content: "";
	display: block;
	padding-top: 75%;
}

.rat4x3 > * {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
}

/* COLUMNS */

div[class^="col-"] {
	float: left;
	padding: 5px;
	width: 100%;
}

@media only screen and (min-width: 500px) {
	div.col-1 {
		width: calc:(100%/12);
	}
	div.col-2 {
		width: calc(100%/6);
	}
	div.col-3 {
		width: 25%;
	}
	div.col-4 {
		width: calc(100%/3)
	}
	div.col-5 {
		width: calc(100%*5/12);
	}
	div.col-6 {
		width: 50%;
	}
	div.col-7 {
		width: calc(100%*7/12);
	}
	div.col-8 {
		width: calc(100%*2/3);
	}
	div.col-9 {
		width: 75%;
	}
	div.col-10 {
		width: calc(100%*5/6);
	}
	div.col-11 {
		width: calc(100%*11/12);
	}
}

/* CONTENT */

div.content {
	border-style: none solid;
	background-color: #f9f9f9;
	overflow: hidden;
	padding-bottom: 10px;
}

/* CONTENT ROWS */

div.row {
	overflow: auto;
	padding: 0px 5px 0px 5px;
}

div.row:first-of-type {
	padding-top: 5px;
}

div.row:last-of-type {
	padding-bottom: 5px;
}

div.row:after {
	content: "";
	clear: both;
	display: block;
}

/* HEADINGS */

h1, h2, h3 {
	padding: 0;
	margin: 10px 10px 0px 10px;
}

div[class^="col-"] > h1,
div[class^="col-"] > h2,
div[class^="col-"] > h3 {
	margin: 0;
}

h1, h2 {
	border-bottom-style: solid;
}

/* HTML */

.no-scroll {
	position: fixed;
	overflow-y: scroll;
	width: 100%;
}

/* IMAGES */

img {
	max-width: 100%;
}

/* LINKS */

a {
	text-decoration: none;
	color: #041943;
}

a.generic:link {
	color: #4592d2;
}

a.generic:visited {
	color: #9b45d2;
}

a.generic:hover {
	text-decoration: underline;
}

a.generic:active {
	color: #f6ac42;
}

/* PARAGRAPHS */

p {
	margin: 10px 10px 0px 10px;
}

div[class^="col-"] > p {
	margin: 10px 0px 0px 0px;
}

/* TABLES */

table {
	border-collapse: collapse;
	width: 100%;
}

table.two-columns td {
	width: 50%
}

table.four-columns td {
	width: 25%;
}

/*******************************************/
/************** PARTICULAR *****************/
/*******************************************/

/* BODY */

body {
	font-family: "Cambria", "Times New Roman", Times, Serif;
	color: #041943;
	background-image: url('../ui/background.png');
	background-position: center;
	background-repeat: repeat;
	background-attachment: fixed;
}

@media only screen and (min-width: 770px) {
	body {
	padding-left: 10%;
	padding-right: 10%;
	}
}

/* FOOTER */

div.footer {
	text-align:center;
	background-color:#f9f9f9;
	border-style: solid;
	padding:10px;
}

/* HEADER AND LOGO */

div.header {
	background-color:#041943;
	background-image:none;
	background-position:center bottom;
	background-repeat:repeat-x;
	border-style:none;
	padding:10px;
	padding-bottom:0;
	overflow:hidden;
}

div.logo {
	background-image:url('../ui/logo.png');
	background-repeat: no-repeat;
	background-size: contain;
	width:331px;
	max-width: 100%;
	margin:auto;
	overflow:auto;
}

div.logo:before {
	content: "";
	display: block;
	padding-top: 22.96%
}

/* NAVIGATION BAR */

/* Part 1 : The containing <div> */

div.navbar {
	background-color:#041943;
	padding: 10px;
}

/* Part 2 : Basic <ul> and <li> properties */

ul.buttons {
	list-style-type:none;
	margin:auto;
	padding:0;
	background-color:#f9f9f9;
	overflow:hidden;
}

ul.buttons li {
	float:left;
}

li#contact-us {
	float:right
}

ul.buttons li > a {
	padding: 15px 16px 16px 16px;
    display: block;
	transition-duration: 0.2s;
	-webkit-transition-duration: 0.2s;
}

ul.buttons li.active > a {
	color:#f9f9f9;
	background-color:#328efe;
}

ul.buttons li.inactive:hover > a {
	background-color: #dddddd;
}

ul.buttons li.not-link > span {
	padding: 15px 16px 16px 16px;
	display: block;
}

/* Part 3 : The content of the dropdown menu */

div.dropdown-content {
	display: block;
	transform: scale(1,0);
	-webkit-transform: scale(1,0);
	transform-origin: center top;
	-webkit-transform-origin: center top;
	opacity:0;
	transition-duration: 0.4s;
	-webkit-transition-duration: 0.4s;
	position: absolute;
	background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
	z-index:1;
}

ul.buttons li:hover div.dropdown-content {
	transform: scale(1,1);
	-webkit-transform: scale(1,1);
	opacity:1;
}

div.dropdown-content > a {
    padding: 12px 16px;
    display: block;
	transition-duration: 0.2s;
	-webkit-transition-duration: 0.2s;
}

div.dropdown-content > a:hover {
	background-color: #f1f1f1;
}

/* NAVIGATION BAR - MOBILE */

ul#mobile-nav {
	display: none;
}

li#toggle {
	float: right;
}

li#toggle div {
	cursor: pointer;
	width: 50px;
	height: 50px;
	background-image:url('../ui/toggle.svg');
	background-position: center;
	background-repeat: no-repeat;
	background-size: 50px 50px;
}

.mobile-expansion {
	display: none;
	overflow: hidden;
	background-color: #f9f9f9;
	-webkit-animation-duration: 0.4s;
	animation-duration: 0.4s;
}

.mobile-expansion a {
	display: block;
	padding: 12px 16px;
	text-decoration: none;
	color: #041943;
}

.mobile-expansion a:hover {
	background-color: #f1f1f1;
}

@-webkit-keyframes slide-down {
	from {height: 0;}
	to {height: 215px;}
}

@keyframes slide-down {
	from {height: 0;}
	to {height: 215px;}
}

@-webkit-keyframes slide-up {
	from {height: 215px;}
	to {height: 0;}
}

@keyframes slide-up {
	from {height: 215px;}
	to {height: 0;}
}

/* NAVIGATION BOXES ON HOMEPAGE */

div.nav-box-container {
	width: 100%;
	padding: 5px;
	float: left;
}

@media only screen and (min-width: 500px) {
	div.nav-box-container {
		width: calc(100%/3);
	}
}

div.nav-box {
	border: thin solid #ccc;
	transition-duration: 0.2s;
	-webkit-transition-duration: 0.2s;
}

div.nav-box:hover {
	background-color: #f1f1f1;
	border-color: #041943;
}

div.nav-box div:first-of-type {
	padding: 16px;
	font-size: 18px;
	text-align: center;
}

div.nav-box div:last-of-type {
	padding: 10px;
	text-align: justify;
}

/* SIDEBAR AND MAINBAR */

div.mainbar {
	float: left;
	width: 100%;
	padding-bottom: 10px;
}

div.mainbar:after {
	content: "";
	display: block;
	clear: left;
}

div.sidebar {
	float: right;
	width: 100%;
}

div.sidebar:after {
	content: "";
	display: block;
	clear: right;
}

@media screen and (min-width: 1260px) {
	div.mainbar {
		width: 80%;
	}
	div.sidebar {
		width: 20%;
	}
}


/* SIGNIFICANT PROJECTS THUMBNAILS */

ul.project-list {
	margin-bottom: 0;
}

ul.project-list img {
    border-radius: 15px;
    cursor: pointer;
    transition: 0.3s;
}

ul.project-list img:hover {
	opacity: 0.7;
}

/* UL . SIDE NAVBAR */

ul.side-navbar {
	list-style-type: none;
	padding: 5px;
	margin: 0;
}

ul.side-navbar li {
	float: left;
}

ul.side-navbar li span {
	display: block;
	padding:14px;
	font-weight:bold;
}

ul.side-navbar li a {
	padding: 15px 16px 16px 16px;
	text-decoration: none;
	display: block;
	border-style: solid;
	border-color: #f9f9f9;
	border-width: 1px 10px;
	border-radius: 25px;
	transition-duration: 0.2s;
}

@media only screen and (min-width: 1260px) {
	ul.side-navbar {
		padding: 0px 10px 10px 0px;
	}
	ul.side-navbar li {
		float: none;
	}
}

ul.side-navbar li.inactive:hover a {
	border-color: #ccc;
}

ul.side-navbar li.active a {
	border-color: #328efe;
}

/*******************************************/
/**************** SP MODAL *****************/
/*******************************************/

/* THE MODAL ITSELF */

div.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.9);
	cursor: default;
	color: #f1f1f1;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

/* THE TITLE BAR */

.modal-title {
	position: absolute;
	top: 0;
	text-align: center;
}

.modal-indicator {
	position: absolute;
	top: 0;
	left: 0;
}

.modal-close {
	background-image: url('../ui/close_button.gif');
	background-size: contain;
    position: absolute;
    cursor: pointer;
    transition: 0.3s;
	-webkit-transition: 0.3s;
}

.modal-close:hover {
    opacity: 0.7;
}

/* THE FOCUS OF THE MODAL */

div.modal-focus {
	position: absolute;
	top: 50%;
	left: 50%;
	margin-right: -50%;
	transform: translate(-50%,-50%);
	margin: 0;
	width: 640px;
	max-width: 50%;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.5);
}

div.modal-focus:before {
	content: "";
	display: block;
	padding-top: 79.375%; /* = 508/640 */
}

/* Modal Content (image) */

.modal-content {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	background-position: center center;
	background-repeat: no-repeat;
	background-size: contain;
}

.modal-content:before {
	content: "";
	display: block;
	padding-top: 75%; /* = 480/640 */
}

.modal-content video {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	max-width: 100%;
	height: auto;
}

.modal-caption {
	position: absolute;
	left: 0;
	right: 0;
	top: 94.49%; /* = 480/508 */
    text-align: center;
    font-size: 16px;
	padding: 5px;
	background-color: black;
}

/* Previous and Next */

.modal-previous {
	background-image: url('../ui/left_arrow.gif');
}

.modal-next {
	background-image: url('../ui/right_arrow.gif');
}

.modal-previous,
.modal-next {
	display: block;
	position: absolute;
	margin: auto;
	top: 0;
	bottom: 0;
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
	-webkit-transition: 0.3s;
	transition: 0.3s;
}
.modal-previous:hover,
.modal-next:hover {
	opacity: 0.7;
	cursor: pointer;
}

/* Sizing for the aforementioned elements */

div.modal {
	font-size: 16px;
}
div.modal-title {
	left: 40px;
	right: 40px;
	padding: 10.67px;
}
div.modal-indicator {
	padding: 10.67px;
}
div.modal-close {
	top: 10.67px;
	right: 10.67px;
	width: 16px;
	height: 16px;
}
div.modal-previous {
	left: 10.67px;
	width: 16px;
	height: 25.6px;
}
div.modal-next {
	right: 10.67px;
	width: 16px;
	height: 25.6px;
}

@media only screen and (min-width: 750px) {
	div.modal {
		font-size: 30px;
	}
	div.modal-title {
		left: 120px;
		right: 120px;
		padding: 20px;
	}
	div.modal-indicator {
		padding: 20px;
	}
	div.modal-close {
		top: 20px;
		right: 20px;
		width: 30px;
		height: 30px;
	}
	div.modal-previous {
		left: 20px;
		width: 30px;
		height: 48px;
	}
	div.modal-next {
		right: 20px;
		width: 30px;
		height: 48px;
	}
}

/* Pizazz i.e. Animation */

div.modal {
	-webkit-animation-name: fade-in;
	-webkit-animation-duration: 0.4s;
	animation-name: fade-in;
	animation-duration: 0.4s;
}

@-webkit-keyframes fade-in {
	from {opacity: 0} 
	to {opacity: 1}
}

@keyframes fade-in {
	from {opacity: 0} 
	to {opacity: 1}
}

@-webkit-keyframes fade-out {
	from {opacity: 1} 
	to {opacity: 0}
}

@keyframes fade-out {
	from {opacity: 1} 
	to {opacity: 0}
}