@import url(./variables.css);

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Roboto", sans-serif;
  height: 100vh;
  background-color: var(--bg-primary-color);
}

/* home page design  */

.main_container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 100%;
  /* height: 100vh; */
  /* padding: 50px 0; */
  margin: auto 0;
}

.home_sec {
  width: 100%;
  max-width: 530px;
  min-height: 90vh;
  margin: 0 auto;
  border-radius: var(--md-border-radius);
  background-color: var(--bg-secondary-color);
}
.home_sec .top_div {
  --bg-primary-color: rgba(0, 0, 0, 0.5);
  display: flex;
  color: var(--white-color);
  background-color: var(--bg-primary-color);
}
.top_left {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  width: 100%;
  padding: 25px 20px 25px;
}
.top_right {
  padding: 25px 20px 25px;
  border-left: 2px solid rgba(255, 255, 255, 0.3);
}
.top_div p {
  font-size: var(--sm-font-size);
  font-weight: var(--regular-weight);
}
.top_div p span {
  font-size: var(--xl-font-size);
  font-weight: var(--bold-weight);
}

.top_div p:nth-of-type(2) {
  text-align: center;
}
.top_div p:nth-of-type(2) img {
  width: 20px;
  height: 20px;
}
.top_div p:nth-of-type(2) span {
  --xl-font-size: 28px;
  font-size: var(--xl-font-size);
}

.mid_div {
  padding-top: 50px;
}
.mid_div h3 {
  text-align: center;
  color: var(--white-color);
  font-weight: var(--bold-weight);
  font-size: var(--lg-font-size);
}
.mid_div h3 span {
  font-weight: var(--regular-weight);
}
.action_div {
  text-align: center;
}

.action_div .btn_div {
  margin-top: 30px;
  display: flex;
  justify-content: space-evenly;
  flex-wrap: wrap;
}

.action_btn {
  flex-direction: column;
  -ms-flex-direction: column;
  height: 200px;
}
.action_btn img {
  display: block;
  margin: 40px 0;
}

.action_btn .right_arrow {
  width: 20px;
  height: 20px;
  margin: 55px 0;
}
.call_btn {
  height: 50px;
}
.call_btn img {
  width: 16px;
  height: 16px;
  margin-right: 10px;
}
.action_btn,
.call_btn {
  width: 100%;
  max-width: 200px;
  border-radius: var(--md-border-radius);
  background-color: var(--bg-secondary-color);
  color: var(--white-color);
  font-size: var(--sm-font-size);
  -webkit-box-shadow: var(--box-shadow);
  box-shadow: var(--box-shadow);
  transition: 0.3s;
  display: flex;
  justify-content: center;
  align-items: center;
  -ms-flex-item-align: center;
  text-decoration: none;
}

.action_btn:hover,
.call_btn:hover {
  box-shadow: unset;
  background-color: var(--bg-primary-color);
}

.bottom_logo {
  margin: 15% 0 5%;
  width: 60px;
}

/* pin screen dessign */
.custom_input {
  --bg-primary-color: #171a1d;
  background-color: var(--bg-primary-color);
  color: var(--white-color);
  padding: 10px;
  text-align: center;
  border: unset;
  border-radius: var(--sm-border-radius);
  font-size: var(--md-font-size);
  font-weight: var(--medium-weight);
  text-transform: uppercase;
}
.custom_input:focus {
  outline: unset;
}
::placeholder {
  /* Chrome, Firefox, Opera, Safari 10.1+ */
  color: var(--white-color);
  opacity: 1; /* Firefox */
}

:-ms-input-placeholder {
  /* Internet Explorer 10-11 */
  color: var(--white-color);
}

::-ms-input-placeholder {
  /* Microsoft Edge */
  color: var(--white-color);
}

.input_div {
  margin: 10% auto 5% auto;
  display: flex;
  flex-direction: column;
  max-width: 285px;
}
.input_div a {
  background-color: var(--bg-secondary-color);
  border-radius: var(--sm-border-radius);
  margin-right: 15px;
  padding: 10px;
  display: inline-block;
  vertical-align: middle;
  transition: 0.3s;
  -webkit-box-shadow: var(--box-shadow);
  box-shadow: var(--box-shadow);
}

