@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css");
@import url("https://fonts.googleapis.com/css?family=Roboto");

:root {
	--primary-color: #22577a;
	--secondary-color: #38a3a5;
	--btn-text-color: #EEEEEE;
  --btn-alt-color: #979797;
  --prime-alt-color: #80ed99;
  --second-alt-color: #57cc99;
}

*,
*:before,
*:after {
  box-sizing: border-box;
}

body{
  margin:0;
}

body,
input,
select,
textarea {
  font-family: "Roboto", Helvetica, sans-serif;
  font-size: 13pt;
  font-weight: 400;
  line-height: 1.5em;
}

header {
  text-align: center;
  position: fixed;
  z-index: 999;
  background-color: rgba(255, 255, 255, 0.75);
  width: 100%;
}

div.preview {
  width: 750px;
}

nav {
  position: absolute;
  text-align: left;
  background-color: rgba(255, 255, 255, 0.75);
  width: 100%;
  transform: scale(1, 0);
  transform-origin: top;
  transition: transform 400ms ease-in-out;
}

iframe {
  border: none;
}

ul {
  list-style: none;
}

ul.actions {
  cursor: default;
  list-style: none;
  padding-left: 0;
}

nav li {
  margin-bottom: 1em;
  margin-left: 1em;
}

nav a {
  opacity: 0;
  transition: opacity 15ms ease-in-out;
}

nav a:hover {
  color: var(--second-alt-color);
}

.nav-toggle:checked ~ nav {
  transform: scale(1, 1);
}

.nav-toggle:checked ~ nav a {
  opacity: 1;
  transition: opacity 250ms ease-in-out 250ms;
}

.nav-toggle-label {
  position: absolute;
  top: 0;
  left: 0;
  margin-left: 1em;
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  display: block;
  background: var(--primary-color);
  height: 2px;
  width: 2em;
  border-radius: 2px;
}

.nav-toggle-label span::before,
.nav-toggle-label span::after {
  content: "";
  position: absolute;
}

.nav-toggle-label span::before {
  bottom: 2rem;
}

.nav-toggle-label span::after {
  top: 2rem;
}

.listing {
  background-color: var(--prime-alt-color);
  padding: 1.5em;
}
.listing:nth-child(2n + 1) {
  background-color: var(--second-alt-color);
  padding: 1.5em;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	color: var(--primary-color);
  line-height: 1em;
  margin: 1.5em 0 1em 0;
}

a {
  text-decoration: none;
  color: var(--primary-color);
}

a:hover {
  text-decoration: none;
  color: var(--second-alt-color);
}

/* Form */

form {
  margin: 0;
}

label {
  color: var(--second-alt-color);
  display: block;
  font-weight: 700;
}

