/* Some potential pallette colors if we go with the colors of the juicebox emoji:
rgb(132,211,44) lime green?
rgb(246,54,44) light red
rgb(195,235,61) yellow-green
rgb(47,148,82) green
rgb(212,242,146) lightest green
rgb(204,240,112) light green
rgb(160,176,44) olive green?
rgb(164,12,52) dark red
rgb(158,224,52) lighter lime green
*/

*{
  font-family: Helvetica, sans-serif;
}

body, #app{
  height: 100vh;
  width: 100vw;
  margin: 0;
}

a:hover{
  font-weight: bold;
}

input{
  outline:0;
}

/* Hide scrollbar for Chrome, Safari and Opera */
*::-webkit-scrollbar {
  display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
* {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

#main {
  height: 100vh;
  width: 100vw;
  display: flex;
  flex-direction: column;
  background-color: #d4f292;
}

/* //////////////// NavBar //////////////// */

#navbar {
  max-height: 10%;
  min-height: 40px;
  background-color: rgb(58, 116, 78);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
}

.logo {
  display: flex;
  flex-direction: row;
  gap: 10px;
  margin: 0;
  margin-left: 20px;
  animation: 1s slide-right forwards;
}

@keyframes slide-right {
  from {
    margin-left: -100%;
  }
  to {
    margin-left: 0%;
  }
}

.logo:hover {
  
  animation: shake 0.5s cubic-bezier(.36,.07,.19,.97), grow 1s linear 1;
  animation-delay: 0s, 0.5s;
  animation-iteration-count: 1, 1;
  animation-fill-mode: both, forwards;
  backface-visibility: hidden;
}

@keyframes shake {
  10%, 90% {
    transform: translate3d(-1px, 0, 0);
  }
  
  20%, 80% {
    transform: translate3d(2px, 0, 0);
  }

  30%, 50%, 70% {
    transform: translate3d(-4px, 0, 0);
  }

  40%, 60% {
    transform: translate3d(4px, 0, 0);
  }
}

@keyframes grow {
  0% {
    font-size: 1em;
  }
  50% {
    font-size: 1.25em;
  }
  100% {
    font-size: 1.5em;
  }
}


.logo h2{
  margin: 0;
}

.navFunctions {
  display: flex;
  flex-direction: row;
  gap: 20px;
}

#navbar .logo h2 {
  color: white;
  text-decoration: none;
  font-family: 'Reenie Beanie';
  font-size: 2.5em;
}

#navbar a {
  text-decoration: none;
}

#loginForm, #registerForm{
  display:flex;
  flex-direction: column;
  color: white;
}

/* //////////////// Posts //////////////// */

.allPosts {
  display: flex;
  gap: 10px;
  flex-direction: row;
  align-items: center;
  padding: 20px;
  background-color: #d4f292;
  flex-grow: 1;
  flex-wrap: wrap;
  justify-content: center;
  overflow:auto;
  max-width: 75%;
  margin: auto;
}

.onePost{
  text-decoration: none;
  color: white; 
  background-color: rgb(173, 86, 81);
  display: block;
  height: 17em;
  width: 17em;
  padding: 1em;
  line-height: 1;
  box-shadow: 5px 5px 7px rgba(33,33,33,.7);
}

.onePost:nth-child(even){
  transform: rotate(4deg);
  position: relative;
  top: 5px;
  background:rgb(58, 116, 78);
}

.onePost:nth-child(3n){
  transform: rotate(-3deg);
  position: relative;
  top: -5px;
  background: rgb(250, 116, 109);
}

.onePost:nth-child(5n){
  transform: rotate(5deg);
  position: relative;
  top: -10px;
}

.onePost p, .onePost h2, .onePost small{
  font-size: 0.9em;
}

.onePost small{
  font-size: 0.8em;
}

.onePost p{
  font-size: 1.2em;
}

.onePost h2{
  font-size: 1.4em;
  margin-top: 0;
  font-weight: bold;
}

.onePost a{
  color: #cef3b8;
}

/* //////////////// SearchBar //////////////// */

#searchBar{
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  margin: 0;
  padding: 0;
  padding-top: 10px;
  padding-bottom: 10px;
  background-color: #d4f292;
}

#searchBar label{
  width: 100%;
  max-width: 300px;
}

