/*----------------------------------*/
/*---------- Basic Setup ----------*/
/*--------------------------------*/

/*div[contenteditable] {
 border: 1px solid black;
 width: 400px;
}*/

* {
  margin: 0;
  padding: 0;
  border: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI';
  font-size: 18px;
  color: #333;
  background-color: #f5f5dc;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  text-transform: uppercase;
}

input[type='date'] {
  -moz-appearance: textfield;
}



input[type='number']::-webkit-outer-spin-button,
input[type='number']::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}


/*input[type='prescription']{
    -webkit-user-modify: read-write;
    -moz-user-modify: read-write;
    user-modify: read-write;
	word-wrap: break-word;
	word-break: break-all;
}*/

.container {
  max-width: 100%;
  margin: 0 auto;
}

.backdrop {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 2;
  transition: 200ms;
}

.backdrop.hidden {
  display: none;
}

::selection {
  color: #f5f5dc;
  background-color: #333;
}

/*----------------------------------*/
/*---------- Reusable -------------*/
/*--------------------------------*/

.btn {
  min-width: 120px;
  font-size: 80%;
  background-color: #aaaaaa;
  color: #fff;
  border-radius: 5px;
  padding: 5px;
  margin: 5px;
  user-select: none;
  cursor: pointer;
  text-transform: uppercase;
  transition: 240ms linear;
}

.input-custom {
  height: 30px;
  width: 150px;
  font-size: 100%;
  padding: 0 10px;
  border: 1px solid #33333399;
  border-radius: 5px;
}

.label-custom {
  font-size: 100%;
  text-transform: uppercase;

}

.close__box-btn {
  display: block;
  position: absolute;
  right: 0;
  top: 0;
  font-size: 150%;
  text-align: center;
  color: #fff;
  background-color: #e74c3c;
  height: 30px;
  width: 30px;
  user-select: none;
  cursor: pointer;
  transition: 240ms;
}

.close__box-btn:hover {
  background-color: #d62c1a;
}

.form__submit-btn {
  width: 25%;
  margin: 10px 16px;
  background-color: #2ecc71;
  float: right;
}

.form__submit-btn:hover {
  background-color: #25a25a;
}

.form__cancel-btn {
  width: 25%;
  margin: 10px 16px;
  float: right;
  background-color: #e74c3c;
}

.form__cancel-btn:hover {
  background-color: #d62c1a;
}

legend {
  width: 85%;
  margin: 0 auto;
  font-size: 150%;
  text-align: center;
  text-transform: uppercase;
  font-weight: 700;
  border: 1px solid #333;
  border-radius: 5px;
}

.just_a_para {
  margin-top: 16px;
  text-align: center;
  color: #e74c3c;
}

.clearfix::after {
  content: '';
  clear: both;
  display: table;
}

/*----------------------------------*/
/*---------- Title Styles ---------*/
/*--------------------------------*/

.main__title {
  text-align: center;
  font-size: 350%;
  margin-top: 32px;
}

.main__description {
  margin-top: 12px;
  text-align: center;
}

/*--------------------------------------*/
/*---------- Control Buttons ----------*/
/*------------------------------------*/

.control__buttons {
  text-align: center;
  margin:10px;
}

.add__friends-btn {
  background-color: #3498db;
}

.add__friends-btn:hover {
  background-color: #217dbb;
}

.get__friends-btn {
  background-color: #2ecc71;
}

.get__friends-btn:hover {
  background-color: #25a25a;
}

.del__friends-btn {
  background-color: #e74c3c;
}

.del__friends-btn:hover {
  background-color: #d62c1a;
}

.upd__friends-btn {
  background-color: #f1c40f;
}

.upd__friends-btn:hover {
  background-color: #e2b70d;
}

/*--------------------------------------*/
/*------------- Output ----------------*/
/*------------------------------------*/

.output {
  width: 80%;
  min-height: 100px;
  padding: 16px;
  border: 1px solid #333;
  border-radius: 5px;
  margin: 0 auto;
}

