@font-face {
  font-family: "Apercu ";
  src: local("Apercu  Medium"), local("Apercu--Medium"),
    url("ApercuPro-Medium.woff2") format("woff2"),
    url("ApercuPro-Medium.woff") format("woff"),
    url("ApercuPro-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
}

* {
  box-sizing: border-box;
}

html {
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
}

body {
  height:100%;
  display: flex;
  flex-direction: column;
}

header {
  flex-shrink: 0;
}

main {
  height: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: auto;
}

.sidepanel_modal {
  background-color: rgba(250,242,166); 
  position: absolute;
  z-index:9999;
  top: 10%;
  left: 10%;
  transform: translate(-50%, -50%);
  /* width: 25%;
  height: 40%; */
  width: 450px;
  height: 400px;
  /* width: 25%; */
  /* height: 30%; */
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  overflow-y: auto;
}

.sidepanel_modal ul {
  margin-block-start: 1em;
  margin-block-end: 1em;
}

.sidepanel_modal .notetitle{
  padding: 10px 10px 10px 20px;
  border-bottom: solid;
  border-color: #7f7053;
  /* display: flex;
  flex-direction: column;
  justify-content: space-between; */
}

.sidepanel_modal .notetitle h2{
  text-align: center;
  margin: 0;

}
.sidepanel_modal .notetitle h4{
  margin:0;
  text-align: center;
  /* color: green; */
  font-family: Arial, Helvetica, sans-serif;
}

.sidepanel_modal .noteitems{
  font-family: sans-serif;
  font-size : 20px;
}

.read-button {
  background-color: #006BA6; 
  border: 2px solid #006BA6;
  color: white;
  padding: 10px 5px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 2px 4px 2px 10px;
  cursor: pointer;
  border-radius: 10px;
  transition-duration: 0.4s;
  
}

.read-button:hover {
  background-color: white; /* Green */
  color: black;
}

.par1{
  margin:0;
  color:green;
  /* hiding this */
  display: none;
  margin-bottom:0;
}


.par2{
  line-height: .01em;
  margin-top: 0;
  margin:0;
  padding-top:0;
  font-family: sans-serif;
  color: red;
  font-style: italic;

}

html * {
  /* font-family: "Apercu "; */
  font-family: Arial, Helvetica, sans-serif ;

}

.greetings_div {
  display: none;
  flex-direction: row;
  justify-content: space-between;
  text-align: left;
  padding: 1.25% 0;
  padding-left: 1%;
  line-height: 1.25;
  align-items: center;
  font-size: 200%;
  font-family: "Apercu ";
  color: #2c4251;
  flex-shrink: 0;
}

.extra_buttons_div {
  display: flex;
  flex-direction: column;
  width: 25%;
  margin-right: 1%;
}

.mainBox {
  display: flex;
  flex: 1;
  flex-direction: row;
  width: 100%;
  height: auto;
  padding: 20px;
  gap: 20px;
  overflow: auto;
}

.rightMainBox {
  display: flex;
  flex-direction: column;
  width: 60%;
  gap: 20px;
  flex: 1;
}

/*** WEATHER ***/

#weather {
  align-items: center;
  border-radius: 12px;
  border: 2px gray solid;
  display: flex;
  flex-direction: row;
  font-size: 130%;
  height: 158px;
  justify-content: space-around;
  background-color: #e7ecef;
  /*Aliceblue*/
  margin-top: 0;
  /*To match message box*/
}

#weather_left,
#weather_right {
  align-items: center;
  display: flex;
  flex-direction: column;
  font-size: 175%;
  justify-content: space-around;
  flex: 1;
  gap: 5px;
  height: 100%;
  padding: 15px;
}

#weather_img {
  width: auto;
  align-self: center;
  height: 100%;
  min-height: 0;
  padding: 5px;
}

.weather_city_container, .weather_temp_container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 0;
}

.weather_city_container img, .weather_temp_container img {
  height: 100%;
  padding: 7.5px;
}

/*** END OF WEATHER ***/

.noteBox {
  /* height: auto; */
  /* height: 200px; */
  /* max-height: 400px; */
  flex-direction: column;
  /* overflow: hidden; */
  border-radius: 15px;
  border-style: solid;
  background-color: #dfe3ee;
  flex: 1;
  overflow: auto;
  border: 2px solid gray;
}