.input_div a:hover {
  box-shadow: unset;
  background-color: var(--bg-primary-color);
}
.input_div p {
  color: var(--white-color);
  font-size: var(--md-font-size);
}
.input_div img {
  display: inline-block;
  vertical-align: middle;
  width: 15px;
  height: 15px;
  height: auto;
}
.tab_list {
  display: flex;
  white-space: nowrap;
  list-style: none;
  justify-content: space-between;
  border-bottom: 1px solid #3f4144;
  margin: 45px 35px 10px;
}
.tab_list li {
  padding-bottom: 15px;
  position: relative;
}
.tab_list li a {
  color: var(--white-color);
  text-decoration: none;
  font-size: var(--md-font-size);
}

.tab_list li a.active {
  color: var(--yellow-color);
}
.tab_list a.active::before {
  content: "";
  border-bottom: 5px solid var(--yellow-color);
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  margin: auto;
  width: 55px;
  border-radius: var(--md-border-radius);
}

.pin_div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: var(--md-border-radius);
  margin: 0 auto;
  max-width: 285px;
  padding: 5px;
  -webkit-box-shadow: var(--box-shadow);
  box-shadow: var(--box-shadow);
}
.pin_div .row {
  width: 100%;
}
.pin_div .row button {
  --bg-secondary-color: #1d2226;
  border: unset;
  background-color: var(--bg-secondary-color);
  color: var(--white-color);
  width: 89px;
  height: 89px;
  font-size: var(--xl-font-size);
  font-weight: var(--bold-weight);
  border-radius: var(--md-border-radius);
}
.pin_div .row button img {
  width: 30px;
  height: auto;
  margin: 5px 0;
}
.pin_div .row button:hover {
  background-color: var(--bg-primary-color);
}

.pin_div .row .img_btn {
  display: inline-flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  font-size: var(--md-font-size);
}
.pin_div .row .call_img img {
  width: 20px;
  height: 20px;
  margin: 10px 0;
}

/* directory section */
.directory_sec {
  margin: 0 2%;
}
.directory_sec .search {
  width: 100%;
  position: relative;
  display: flex;
}
.search .search_icon,
.cross_icon {
  position: absolute;
  top: 50%;
  transform: translate(0, -50%);
  width: 18px;
  height: 18px;
  transition: 0.2s;
}
.search .search_icon {
  left: 15px;
}
.search .cross_icon {
  display: none;
  right: 15px;
}
/*.search input:focus ~ .cross_icon {
  display: block;
}*/
.search input:focus ~ .search_icon {
  display: none;
}
.search_input {
  width: 100%;
  background-color: var(--primary-color);
  border: unset;
  border-right: none;
  padding: 15px 45px;
  border-radius: var(--sm-border-radius);
  outline: none;
  color: var(--secondary-color);
}
.search_input::placeholder {
  /* Chrome, Firefox, Opera, Safari 10.1+ */
  color: var(--secondary-color);
  opacity: 1; /* Firefox */
}

.search_input:-ms-input-placeholder {
  /* Internet Explorer 10-11 */
  color: var(--secondary-color);
}

.search_input::-ms-input-placeholder {
  /* Microsoft Edge */
  color: var(--secondary-color);
}

.phone_book {
  display: flex;
  padding: 5% 0;
}
.phone_book ul li {
  list-style: none;
}
.phone_book ul li a {
  color: var(--white-color);
  font-size: var(--md-font-size);
  font-weight: var(--medium-weight);
  text-decoration: none;
}
.pb_left {
  flex-grow: 1;
}

.pb_left ul {
  max-width: 50px;
  border-radius: var(--md-border-radius);
  text-align: center;
  -webkit-box-shadow: var(--box-shadow);
  box-shadow: var(--box-shadow);
}
.pb_left ul li {
  padding: 10px;
}
.pb_left ul li:hover,
.pb_left ul li.active {
  background: var(--bg-primary-color);
}
.pb_left ul li:first-child {
  border-radius: 15px 15px 0 0;
}
.pb_left ul li:last-child {
  border-radius: 0 0 15px 15px;
}
.pb_left ul li:last-child img {
  width: 15px;
  height: 15px;
}
.pb_right {
  flex-grow: 10;
  max-height: 570px;
  overflow: auto;
  padding-top: 5%;
}

