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

.hide {
  display: none !important;
}

body {
  font-family:  'Gill Sans', 'Gill Sans MT', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--primary);
  background-color: var(--white);
}


div.center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 100%;
  padding: 40px 0px;
}

img.logo {
  margin-bottom: 50px;
  margin-top: 50px;
  width: 400px;
}

.pulse {
  text-align: center;
}

.pulse img{ 
  animation: pulsing 1.5s infinite;
  animation-timing-function: linear;   
}

@keyframes pulsing {
  0% { transform: scale(1); }
  50% { transform: scale(1.05) };
  100% { transform: scale(1); }
}

div.link {
  font-size: 1.5em;
  padding: 20px 0px;
  margin: 20px;
  display: inline-block;
  letter-spacing: 2px;
  color: black;
  font-weight: 700;
}

div.page {
  margin: 0px 100px;
  text-align: center;
}

div#options {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  margin: 1.5rem 0;
}

div#options, div#options * {
  box-sizing: border-box;
}

div#options > a {
  flex-basis: calc(50% - 20px);
  font-size: 1rem;
  padding: 20px;
  cursor: pointer;
  color: black;
  height: 180px;
  border: 2px solid black;
  border-radius: 20px;
  text-decoration: none;
  position: relative;
}

div#options > a:hover {
  text-decoration: none;
  text-underline-offset: 10px;
  text-decoration-thickness: 2px;
  text-decoration-color: white;
  border: 2px solid #003366;
  background: #003366;
  color: white;
}

div#options > a > p,
div#options > a > .cen {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box; 
  -webkit-box-orient: vertical;
  line-clamp: 3;
  -webkit-line-clamp: 3;
}

div#options > a > div.cen {
  line-clamp: 5;
  -webkit-line-clamp: 5;
}

div.hover-text {
  display: flex;
  justify-content: center;
  gap: 20px;
  color: black;
  margin: 1.5rem 0;
}

div.hover-text a {
  text-decoration: none;
  color: black;
}

div.hover-text a:hover {
  text-decoration: underline !important;
}

div.hover-text-item {
  display: flex;
  flex: 1;
  justify-content: flex-start;
  flex-direction: column;
  line-height: 1.5;
  font-size: 1rem;
  max-width: 25%;
}

div.hover-text-item.desc {
  flex-basis: 20%;
  max-width: 50%;
}

div.hover-text-item .title {
  font-weight: bold;
  text-transform: uppercase;
  text-align: center;
}

div.hover-text-item.desc .body {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box; 
  -webkit-box-orient: vertical;
  line-clamp: 4;
  -webkit-line-clamp: 4;
  text-align: center;
}

div.hover-text .body p,
div.hover-text .body p a {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  width: 100%;
  display: block;
}

.tooltip {
  display: none;
  background-color: #dadada;
  color: black;
  border-radius: 6px;
  padding: 10px;
  margin-bottom: 10px;
  position: absolute;
  bottom: 100%;
  left: 5%;
  width: 130%;
}

div#options > a:hover .tooltip {
  display: inline-block;
}

