/**
Global/Material styles
**/
.button {
	text-decoration: none;
	opacity: 0.87;
	color: white;
	background-color: #3F51B5;
	border-radius: 0.2em;
	padding: 0.5em 1em;
	box-shadow: 0px 0px 2px 1px rgba(0,0,0,0.2);
	border: 0px;
	outline: 0px;
	font-family: Roboto, sans-serif;
	-webkit-user-select: none; /* Chrome/Safari */        
	-moz-user-select: none; /* Firefox */
	-ms-user-select: none; /* IE10+ */
	-o-user-select: none;
	user-select: none;
	cursor: pointer;
}
.button.big {
	font-size: 1.15em;
	padding: 1em 1.5em;
}
*,html{
	padding: 0px;
	margin: 0px;
}
#main {
	font-family: Roboto, sans-serif;
}


/**
Main splash page
**/
#mainheader {
	text-align: center;
	min-height: 75vh;
	color: white;
	box-shadow: initial;
}
#mainheader h1 {
	text-align: center;
	margin-left: 0px;
	padding: 0px;
	font-size: 4em;
	line-height: 40vh;
}
#mainheader h2 {
	opacity: 0.57;
	font-weight: 300;
	text-align: center;
}
#getstarted {
	margin-top: 5em;
}
.descriptor-wrapper {
	background-color:#9C27B0;
	height: 25vh;
	text-align: center;
}
.descriptor {
	opacity: 0.32;
	font-family: Roboto, sans-serif;
	font-size: 1.2em;
	font-weight: 300;
	text-align: center;
	width: 100vw;
	color: white;
}
.descriptor a:visited, .descriptor a {
	color: white;
}

/**
Header
**/
header {
	z-index: 2;
	position: relative;
	display: block;
	background-color: #9C27B0;
	padding: 1em 0px;
	box-shadow: 0px -2px 4px 4px rgba(0,0,0,0.4);
	font-family: Roboto, sans-serif;
}
header h1 {
	margin-left: 72px;
	color: white;
	text-align: left;
	font-weight: 400;
	opacity: 0.87;
	font-size: 2.5em;
}

/**
Lesson List
**/
.lessonitem {
	display: block;
	width: 100%;
	border-bottom: 1px solid rgba(0,0,0,0.05);
	height: 15vh;
}
.lessontitle {
	margin-top: 20px;
	font-size: 2em;
	font-weight: 300;
	opacity: 0.87;
}
.lessonitemleft, .lessonitemright {
	float: left;
}
.lessonitemleft {
	width: 60vw;
	text-align: right;
}
.lessonitemright {
	line-height: 15vh;
	width: 20vw;
}
.lessonitemright .button {
	margin-left: 20px;
}
.tag {
	display: block;
	padding: 0.1em 0.3em;
	border-radius: 0.15em;
	float: right;
	margin: 0px 2px;
}
.tag.theme {
	color: rgba(0,0,0,0.54);
	background-color: rgba(0,0,0,0.12);
	opacity: 0.87;
}
.tag.BEGINNER {
	color: rgba(76,175,80,.54);
	background-color: rgba(76,175,80,.12);
}
.tag.INTERMEDIATE {
	color: rgba(220,231,117,.95);
	background-color: rgba(220,231,117,.32);
}
.tag.HARD {
	color: rgba(255,0,0,.54);
	background-color: rgba(255,0,0,.12);
}
/**
Login area
**/
#loginarea, #signuparea{
	display: none;
	background: white;
	width: 50vw;
	border-radius: .2em;
	text-align: center;
	font-family: Roboto, sans-serif;
	font-weight: 300;
}
#loginarea h1 , #signuparea h1{
	text-align: center;
	font-weight: 300;
	font-size: 2em;
	margin: 20px 0px;
}
#loginarea input , #signuparea input{
	text-align: center;
	width: 44vw;
	margin: 5px 1.5vw;
	padding: 1.5vw;
	font-size: 1.5em;
	border-radius: 2em;
	opacity: 0.87;
	border: 1px solid rgba(0,0,0,0.1);
	outline: 0px;
}
.shake {
  animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes shake {
  10%, 90% {
    transform: translate3d(-1px, 0, 0);
  }
  
  20%, 80% {
    transform: translate3d(2px, 0, 0);
  }

  30%, 50%, 70% {
    transform: translate3d(-4px, 0, 0);
  }

  40%, 60% {
    transform: translate3d(4px, 0, 0);
  }
}

/**
Code editing
**/
#codeEditor {
	font-family: monospace;
	margin: 0px auto;
	width: 60%;
	position: relative;
}
#editor-wrapper, #console-wrapper, #button-wrapper {
	width: 100%;
	margin: 10px auto;
}
#editor-wrapper {
	position: relative;
	z-index: 1;
}
#button-wrapper {
	position: absolute;
	z-index: 100;
	bottom: 7px;
	right: 0px;
	width: 6em;
}
.CodeMirror {
	box-shadow: 0px 0px 2px 1px rgba(0,0,0,0.2);
	border-radius: 0.2em;
}
#button-wrapper .button {
	box-shadow: initial;
}
#editor-wrapper .CodeMirror {
	height: 35%;
}
#console-wrapper .CodeMirror{
	margin-top: 20px;
	height: 10%;
}
#button-wrapper {
	margin-top:-3em;
	padding-right: 10px;
	text-align: right;
}
.run { 
	margin: 10px auto;
}
#lesson-text {
	width: 60%;
	margin: 10px auto;
	font-family: Roboto, sans-serif;
	font-weight: 300;
	font-size: 1.2em;
	line-height: 1.5em;
	padding: 1.5em 0;
}
.wrong {
	box-shadow: 0px 0px 4px 4px rgba(255,0,0,0.5);
}
.right {
	box-shadow: 0px 0px 4px 4px rgba(0,255,0,0.5);
}