.pb_right ul {
  color: var(--yellow-color);
  font-size: var(--lg-font-size);
  font-weight: var(--medium-weight);
  margin: 0 5%;
}
.pb_right ul li {
  padding: 15px 0px;
  margin-bottom: 2%;
  transition: 0.3s;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.pb_right ul li span {
  display: none;
  background-color: var(--primary-color);
  color: var(--white-color);
  transition: 0.3s;
  position: absolute;
  right: 20px;
  padding: 5px;
  font-size: var(--md-font-size);
  top: 50%;
  transform: translate(0, -50%);
  width: 25%;
  border-radius: var(--sm-border-radius);
  cursor: pointer;
}
.pb_right ul li span img {
  margin-right: 10%;
  width: 18px;
  height: 18px;
}
.pb_right ul li:hover span,
.pb_right ul li.active span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pb_right ul li:hover,
.pb_right ul li.active {
  content: "";
  padding-left: 15px;
  border-radius: var(--md-border-radius);
  -webkit-box-shadow: var(--box-shadow);
  box-shadow: var(--box-shadow);
}

.pb_right::-webkit-scrollbar {
  width: 20px;
}

.pb_right::-webkit-scrollbar-track {
  background-color: transparent;
}
.pb_right::-webkit-scrollbar-thumb {
  --white-color: #d6dee1;
  background-color: var(--white-color);
  border-radius: 20px;
  border: 20px solid var(--dark-color);
  background-clip: content-box;
}
.pb_right::-webkit-scrollbar-thumb:hover {
  --white-color: #a8bbbf;
  background-color: var(--white-color);
}

/* key board section */

.keyboard_div {
  --md-font-size: 15px;
  display: flex;
  flex-direction: column;
  padding: 15px;
  border-radius: var(--sm-border-radius);
  margin-top: 3%;
  -webkit-box-shadow: var(--box-shadow);
  box-shadow: var(--box-shadow);
}
.keyboard_div .row_2,
.row_3,
.row_4 {
  margin-right: 15%;
}
.keyboard_div .row_1,
.row_2,
.row_3 {
  margin-bottom: 5px;
}

.keyboard_div .row_3 img {
  width: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.keyboard_div .row_3 .clear_btn {
  width: 13%;
}
.keyboard_div ul {
  display: flex;
  list-style: none;
  text-decoration: none;
  justify-content: space-between;
}
.keyboard_div ul li {
  background-color: var(--primary-color);
  border: 1px solid #2c3135;
  border-radius: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 35px;
  height: 35px;
  padding: 8px 12px;
}
.keyboard_div ul li:hover {
  background-color: var(--dark-color);
}
.keyboard_div ul li a {
  text-decoration: none;
  color: var(--white-color);
  text-transform: uppercase;
  font-size: var(--md-font-size);
}
.keyboard_div .row_4 li {
  width: 100%;
}
.keyboard_div .row_4 li a {
  font-size: var(--xs-font-size);
}
.keyboard_div ul .close {
  --primary-color: transparent;
  background-color: var(--primary-color);
  border: 1px solid transparent;
  margin-left: 15px;
}
.keyboard_div ul .close:hover {
  --primary-color: transparent;
  background-color: var(--primary-color);
}
ul.row_1 {
  padding-right: 11px;
}
ul.row_2 {
  padding: 0 10px;
}

.search_list .pb_right {
  padding-top: 0;
}
.search_list .pb_right ul {
  margin: 0 20% 0 2%;
  color: var(--white-color);
  font-size: var(--sm-font-size);
}

.search_list ul li a,
.search_list .pb_right ul li span {
  font-size: var(--sm-font-size);
}

/* caller screen design */
.call_screen {
  text-align: center;
  color: var(--white-color);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 90vh;
  font-weight: var(--medium-weight);
}
.call_screen h2 {
  padding-bottom: 10%;
}
.call-animation {
  --secondary-color: #22272b;
  --white-color: rgba(255, 255, 255, 0.3);
  background: var(--secondary-color);
  width: 135px;
  height: 135px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  border-radius: 100%;
  border: solid 1px var(--white-color);
  animation: play 2s ease infinite;
  -webkit-backface-visibility: hidden;
  -moz-backface-visibility: hidden;
  -ms-backface-visibility: hidden;
  backface-visibility: hidden;
}
.call_screen .call-animation img {
  width: 50px;
  height: 50px;
}

@keyframes play {
  0% {
    transform: scale(1);
  }
  15% {
    box-shadow: 0 0 0 10px rgba(0, 0, 0, 0.4);
  }
  25% {
    box-shadow: 0 0 0 15px rgba(0, 0, 0, 0.4), 0 0 0 25px rgba(0, 0, 0, 0.2);
  }
  25% {
    box-shadow: 0 0 0 20px rgba(0, 0, 0, 0.4), 0 0 0 35px rgba(0, 0, 0, 0.2);
  }
}

.call_screen a {
  background-color: var(--danger-color);
  width: 50px;
  height: 50px;
  border-radius: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 10% auto 0;
  cursor: pointer;
}
.call_screen a:hover {
  --danger-color: rgba(233, 59, 24, 0.5);
  background-color: var(--danger-color);
}
.call_screen a img {
  width: 20px;
  height: 20px;
  transform: rotate(135deg);
}
/* responsive design */

@media screen and (max-width: 600px) {
  .main_container {
    padding: 30px 0;
  }

  .top_left,
  .top_right {
    padding: 20px 10px 20px;
  }

  .top_div p {
    font-size: var(--xxs-font-size);
  }
  .top_div p span {
    font-size: var(--lg-font-size);
  }
  .top_div p:nth-of-type(2) img {
    width: 15px;
    height: 15px;
  }
  .top_div p:nth-of-type(2) span {
    --lg-font-size: 20px;
    font-size: var(--lg-font-size);
  }

  .mid_div {
    padding-top: 30px;
  }

  .action_btn,
  .call_btn {
    max-width: 150px;
    font-size: var(--xs-font-size);
  }
  .action_btn {
    height: 150px;
  }
  .action_btn img {
    margin: 20px 0;
    width: 35px;
    height: 35px;
  }
  .action_btn .right_arrow {
    margin: 30px 0;
  }
  .call_btn {
    height: 40px;
  }
  .call_btn img {
    width: 12px;
    height: 12px;
    margin-right: 5px;
  }
  .bottom_logo {
    margin: 15% 0 5%;
    width: 45px;
  }

  .pin_div .row button {
    width: 65px;
    height: 65px;
    font-size: var(--md-font-size);
  }
  .pin_div .row button img {
    width: 20px;
  }

  .pin_div,
  .input_div {
    max-width: 215px;
  }

  .input_div p,
  .tab_list li a,
  .pin_div .row .img_btn,
  .custom_input,
  .phone_book ul li a,
  .mid_div h3 {
    font-size: var(--sm-font-size);
  }
  .tab_list li {
    padding-bottom: 10px;
  }
  .tab_list {
    margin: 30px 20px;
  }

  .search_input {
    padding: 10px 40px;
    font-size: var(--sm-font-size);
  }
  .pb_left ul {
    max-width: 35px;
  }

  .pb_right {
    max-height: 515px;
  }
  .pb_right ul li {
    padding: 10px 0px;
  }
  .pb_right ul li span {
    font-size: var(--xs-font-size);
  }
  .pb_right::-webkit-scrollbar {
    width: 10px;
  }
  .keyboard_div {
    padding: 10px;
  }
  .keyboard_div .row_3 img {
    width: 12px;
  }

  .keyboard_div ul li {
    width: 25px;
    height: 25px;
    padding: 10px;
  }
  .keyboard_div ul li a {
    font-size: var(--xs-font-size);
  }
  .keyboard_div ul .close {
    margin-left: 5px;
  }
  .call_screen .call-animation img {
    width: 35px;
    height: 35px;
  }
  .call-animation {
    width: 100px;
    height: 100px;
  }
}
@media screen and (max-width: 480px) {
  .keyboard_div ul li a {
    font-size: var(--xxs-font-size);
  }
  .keyboard_div ul li {
    width: 20px;
    height: 20px;
  }
}
