@import "reset.css";
@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Noto+Sans+JP:wght@100..900&family=Outfit:wght@100..900&display=swap");

/* Root styles */
:root {
  font-family: "Outfit", sans-serif;
  color: var(--white);
  background-color: var(--black);
  padding-left: 1rem;
  --black: rgb(33, 34, 33);
  --white: rgb(248, 247, 247);
  --lightgrey: rgb(214, 214, 214);
  --grey: rgb(197, 195, 195);
  --green: rgb(80, 255, 80);
  --red: rgb(255, 0, 0);
}

.hidden {
  display: none;
}

/* Navigation Styles */

nav {
  color: var(--white);
  font-size: 2rem;
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  z-index: 4;
}

nav ul {
  display: none;
  position: absolute;
  right: 0;
}

nav:hover ul,
nav ul:hover {
  display: block;
  text-align: right;
}

nav ul li {
  font-size: 1.5rem;
  padding: 0.25em 0rem;
  white-space: nowrap; /* ensure long text doesn't wrap */
  text-align: right;
  margin-right: 0rem;
}

nav ul li a {
  color: var(--white);
  text-decoration: none;
}

nav ul li a:hover {
  color: var(--green);
}

/* Header styles for index.php */

.head {
  display: grid;
  grid-template-rows: 1fr 1fr;
  padding-top: 1rem;
  background-color: var(--black);
}

.head h1:first-of-type {
  font-size: 8rem;
  grid-row: 1 / span 1;
}

.head h1:last-of-type {
  color: var(--grey);
  grid-row: 2 / span 1;
}

.head h1:first-of-type em:first-of-type {
  color: var(--lightgrey);
  font-family: "Libre Baskerville", serif;
  font-size: 15rem;
  position: absolute;
  left: 12rem;
  top: 0.25rem;
  z-index: 1;
}

.head h1:last-child em {
  color: var(--white);
  font-size: 8rem;
  padding-right: 2rem;
}

h1 {
  font-size: 4rem;
  font-weight: 700;
  color: var(--white);
  z-index: 3;
}

/* Body Styles */

h2 {
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--green);
  padding-left: 2rem;
  padding-top: 2rem;
  border-top: 0.25rem solid var(--green);
}

.index-body h3 {
  font-size: 2rem;
  padding: 2rem;
  margin: 0 2rem;
}

p {
  font-size: 1.5rem;
  padding: 3rem;
}

li {
  font-size: 1.5rem;
  color: var(--grey);
  padding: 0.25rem 0 0.25rem 3rem;
  margin: 0 2.5rem;
}

li strong {
  color: var(--white);
}

li:last-of-type {
  padding-bottom: 1rem;
}

/* Create Account / Login styles */

.center-container,
.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

/* Form Styles */
#create-account,
#login,
.view-account-box {
  background-color: var(--white);
  color: var(--black);
  padding: 2rem;
  margin-bottom: 5rem;
  border-radius: 2rem;
  box-shadow: 0 0 0.5em var(--black);
  width: 50rem;
}

.center-container h1,
.container h1 {
  font-size: 9rem;
  margin: 5rem 3rem;
}

.center-container h1:hover,
.container h1:hover {
  color: var(--green);
}

.account-info,
.view-account-box {
  display: flex;
  flex-direction: column;
}

.view-account-box h3 {
  font-size: 2rem;
  display: inline-block;
}

.view-account-box p {
  font-size: 1.5rem;
}

.account-info label {
  font-size: 1.2rem;
  color: var(--black);
  display: block;
  padding: 1rem 0rem;
}

.account-info input {
  padding: 0.5rem;
  border-radius: 0.25rem;
  border: 0.1rem solid var(--black);
  font-size: 1rem;
}

#submit,
#logout {
  background-color: var(--green);
  color: var(--black);
  padding: 0.7rem;
  border: none;
  border-radius: 0.25rem;
  font-size: 1.2rem;
  cursor: pointer;
  width: 15rem;
  margin-top: 2rem;
  margin-left: 33%;
}

#submit:hover,
#logout:hover {
  background-color: var(--black);
  color: var(--green);
}

.error {
  color: var(--red);
  font-size: 0.9rem;
}

.password-hints p {
  font-size: 1rem;
  color: var(--black);
  padding: 0.75rem;
}

.password-hints li {
  font-size: 0.9rem;
  padding: 0.25rem 0.5rem;
  margin-left: 3rem;
}

.new-account {
  color: var(--black);
  display: block;
}

.new-account:hover,
.new-account:visited:hover {
  color: var(--green);
}

.new-account:visited {
  color: var(--grey);
}

/* View Account styles */

#view-account {
  padding-bottom: 2rem;
}

.view-account-box h3 {
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--green);
  padding: 1.5rem 0rem 0.5rem 0rem;
}

.view-account-box p {
  color: var(--black);
  border-bottom: 0.15rem solid var(--grey);
  padding: 0.5rem 3rem;
}

#logout {
  position: absolute;
  right: 1rem;
}
