/*!
 * QCObjects SDK @VERSION
 * https://sdk.qcobjects.com
 *
 *
 * QCObjects SDK is a part of QCObjects
 *
 * Cross Browser Javascript Framework for MVC Patterns
 * QuickCorp/QCObjects is licensed under the
 * GNU Lesser General Public License v3.0
 * [LICENSE] (https://github.com/QuickCorp/QCObjects/blob/master/LICENSE.txt)
 *
 * Permissions of this copyleft license are conditioned on making available
 * complete source code of licensed works and modifications under the same
 * license or the GNU GPLv3. Copyright and license notices must be preserved.
 * Contributors provide an express grant of patent rights. However, a larger
 * work using the licensed work through interfaces provided by the licensed
 * work may be distributed under different terms and without source code for
 * the larger work.
 *
 * Copyright (C) 2015 Jean Machuca,<correojean@gmail.com>
 *
 * Everyone is permitted to copy and distribute verbatim copies of this
 * license document, but changing it is not allowed.
 */

main {
  padding: 20px;
  padding-bottom: 20%;
}

.gridlines * {
  border: 1px green dotted;
}

/* FOCUS */
* summary:focus,
* a:focus,
* button:focus {
  outline: none;
}

/* NAV */
nav {
  float: left;
  width: 0;
  top: 0;
  bottom: 0;
  height: auto;
  padding: 20px;
}

nav > quick-component {
  width: 0;
  min-height: 100%;
  position: fixed;
  z-index: 1;
  top: 0;
  left: 0;
  right: 0;
  bottom: 10%;
  overflow-y: auto;
  background-color: #111;
  transition: 0.5s;
  padding-top: 60px;
}

nav > quick-component a {
  padding: 8px 8px 8px 32px;
  text-decoration: none;
  font-size: 15px;
  color: #ecffc7;
  display: block;
  transition: 0.3s;
}

nav > quick-component a:hover {
  color: #f1f1f1;
}

nav summary {
  list-style: none;
  border: none;
  white-space: nowrap;
}

nav summary::-webkit-details-marker {
  display: none;
}

nav details {
  padding: 15px;
  background-color: #222;
  margin-bottom: 3px;
}

nav summary::before {
  content: url('../img/Q_web.svg'); /* the icon for list in sidebar */
  color: #e5f59d;
  margin-right: 20px;
}

nav { color: white; }

nav {
  text-align: justify;
  z-index: 9;
}

nav > button.navbtn {
  font-size: 20px;
  cursor: pointer;
  background-color: #111;
  color: white;
  padding: 10px 15px;
  border: none;
  top: 0;
  left: 0;
  position: fixed;
}
nav > button.navbtn::after { content: '\2630'; }

nav > quick-component > span.closebtn {
  position: fixed;
  display: none;
  top: 0;
  right: 25px;
  font-size: 36px;
  margin-left: 50px;
}

nav > quick-component > span.closebtn::after { content: "\00d7"; }

nav .navcontent {
  padding-top: 20px;
}

nav,
article {
  width: 100%;
  height: auto;
  position: relative;
}

article {
  padding-bottom: 400px;
}

/* END NAV */

/* TOPNAV */
nav > span.topnav {
  width: 100%;
  top: 0;
  left: 0;
  position: fixed;
  height: 70px;
  background-color: #111;
  overflow: hidden;
}

nav .topnav a {
  float: left;
  display: block;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 17px;
  color: white;
}

nav .topnav a:hover {
  background-color: rgb(49, 45, 45);
}

nav .topnav .login-container {
  float: right;
}

input,
textarea {
  -webkit-user-select: text;  /* to allow copy paste on input and textarea */
}

nav .topnav input[type=text],
nav .topnav input[type=password] {
  padding: 6px;
  margin-top: 8px;
  font-size: 17px;
  border: none;
  width: 120px;
}

nav .topnav .login-container button {
  float: right;
  padding: 6px 10px;
  margin-top: 8px;
  margin-right: 16px;
  background-color: #555;
  font-size: 17px;
  border: none;
  cursor: pointer;
}

