/* TABLE OF CONTENTS ------------------------------------------------

- BRANDING
- FONT-RELATED (fonts, headers, links)
- ELEMENTS (Lists, Buttons)
- FOOTER
- NAVIGATION (primary, bar)
- MAIN (across page, body modifications)
- BY PAGE (index.php, myobjects.php...)
- MODIFIERS (media, helper classes)


  BRANDING:

  Colors //
  Main: rgb(50, 200, 235);
  Accent: #31eaaf;

  Fonts //

  font-family: Xangda;


------------------------------------------------------------------- */

html {
  min-height: 100%;
  position: relative;
}

body {
  margin: 0 0 3rem 0;
  padding: 0;
  font-family: sans-serif;
  font-size: 100%;
  color: #222;
  background-color: white;
}

/* FONT-RELATED ------------------------------------------------------------------- */

@font-face {
  font-family: Xangda;
  src: url('resources/xangdaShiny.woff') format('woff'),
    url('resources/XangdaShiny.tff') format('truetype'),
	  url('resources/xangdaShiny.woff2') format('woff2');

}

#site-title {
  font-family: Xangda, Arial, sans-serif;
  font-size: 2.2em;
  letter-spacing: 2px;
}

h1 {
  margin: 0px auto;
  padding: 0;
  color: white;
}

h3 {
  text-align: center;
}

main {
  margin: 0;
}

main a {
  color: rgb(50, 200, 235);
}

/* ELEMENTS ------------------------------------------------------------------- */

ol {
  text-align: center;
  list-style-type: none;
  margin: 0;
  padding: 0;
}

li {
  margin: 10px 0;
  padding: 0;
}

img {
	border-radius: 5px;
}

audio {
  margin: 5px 0;
  border-radius: 5px;
}

/* Buttons and Inputs */

input, label {
  font-size: 1rem;
}

input[type=submit], .linkbutton {
  background-color: #31eaaf;
  -webkit-appearance: none;
  appearance: none;
  border: none;
  color: white;
  border-radius: 5px;
  cursor: pointer;
  padding:.6rem;
  font-size: 1rem;
  text-decoration: none;
  margin: 15px 0 15px 0;
}

.button-link {
	background-color: #31eaaf;
	display: block;
	border: none;
	color: white;
	border-radius: 5px;
	cursor: pointer;
	font-size: 1rem;
	text-decoration: none;
	padding: .6rem;
	text-align: center;
}

input[type="submit"]:hover,.button-link:hover {
	background-color: #4bf2bd;
}

input[type="submit"].delete-button {
	background-color: rgb(230, 100, 100);
}

input[type="submit"].delete-button:hover {
	background-color: #c94b4b;
}

#controls {
  margin: 0 auto;
  padding: 1rem 0;
  text-align: center;
}

#controls button {
  /* background-color: #31eaaf; */
  background-color: rgb(230, 100, 100);
  border: none;
  color: white;
  border-radius: 5px;
  cursor: pointer;
  padding:.6rem;
  font-size: 1rem;
  text-decoration: none;
}

#controls button:hover, .linkbutton:hover {
  background-color: rgb(200, 70, 70);
}

#controls button:disabled {
  background-color: #ccc;
  cursor: default;
}

.hide {
    visibility: hidden;
}

.show {
    visibility: visible;
}

.alert {
  padding: 1rem;
  background: rgb(230, 100, 100);
  text-align: center;
  font-weight: bold;
  color: #FFFFFF;
}

.notice {
  padding: 1rem;
  background: #31eaaf;
  text-align: center;
  font-weight: bold;
  color: #FFFFFF;
}

/* FOOTER ------------------------------------------------------------------- */

footer {
  background: rgb(50, 200, 235);
  position: absolute;
  bottom: 0;
  width:100%;
  height: 3rem;
  color: white;
}

footer ul {
  margin:.5rem 0 0 0;
  padding: 10px;
  text-align: center;
}

footer li {
  margin: 0;
  padding: 0;
  display: inline;
}

footer a {
  color: white;
}
footer a:hover {
  color: #222;
}

/* NAVIGATION -------------------------------------------------------------------- */

#primary-nav {
	background: rgb(50, 200, 235);
	text-align: center;
	padding: 15px 0 10px 0;
}

#primary-nav a {
	text-decoration: none;
	/*font-weight: bold;*/
	color: white;
	padding: 0;
}

/* bar menu */

