/*
#column definition
*/
.flex-container {
    display: flex;
    justify-content: space-between;
}
.left-column {
    flex-basis: 50%;
    padding-right: 1rem;
}
.right-column {
    flex-basis: 50%;
    padding-left: 1rem;
}



.vcf-card {
    background-color: #f2f2f2;
    border: 1px solid #ccc;
    padding: 10px;
    display: flex;
    align-items: center;
  }
  
  .vcf-icon {
    margin-right: 10px;
  }
  
  .vcf-icon img {
    width: 30px;
    height: 30px;
  }
  
  .vcf-name {
    font-weight: bold;
  }

  .vcf-qr-code {
    margin-left: auto;
  }

 .vcf-qr-code-contact, .vcf-qr-code-url {
    margin: 10px;
    max-width: 350px;
 }


 .tab-label {
   display: inline-block;
   padding: 10px 20px;
   background-color: #f1f1f1;
   cursor: pointer;
 }

 .tab-label.active {
   background-color: #ccc;
 }

 .tab-content {
   display: none;
   padding: 20px;
   background-color: #f1f1f1;
 }

 .tab-content.active {
   display: block;
 }


 
#modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  background-color: white;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  padding: 20px;
  max-width: 90%;
  width: 300px; 
  overflow-y: auto; max-height: 80vh;
}

#modal #closeButton {float: right;}

@media only screen and (min-width: 738px) {
  #modal {
    width: 500px;
  }
  
}
@media only screen and (max-width: 738px) {
  .mode-edit .right-column {display: none;}
  .left-column {width: 100%;flex-basis: 100%;}
}


.mode-edit #addButton { display: none;}
.mode-edit #closeButton { display: none;}
.mode-edit #saveButton { display: none;}
.mode-edit #send { display: none;}
.mode-edit #viewCard { display: none;}


.mode-edit #modal {
  position: relative;
  top:inherit;
  left: inherit;
  transform: none;
  z-index: 1;
  background-color: inherit;
  border-radius: 0;
  box-shadow: none;
  overflow-y: auto;
  display: block !important;
  max-height:none;
  width:100%;
  padding: 0;
}

.required {
  color: red;
}

#logoPreview {
  width: 70px; 
  height: 70px; 
  object-fit: cover;
  margin: 2px;
  border: 1px dashed grey;
}


/*#modal delete card*/

#confirmDeleteModal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  background-color: white;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  padding: 20px;
  max-width: 90%;
  width: 300px; 
  overflow-y: auto; max-height: 80vh;
}

.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 */
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

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