@import url("variables.css");

* {
  margin: 0;
  padding: 0;
}

html,
body {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
  background-color: var(--background-color);
}

h1 {
  text-align: center;
}

main {
  flex: 1;
}

/* CHECK!!! Check this later */
#blogPostsContainer #postImage,
#newPostForm,
#editPostForm,
#loginForm {
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

/* NAVIGATION */
nav {
  background-color: var(--background-color);
  box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.2);
  margin-bottom: 45px;
}
.lightLogo {
  width: 175px;
  height: auto;
  padding-left: 5px;
  padding-top: 5px;
}

nav ul {
  width: 100%;
  list-style: none;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
nav li {
  height: 50px;
}
nav li:first-child {
  margin-right: auto;
}
nav a {
  height: 100%;
  padding: 0 30px;
  text-decoration: none;
  color: var(--dark-color);
  display: flex;
  align-items: center;
}
nav a:hover {
  background-color: var(--primary-color);
  color: var(--background-color);
}

/* Logo link hover effect hidden */
.nav-logo-link:hover {
  background-color: transparent;
}
/* Mobile Navigation */
.sideNav {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 250px;
  z-index: 999;
  background-color: var(--background-color);
  box-shadow: -10px 0 10px rgba(0, 0, 0, 0.2);
  display: none;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}
.sideNav li {
  width: 100%;
}
/* Hides hamburger menu by default - will be shown on smaller screens with media query */
.hamburger-button {
  display: none;
}
/* LOOK FOR HR STYLING ELSEWHERE AND PLACE IT HERE */
hr {
  margin-top: 30px;
}

.button-5 {
  align-items: center;
  background-clip: padding-box;
  background-color: var(--primary-color);
  border: 1px solid transparent;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  box-sizing: border-box;
  border-radius: 5px;
  color: var(--dark-color);
  cursor: pointer;
  display: inline-flex;
  font-family: var(--font-family);
  font-size: 16px;
  font-weight: 500;
  justify-content: center;
  line-height: 1.25;
  margin: 0;
  min-height: 3rem;
  padding: calc(0.875rem - 1px) calc(1.5rem - 1px);
  position: relative;
  text-decoration: none;
  transition: all 250ms;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  vertical-align: baseline;
  width: auto;
}

.button-5:hover,
.button-5:focus {
  background-color: #fb8332;
  color: #fff;
  border-color: #fff;
  box-shadow: rgba(0, 0, 0, 0.1) 0 4px 12px;
}

.button-5:hover {
  transform: translateY(-1px);
}

.button-5:active {
  background-color: #c85000;
  box-shadow: rgba(0, 0, 0, 0.06) 0 2px 4px;
  transform: translateY(0);
}

#cancelBtn,
.delete-btn {
  background-color: var(--cancelBtn-color);
}
#cancelBtn:hover,
.delete-btn:hover {
  background-color: var(--cancelBtn-hover-color);
}

#saveBtn,
.createBtn {
  background-color: var(--createBtn-color);
}

#error-container {
  text-align: center;
  margin-top: 20px;
  margin-bottom: 20px;
}

/* Footer section */
footer {
  background-color: var(--dark-color);
  color: var(--background-color);
  text-align: center;
  width: 100%;
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

footer ul {
  list-style: none;
  display: flex;
  flex-direction: row;
}
footer li {
  margin: 0 15px;
  text-decoration: none;
  padding-bottom: 70px;
}
footer a {
  text-decoration: none;
  color: var(--background-color);
}
footer a:hover {
  color: var(--primary-color);
}
.darkLogo {
  width: 350px;
  height: auto;
  padding: 50px;
}
