@import url("https://fonts.googleapis.com/css?family=Open+Sans:300, 400,600&display=swap");

*,
*:before,
*:after {
  box-sizing: border-box;
  outline: none;
}

html, body {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, #323faf, #6bd8f3);
  font-family: "Open Sans", sans-serif;
  font-size: 18px;
  font-smooth: auto;
  font-weight: 300;
  line-height: 1.5;
  color: #444;
}

.card .line-numbers {
  font-family: "Lucida Console", Monaco, monospace;
  font-size: 14px;
}

.card {
  position: relative;
  width: 30rem;
  height: 17rem;
  perspective: 150rem;
}
.card-front, .card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: auto;
  border-radius: 5px;
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.4);
  transition: 0.9s cubic-bezier(0.25, 0.8, 0.25, 1);
  backface-visibility: hidden;
  overflow: hidden;
}
.card-front:before, .card-front:after, .card-back:before, .card-back:after {
  position: absolute;
}
.card-front:before, .card-back:before {
  bottom: -45px;
  right: -45px;
  content: "";
  width: 90px;
  height: 90px;
  background-color: rgba(255, 255, 255, 0.08);
  transform: rotate(45deg);
  z-index: 1;
  cursor: pointer;
}
.card-front-but, .card-back-but{
  bottom: -45px;
  right: -45px;
  width: 90px;
  height: 90px;
  transform: rotate(45deg);
  z-index: 3;
  cursor: pointer;
  position: absolute;
}
.card-front:after {
  content: url(img/redo-alt-solid.svg);
  width: 17px;
  height: 17px;
  bottom: 13px;
  right: 11px;
  z-index: 2;
  cursor: pointer;
}
.card-back:after {
  content: url(img/undo-alt-solid.svg);
  width: 17px;
  height: 17px;
  bottom: 13px;
  right: 11px;
  z-index: 2;
  cursor: pointer;
}
.card-front {
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, #101010, #2c3e50);
}
.card-back {
  background: linear-gradient(-45deg, #101010, #2c3e50);
  transform: rotateX(180deg);
}
.card .line-numbers {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  margin: 0;
  padding: 0 10px;
  background-color: rgba(255, 255, 255, 0.03);
  font-size: 13px;
}
.card .line-numbers > div {
  padding: 2.5px 0;
  opacity: 0.15;
}
.card .line-numbers {
  color: whitesmoke;
}
.card .indent {
  padding-left: 30px;
}

#container{
  height: 100%;
  width: 100%;
  padding-left: 28px;
}

#container .section {
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: space-evenly;
  align-content: center;
  align-items: center;
  padding-left: 30px;
  position: absolute;
}

#container .logo {
  display: block;
  width: 150px;
  height: 55px;
  margin-bottom: 20px;
  background: url(img/inect_logo_white.png);
  background-size: 100%;
  background-repeat: no-repeat;
  opacity: 0.9;
}

#container .section .profile-detail {
  width: 100%;
}

#container .section .profile-pic {
  width: 100px;
  flex-basis: 100px;
  flex-shrink: 0;
  border-radius: 50%;
}

#container .section .profile-detail .profile-name {
  color: #e9e9e9;
  font-size: 21px;
  font-weight: 500;
  line-height: 26px;
  margin-bottom: 0px;
}
#container .section .profile-detail .profile-maps {
  color: #999;
  font-size: 15px;
}
#container .profile-summary{
  color: #ddd;
  font-size: 13px;
  font-weight: 400;
  margin-bottom: 15px;
}
#container .profile-summary span{
  color: #999;
}
#container .section .profile-detail .tel {
  display: block;
  color: #6bd8f3;
  background: linear-gradient(96deg, #6BD8F3 0%, #323FAF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 900;
  font-size: 23px;
  text-decoration: none;
  letter-spacing: 1px;
}
#container .section .profile-detail .tel:hover {
  background: linear-gradient(84deg, #6BD8F3 0%, #323FAF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.profile-pils {
  display: flex;
  flex-wrap: wrap;
  align-content: space-between;
  justify-content: flex-start;
  flex-basis: 330px;;
  padding-right: 60px;
}
.profile-pils .pils {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 10px 30px -10px rgba(0, 0, 0, 0.12);
  border-radius: 60px;
  transition: all 0.3s;
  font-size: 13px;
  cursor: pointer;
  margin: 5px;
  color: #fff;
}
.profile-pils .pils a, .profile-pils .pils a:visited, .profile-pils .pils a:link {
  display: block;
  text-decoration: none;
  color: var(--main-2-fore);
  padding: 5px 10px;
}
.profile-pils .pils a i, .profile-pils .pils a:visited i, .profile-pils .pils a:link i {
  padding-right: 2px;
}
.profile-pils .pils:nth-child(1):hover {
  box-shadow: inset 0 0 0 1px #007cf8, 0 10px 35px -10px rgba(20, 122, 255, 0.5);
}
.profile-pils .pils:nth-child(1):hover i {
  color: #007cf8;
}
.profile-pils .pils:nth-child(2):hover {
  box-shadow: inset 0 0 0 1px #fff, 0 10px 30px -10px rgba(100, 100, 100, 0.6);
}
.profile-pils .pils:nth-child(3):hover {
  box-shadow: inset 0 0 0 1px #6f5cea, 0 10px 35px -10px rgba(111, 92, 234, 0.5);
}
.profile-pils .pils:nth-child(3):hover i {
  color: #6f5cea;
}
.profile-pils .pils:nth-child(4):hover {
  box-shadow: inset 0 0 0 1px #27a3e3, 0 10px 30px -10px rgba(39, 163, 227, 0.5);
}
.profile-pils .pils:nth-child(4):hover i {
  color: #27a3e3;
}