#carouselBox{
  border-radius: 15px;
  border-style: solid;
  background-color: #dfe3ee;
  flex: 1;
  border: 2px solid gray;
}

.topBarCarouselBox {
    padding: 20px;
    border-bottom: 2px solid gray;
    background-color: #006BA6;
    border-top-left-radius: 14px;
    border-top-right-radius: 14px ;
    text-align: center;
    font-weight: bold;
    font-size: 1.5rem;
    width: 100%;
}

.topBarNoteBox h2{
  margin: 0;
  text-align: center;
}

.topBarNoteBox h3{
  color: #008CBA;
}


/* .notesDisplay{
  height: 80px;
  max-height: 80px;
  border-bottom: solid;
  border-color: black;
  overflow-y: auto;
} */


.topBarNoteBox > span {
  font-family: "Apercu ";
  font-size: 125%;
  font-weight: bold;
  width: 35%;
  text-align: center;
}

.topBarNoteBox > #save_note {
  border-radius: 15px;
  font-size: 125%;
  width: 13%;
  font-family: "Apercu ";
}

.topBarNoteBox > #save_status {
  font-family: "Apercu ";
  font-style: italic;
  font-size: 100%;
  font-weight: lighter;
}

.noteBox > #notes {
  width: 99%;
  height: 85%;
  background-color: transparent;
  font-family: "Apercu ";
  font-size: 115%;
  color: #2c4251;
}


#notesDisplay {
  /* height:130px; */
  /* min-height: 130px;  /* to keep scrollbar always visible*/
  /* max-height: 20px; */
  display: flex;
  flex-direction: column;
  overflow-y: scroll;
  /* scrollbar-width: thin; /* For Firefox */
  /* scrollbar-color:  white; /* For Firefox */
  border-bottom: 2px solid gray;
}

/* For Chrome, Edge, and Safari */
/* #notesDisplay::-webkit-scrollbar {
  width: 20px;
} */

/* #notesDisplay::-webkit-scrollbar-thumb {
  background-color: lightblue;
  border: 2px solid green;
} */

.note-link {
  display: block;
  padding: 10px;
  border-bottom: 2px solid grey;
  /* margin-bottom: 10px; */
  background-color: transparent; 
  font-size:18px;
  font-family:Arial, Helvetica, sans-serif;
  color: black;
}

.note-link:hover {
  background-color: #008CBA;
  color: white;
}

.noteBoxFooter{
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #006BA6;
}


.dialog {
  position: relative;
  top: 0;
  left: 100%;
  transform: translateX(10px); 
  position: absolute;
  top: 0;
  left: 0;
  transform: translate(-100%, -50%);
  background-color: #FFFACD;
  border: 1px solid #ccc;
  padding: 10px;
  width: 300px;
  height:300px;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 9999;
} 

.dialog h2 {
  font-size: 18px;
  margin: 0;
  margin-bottom: 10px;
}

.dialog #noteTitle{
  border-bottom: 2px solid grey; ;
}

.dialog #noteContent {
  margin-bottom: 10px;
  font-size:18px;
  max-height: 150px;
  overflow-y: scroll;
  /* border: 1px solid grey; */
}

.dialog #closeButton {
  margin-top:50px;
  margin-left:90px;
  background-color: white;
  color: black;
  text-align: center;
  border: 2px solid green;
  padding: 10px 15px;
  cursor: pointer;
  font-size:16px;
  border-radius: 8px;
  transition-duration: 0.4s;
}

.dialog #closeButton:hover {
  background-color: green;
  color: white;
}



.add-button{
  background-color: #006BA6; 
  color: white;
  border: 2px solid #006BA6;
  /* background-color: #4CAF50; */
  /* border: none; */
  padding: 15px 20px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 18px;
  margin: 10px;
  cursor: pointer;
  border-radius: 12px;
  transition-duration: 0.4s;
}

.add-button:hover {
  background-color: white; /* Green */
  color: black;
}


/*SashaP|11/06/23| Changing Event box CSS so that it can replace messaging div */
/* .eventBox {
  height: auto;
  border-radius: 15px;
  background-color: #dfe3ee;
  margin: 0 20px;
  flex: 1;
} */

.eventBox{
  background-color: #dfe3ee;
  width:100%;
  /* height:100%; */
  overflow: auto;
  border-right: 2px solid #c4c4c4;
  border-radius: 1rem;
  flex: 1;
  border: 2px solid gray;
}