/** Settings page **/
.settings-tab {
  text-align: left;
  margin-left: 20px;
}
.settings-tab .tab-header {
  cursor: pointer;
  text-align: center;
  padding: 10px;
  display: inline-block;
}
.settings-tab .tab-header.active {
  background: var(--primary-dark);
  color: var(--primary-white);
  border-radius: 5px 5px 0 0;
}
#unipart-offerings * {
  box-sizing: border-box;
  letter-spacing: 1.1px;
  color: var(--secondary-dark);
  font-family: 'Gill Sans', 'Gill Sans MT', sans-serif;
}
#unipart-offerings, #approvals-status {
  width: 100%;
}
#unipart-offerings > div.widget,
#approvals-status > div.widget {
  margin: 0px auto 20px;
}
.select2-container {
  width: 100% !important;
}
.select2-container span.select2-selection__rendered {
  white-space: normal !important;
}
.select2-container span.select2-selection.select2-selection--single {
  overflow: hidden !important;
}
.settings-group fieldset {
  border: 1px solid var(--primary-white);
  border-radius: 10px;
  padding: 20px;
}
.settings-group fieldset > button {
  margin-top: 20px;
}
.settings-group fieldset .row,
.settings-group fieldset .icon-div {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
}
.settings-group fieldset .row {
  margin-bottom: 10px;
}
.settings-group fieldset .icon-div svg {
  width: 24px;
  height: 24px;
  cursor: pointer;
}
.settings-group fieldset .icon-div svg path {
  cursor: pointer;
}
div.settings-group.form-new,
div.settings-group.form-edit,
div.settings-group.collapsible {
  -webkit-box-shadow: 5px 5px 11px -4px rgba(0,0,0,0.61);
  -moz-box-shadow: 5px 5px 11px -4px rgba(0,0,0,0.61);
  box-shadow: 5px 5px 11px -4px rgba(0,0,0,0.61);
  border-radius: 10px;
}
.settings-group {
  background-color: var(--secondary-light);
  border-radius: 10px;
  -webkit-box-shadow: 5px 5px 11px -4px rgba(0,0,0,0.61);
  -moz-box-shadow: 5px 5px 11px -4px rgba(0,0,0,0.61);
  box-shadow: 5px 5px 11px -4px rgba(0,0,0,0.61);
  padding: 30px;
  margin-bottom: 30px;
  position: relative;
  text-align: left;
}
.settings-group label {
  display: block;
  padding: 10px 5px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 15px;
}
.settings-group fieldset label:first-of-type {
  margin-top: 0;
}
.settings-group.collapsed {
  display: none;
}
.settings-group textarea {
  resize: vertical;
}
.settings-group input,
.settings-group select,
.settings-group textarea {
  display: block;
  width: 100%;
  padding: 8px 10px;
  font-size: 16px;
  background-color: var(--primary-input);
  border: none;
  border-bottom: 1px solid var(--primary-input);
  outline: none;
  transition: 0.3s;
  min-height: 35px;
}
#unipart-offerings .save button,
#unipart-offerings .delete button {
  padding: 5px;
  margin: auto;
  background-color: var(--primary-dark);
  cursor: pointer;
  color: var(--white);
  border-radius: 5px;
  border: 1px solid var(--primary-dark);
}
#unipart-offerings .save button {
  background-color: var(--primary-dark);
  border: 1px solid var(--primary-dark);
}
#unipart-offerings .delete button {
  background-color: #dc3545;
  border: 1px solid #dc3545;
}
#unipart-offerings button.save,
#unipart-offerings button.cancel,
#unipart-offerings button.add-contact,
#unipart-offerings button.add-case-study,
#tags button.add-tag {
  min-width: 150px;
  max-width: 200px;
  text-align: center;
  padding: 8px 15px;
  text-transform: none;
  font-size: 14px;
  font-weight: 300;
  border-radius: 5px;
  transition: 0.3s ease-in-out;
  margin-right: 20px;
  cursor: pointer;
  letter-spacing: 1px;
  color: var(--white);
}
.form-btns {
  display: flex;
  justify-content: flex-end;
  padding-top: 20px;
}
.form-btns button.save,
.form-btns button.cancel {
  width: 150px;
  text-align: center;
  padding: 8px 15px;
  text-transform: none;
  height: auto !important;
  font-size: 14px;
  font-weight: 300;
  border-radius: 5px;
  transition: 0.3s ease-in-out;
  margin-right: 20px;
  cursor: pointer;
  letter-spacing: 1px;
  color: var(--white);
}
.form-btns button.save,
button.add-contact,
button.add-case-study,
button.add-tag {
  background-color: var(--primary-dark);
  border: 1px solid var(--primary-dark);;
}
.form-btns button.save:hover,
#unipart-offerings .save button:hover {
  background-color: var(--primary-light);
  border: 1px solid var(--primary-light);
}
#unipart-offerings .delete button:hover {
  background-color: #ff0022;
  border: 1px solid #ff0022;
}
.form-btns button.cancel {
  background-color: var(--primary-button);
  border: 1px solid var(--primary-button);
}
.form-btns button.cancel:hover {
  background-color: var(--tertiary-dark);
  border: 1px solid var(--tertiary-dark);
}
.form-pss {
  display: flex;
  gap: 20px;
}
.form-pss input[type='checkbox'] {
  width: 20px;
}
#form-tags label#tags-title {
  text-align: center;
}
.modal {
  position: fixed;
  z-index: 10;
  padding-top: 50px;
  padding-bottom: 50px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  background-color: rgb(0,0,0);
  background-color: rgba(0,0,0,0.4);
}
.modal-content {
  background-color: #fefefe;
  margin: auto;
  padding: 20px;
  width: 80%;
}
.close-modal {
  color: #aaaaaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  padding: 20px;
  text-align: right;
  position: fixed;
  z-index: 1;
  top: 50px;
  right: 50px;
  font-size: 3em;
}
.close-modal:hover,
.close-modal:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}
.hide-overflow {
  overflow: hidden;
}

.borderless {
  border: 2px solid transparent !important;
}

