/* Summary
 *
 * General-setup
 * Fonts
 *
 * Header-and-navigation-menu
 * Main-content-general-style
 * Messages-and-alerts
 * Footer
 */



/* General-setup */

body {
  font-family: "Sriracha", cursive;
  font-weight: 400;
  font-style: normal;
  min-height: 100vh;
  margin: 0 auto;
}

button {
  cursor: pointer;
}

.highlight {
  display: block;
  color: #9d1616;
  font-size: 1.19rem;
  text-align: center;
  border: 2px dashed #80570a;
  border-radius: 10px;
  background-color: #ffb777;
}

.danger-emphasis {
  font-weight: 700;
  text-decoration: underline;
  color: #6e0760;
}

/* Fonts */

.corben-regular {
  font-family: "Corben", serif;
  font-weight: 400;
  font-style: normal;
}

.corben-bold {
  font-family: "Corben", serif;
  font-weight: 700;
  font-style: normal;
}

.exo-2-generic {
  font-family: "Exo 2", sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
  font-size: 1.3rem;
}

.bungee-inline-regular, section button {
  font-family: "Bungee Inline", sans-serif;
  font-weight: 400;
  font-style: normal;
}


/* Header-and-navigation-menu */

header {
  color: white;
  background: linear-gradient(navy, royalblue);
  border-bottom: 5px ridge #b3b3b3;
}

header h1 {
  width: fit-content;
  padding: 10px 0;
  margin: 0 auto;
  text-shadow: 2px 2px 25px cyan;
}

nav {
  color: white;
  background-color: royalblue;
  font-weight: bold;
  text-shadow: 2px 2px 7px black;
}

#nav-wide-menu {
  border-bottom: 10px ridge cornflowerblue;
}

#nav-wide-menu ul {
  width: 80%;
  margin: 0 auto;
  justify-content: center;
  display: flex;
  min-height: 80px;
}

nav li {
  list-style: none;
  border: 5px outset whitesmoke;
}

.nav-item {
  box-sizing: border-box;
  display: inline-block;
  width: 100%;
  height: 100%;
  padding: 20px 70px;
  color: white;
  background-color: #4f8cc2;
  text-decoration: none;
}

.nav-item:hover {
  color: yellow;
  background-color: #3f688c;
}

.nav-item:active {
  background-color: deepskyblue;
}

#logout, #logout button {
  border: none;
  background-color: #ff1717;
  height: 100%;
}

#logout button {
  color: white;
  text-shadow: 2px 2px 7px black;
}

#logout button:hover {
  color: yellow;
  background-color: firebrick;
}

#logout button:active {
  background-color: red;
}

.nav-profile-pic {
  box-sizing: border-box;
  min-width: 80px;
  min-height: 80px;
  background-size: cover;
  display: inline;
}

.nav-username {
  color: gold;
  box-sizing: border-box;
  border: none;
  padding: 10px 25px;
  min-height: 80px;
}

#nav-menu {
  position: fixed;
  top: 0;
  left: -250px;
  width: 250px;
  height: 100vh;
  transition: left 0.3s ease;
  z-index: 90;
  padding: 60px 0 0px 0;
  overflow-y: auto;
  overflow-x: hidden;
  max-height: 100vh;
  box-sizing: border-box;
}

/* Main-content-general-style */

main {
  padding: 50px;
  min-height: 100vh;
  background:
    radial-gradient(70px circle at 5% 8%, yellow, 35px, yellow 40%, transparent 100%),
    url("background.svg");
  background-size: cover;
}

article {
  width: 80%;
  margin: 0 auto;
}

section {
  border-top: 3px outset coral;
  border-left: 2px outset gold;
  border-right: 7px inset #c96464;
  border-bottom: 5px inset #c96464;
  border-radius: 0px;
  padding: 30px;
  margin: 5% auto 20px auto;
  min-width: 450px;
  width: fit-content;
  max-width: 500px;
  background: linear-gradient(to right, yellow, 5%, coral, tomato);
}

