/* CS 476: Lost Paws Project
  Group Members: 
            Anna Chu (ace859 - 200391368), 
            Ibrahim Hassan (hassan4i - 200343818),
            Makenzy Laursen-Carr (mil979 - 200504296), 
            Kaira Molano (kvm406 - 200447526), 
            Fatima Rizwan (frf706 - 200446702)
  File name: style.css */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans&display=swap');

/* START OF COMMON CSS STYLES FOR ALL PAGES */

body, p {
  margin: 0;
  padding: 0;
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 400;
  font-style: normal;
}

h1, h2 {
  font-family: 'IBM Plex Sans', sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

#container {
  display: grid;
  grid-template-rows: auto 1fr auto;
  grid-template-columns: 1fr;
  min-height: 100vh;
}

/* END OF COMMON CSS STYLES FOR ALL PAGES */


/* START of common styles for navigation menu */

.navmenu {
  background-color: #B6D0E2;
  margin-bottom: 2px;
  padding: 35px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  height: 5vh;
  width: 100%;
  box-sizing: border-box;
  z-index: 1000;
}

.nav-links {
  display: flex;
  gap: 20px;
  justify-content: flex-end;
  margin-left: auto;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  margin-top: -15px;
  max-width: 100%;
  height: 65px;
}

.nav-logo {
  height: 70px;
  width: auto;
  margin-right: 20px;
  margin-top: 30px;
}

.nav-links a {
  text-decoration: none;
  color: black;
  font-size: 15px;
  justify-content: right;
  padding: 10px 15px;
}

.nav-links a:hover {
  background-color: #fdfdfd79;
  color: black;
  border-radius: 0.5vw;
}

.logo {
  grid-column-start: 1;
  grid-column-end: 2;
}

.button {
  display: flex;
  gap: 5px;
  justify-content: center;
  margin-left: 50px;
  grid-column-start: 3;
  grid-column-end: 4;
}

.button a {
  text-decoration: none;
  color: black;
  font-size: 17px;
  font-weight: bold;
  justify-content: right;
}

.button p {
  margin: 0;
  padding: 10px 0;
  width: 100%;
  font-size: 1em;
  color: black;
}

#signup-button, #login-button {
  display: inline-block;
  background-color: #1E3F66;
  padding: 10px 15px;
  border-radius: 1vw;
  text-decoration: none;
  font-size: 1em;
  color: white;
  text-align: center;
  width: auto;
  transition: background-color 0.3s ease;
}

#signup-button:hover, #login-button:hover {
  background-color: #64aef3;
}

/* END of common styles for navigation menu */


.bottom {
  text-align: center;
  padding: 20px;
}

.logo {
  margin-top: -22px;
  max-width: 100%; 
  height: 55px; 
}

/*  END OF COMMON CSS STYLES FOR ALL PAGES   */


/*   START CSS: aboutpage.php  */

#aboutPage-info {
  display: grid;
  padding: 10px;
  background-color: #F5F5F4;
  color: black;
  font-size: 20px;
  width: 100%;

  grid-column-start: 1;
  grid-column-end: 4;
  grid-row-start: 2;
  grid-row-end: 3;

  grid-template-rows: 2fr 2fr;
  margin-top: 70px;
}

#aboutPage-row1 {
    display: grid;
    grid-row-start: 1;
    grid-row-end: 2;
    grid-template-columns: 1fr 0.5fr 2fr;  
    margin-left: 10px;
}
.aboutPage-description {
  grid-column-start: 1;
  grid-column-end: 2;
  margin-left: 50px;
  line-height: 1.75;
}

.aboutPage-map {
  grid-column-start: 3;
  grid-column-end: 4;
  margin-left: -130px;
}

.aboutPage-map > h3 {
  color: rgb(104, 22, 22);
}

#aboutPage-row2 {
    display: grid;
    grid-row-start: 2;
    grid-row-end: 3;
    grid-template-columns: 1fr 0.5fr 2fr; 
    margin-left: 70px;
}
  .aboutPage-offer {
      grid-column-start: 1;
      grid-column-end: 2;
  }

  .aboutPage-mission-statement {
      grid-column-start: 3;
      grid-column-end: 4;
      margin-left: -170px;
  }

  p.description {
    background-color: #d5e0df;
    padding: 1vw;
    text-align: center;
    border-radius: 17px 17px 17px 17px;
    line-height: 1.75;
}

