body, html {
	padding: 0;
	margin: 0;
    background: url(img/bg-tile.jpg) center top;
    background-attachment: scroll;
}

* {
	font-family: 'Bitter', serif;
}

h1, h2, h3, h4 {
	font-family: 'Abril Fatface', cursive;
	/*font-family: 'Bitter', serif;*/
	line-height: 1.5em;
}

h4 {
    font-size: 1.2em;
}

p, li {
	text-align: justify;
}

ul {
	list-style: none;
}

a {
	color: black; /*#ca9d04  ;*/
	font-weight: bold;
	/*text-decoration: none;*/
}

a:hover,
a:focus,
a:active,
a:visited {
	color: #ca9d04  ;
	/* color: #9099d0; */
}

nav{
	background-color: #fcde4e ; /* #fcde4e  ; */
	border-bottom: 5px solid  #ca9d04  ; /* #ca9d04  ; */ /*#74993c*/
	box-shadow: 0 3px 5px 0 rgba(0,0,0,0.5);
	position: fixed;
	z-index: 100;
	width: 100%;
}

nav a {
	text-decoration: none;
	color: inherit;
}

nav ul{
	list-style: none;
    padding: 0;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 80%;
}

nav li{
	font-family: 'Abril Fatface', cursive;
	font-size: 10px;
	/*
	font-family: 'Bitter', serif;
	font-size: 18px;
	*/
	padding: 10px;
	color: white;
    text-shadow: -1px -1px 0 #000, 1px -1px	0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
    font-size: 1.2em;
}

nav li:hover {
	color: #77958f; 
	/* color: #e9b207; */
    cursor: pointer;
}

#s1 {
	z-index: 8;
	padding-top: 30px;
	padding-bottom: 0;
	border-bottom: 5px #ca9d04 solid;
	box-shadow: 0 3px 5px 0 rgba(0,0,0,0.5);
}

#s2 {
	padding-top: 50px;
	z-index: 7;
}

#s3 {
	z-index: 6;
}

#s4 {
	z-index: 5;
}

#s5 {
	z-index: 4;
	padding-bottom: 50px;
}

#dice {
	position: absolute;
    bottom: -100px;
    width: 200px;
}

#dice:hover {
	cursor: pointer;
}

#s6 {
	z-index: 3;
}

#s7 {
	z-index: 2;

}

#s8 {
    box-shadow: inset 0 5px 5px 0 rgba(0,0,0,0.5);
    z-index: 1;
    background-color: #ca9d04  ;
    border-bottom: 65px #fcde4e   solid;
    margin-top: 70px;
    padding: 10px 0;
}

#s8 .container{
	background-color: #fcde4e  ;
	border: none;
	color: white;
	transform: rotateZ(0deg) !important;
	box-shadow: none;
	text-shadow: -1px -1px 0 #000, 1px -1px	0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}

.material-icons {
  font-family: 'Material Icons';
  font-size: 0.7em;

  /* Support for all WebKit browsers. */
  -webkit-font-smoothing: antialiased;
  /* Support for Safari and Chrome. */
  text-rendering: optimizeLegibility;

  /* Support for Firefox. */
  -moz-osx-font-smoothing: grayscale;

  /* Support for IE. */
  font-feature-settings: 'liga';
}

section {
	position: relative;
	padding: 25px 0;
}

section:nth-child(even) .container{

	//*background-color: wheat;*/
}

section:nth-child(odd) .container{
	/*background-color: #afc7ed;*/
	//*background-color: #b7d074*/
}

.box {
    width: 90%;
    margin: auto;
    display: flex;
}

.container {
	width: 45%;
	margin: auto;
	border-radius: 15px;
    border: 5px #ca9d04   solid;
    background: white;
    box-shadow: 3px 3px 5px 0 rgba(0,0,0,0.5);
}

.container h2 {
    font-size: 1.5em;
	padding: 25px;
    background: #fcde4e  ;
    margin: 0;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    color: white;
	text-shadow: -1px -1px 0 #000, 1px -1px	0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}

.container p {
	padding: 0 25px 10px 25px;
	margin: 0;
}

.container p:first-of-type {
	padding-top: 25px
}

.container p:last-of-type {
	padding-bottom: 25px
}

.container ul {
    padding: 0;
    margin: 0;
    background: transparent;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.container ul li:nth-child(even){
	background: inherit;
}

.container.alt-table ul li:nth-child(even){
	background:  #FFEE9D     ;
}

.container.alt-table ul li:nth-child(odd){
	background: inherit;
}

.container ul li {
	padding: 15px 25px;
}

.container ul li:last-child {
	padding-bottom: 25px;
	border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

#background-image {
	width: 100%;
}

.title {
	position: absolute;
	left: 7%;
	bottom: 0;
	color: white;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}

.title h1{
	font-size: 2.2em;
	margin-bottom: 0;
}
.title h2{
	font-size: 1.8em;
	margin-top: 0;
}

table{
    width: 100%;
    border-collapse: collapse;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    background:  #FFEE9D     ;
}

tr:nth-child(even) {

}

tr:nth-child(odd) {
	background-color: white;
}

td {
	padding: 15px 25px;
}

table, tbody, tr, td {
	-webkit-border-horizontal-spacing: 0;
	-webkit-border-vertical-spacing: 0;
}

#intro {
transform: rotateZ(1deg)
}

#scope {
transform: rotateZ(-2deg)
}

#submission {
transform: rotateZ(-1deg)
}

#guidelines {
transform: rotateZ(1deg)
}

#dates {
transform: rotateZ(3deg)
}

#organiser {
transform: rotateZ(-2deg)
}

#papers {
	transform: rotateZ(1deg);
	min-height: 270px;
}

#committee {
	transform: rotateZ(1deg)
}

@media (max-width: 899px) {
	.box {
		flex-wrap: 	wrap;
	}

	.container:first-of-type{
		margin-bottom: 50px;
	}

	.container {
		transform: rotateZ(0deg) !important;
		width: 100%;
	}

	h4 {
		text-align: left;
	}

	.title{
	    font-size: 0.65em;
    	position: relative;
    	text-align: center;
    	left:0;
	}

	#background-image {
		display: none;
	}

	#s1 {
		background-color: #fcde4e  ;
		padding-top: 60px;
	}

	nav {
		top: -470px;
		transition: all 0.3s;
	}

	nav.open {
		top:0;
	}

	nav ul {
		display: block;
		width: 100%;
		padding: 15px 0;
	}

	nav ul li {
	    font-size: 1.2em;
		padding: 15px 0;
		text-align: center;
	}

	#hamburger {
    	width: 45px;
    	height: 45px;
    	margin: auto;
    	position: relative;
	}

	.bar{
		position: absolute;
        width: 45px;
        height: 8px;
        background: white;
        border: 1px solid black;
        border-radius: 2px;
        transition: all 0.5s;
        margin: auto;
	}

	.bar:first-child{

	}
	.bar:nth-child(2) {
        top: 15px;
        opacity: 1;
    }

    .bar:nth-child(3) {
        bottom: 5px;
        transform: rotate(0deg);
    }

    #hamburger.open .bar:first-child{
	    transform: rotateZ(135deg);
    	top: 15px;
	}
	#hamburger.open .bar:nth-child(2) {
        opacity: 0;
    }

    #hamburger.open .bar:nth-child(3) {
        transform: rotateZ(-135deg);
    	bottom: 20px;
    }
}

