/*custom font*/
@import url(https://fonts.googleapis.com/css?family=Montserrat);

/*basic reset*/
* {margin: 0; padding: 0;}

html {
	height: 100%;
	/*Image only BG fallback*/
	
	/*background = gradient + image pattern combo*/
	background: 
		linear-gradient(rgba(244, 235, 211, 0.8), rgba(85, 88, 121, 0.8));
}

body {
	font-family: montserrat, arial, verdana;
}

#header {
    grid-area: header;
    display: grid;
    grid-template-areas: "head-nav"
                                                "title";
    width: 100%;
    height: auto;
    background-color: #98A1BC;
    color: #F4EBD3;
}

#title {
    grid-area: title;
    display: flex;
    justify-content: center;
    align-content: center;
    font-size: 30px;
}

#head-nav {
    grid-area: head-nav;
    display: flex;
    flex-direction: row;
    align-items: center;
    background-color: #555879;
    height: 5em;
}

#head-nav a {
    font-size: 14px;
    text-decoration: none;
    color: #F4EBD3;
    display: flex;
    flex-grow: 2;
    justify-content: space-around;
    padding: 5%;
}

#head-nav a:hover {
    text-decoration: underline;
    opacity: 0.5;
}




/*form styles*/
#msform {
	width: 400px;
	margin: 50px auto;
	text-align: center;
	position: relative;
}
#msform form {
	background: white;
	border: 0 none;
	border-radius: 3px;
	box-shadow: 0 0 15px 1px rgba(0, 0, 0, 0.4);
	padding: 20px 30px;
	box-sizing: border-box;
	width: 80%;
	margin: 0 10%;
	
	/*stacking fieldsets above each other*/
	position: relative;
}
/*Hide all except first fieldset*/
#msform form:not(:first-of-type) {
	display: none;
}
/*inputs*/
#msform input, #msform textarea {
	padding: 15px;
	border: 1px solid #ccc;
	border-radius: 3px;
	margin-bottom: 10px;
	width: 100%;
	box-sizing: border-box;
	font-family: montserrat;
	color: #2C3E50;
	font-size: 13px;
}
/*buttons*/
#msform .action-button {
	width: 100px;
	background: #555879;
	font-weight: bold;
	color: white;
	border: 0 none;
	border-radius: 1px;
	cursor: pointer;
	padding: 10px;
	margin: 10px 5px;
  text-decoration: none;
  font-size: 14px;
}
#msform .action-button:hover, #msform .action-button:focus {
	box-shadow: 0 0 0 2px white, 0 0 0 3px #555879;
}

#toggle {
	display: flex;
	justify-content: center;
	align-content: center;
	padding-top: 3%
}

/*headings*/
.fs-title {
	font-size: 15px;
	text-transform: uppercase;
	color: #2C3E50;
	margin-bottom: 10px;
}
.fs-subtitle {
	font-weight: normal;
	font-size: 13px;
	color: #666;
	margin-bottom: 20px;
}

/* The switch - the box around the slider */
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  background-color: #2196F3;
}

input:focus + .slider {
  box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

#login-state {
	display: block;
	text-align: center;
}

#register-state {
	display: none;
	text-align: center;
}





@media all and (max-width: 600px) {
    body {
        grid-template-areas: "header"
                                                    "main";
        grid-template-rows: 1fr;
    }
    .link-title {
        display: none;
    }
    #header {
            grid-template-columns: 1fr;
            grid-template-rows: 2em;
            rid-template-areas: "head-nav"
                                                    "title";
        }
        #title {
            text-align: center;
            margin: 8%;
        }
    }