.aboutPage-mission-statement {
    width: 75%;
}

#aboutpage-right-beforelogin{
	grid-column-start: 3;
	grid-column-end: 4;
	grid-row-start: 2;
	grid-row-end: 3;
	background-color: #d8e3eb;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
	margin-top: 70px;
}

#aboutpage-right-beforelogin > h3 {
	text-align: center;
	width: 15vw;
	padding-left: 30px;
	padding-right: 30px;
	padding-bottom: 20px;
	box-shadow: 0 2px 2px rgba(0, 0, 0, 0.5);
}

#aboutpage-right-beforelogin > p {
	text-align: center
}

/*   END CSS: aboutpage.php */


/*   START CSS: signup.php  */     
#main-left-signup {
  grid-column-start: 1;
  grid-column-end: 2;
  grid-row-start: 2;
  grid-row-end: 3;
  padding-left: 0px;
  padding-top: 190px;
  width: 40vw; 

  background-color: #d8e3eb;
}

#main-left-signup > h1 {
  padding-left: 250px;
  font-weight: bold;
  font-size: 50px;
}

#main-left-signup > h2 {
  padding-left: 150px;
  font-size: 30px;
}

#main-right-signup {
  padding-left: 150px;
  padding-top: 40px;
  background-color: #F5F5F4;
  font-size: 20px;

  grid-column-start: 2;
  grid-column-end: 3;
  grid-row-start: 2;
  grid-row-end: 3;

  display: grid;
  grid-template-rows: 0.6fr 0.6fr auto;
  width: 52vw;
}

.signup-header {
  grid-row-start: 1;
  grid-row-end: 2;
}

.signup-header h2 {
  font-size: 1.5em;
  padding: 5%;
  padding-left: 0%;
}

.auth-form-signup {
  grid-row-start: 2;
  grid-row-end: 3;
  border: lightgray 1px solid;
  border-radius: 7px;
  margin-top: -18vw;
  height: 25vw;
  width: 40vw;
}

.signup-field {
  margin: 25px;
  margin-bottom: 20px;
  font-size: smaller;
}

.signup-footnote {
  grid-row-start: 3;
  grid-row-end: 4;
  font-size: smaller;

  padding-left: 10px;
  margin-top: -255px;
}

.signup-footnote a {
text-decoration: none;
}

input {
  float: right;
  width: 55%;
  background-color: rgb(245, 243, 243);
  border-radius: 0.3vw;
} 