nav .topnav .login-container button:hover {
  background-color: rgb(230, 255, 230);
}

nav form {
  display: grid;
  grid-gap: 15px;
  grid-auto-flow: column;
  margin: 0 auto;
}

/* END TOPNAV */

/* HEADER */
quick-component[name=header] {
  width: 100%;
  padding-top: 80px;

}
header {
  background-size: contain;
  background-color: #111;
}

header div {
  /*    box-shadow: 0 2px 8px rgba(0, 0, 0, .25); */
  padding: 0;
  margin: 0;
  border-radius: 7px;
}

header div img {
  padding: 5%;
}

/* FOOTER */
footer {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 1rem;
  background: #111;
  z-index: 10;
}

/* END FOOTER */

/* BUTTONS */
button:not(.navbtn),
input {
  border-radius: 27px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  outline: none;
}

button:not(.navbtn) {
  border: solid #fff !important;
  border-left: 3px !important;
  border-right: 3px !important;
  border-radius: 7px !important;
  -webkit-transition-duration: 0.4s; /* Safari */
  transition-duration: 0.4s;
  box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  font-size: 12px;
  font-family: arial, helvetica, sans-serif;
  padding: 18px 18px 18px 18px;
  text-decoration: none;
  display: inline-block;
  font-weight: bold;
  color: #fff;
  background-color: #111;
}

button:not(.navbtn):hover {
  background-color: #333;
}


/* END BUTTONS */

/* FORM ELEMENTS FOR SIGNUP */

/* Full-width input fields */
quick-component[name=signup] input[type=text],
quick-component[name=signup] input[type=password] {
  width: 80%;
  padding: 15px;
  margin: 5px 0 22px 0;
  display: inline-block;
  border: none;
  background: #f1f1f1;
}

quick-component[name=signup] input[type=checkbox] {
  margin-left: 20px;
}

quick-component[name=signup] input[type=text]:focus,
quick-component[name=signup] input[type=password]:focus {
  background-color: #ddd;
  outline: none;
}

quick-component[name=signup] hr {
  border: 1px solid #f1f1f1;
  margin-bottom: 25px;
  width: 100% !important;
}

/* Set a style for all buttons */
quick-component[name=signup] button {
  color: white;
  padding: 14px 20px;
  margin: 8px 0;
  border: none;
  cursor: pointer;
  width: 100%;
  opacity: 0.9;
}

quick-component[name=signup] button:hover {
  opacity: 1;
}

/* Extra styles for the cancel button */
quick-component[name=signup] .cancelbtn {
  padding: 14px 20px;
  background-color: #f44336;
}

/* Float cancel and signup buttons and add an equal width */
quick-component[name=footer] .cancelbtn,
quick-component[name=footer] .signupbtn {
  float: left;
  width: 45%;
  margin: 0.5%;
}

/* Add padding to container elements */
quick-component[name=signup] .container {
  padding: 20px;
  width: 87% !important;
  height: 100%;
}

/* Clear floats */
quick-component[name=signup] .clearfix::after,
quick-component[name=footer] .clearfix::after {
  content: "";
  clear: both;
  display: table;
}

/* Change styles for cancel button and signup button on extra small screens */
@media screen and (max-width: 300px) {
  quick-component[name=signup] .cancelbtn,
  quick-component[name=signup] .signupbtn {
    width: 100%;
  }
}

/* END FORM ELEMENTS */

/* lazy loading images blurry */
img[data-src] {
  filter: blur(0.2em);
}

img:not([data-src]) {
  filter: blur(0);
  transition: filter 0.5s;
}

/* end lazy loading images blurry */

body::-webkit-scrollbar {
  width: 0vw !important;
}

section quick-component article quick-component h1 {
  background: rgba(0, 0, 0, 0.8);
  color: white;
  border-radius: 12px;
  padding: 10px 5px 10px 5px;
  font-size: xx-large;
}

section quick-component article quick-component p {
  font-size: larger;
}

section {
  background: rgb(0 0 0 / 0%);
}

main {
  background: white;
}

main[dark-mode]{
  background: rgba(0, 0, 0, 0.8);
}