input[type="text"],
input[type="number"],
input[type="password"],
input[type="email"],
input[list],
select,
textarea {
  padding: 12px 20px;
  margin: 8px 0;
  display: inline-block;
  border: 2px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

input[type="date"]{
  padding: 9px 20px;
  margin: 8px 0;
  display: inline-block;
  border: 2px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

input[type="text"]:invalid,
input[type="number"]:invalid,
input[type="password"]:invalid,
input[type="email"]:invalid,
input[type="date"]:invalid,
input[list]:invalid,
select:invalid,
textarea:invalid {
  box-shadow: none;
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="date"]:focus,
input[list]:focus,
select:focus,
textarea:focus {
  outline: none !important;
	border: 2px solid var(--primary-color);
}

input[type="checkbox"],
input[type="radio"] {
  display: block;
  float: left;
  margin-right: -2em;
  opacity: 0;
  z-index: -1;
}

input[type="checkbox"] + label,
input[type="radio"] + label {
  text-decoration: none;
  color: var(--prime-alt-color);
  cursor: pointer;
  display: inline-block;
  font-size: 1em;
  font-weight: 400;
  padding-left: 2.4em;
  padding-right: 0.75em;
  position: relative;
}

input[type="checkbox"] + label:before,
input[type="radio"] + label:before {
  font-family: FontAwesome;
  font-style: normal;
  font-weight: normal;
  text-transform: none !important;
}

input[type="checkbox"] + label:before,
input[type="radio"] + label:before {
  background: var(--second-alt-color);
  border-radius: 4px;
  border: solid 1px var(--prime-alt-color);
  content: "";
  display: inline-block;
  height: 1.65em;
  left: 0;
  line-height: 1.58125em;
  position: absolute;
  text-align: center;
  top: 0;
  width: 1.65em;
}

input[type="checkbox"]:checked + label:before,
input[type="radio"]:checked + label:before {
  content: "\f00c";
  background:var(--second-alt-color);
  border-color: var(--prime-alt-color);
  color: var(--btn-text-color);
}

input[type="checkbox"]:focus + label:before,
input[type="radio"]:focus + label:before {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 1px var(--primary-color);
}

input[type="checkbox"] + label:before {
  border-radius: 4px;
}

input[type="radio"] + label:before {
  border-radius: 100%;
}

input[type=submit] {
  background-color: var(--primary-color);
  color: var(--btn-text-color);
  padding: 14px 20px;
  margin: 8px 0;
  border: 2px solid var(--primary-color);
  border-radius: 4px;
  cursor: pointer;
}

input[type=submit]:hover,
input[type=submit]:focus {
	outline: none !important;
	background-color: var(--secondary-color);
	border: 2px solid var(--primary-color);
	color: var(--btn-text-color);
}


::-webkit-input-placeholder {
  opacity: 1;
  color: var(--btn-alt-color) !important;
}

:-moz-placeholder {
  opacity: 1;
  color: var(--btn-alt-color) !important;
}

::-moz-placeholder {
  opacity: 1;
  color: var(--btn-alt-color) !important;
}

:-ms-input-placeholder {
  opacity: 1;
  color: var(---btn-alt-color) !important;
}

.formerize-placeholder {
  opacity: 1;
  color: var(--btn-alt-color) !important;
}

.main-content {
	display:grid;
	gap: 10px;
	padding-top: 7rem;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-bottom: 3rem;
}

.login-content {
	display:grid;
	gap: 10px;
	padding-top: .25em;
  padding-bottom: 3em;
	justify-items: center;
}

.usermanage-content {
	display:grid;
	gap: 10px;
	padding-top: 7rem;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-bottom: 3rem;
	justify-items: center;
}

.login-form{
	background-color: var(--btn-text-color);
  border-radius: 20px;
	padding: 50px;
}

/* Pagination */

.pagination {
  flex: 1;
  display: flex;
  flex-flow: row wrap;
  align-content: center;
}

.pagination > li > a,
.pagination > li > span {
  position: relative;
  float: left;
  padding: 6px 12px;
  line-height: 1.42857143;
  color: var(--primary-color);
  text-decoration: none;
  border: 1px solid var(--secondary-color);
  flex: 1;
}
.pagination > li > a:focus,
.pagination > li > a:hover,
.pagination > li > span:focus,
.pagination > li > span:hover {
  z-index: 2;
  color: var(--btn-alt-color);
  background-color: var(--btn-text-color);
}
.pagination > li:first-child > a,
.pagination > li:first-child > span {
  margin-left: 0;
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
}
.pagination > li:last-child > a,
.pagination > li:last-child > span {
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
}
.pagination > .active > a,
.pagination > .active > a:focus,
.pagination > .active > a:hover,
.pagination > .active > span,
.pagination > .active > span:focus,
.pagination > .active > span:hover {
  z-index: 3;
  color: var(--btn-text-color);
  cursor: default;
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}
.pagination > .disabled > a,
.pagination > .disabled > a:focus,
.pagination > .disabled > a:hover,
.pagination > .disabled > span,
.pagination > .disabled > span:focus,
.pagination > .disabled > span:hover {
  color: var(--btn-alt-color);
  cursor: not-allowed;
  background-color: var(--btn-text-color);
  border-color: var(--btn-text-color);
}

/* Footer */

#footer {
  padding: 5rem 0 6rem 0;
  background: var(--primary-color);
  color: var(--second-alt-color);
  text-align: center;
}

#footer .copyright {
  padding: 0;
  text-align: center;
}

#footer a {
  color: var(--secondary-color);
}


@media screen and (min-width: 700px) {

  .main-content {
    justify-content: center;
    grid-template-areas:
    'header header'
    'left right '
    'footer footer';
  }
  .form1 { grid-area: left; }
  .form2 { grid-area: right; }
  .formtitle { grid-area: header; }
  .formnotes { grid-area: footer; }

  #nav-toggle {
    display: none;
  }

  .nav-toggle-label {
    display: none;
  }

  header {
    display: grid;
    grid-template-columns: 1fr auto minmax(800px, 1fr) 1fr;
  }

  .logo {
    grid-column: 2 / 3;
  }

  nav {
    all: unset;
    grid-column: 3 / 4;
    display: flex;
    justify-content: flex-end;
    align-items: center;
  }

  nav ul {
    display: flex;
  }

  nav li {
    margin-left: 3em;
    margin-bottom: 0;
  }

  nav a {
    opacity: 1;
    position: relative;
    text-transform: none;
  }

  nav a::before {
    content: "";
    display: block;
    height: 2px;
    background: var(--primary-color);
    position: absolute;
    bottom: -0.45em;
    left: 0;
    right: 0;
    transform: scale(0, 1);
    transform-origin: left;
    transition: transform ease-in-out 250ms;
  }

  nav a:hover::before {
    transform: scale(1, 1);
  }

}