.signup-button {
  background-color: #1E3F66;
  width: 15vw;
  padding: 5px;
  text-align: center;
  border-radius: 1vw;
  font-size: medium;
  color: white;
}
/*   END CSS: signup.php */                               

  
/*   START CSS: viewpet_visitor.php  */   
#container-viewpet {
  display: grid;
  grid-template-rows: auto 1fr auto;
  grid-template-columns: 1fr;
}

  #select-post-main-left {
      grid-column-start: 1;
      grid-column-end: 2;
      grid-row-start: 2;
      grid-row-end: 3;
      padding: 20px;
      width: 18vw;
      margin-top: 70px;

      box-shadow: 0 2px 2px rgba(0, 0, 0, 0.5);
      overflow: hidden;
  }

  #select-post-main-left button{
    font-size: medium;
  }

  #select-post-main-center{
    grid-column-start: 2;
    grid-column-end: 3;
    grid-row-start: 2;
    grid-row-end: 3;
  
    display: grid;
    grid-template-rows: 1fr 2fr 1fr;
    width: 60vw;
    height: 130vh;
    padding: 25px;
}

  .lost-or-found-label {
    grid-row-start: 1;
    grid-row-end: 2;
    padding: 25px;
    margin-bottom: 20px;
  }

  .lost-or-found-label h1{
    width: 10vw;
    box-shadow: 0 2px 5px rgba(185, 179, 141, 0.89);
    text-align: center;
    margin-top: 60px;
    background-color: #e2d6b6;
  }

  /* .title-post {
    grid-row-start: 2;
    grid-row-end: 3;
    margin-left: 30px;
    margin-top: -130px;
  } */
  
  .description-container {
    grid-row-start: 2;
    grid-row-end: 3;
    margin-left: 30px;
    padding: 25px;
    width: 55vw;
    height: 50vh;
    display: grid;
	  margin-bottom: 20px;
    margin-top: -110px;
    grid-template-columns: 1.5fr 2fr;

    box-shadow: 0 2px 5px rgba(216, 213, 213, 0.5);
  }

  .description-container > img {
    max-height: 200px;
    max-width: 300px;
  }

  .description-column1 {
    grid-column-start: 1;
    grid-column-end: 2;
    grid-row-start: 1;
    grid-row-end: 3;
    max-width: 600px;
    height: auto;
  }

  .description-column1 img {
    max-height: 350px;
    max-width: 450px;
  }

  .description-column1 p {
    padding-top: 20px;
  }

  .description-column1 button {
    margin-top: 10px;
    margin-bottom: 20px;
    padding: 5px;
    font-size: medium;
  }

  .description-column2 {
    grid-column-start: 2;
    grid-column-end: 3;
    grid-row-start: 1;
    grid-row-end: 3;
    background-color: #f1f1f1;
    padding: 25px;
    overflow-x: hidden; 
    overflow-y: scroll; 
    max-width: 600px;
    max-height: 300px;
  }



  .description-column2 p {
	padding-top: 20px;
  }

  .display-comments {
    grid-row-start: 3;
    grid-row-end: 4;
    margin-left: 30px;
    padding: 25px;
    width: 55vw;
    max-height: 300px;
    margin-top: -175px;
  }
  
  .comment-container input{
    float: left;
    height: 2vw;
  }

  .all-comments {
    overflow-x: hidden; 
    overflow-y: scroll; 
    max-height: 300px;
  }

  .comment-item {
    border: 1px solid #ddd; /* Light gray border */
    padding: 10px; /* Space inside the comment box */
    margin-bottom: 10px; /* Space between comments */
    border-radius: 5px; 
    background-color: #f9f9f9; /* Light background for better readability */
    overflow: visible; /* Ensure buttons are visible */
  }
  
  .comment-item p {
    margin: 5px 0; /* Add some space between elements inside the comment */
  }
  
  .comment-item em {
    font-size: 0.9em;
    color: #777; /* Light gray color for date */
  }

  #select-post-main-right {
    grid-column-start: 3;
    grid-column-end: 4;
    grid-row-start: 2;
    grid-row-end: 3;

    margin-top: 70px;
    background-color: #d8e3eb;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
  }

  #select-post-main-right > h3 {
    text-align: center;
    width: 15vw;
    padding-left: 30px;
    padding-right: 30px;
    padding-bottom: 20px;
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.5);
  }
  
  #select-post-main-right > p {
    text-align: center;
  }

  #select-post-main-right a {
    background-color: #9AD4FF(230, 180, 120, 0.801);
    border-radius: 0.2vw;
    width: 5vw;
    padding: 0.3vw;
    margin-left: 10px;
    text-decoration: none;
    font-size: large;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
  }
/*   END CSS: viewpet_visitor.php */  


/*   START CSS: viewpet_member.php  */  
#select-post-main-right-member {
  grid-column-start: 3;
  grid-column-end: 4;
  grid-row-start: 2;
  grid-row-end: 3;

  display: grid;
  grid-template-columns: 0.5fr 1fr;
  grid-template-rows: 80px auto;

  background-color: #f4f5f5;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
  width: 22vw;
  padding-left: 20px;
  margin-right: 0px;
  margin-top: 70px;
  padding-top: 20px;
}

.user-photo img {
  max-width: 100px;
  max-height: 70px;
  border: lightgrey 1px solid;
  padding: 2px;
  grid-column-start: 1;
  grid-column-end: 2;
  grid-row-start: 1;
  grid-row-end: 2;
  margin-right: 10px;
  margin-top: 3px;
  margin-bottom: 3px;
}

.user-name {
grid-column-start: 2;
grid-column-end: 3;
grid-row-start: 1;
grid-row-end: 2;
font-size: 1.5em;
padding-left: 5px;
margin-top: 3px
}

.user-options {
border-top: rgb(185, 185, 185) 1px solid;
grid-column-start: 1;
grid-column-end: 3;
grid-row-start: 2;
grid-row-end: 3;
padding: 20px 0px 0px 5px;
width: calc(100% - 20px);
}

.user-options > p {
padding: 8px;
}

.user-options a {
  text-decoration: none;
}

.user-options a:hover {
background-color: #fcfcfc79;
padding: 8px;
color: black;
border-radius: 0.3vw;
}

.add-comment input {
  height: 40px;
  width: 85%;
  float: left;
}