/* width */
::-webkit-scrollbar {
  width: 10px;
}

/* Track */
::-webkit-scrollbar-track {
  background: #f1f1f1; 
}
 
/* Handle */
::-webkit-scrollbar-thumb {
  background: #888; 
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #555; 
}

img.logo-small {
  height: 2rem;
  vertical-align: middle;
}

img.capability {
  width: 80px;
}

div#options > a:has(div.cen) {
  display: flex;
  justify-content: center;
  align-items: center;
}

.back {
  background: #c4211b;
  color: white;
  padding: 20px;
  font-weight: bold;
  text-decoration: none;
  letter-spacing: 2px;
  font-size: 16px;
}


h1{ 
  animation: soon 1.5s infinite;
  animation-timing-function: linear;   
}

h2 {
  text-decoration: none;
  font-size: 28px;
  font-weight:bold;
}

.page > h2 {
  margin: 1.5rem 0;
}

h3 {
  text-decoration: none;
  letter-spacing: 2px;
  font-size: 20px;
  font-weight:bold;
}

p.b {
  position: absolute;
  left: 0;
  top: 0;
}

@keyframes soon {
  0% { transform: scale(1); }
  50% { transform: scale(1.05) };
  100% { transform: scale(1); }
}



.banner {
  width: 100%;
  color: black;
  text-align: center;
  padding: 40px;
  box-sizing: border-box;
  text-decoration: none;
  letter-spacing: 1px;
  font-size: 28px;
  letter-spacing: 2px;
  font-weight: 100;
  line-height: 40px;
}



.flip-card {
  background-color: transparent;
  perspective: 1000px;
  font-size: 16px;
  padding: 0px 20px;
  margin: 20px;
  display: inline-block;
  cursor: pointer;
  letter-spacing: 2px;
  color: black;
  line-height: 33px;
  width: 200px;
  height: 250px;
  box-sizing: border-box;
  width: calc(25% - 43px);
  text-align: center;
  min-width: 250px;
  vertical-align: middle;
  border: 2px solid #888888;
  border-radius: 20px;
  overflow: hidden;
  padding-bottom: 20px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden; /* Safari */
  backface-visibility: hidden;
  margin-top: 20px;
  margin-bottom: 20px;
  overflow-x: auto;
}

.flip-card-front {
  background-color: transparent;
  /* color: red; */
}

.flip-card-back {
  transform: rotateY(180deg);
}

#info {
  padding: 50px;
  font-size: 20px;
  text-align: center;
  width: 100%;
  height: 200px;
  box-sizing: border-box;
  text-decoration: none !important;
  color: black;
  letter-spacing: 2px;
}

.cs {
  text-align: left;
}


.cs hr{
  max-width: 300px;
  margin-bottom: 1.5rem;
  border-top: 4px solid #ccc!important;
}

.cs-section {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.cs-desc {
  font-size: 20px;
  margin: 1.5rem 0;
  line-height: 40px;
}

.cs-description {
  text-align: justify;
}

.cs-contact {
  font-size: 20px;
  line-height: 40px;
}

.cs-benefits {
  font-size: 20px;
  margin-bottom:25px;
  line-height: 40px;
}

.cs .link-bnts {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 1rem 2rem;
}

.cs a.btn {
  flex: 1;
  min-width: 160px;
  max-width: 300px;
  background: #c4211b;
  text-align: center;
  color: white;
  text-decoration: none;
  font-weight: bold;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  margin-left: 0;
  margin-right: 0;
}

.header {
  display: flex;
  flex-wrap: wrap;
  padding: 1rem;
  position: relative;
  height: 4rem;
  gap: 1rem;
  font-size: 1rem;
  border-bottom: 1px solid var(--primary-white);
  align-content: center;
}

.header > a span, .header .search-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 2rem;
  height: 2rem;
  cursor: pointer;
}

.header a.img {
  justify-content: flex-start;
  width: fit-content;
}

.header-item {
  display: flex;
  justify-content: center;
  align-items: center;
}

.header svg {
  display: inline-block;
  width: 1.5rem;
  height: 1.5rem;
  fill: var(--primary);
}

#searchPortfolio {
  margin-left: auto;
  flex-grow: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1rem;
}

#searchPortfolio > div {
  display: flex;
  flex-direction: column;
  width: 100%;
  position: relative;
  max-width: 800px;
  z-index: 10;
}

.search-items {
  display: flex;
  column-gap: 1rem;
  justify-content: flex-end;
  width: 100%;
}

.search-items .input-parent {
  flex-grow: 1;
  width: 100%;
  max-width: 800px;
  z-index: 10;
}