/**
Menu
**/
#hamburger {
	float: left;
	color: white;
	font-size: 2em;
	z-index: ;
	margin: 0px 20px;
	opacity: 0.87;
	font-weight: 300;
	display: block;
	cursor: pointer; 
}
#menu {
	position: fixed;
	display: none;
	top: 4em;
	left: 0px;
	height: 100vh;
	width:18%;
	z-index: 1;
	background: white;
	border-right: 1px solid rgba(0,0,0,0.05);
	box-shadow: -2px 0px 3px 4px rgba(0,0,0,0.2);
	overflow: hidden;
	padding-top: 2em;
}
#menu ul li{
	width: 100%;
	text-align: center;
	font-family: Roboto, sans-serif;
	display: block;
	text-align: left;
	
}
#menu ul li a {
	display: block;
	padding: 1em 0;
	font-size: 1.5em;
	text-decoration: none;
	font-weight: 300;
	width: 100%;
	color: black;
	padding-left: 20px;	
}
.active, #menu ul li a:hover {
	background-color: rgba(0,0,0,0.05);
}

/**
Profile
**/
#profile-wrapper {
	width: 100%;
	margin: 20px auto;
	text-align: center;
}
#profilepic {
	border-radius: 100%;
	box-shadow: 0px 0px 10px -4px black;
	margin: 0px auto;
}
.welcome {
	font-family: Roboto, sans-serif;
	font-size: 2em;
	line-height: 3em;
	font-weight: 300;
}
.points, .ranking {
	font-family: Roboto, sans-serif;
	font-size: 1.5em;
	line-height: 2em;
	font-weight: 300;
}

/**
Loading
**/
.spinner {
  width: 40px;
  height: 40px;
  margin: 100px auto;
  background-color: #333;
  border-radius: 100%;  
  -webkit-animation: sk-scaleout 1.0s infinite ease-in-out;
  animation: sk-scaleout 1.0s infinite ease-in-out;
}

@-webkit-keyframes sk-scaleout {
  0% { -webkit-transform: scale(0) }
  100% {
    -webkit-transform: scale(1.0);
    opacity: 0;
  }
}

@keyframes sk-scaleout {
  0% { 
    -webkit-transform: scale(0);
    transform: scale(0);
  } 100% {
    -webkit-transform: scale(1.0);
    transform: scale(1.0);
    opacity: 0;
  }
}

/**
Choosing Themes
**/
#themes {
	font-family: Roboto, sans-serif;
	font-weight: 300;
	display: none;
	width: 60%;
	background-color: white;
	border-radius: 0.2em;
	text-align: center;
}
#themes h1 {
	font-weight: 300;
	font-size: 3em;
	margin: 20px 0px;
}
#themes .theme {
	display: inline-block;
	padding: 5px 15px;
	font-size: 1.3em;
	background-color: rgba(0,0,0,0.1);
	border-radius: 1em;
	margin: 10px 20px;
	opacity: 0.87;
	cursor: pointer;
}
#themes .theme.active {
	background-color: #3F51B5;
	color: white;
}

/**
Autosave
**/
.notification {
	position: fixed;
	right: 10px;
	color: rgba(76,175,80,.54);
	background-color: rgba(76,175,80,.12);
	border: 1px solid rgba(76,175,80,.32);
	border-radius: 0.2em;
	font-family: Roboto, sans-serif;
	font-weight: 300;
	padding: 0.3em 0.5em;
	font-size: 1.5em;
	display: none;
	opacity: 0.87;
}
#autosave {
	bottom: 10px;
}
#points {
	bottom: 2.5em;
}

/**
Next button
**/
#next {
	margin: 0px auto;
	padding:  0.5em 2em;
}
#next-wrapper {
	text-align: center;
}

/**
Verifying
**/
.verifying {
	font-family: Roboto, sans-serif;
	font-weight: 300;
	font-size: 0.8em;
	opacity: 0.57;
	display: none;
}


/**
Wrong notification 
**/
#tag-wrapper {
	text-align: center;
}
.wrongnoti {
	font-family: Roboto, sans-serif;
	font-weight: 300;
	display: none;
	color: rgba(255,0,0,.54);
	background-color: rgba(255,0,0,.12);
	border: 1px solid rgba(255,0,0,.32);
	padding: 0.2em;
	border-radius: 0.1em;
}
.circle {
	margin: -15vh 8em;
	display: flex;
	position: relative;
	align-items: center;
	height: 15vh;
}
.circle span {
	position: absolute;
	top: 0px;
	left: 0px;
	text-align: center;
	font-weight: 300;
	font-size: 0.6em;
	color: green;
	width: 32px;
}