.add-comment button {
 padding: 5px;
 font-size: 12pt;
 margin: 8px;
 margin-left: 10px;
 border-radius: 3px;
 background-color: #bddef5;
}

.comment-item button {
  padding: 2px;
  font-size: 12pt;
  color: rgb(216, 37, 37);
  margin: 5px;
  margin-left: 10px;
  border: 2px;
  background-color: transparent; 
  cursor: pointer; 
  transition: all 0.3s ease; /
}

.comment-item button[name="update_comment"] {
padding: 5px;
font-size: 12pt;
margin: 8px;
margin-left: 10px;
margin-top: -10px;
border-radius: 3px;
background-color: #dfd5ba;
color: black;
}

.comment-item button:hover {
  color: rgb(184, 39, 39);
  background-color: rgb(245, 237, 237); 
}

.comment-item textarea {
  min-height: 50px;
  max-height: 300px;
  min-width: 52vw;
  max-width: 52vw;
  resize: none; /* to prevent manual resizing */
}
/*   END CSS: viewpet_member.php  */   


/* START CSS: reportpetpage.php */

.reportpet-page header {
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  background-color: #f8f8f8; 
  padding: 10px 20px; 
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); 
}

.reportpet-page main {
  min-height: 100%;
  flex-grow: 1;
  padding-top: 80px;
}

.reportpet-page .logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  margin-top: 2px;
  max-width: 80px;
  height: 70px;
  margin-left: -5px;
}

.reportpet-page .nav-logo {
  height: 70px;
  width: auto;
  margin-right: 20px;
  margin-top: 30px;
}

.reportpet-page nav a {
  margin: 0 10px; 
  text-decoration: none; 
  color: #333; 
}

.reportpet-page .auth-buttons button {
  background-color: #007bff; 
  color: white;
  border: none;
  padding: 5px 10px; 
  margin-left: 5px; 
  cursor: pointer; 
}

.reportpet-page .container {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 20px;
  flex-grow: 1; 
}

.reportpet-page .form-container, .map-container {
  background: white; 
  padding: 20px; 
  border-radius: 10px; 
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); 
}

.reportpet-page .form-container {
  width: 45%; 
  text-align: left; 
  height: 550px;
}

.reportpet-page .map-container {
  width: 45%; 
  height: 550px;
}

.reportpet-page .map {
  height: 400px; 
  background: lightgray; 
  border-radius: 10px; 
}

.reportpet-page .upload-container {
  display: flex; 
  flex-direction: row;
  align-items: center;  
  gap: 10px; 
  padding: 10px;
  margin-top: 5px;  
}

.reportpet-page .upload-container input[type="file"] {
  display: none; 
}

.reportpet-page .upload-container label {
  display: inline-block;
  background-color: #007bff;
  color: white;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 20px;
  text-align: center;
  width: auto;
}

.reportpet-page .upload-container label:hover {
  background-color: #0056b3;
}

.reportpet-page .upload-container button {
  background-color: #007bff;
  color: white;
  padding: 10px 20px;
  font-size: 16px;
  border: none;
  cursor: pointer;
  border-radius: 20px;
}

.reportpet-page .upload-container button:hover {
  background-color: #0056b3;
}

.reportpet-page .upload-button {
  background-color: #007bff;
  color: white;
  padding: 10px 20px;
  font-size: 16px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.reportpet-page .upload-button:hover {
  background-color: #0056b3;
}

.reportpet-page html, body {
  height: 100%; 
  margin: 0; 
}

.reportpet-page {
  display: flex;
  flex-direction: column;
  height: 100%; 
}

.reportpet-page main {
  flex-grow: 1; 
}

.reportpet-page footer {
  background-color: #ceedf1;
  text-align: center;
  font-size: 15px;
  padding: 20px;
  margin-top: auto; 
  margin-bottom: 0; 
  position: relative;
  margin-top: 0;
  padding-top: 10px;
  clear: both;
}

/* END CSS FOR reportpetpage.php */


/* START CSS: petmap.php  */
	
.petmap-page header {
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  background-color: #f8f8f8; 
  padding: 10px 20px; 
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); 
}

.petmap-page main {
  min-height: 100%;
  flex-grow: 1;
}

.petmap-page .logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  margin-top: 2px;
  max-width: 80px;
  height: 70px;
  margin-left: -5px;
}