#searchBar input{
  width: 100%;
  display: flex;
  padding: 10px;
  background-color: white;
  color: #111;
  font-size: 15px; 
  border-radius: 0.7rem;
  outline: 0;
  border: none;
}

#searchBar label{
  position: relative;
}


/* //////////////// Login and Register Popups //////////////// */

#popup-1 {
  background-image: linear-gradient(rgb(187, 109, 105), rgb(189, 130, 127), rgb(187, 109, 105));
  border: rgb(173, 86, 81) solid 2px;
}

#popup-2 {
  background-image: linear-gradient(rgb(187, 109, 105), rgb(189, 130, 127), rgb(187, 109, 105));
  border: rgb(173, 86, 81) solid 2px;
  
}

svg.popup-arrow {
  color: rgb(173, 86, 81);
  stroke: rgb(173, 86, 81);
}


/* //////////////// Create Post Menu //////////////// */

#createPostMenu.true {
  z-index: 1;
  display: flex;
  justify-content: space-around;
  align-items: center;
  position: fixed;
  left: 0;
  top: 0;
  width:100%;
  height:100%;
  background-color: rgba(255, 255,255, 0.6);
  
}

#createPostMenu.false {
  display: none;
}

.createPostMenu {
  max-width: 50vw;
  min-width: 600px;
  max-height: 50vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  border-radius: 10px 10px;
  flex-direction: column;
  padding: 10px;
  background-image: linear-gradient(rgb(187, 109, 105), rgb(189, 130, 127), rgb(187, 109, 105));
  color: white;
}

.createPostMenu form {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: space-between;
}

.createPostMenu h3, button {
  align-self: center;
}

.material-symbols-outlined {
  align-self: flex-end;
}

.material-symbols-outlined:hover {
  font-weight: bolder;
  transform: scale(1.2);
}

#postContent {
  height: 30%;
  min-height: 100px;
  overflow: auto;
  padding: 5px;
  margin-top: 2px;
}

#postTags, #postTitle {
  overflow: auto;
  padding: 5px;
  margin-top: 2px;
}

/* //////////////// Profile/User Page //////////////// */
.profilePage {
  background-color: #d4f292;
  display: flex;
  overflow: auto;
  justify-content: space-around;
  width: 75%;
  flex-grow: 1;
  margin: auto;
}

#userInformation {
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: center;
  padding: 30px;
  flex-grow: 1;
  border: 5px double rgb(173, 86, 81);
  border-radius: 0.7rem;
  max-width:30%;
  width:fit-content;
}

#postLists {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  overflow: auto;
  background-color: #d4f292;
  padding: 30px;
  min-width: 50%;
}

/* //////////////// Edit Post Menu //////////////// */

#editPostMenu.true {
  z-index: 1;
  display: flex;
  justify-content: space-around;
  align-items: center;
  position: fixed;
  left: 0;
  top: 0;
  width:100%;
  height:100%;
  background-color: rgba(255,255,255,0.6);
}

#editPostMenu.false {
  display: none;
}

.editPostMenu {
  max-width: 50vw;
  min-width: 600px;
  max-height: 50vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  border-radius: 10px 10px;
  flex-direction: column;
  padding: 10px;
  background-image: linear-gradient(rgb(187, 109, 105), rgb(189, 130, 127), rgb(187, 109, 105));
  color: white;
}

.editPostMenu form {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: space-between;
}

/* //////////////// Footer //////////////// */

.footer{
  display:flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  background: rgb(58, 116, 78);
  color: white;
  padding: 10px;
}

.footer h4{
  font-size: 1.5em;
  margin: 0;
}

.footer a{
  color: white;
  font-weight: bold;
}

/* //////////////// Buttons //////////////// */

button {
  color:white;
  background-color: rgba(17, 17, 17, 0);
  border: white 1px solid;
  border-radius: 500px;
  padding: 10px;
}

button:hover{
  animation: pulse 1s infinite;
  color: white;
 }

.buttons{
  margin-top: 20px;
  margin-bottom: 20px;
  display: flex;
  gap: 20px;
  justify-content: space-around;
}

 .lr-submitButton{
  margin-top: 20px;
  margin-bottom: 20px;
 }
 

 @keyframes pulse {
  0% {
		transform: scale(0.8);
		box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
	}
	70% {
		transform: scale(1);
		box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
	}
	100% {
		transform: scale(0.8);
		box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
	}
  
 }