#eventTitle {
  text-align: center;
  color: white;
}

.topBarEventBox {
  display: flex;
  justify-content: space-between;
  padding: 1.5em;
  background: #006BA6;
  border-bottom: 2px solid gray;
}

.topBarEventBox > span {
  font-family: "Apercu ";
  font-size: 175%;
  font-weight: bold;
  width: 100%;
}

.noevent {
  font-family: "Apercu ";
  font-size: 125%;
  padding: 5%;
  text-align: center;
}

.event {
  display: flex;
  background-color: white;
  font-family: "Apercu ";
  font-size: 100%;
  border-radius: 5px;
  margin: 10px 0px;
  padding: 10px 5px;
  -webkit-box-shadow: 0px 10px 10px 0px rgba(0, 0, 0, 0.1);
  -moz-box-shadow: 0px 10px 10px 0px rgba(0, 0, 0, 0.1);
  box-shadow: 0px 10px 10px 0px rgba(0, 0, 0, 0.1);
}

.event:hover {
  background-color: #d7d4d4;
}

.event__left {
  width: 150px;
  text-align: center;
}

.event__right {
  padding-left: 20px;
  text-align: left;
}

.title {
  font-weight: bold;
  font-size: 17px;
}

.subtitle {
  opacity: 0.75;
}

.tag {
  color: #00316e;
  font-weight: bold;
}

.container {
  max-width: 1170px;
  margin: auto;
}

img {
  max-width: 100%;
}

.inbox_people {
  background: #e6e1c5 none repeat scroll 0 0;
  width: 40%;
  overflow: hidden;
  border-right: 2px solid #c4c4c4;
  border-radius: 1rem;
  font-family: "Apercu ";
  color: #2c4251;
  flex: 1;
  flex-direction: column;
}

#users {
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.headind_srch {
  padding: 1% 0;
  overflow: hidden;
  border-bottom: 1px solid #c4c4c4;
  text-align: center;
  color: #2c4251;
  flex-shrink: 0;
}

.recent_heading {
  /* float: left; */
  width: 100%;
}

.chat_ib h5 {
  font-size: 15px;
  color: #464646;
  margin: 0 0 8px 0;
}

.chat_ib h5 span {
  font-size: 13px;
  float: right;
}

.chat_ib p {
  font-size: 14px;
  color: #989898;
  margin: auto;
}

.chat_img {
  width: 3.6rem;
  height: 3.6rem;
}

.chat_img > img {
  border-radius: 50%;
  width: 100%;
  height: 100%;
}

.chat_ib {
  padding-left: 2.5%;
  width: 85%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.chat_name {
  font-size: 125%;
}

.chat_text {
  font-size: 100%;
}

.chat_date {
  font-size: 75%;
  font-style: italic;
}

.chat_people {
  overflow: hidden;
  clear: both;
  display: flex;
  flex-direction: row;
  flex-shrink: 0;
}

.chat_people:hover {
  background-color: #d7d4d4;
}

.chat_list {
  border-bottom: 1px solid #c4c4c4;
  margin: 0;
  padding: 18px 16px 10px;
  max-height: 500px;
}

/* The Modal (background) */

.modal {
  display: none;
  /* Hidden by default */
  position: fixed;
  /* Stay in place */
  z-index: 1050;
  /* Sit on top */
  left: 0;
  top: 0;
  width: 100%;
  /* Full width */
  height: 100%;
  /* Full height */
  overflow: auto;
  /* Enable scroll if needed */
  background-color: rgb(0, 0, 0);
  /* Fallback color */
  background-color: rgba(0, 0, 0, 0.4);
  /* Black w/ opacity */
}

.modal_bookmark {
  display: none;
  /* Hidden by default */
  position: fixed;
  /* Stay in place */
  z-index: 1;
  /* Sit on top */
  left: 0;
  top: 0;
  width: 100%;
  /* Full width */
  height: 100%;
  /* Full height */
  overflow: auto;
  /* Enable scroll if needed */
  background-color: rgb(0, 0, 0);
  /* Fallback color */
  background-color: rgba(0, 0, 0, 0.4);
  /* overflow-y: auto; */
  /* Black w/ opacity */
}

/* Modal Content/Box */

.modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  /* 15% from the top and centered */
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  /* Could be more or less, depending on screen size */
}