.search-items input {
  width: 100%;
  border: solid 1px var(--primary-label);
  outline: none;
  text-align: left;
  color: black;
  background-color: white;
  height: 2rem;
  border-radius: 0.2rem;
  padding: 0 0.5rem;
}

#searchPortfolio table {
  border-radius: 0.5rem;
  padding: 1rem 0;
  z-index: 10;
  position:absolute;
  top: 100%;
  width: calc(100% - 3rem);
  display: block;
  background-color: white;
  -webkit-box-shadow: 5px 5px 11px -4px rgba(0,0,0,0.61);
  -moz-box-shadow: 5px 5px 11px -4px rgba(0,0,0,0.61);
  box-shadow: 5px 5px 11px -4px rgba(0,0,0,0.61);
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

#searchPortfolio tbody {
  overflow-y: scroll;
}

#searchPortfolio tbody#search-results {
  overflow-y: scroll;
  height: 60vh;
  max-height: 500px;
}

#searchPortfolio tbody#search-tags {
  min-height: 60px;
  height: 100px;
  border-bottom: solid 1px var(--primary-label);
}

#searchPortfolio tbody#search-tags td.search-tags-header {
  padding: 0 10px;
  font-size: 0.8rem;
}

#searchPortfolio tbody#search-tags td.search-tags-filter { 
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

#searchPortfolio tbody#search-tags span {
  padding: 5px;
  border-radius: 5px;
  background-color: var(--search-deselected);
  margin-right: 0.5rem;
  cursor: pointer;
  font-size: 0.8rem;
}

#searchPortfolio tbody#search-tags span.selected {
  background-color: var(--search);
}

#searchPortfolio tbody#search-results tr:nth-of-type(2n + 1) {
  background-color: #fafafa;
}

#searchPortfolio tbody#search-results tr:nth-of-type(2n) {
  background-color: #fff;
}

#searchPortfolio tbody#search-results tr:hover {
  background: var(--search);
}

#searchPortfolio tbody,
#searchPortfolio tr,
#searchPortfolio td {
  display: block;
  width: 100%;
  text-align: left;
}

#searchPortfolio tbody#search-results td,
#searchPortfolio tbody#search-results a, 
#searchPortfolio tbody#search-results a span {
  height: 100%;
  cursor: pointer;
}

#searchPortfolio a span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#searchPortfolio td {
  padding: 10px;
}

#searchPortfolio tr.empty-search {
  text-align: center;
  padding: 2rem 0;
  text-align: center;
  padding: 2rem 0;
  cursor: default;
  background-color: var(--white);
}

#searchPortfolio tr.empty-search td {
  text-align: center;
  cursor: default;
}

#searchPortfolio tr.empty-search:hover {
  background-color: var(--white);
}

#searchPortfolio a {
  display: flex;
  justify-content: flex-start;
  text-decoration: none;
  color: black;
  text-align: justify;
  width: 100%;
}

#searchPortfolio a span.capability {
  font-size: 0.8rem;
}

div#options > a:hover div.icon svg path {
  fill: white;
}

div#options > a div.icon svg path {
  fill: #262626;
}

div.icon svg {
  height: 50px;
  width: 50px;
}

p.bread {
  margin: 1.5rem 0;
  font-size: 0.9rem;
  font-style: italic;
  color: black;
  line-height: 25px;
  display: block !important;
  text-align: center;
}
p.bread a {
  text-decoration: none;
  color: black;
  display: inline-block !important;
  width: auto !important;
}
p.bread a:hover {
  text-decoration: underline !important;
  text-underline-offset: 5px !important;
}

div.sso {
  position: fixed;
  left: 20px;
  top: 20px;
}

div.sso a {
  text-decoration: none !important;
}

div.sign_out {
  height: 40px;
  background: white;
  border: 1px solid #dadada;
  border-radius: 5px;
  line-height: 38px;
  text-align: center;
  padding: 0px 20px;
  color: #8f8f8f;
  box-sizing: border-box;
}
div.sign_out:hover {
  background: #f5f5f5;
}

@media only screen and ((max-width: 1000px) or (max-height: 780px)) {
  .banner {
    font-size: 1.5em;
    font-weight: normal;
    line-height: 40px;
  }

  div.card {
    font-size: 1.5em;
    width: calc(100% - 50px);
  }

  .flip-card {
    font-size: 1.5em;
    width: calc(100% - 50px);
  }

  .page a {
    text-align: center;
    display:inline-block;
    text-decoration: none !important;
  }

  a {
    text-decoration: none !important;
  }

  h2 {
    font-size: 2em;
  }

  h3 {
    font-size: 1.5em;
  }


  .back {
    background: #c4211b;
    color: white;
    padding: 20px;
    font-weight: bold;
    text-decoration: none;
    letter-spacing: 2px;
    font-size: 16px;
    line-height: 50px;
    width: 90px !important;
  }

  .cs a {
    text-align: left;
  }
  p.bread {
    font-size: 0.9rem;
  }


  a.home, a.feedback {
    font-size: 2em;
  }

}