section h2, h3 {
  color: #870c25;
  margin: 0 0 0 auto;
  padding: 5px 10px 0px 10px;
}

section p {
  color: #870c25;
  margin: 0 0 0 auto;
  padding: 5px 10px 0px 10px;
  font-size: 1.09rem;
}

section hr {
  border-color: firebrick;
  margin-bottom: 20px;
}

section form div {
  text-align: right;
  margin-bottom: 1rem;
}

section form > div label, fieldset {
  color: maroon;
  border-color: firebrick;
}

section form label {
  font-weight: bold;
  min-width: 80px;
  padding: 5px;
}

section form input {
  background: #f19b76;
  border: 2px solid #535ba9;
  border-radius: 10px;
  padding: 5px;
  width: 24rem;
  color: maroon;
  font-weight: 500;
}

section button.submit {
  color: aliceblue;
  background: linear-gradient(#87397c, 45%, coral);
  padding: 7px 30px;
  border: 2px solid indianred;
  border-radius: 3px;
  margin-top: 15px;
}

section button.submit:hover {
  color: gold;
  background: linear-gradient(#87397c, 45%, coral);
}

section button.submit:active {
  background: linear-gradient(#6f005f, 45%, #fd5353);
}

section div#reset-password {
  font-size: 0.95rem;
}

section div.bottom-link {
  text-align: center;
}

section a {
  color: darkslateblue;
}

section a:hover {
  color: white;
}

fieldset {
  text-align: center;
}

.avatar {
  text-align: center;
}

.avatar figcaption {
  color: maroon;
}

.avatar img {
  background-color: #e79563;
  border: 5px solid rebeccapurple;
  border-radius: 15px;
}

.caption-paragraph {
  text-align: center;
  color: rebeccapurple;
  font-style: bold;
}

/* Messages-and-alerts */

.errorlist {
  list-style: none;
  color: blue;
  font-size: 1.1em;
  width: 350px;
}

.errorlist li {
  box-sizing: border-box;
}


li.success {
  color: green;
}

li.error {
  color: red;
}

/* Footer */

footer {
  background-color: #4ea642;
  padding: 0.5vh 1px;
  min-height: 50px;
}

footer p {
  font-size: 1.2rem;
  text-align: center;
}

@media screen and (width < 1920px) {

  #nav-wide-menu li {
    line-height: 30px;
  }

  .nav-item {
    padding: 20px 40px;
  }

  .exo-2-generic {
    font-size: 1.15rem;
  }

}

@media screen and (width < 1366px) {

  header {
    position: sticky;
    top: 0;
    left: 0;
  }

  .hamburger {
    position: absolute;
    top: 30px;
    left: 20px;
    width: 30px;
    height: 25px;
    cursor: pointer;
    display: inline-flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
  }

  .hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: goldenrod;
  }

  #nav-wide-menu {
    display: none;
  }

  #nav-menu ul {
    padding: 0; /* Reset default padding from all internal lists */
  }

  #nav-menu > ul {
    padding-bottom: 60px;
  }

  #nav-menu a {
    padding: 15px 25px;
    text-decoration: none;
  }

  #nav-menu:target {
    left: 0;
    border-right: 5px ridge #b3b3b3;
  }

  .close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    color: goldenrod;
    text-decoration: none;
    font-size: 20px;
  }

  .nav-user-info {
    display: flex;
    border: 5px outset whitesmoke;
  }

  .nav-item {
    text-align: center;
  }

  .nav-profile-pic {
    border: 3px solid gray;
  }

  article {
    width: 100%;
  }

  section, .wide-section {
    min-width: auto;
    width: 80%;
  }

}


@media screen and (width < 720px) {

  section form input {
    width: 12rem;
  }

}

@media screen and (width < 720px) and (orientation: portrait) {

  section form div {
    text-align: center;
  }

  .errorlist {
    font-size: 0.95rem;
    max-width: 150px;
    text-align: justify;
  }

}