.output__title {
  font-size: 120%;
  text-align: center;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.friends-list {
  margin-left: 16px;
  line-height: 145%;
}

.friends-list__item {
  margin-bottom: 4px;
}

.friends-list__item strong {
  text-transform: uppercase;
}

.friends-list__item .friend__name {
  display: inline;
  width: 50%;
  margin-left: 4px;
}

.friends-list__item .friend__date {
  display: inline;
  width: 20%;
  margin-left: 4px;
}

.friends-list__item .friend__prescription {
  display: inline;
  width: 20%;
  margin-left: 4px;
}

/*--------------------------------------*/
/*-------------- Modal ----------------*/
/*------------------------------------*/

.modal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  width: 50%;
  min-height: 160px;
  padding: 10px;
  border-radius: 5px;
  background-color: #f5f5f5;
  box-shadow: 0 4px 8px 0 #00000033, 0 6px 20px 0 #00000030;
  z-index: 25;
  transition: 160ms;
}

.modal.hidden {
  top: -100%;
}

.modal__title {
  margin: 16px 0;
  font-size: 120%;
  text-transform: uppercase;
}

/*--------------------------------------*/
/*--------------- Loader --------------*/
/*------------------------------------*/

.loader {
  position: relative;
  display: block;
  height: 50px;
  width: 50px;
  margin: 0 auto;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-left-color: #2ecc71;
  border-radius: 50%;
  animation: loader 1.2s infinite linear;
}

.loader.hidden {
  display: none;
}

.loader-complete {
  animation: none;
  border-color: #2ecc71;
}

.loader-complete.failed {
  border-color: #e74c3c;
}

.loader__checkmark {
  display: block;
  margin: 0 auto;
  position: absolute;
  top: 50%;
  left: 22%;
  border-color: #2ecc71;
  transform: rotate(-45deg);
}

.loader__checkmark::after {
  content: '';
  position: absolute;
  height: 25px;
  width: 50px;
  border: 2px solid transparent;
  border-left-color: inherit;
  border-bottom-color: inherit;
  animation: checkmark 800ms;
}

.loader__crossmark {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(90deg);
  height: 50px;
  width: 50px;
  overflow: hidden;
}

.loader__crossmark .stick {
  position: absolute;
  border-radius: 5px;
  background-color: #e74c3c;
}

.loader__crossmark .stick1 {
  transform: rotate(45deg);
}

.loader__crossmark .stick1::after {
  content: '';
  position: absolute;
  height: 1px;
  width: 70px;
  border-radius: 5px;
  background-color: #e74c3c;
  animation: stick1 600ms;
}

.loader__crossmark .stick2 {
  position: absoulte;
  bottom: 0;
  transform: rotate(-45deg);
}

.loader__crossmark .stick2::after {
  content: '';
  position: absolute;
  height: 1px;
  width: 70px;
  border-radius: 5px;
  background-color: #e74c3c;
  animation: stick2 800ms;
}

.loader__checkmark.hidden {
  display: none;
}

.loader__crossmark.hidden {
  display: none;
}