.profile-pils .pils:nth-child(5):hover {
  box-shadow: inset 0 0 0 1px #d22f71, 0 10px 30px -10px rgba(210, 47, 113, 0.5);
}
.profile-pils .pils:nth-child(5):hover i {
  color: #d22f71;
}
.profile-pils .pils:nth-child(6):hover {
  box-shadow: inset 0 0 0 1px #0574e7, 0 10px 30px -10px rgba(5, 116, 231, 0.5);
}
.profile-pils .pils:nth-child(6):hover i {
  color: #0574e7;
}
.card .variable {
  color: #BA68C8;
}
#dev{
  position: fixed;
  left: 15px;
  bottom: 15px;
  color: #fff;
  font-weight: 60;
  font-size: 16px;
  }
  #dev a{
    border: 1px solid #fff;
    border-radius: 20px;
    padding: 4px 7px;
    margin-left: 10px;
    color: #fff;
    background: rgba(255,255,255,0.05);
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
  }
  #dev a:hover {
    background: #101010;
    border: 1px solid #101010;
  }
  .vcf {
      border: 1px solid #fff;
      border-radius: 20px;
      padding: 10px 20px;
      color: #fff;
      background: rgba(255, 255, 255, 0.05);
      text-decoration: none;
      font-size: 13px;
      font-weight: 500;
  }
  .vcf:hover {
    background: #EF4060;
    border: 1px solid #EF4060;
  }
.dev-mob, .popup__close {
    top: 5px;
    right: 10px;
    z-index: 3;
    cursor: pointer;
    position: absolute;
    color: rgba(255,255,255,0.5);
    font-size: 21px;
    display: none;
}
.dev-mob:hover, .popup__close:hover {
    color: #6BD8F3;
}
.popup__close {
  display: block!important;
  color: #101010;
}

/*****Popup****/
.popup:not(:target){
  display: none;
}

.popup:target{
  width: 100%;
  height: 100vh; 
  display: flex;
  position: fixed;
  top: 0;
  right: 0;  
}

.popup::before{
  content: "";
  box-sizing: border-box;
  width: 100%;
  background-color: #fff;
  position: fixed;
  left: 0;
  top: 50%;
}

.popup::after{
  content: "";
  width: 0;
  height: 2px;
  background-color: #f0f0f0;
  position: absolute;
  top: 50%;
  left: 0;
  margin-top: -1px;
}

.popup__container{
  box-sizing: border-box;  
  padding: 5% 15%;
  height: calc(100vh - 40px); /* 1 */
  margin: auto; /* 1 */
  overflow: auto; /* 1 */
  overscroll-behavior: contain; /* 1 */
}

.popup__title{
  font-size: 29px;
}
.popup__container h2{
  font-size: 25px;
}

/*
animation
*/

.popup::before{
  will-change: height, top;
  animation: open-animation .6s cubic-bezier(0.83, 0.04, 0, 1.16) .65s both;
}

.popup::after{
  will-change: width, opacity;
  animation: line-animation .6s cubic-bezier(0.83, 0.04, 0, 1.16) both;
}

@keyframes line-animation{

  0%{
    width: 0;
    opacity: 1;
  }

  99%{
    width: 100%;
    opacity: 1;
  }

  100%{
    width: 100%;
    opacity: 0;
  }  
}

@keyframes open-animation{

  0%{
    height: 0;
    top: 50%;
  }

  100%{
    height: 100vh;
    top: 0;
  }
}

.popup__container{
  animation: fade .5s ease-out 1.3s both;
}

@keyframes fade{

  0%{
    opacity: 0;
  }

  100%{
    opacity: 1;
  }
}
.vcf{
  display: none;
}
@media screen and (max-width: 575px) {
  .card {
    width:100%;
    height: 100%;
    position: fixed;
  }
  .card-front, .card-back {
    border-radius: 0px;
  }
  .card-front:after {
    content: url(img/redo-alt-solid-mob.svg);
  }
  #container {
    flex-grow: 1;
    height: 100%;
    padding-left: 0px
  }
  #container .section {
    width: 100%;
    flex-direction: column;
    justify-content: center;
    padding: 10px;
    text-align: center;
  }
  #container .section .profile-detail {
    padding: 20px;
  }
  #container .logo {
    margin: 0 auto 20px auto;
    width: 200px;
    height: 90px;
  }
  #container .section .profile-detail .tel {
    font-size: 28px;
  }

  .profile-pils {
    justify-content: center;
    flex-basis: 0px;
    padding-right: 0;
  }
  #dev{
    display: none;
  }
  .dev-mob{
    display: block;
  }
  .popup__container {
    padding: 5% 10%;
  } 
  .popup__title{
    font-size: 26px;
  } 
    .vcf {
      display: block;
    }
    .profile-qr{
      display: none;
    }
}