.modal-content_bookmark {
  background-color: #fefefe;
  margin: 3% auto;
  /* 15% from the top and centered */
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  text-align: center;
  overflow-y: auto;
  max-height: calc(100vh - 190px);
  /* Could be more or less, depending on screen size */
}

/* The Close Button */

.close {
  color: #ffff;
  float: right;
  font-size: 45px;
  font-weight: bold;
  margin-right: 3%;
  margin-top: 3%;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.bookmark_img {
  width: 75%;
}

.bookmark_instruction_list {
  display: inline-block;
  max-width: 40em;
}

.bookmark_instruction_list > li {
  text-align: start;
}

#sync_caregiver {
  border-radius: 25px;
  height: auto;
  font-size: large;
  font-family: "Apercu ";
  border-width: thick;
  margin-bottom: 3%;
  background-color: #dfe3ee;
}

#bookmark_button {
  border-radius: 25px;
  height: auto;
  font-size: large;
  font-family: "Apercu ";
  border-width: thick;
  background-color: #dfe3ee;
  margin-bottom: 3%;
}

#bookmark_button:hover{
  cursor: pointer;
}



/* Extra small devices (phones, 600px and down) */

@media only screen and (orientation: portrait) and (max-width: 600px) {
  .greetings_div {
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: 5% 0;
    line-height: 1.25;
    font-size: 125%;
    font-family: "Apercu ";
    color: #2c4251;
  }
  #greet_message {
    margin-bottom: 20px;
  }
  .extra_buttons_div {
    display: flex;
    flex-direction: column;
    width: 80%;
    margin-right: 1%;
  }
  .mainBox {
    display: flex;
    flex: 1;
    flex-direction: column;
    width: 100%;
    height: auto;
  }
  .rightMainBox {
    display: flex;
    flex-direction: column;
    width: 100%;
  }
  #weather {
    align-items: center;
    display: flex;
    flex-direction: row;
    font-size: 110%;
    justify-content: space-around;
    background-color: #e7ecef;

    margin: 0;
    border-radius: 0;
    border-style: none;
    margin-bottom: 16px;
  }
  #weather_left,
  #weather_right {
    display: flex;
    flex-direction: column;
    font-size: 175%;
    justify-content: space-around;
    width: 50%;
  }
  .eventBox {
    width: 100%;
    margin: 0 auto;
    border-radius: 0;
    flex-shrink: 0;
    max-height: 450px;
    border: none;
  }
  .topBarEventBox {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    text-align: center;
    font-size: 90%;
  }
  .topBarNoteBox > #save_note {
    border-radius: 15px;
    font-size: 125%;
    width: 20%;
    font-family: "Apercu ";
  }
  .noteBox {
    border-radius: 0;
  }
  .noteBox > #notes {
    width: 99%;
    height: 100px;
    background-color: transparent;
    font-family: "Apercu ";
    font-size: 115%;
    color: #2c4251;
  }
  .inbox_people {
    background: #e6e1c5 none repeat scroll 0 0;
    width: 100%;
    height: auto;
    max-height: 450px;
    overflow: hidden;
    border-radius: 1rem;
    font-family: "Apercu ";
    color: #2c4251;
    margin: 0;
    border-radius: 0;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    border: none;
  }
  #users {
    height: auto;
    overflow: auto;
  }
  #weather {
    width: 100%;
    /* padding-left: 0.5%; */
    margin-bottom: 0;
  }
  footer {
    /* float: right; */
  }
  #notesDisplay {
    max-height: 450px;
  }
  .add-button {
    padding: 8px 12px;
    margin: 10px;
  }
  .sidepanel_modal {
    position: fixed;
    top: unset;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 250px;
  }
  .sidepanel_modal>.notetitle h2 {
    font-size: 150%;
  }
  .sidepanel_modal .read-button {
    padding: 6px 5px;
    margin-left: 10px;
  }
  body {
    height: auto;
  }
  html {
    overflow-y: auto;
  }
}

@font-face {
  font-family: "Apercu ";
  src: local("Apercu  Medium"), local("Apercu--Medium"),
    url("ApercuPro-Medium.woff2") format("woff2"),
    url("ApercuPro-Medium.woff") format("woff"),
    url("ApercuPro-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
}