@media only screen and (max-width: 600px) {
  img.logo {
    width: calc(100% - 40px);
    min-width: 100px;
  }
  
  body {
    font-size: 0.5rem;
  }
  
  div#g1.center .banner {
    font-size: 0.8rem;
    padding: 1rem;
    line-height: 1.5;
  }
  div#g1.center img.logo {
    margin-top: 1rem;
    margin-bottom: 1rem;
    width: 50%;
  }
  div#g1.center .link {
    width: 20%;
  }
  div#g1.center #info {
    padding: 1rem;
    height: unset;
  }
  
  div.header {
    flex-wrap: nowrap;
    justify-content: space-around;
    align-items: center;
    gap: 10px;
    position: fixed;
    bottom: 0;
    right: 0;
    left: 0;
    width: 100%;
    background-color: var(--primary-dark);
    z-index: 10;
  }

  .header a.img, .search-items .input-parent {
    position: fixed;
    top: 0;
  }

  .header a.img {
    padding: 1rem 0;
    background-color: var(--white);
    display: block;
    width: 100%;
    text-align: center;
  }

  .search-items .input-parent {
    background-color: var(--white);
    padding: 0.5rem 0.5rem 0;
    left: 0;
    right: 0;
    top: 0;
    width: auto;
  }

  .search-items input {
    border: solid 1px var(--primary-light);
  }

  .header svg {
    fill: white; 
  }

  #searchPortfolio {
    margin-left: 0;
    flex: 0;
  }

  #searchPortfolio > div {
    width: fit-content;
  }

  #searchPortfolio input.header-item {
    top: 0;
    border-radius: 0px;
    -webkit-box-shadow: 5px 5px 11px -4px rgba(0,0,0,0.61);
    -moz-box-shadow: 5px 5px 11px -4px rgba(0,0,0,0.61);
    box-shadow: 5px 5px 11px -4px rgba(0,0,0,0.61);
  }
  
  #searchPortfolio table {
    position: fixed;
    top: 2.5rem;
    left: 0;
    right: 0;
    width: 100%;
    height: calc(100% - 6.5rem);
    padding: 0.5rem 0;
  }
  
  #searchPortfolio tbody {
    height: 100%;
    max-height: 100%;
  }
  
  div.page {
    margin: 4rem 0 0 0;
    padding: 0 1rem 4rem;
  }
  
  div.page > a > img.logo-small {
    width: 30%;
  }
  
  div.page > h2,
  div.page > .cs h2 {
    font-size: 1rem;
    margin: 1rem 0;
    font-weight: bold;
    color: black;
    text-align: center;
  }
  
  div.page > .cs h2 {
    margin-bottom: 0;
  }
  
  div.page > .cs hr {
    max-width: 100%;
    margin-bottom: 1rem;
  }
  
  p.bread {
    font-size: 0.8rem;
    margin: 1rem 0;
    line-height: 1.5rem;
    text-align: center;
  }

  div#options {
    flex-direction: column;
    gap: 1rem;
    margin: 1rem 0;
  }

  div#options > a {
    flex-basis: 100px;
  }
  
  div#options > a > p, div#options > a > .cen {
    font-size: 0.8rem;
  }
  
  .cs-section {
    font-size: 1rem;
    line-height: 1.5rem;
    margin: 1rem 0;
  }
  
  div.page div#options > a > div.cen {
    font-size: 1rem;
  }

  div.hover-text div.hover-text-item > span {
    text-align: center;
  }

  div.hover-text {
    display: flex;
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
    margin: 1rem 0;
  }

  .cs .link-bnts {
    justify-content: center;
  }

  /** Styling for omnie-AI chatbot */
  .omnie-chat .popup-button-container {
    bottom: 4.2rem;
  }
}

@media only screen and (min-width: 900px) {
  div#options > a {
    flex-basis: calc(33.3% - 27px);
  }
}

@media only screen and (min-width: 1132px) {
  div#options > a {
    flex-basis: calc(25% - 30px);
  }
}

@media only screen and (min-width: 1364px) {
  div#options > a {
    flex-basis: calc(20% - 32px);
  }
}