#bar-menu-icon {
	font-size: 2em;
	position: absolute;
	top: 0;
	right: 0;
	margin: 18px;
}

#bar-menu-expanded {
	background-color: white;
	width: 300px;
	list-style-type: none;
	display: none;
	position: fixed;
	right: 0;
	z-index: 1;
	border: 1px solid #cdcdd4;
	border-top: none;
	border-radius: 0 0 0 5px;
}

#bar-menu-expanded ul {
	margin: 0px;
	padding-left: 0px;
}

#bar-menu-expanded li {
	list-style-type: none;
	border-bottom: 1px solid #cdcdd4;
	margin: 0;
}

#bar-menu-expanded li.active {
	background-color: #31eaaf;
	border: none;
}

#bar-menu-expanded a {
	display: block;
	padding: 20px 0 25px 25px;
}

#bar-menu-expanded li:hover {
	background-color: rgb(50, 200, 235);
}

#bar-menu-expanded li.active a, #bar-menu-expanded li:hover a {
	color: white;
}

#bar-menu-expanded li:last-child {
	border-bottom: none;
}

#bar-menu-expanded a {
	color: #222;
	font-size: 1.5em;
	text-decoration: none;
}

/* MAIN STYLING ------------------------------------------------------------------------ */

hr {
	margin: 15px 0 25px 0;
}

.section-banner {
	padding: 20px 0 20px 0;
	margin: 0 0 15px 0;
}

.sub-section {
	margin: 30px 0 30px 0;
}

.message {
	font-size: .7em;
}

/* forms */

.form-signin {
	width: 50%;
	margin: 0 auto;
	margin-top: 50px;
}

input[type="text"],input[type="email"],input[type="password"] {
	width: 100%;
	margin: 10px 0 10px 0;
}

select {
	font-size: 1em;
	margin-top: 10px;
	cursor: pointer;
}

/* pseudo buttons and inputs */

.form-button {
	background-color: white;
	font-size: 1rem;
	color: #31eaaf;
	display: block;
	border-radius: 5px;
	border: 1px solid #D1D1D1;
	text-decoration: none;
}

.fileUploader {
	width: 100%;
	height: 65px;
	position: relative;
}

.fileUploader a, .fileInput {
	width: 100%;
	position: absolute;
	top: 0;
	left: 0;
	padding: .6rem 0 .6rem 0;
	margin: 10px 0 10px 0;
	cursor: pointer;
}

.fileInput {
	width: 100%;
	height: 20px;
	opacity: 0;
	z-index: 1;
}

/* INDEX.PHP ------------------------------------------------------------------------ */

#edit {
	color:  rgb(50, 200, 235);
	font-size: 1.2em;
	position: absolute;
	top: 0;
	right: 0;
	margin-top: 20px;
	margin-right: 15px;
	cursor: pointer;
}

#editObjectInfo {
	display: none;
}

#sample-mobile {
	display: none;
}

#instructions {
	padding: 0 25%;
}


/* MYOBJECTS.PHP ------------------------------------------------------------------- */

.upload-img {
	display: none;
}

.object-set {
	text-align: center;
	padding: 10px;
	margin-bottom: 20px;
}

.object-image {
	max-height: 200px;
	max-width: 200px;
	width: 100%;
	height: auto;
	border-radius: 5px;
	margin-bottom: 10px;
}

/* MYSTORIES.PHP ------------------------------------------------------------------- */

#sortStories {
	margin: 0 0 15px 0;
}

/* toggle */

.switch {
  position: relative;
  display: inline-block;
  width: 30px;
  height: 17px;
  margin: 10px 5px 0 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.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: 10px;
  width: 10px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  background-color: rgb(50, 200, 235);
}

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

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

.slider.round {
  border-radius: 34px;
}

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

/* Modifiers ------------------------------------------------------------------- */

.center-this {
	text-align: center;
}

.hide-this {
	display: none;
}

@media only screen and (max-width: 400px) {
	.object-image {
		max-height: 200px;
		max-width: 200px;
	}
}

@media only screen and (max-width: 600px) {
	input[type="submit"] {
		width: 100%;
	}
	.button-fixed {
		width: 90%;
		position: fixed;
		bottom: 0;
		right: 0;
		margin: 10px;
	}
}

@media only screen and (max-width: 900px) {
	/* sample check */
	#sample-mobile {
		display: block;
	}
	#sample-desktop {
		display: none;
	}

	#instructions {
		padding: 0 10%;
	}
}