.petmap-page .nav-logo {
  height: 70px;
  width: auto;
  margin-right: 20px;
  margin-top: 30px;
}

.petmap-page nav a {
  margin: 0 10px; 
  text-decoration: none; 
  color: #333; 
}

.petmap-page .auth-buttons button {
  background-color: #007bff; 
  color: white;
  border: none;
  padding: 5px 10px; 
  margin-left: 5px; 
  cursor: pointer; 
}

.petmap-page #petmap-container {
  display: grid;
  grid-template-columns: 1fr; 
  gap: 20px;
  padding: 20px;
  width: 80%; 
  margin-left: 180px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.petmap-page #filter-section {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  padding: 20px;
  background-color: #f5f5f5;
  border-radius: 10px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  margin-top: 70px;
}

.petmap-page #filter-section label {
  margin-right: 10px;
}

.petmap-page #filter-section select {
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

.petmap-page #petmap-map {
  width: 100%;
  height: 600px; 
  border-radius: 10px;
  overflow: hidden;
}

.petmap-page .switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.petmap-page .switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.petmap-page .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 34px;
}

.petmap-page .slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  border-radius: 50%;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.4s;
}

.petmap-page input:checked + .slider {
  background-color: #4CAF50;
}

.petmap-page input:checked + .slider:before {
  transform: translateX(26px);
}

.petmap-page footer {
  background-color: #ceedf1;
  text-align: center;
  font-size: 15px;
  padding: 20px;
  margin-top: auto; 
  margin-bottom: 0; 
  position: relative;
  margin-top: 0;
  padding-top: 10px;
  clear: both;
}

#filter-section button {
  background-color: #1E3F66;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  margin: 5px;
  transition: background-color 0.3s ease;
}

#filter-section button:hover {
  background-color: #a4bbd8;
  color: black;
}

#filter-section button.active {
  background-color: #bd432e; 
  color: white;
}

#filter-section button.active {
  font-weight: bold;
}

/*  END CSS: petmap.php  */


/* START CSS: accountpage.php */

.settings-page .logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  margin-top: 2px;
  margin-bottom: 25px;
  max-width: 80px;
  height: 70px;
  margin-left: 0px;
}

.settings-page .nav-logo {
  height: 70px;
  width: auto;
  margin-right: 20px;
  margin-top: 30px;
}
	
.settings-page .settings-container {
  display: flex;
  width: 80%;
  margin: 20px auto;
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.settings-page #account-settings-main {
  margin-top: 70px;
}

.settings-page .sidebar {
  width: 30%;
  padding: 20px;
  border-right: 1px solid #ddd;
}

.settings-page .profile-info {
  text-align: center;
  margin-bottom: 20px;
}

.settings-page .profile-pic {
  width: 80px;
  height: 80px;
  border-radius: 50%;
}

.settings-page .username {
  font-weight: bold;
  margin-top: 10px;
}

.settings-page .settings-menu {
  list-style: none;
  padding: 0;
}

.settings-page .settings-menu li {
  margin: 10px 0;
}

.settings-page .settings-menu a {
  text-decoration: none;
  color: #64acf9;
}

.settings-page .settings-content {
  width: 70%;
  padding: 20px;
}

.settings-page .settings-section {
  margin-bottom: 20px;
}

.settings-page label {
  display: block;
  font-weight: bold;
  margin-top: 10px;
}

.settings-page input {
  width: 100%;
  padding: 8px;
  margin-top: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.settings-page .save-button {
  margin-top: 15px;
  background: #64acf9;
  color: white;
  border: none;
  padding: 10px;
  border-radius: 5px;
  cursor: pointer;
}

.settings-page .save-button:hover {
  background: #0056b3;
}

.settings-page footer {
  background-color: #ceedf1;
  text-align: center;
  font-size: 15px;
  padding: 20px;
  margin-top: auto; 
  margin-bottom: 0; 
  position: fixed;
  margin-top: 0;
  padding-top: 10px;
  clear: both;
}

.settings-page .error-message {
  color: red;
  font-size: 14px;
  margin-top: 5px;
}

/*  END CSS FOR accountpage.php  */

/* START CSS: error messages 	*/

.error-border {
	border: 1.5px solid red;
}

.error-text {
	color: red;
	font-style: italic;
	font-size: 10px;
  float: right;
  margin-left: 120px;
  margin-top: 7px;
}

.hidden {
	visibility: hidden;
}

/*	 END CSS: error messages	*/