@keyframes loader {
  from {
    transform: rotate(0);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes checkmark {
  0% {
    height: 0;
    width: 0;
  }
  30% {
    height: 25px;
    width: 0px;
  }
  60% {
    height: 25px;
    width: 50px;
  }
  100% {
    height: 25px;
    width: 50px;
  }
}

@keyframes stick1 {
  0% {
    width: 0;
  }
  100% {
    width: 70px;
  }
}

@keyframes stick2 {
  0% {
    width: 0;
  }
  20% {
    width: 0;
  }
  100% {
    width: 70px;
  }
}

/*--------------------------------------*/
/*---------- Add Friend Form ----------*/
/*------------------------------------*/

.add__friends-box {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  max-height: 90%;
  width: 90%;
  border-radius: 5px;
  background-color: #f5f5f5;
  box-shadow: 0 4px 8px 0 #00000033, 0 6px 20px 0 #00000030;
  z-index: 10;
  transition: 240ms;
  overflow-y: scroll;
}

.add__friends-form--title {
  text-align: center;
  font-size: 120%;
  font-weight: 600;
  margin: 32px 0;
  color: #3498db;
}

.add__friends-form {
  max-width: 70%;
  height: 90%;
  margin: 0 auto;
}

.add__friends-form--name-box {
  width: 100%;
}

.add__friends-form--label {
  width: 30%;
}

.add__friends-form--first__name {
  margin-left: 5%;
  width: 70%;
  margin-bottom: 16px;
}

.add__friends-form--last__name {
  margin-left: 15%;
  width: 70%;
  margin-bottom: 16px;
}

.add__friends-form--date-box {
  width: 80%;
}

.add__friends-form--date__label {
  width: 20%;
}

.add__friends-form--date {
  margin-left: 5%;
  margin-bottom: 16px;
}

.add__friends-form--prescription-box {
  width: 70%;
	padding-top: 20px; 
}

.add__friends-form--prescription__label {
  width: 20%;
}

.add__friends-form--prescription {
	height:150px;
    width:90%;
	word-wrap: normal;
    word-break: break-word;
	padding-top: 10px;
    padding-bottom: 10px;
  margin-left: 5%;
  margin-bottom: 16px;
}

/*--------------------------------------*/
/*-------- Delete Friend Form ---------*/
/*------------------------------------*/

.del__friends-box {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  /* height: 80%; */
  padding-bottom: 32px;
  width: 60%;
  border-radius: 5px;
  background-color: #f5f5f5;
  box-shadow: 0 4px 8px 0 #00000033, 0 6px 20px 0 #00000030;
  z-index: 10;
  transition: 240ms;
}

.del__friends-form--title {
  text-align: center;
  font-size: 240%;
  font-weight: 600;
  margin: 32px 0;
  color: #d62c1a;
}

.del__friends-form {
  max-width: 70%;
  height: 90%;
  margin: 0 auto;
}

.del__friends-form--single {
  width: 100%;
  margin-bottom: 25px;
  padding: 16px;
  border: 1px solid #333;
  border-radius: 5px;
}

.del__friends-form--label {
  width: 20%;
}

.del__friends-form--name {
  margin-left: 5%;
  width: 90%;
  margin-bottom: 16px;
}

.del__friends-form--multiple {
  width: 100%;
  padding: 16px;
  border: 1px solid #333;
  border-radius: 5px;
  overflow-y: scroll;
}

.del__friends-form--date {
  margin-left: 5%;
  margin-bottom: 16px;
}

.del__friends-form .form__submit-btn {
  background-color: #e74c3c;
}
.del__friends-form .form__submit-btn:hover {
  background-color: #d62c1a;
}

.del__friends-form .form__cancel-btn {
  background-color: #2ecc71;
}
.del__friends-form .form__cancel-btn:hover {
  background-color: #25a25a;
}

/*--------------------------------------*/
/*-------- Update Friend Form ---------*/
/*------------------------------------*/

.upd__friends-box {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  height: 90%;
  width: 90%;
  border-radius: 5px;
  background-color: #f5f5f5;
  box-shadow: 0 4px 8px 0 #00000033, 0 6px 20px 0 #00000030;
  z-index: 10;
  transition: 240ms;
  overflow-y: scroll;
}

.upd__friends-form--title {
  text-align: center;
  font-size: 240%;
  font-weight: 600;
  margin: 32px 0;
  color: #f1c40f;
}

.upd__friends-form {
  max-width: 70%;
  height: 90%;
  margin: 0 auto;
}

.upd__friends-form--single {
  width: 100%;
  margin-bottom: 25px;
  padding: 16px;
}

.upd__friends-form--label {
  width: 20%;
}

.upd__friends-form--name {
  margin-left: 5%;
  width: 90%;
  margin-bottom: 16px;
}

.upd__friends-form--updates {
  width: 100%;
  padding: 16px;
  border: 1px solid #333;
  border-radius: 5px;
}

.upd__friends-form--first__name {
  margin-left: 5%;
  width: 70%;
  margin-bottom: 16px;
}

.upd__friends-form--last__name {
  margin-left: 15%;
  width: 70%;
  margin-bottom: 16px;
}

.upd__friends-form--date {
  margin-left: 5%;
  margin-bottom: 16px;
}

.upd__friends-form--prescription {
	height:150px;
    width:90%;
	word-wrap: normal;
    word-break: break-word;
	padding-top: 10px;
    padding-bottom: 10px;
  margin-left: 5%;
  margin-bottom: 16px;
}

