/*!
 * ADAM: Iride extension
 * Created by the MEEO developers <info@meeo.it>
 */

/* ==========================================================================
   Iride general styling
   ========================================================================== */

/* Overridden ADAM variables
   ========================================================================== */

:root {
  --adam-accent-color: #083143 !important;
  --adam-accent-hover-color: #1fa195 !important;
}

/* Base document properties
   ========================================================================== */

body {
  font-family: "Open Sans", sans-serif !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 21px !important;
  letter-spacing: 0px !important;
}

/* Landing page/study cases */
#adam_landing_modal .modal-dialog {
  margin: 0 !important;
}

#adam_landing_modal {
  background-image: url("/static/images/iride_dashboard.png");
  background-repeat: repeat;
  background-size: cover;
}

#adam_landing_modal,
#adam_landing_modal .modal-dialog,
#adam_landing_modal .modal-dialog .modal-content {
  height: 100vh !important;
  width: 100vw !important;
  margin: 0 !important;
  padding: 0 !important;
  z-index: 9999;
  background-color: transparent;
}

#adam_landing_modal .container {
  position: absolute;
}

#adam_landing_modal .container .modal-header,
#adam_landing_modal .container .modal-body,
#adam_landing_modal .container .modal-footer {
  background-color: transparent;
}

#adam_landing_modal .modal-dialog .modal-content .modal-header .close {
  display: none;
}

#adam_landing_modal .modal-dialog .modal-content .modal-body {
  max-height: 100vh !important;
  overflow-x: hidden;
}

.container > p {
  text-align: left;
  font-size: 24px;
}

#adam_landing_modal .case-study-title {
  margin-top: 17.5rem !important;
  transform: translateY(-50%);
}

#adam_landing_modal .case-study {
  width: 40rem;
  height: auto;
  padding-bottom: 4rem !important;
  background-color: var(--secondary-bg-color);
  border-radius: var(--adam-border-radius);
  color: var(--main-text-color);
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

#adam_landing_modal .case-study:hover {
  background-color: var(--main-border-color);
}

#adam_landing_modal .case-study.case-study-comingsoon {
  position: relative;
  opacity: 0.5;
  pointer-events: none;
}

#adam_landing_modal .case-study.case-study-comingsoon::after {
  content: "Coming Soon";
  position: absolute;
  bottom: 2rem;
  left: 50%;
  color: var(--main-text-color);
  transform: translateX(-50%);
}

#adam_landing_modal .case-study.case-study-available::after {
  content: "No Login Required";
  position: absolute;
  bottom: 2rem;
  left: 50%;
  color: var(--main-text-color);
  transform: translateX(-50%);
}

#adam_landing_modal .case-study.case-study-available.login-required::after {
  content: "Login Required";
  position: absolute;
  left: 50%;
  bottom: 2rem;
  color: var(--main-text-color);
  transform: translateX(-50%);
}

#adam_landing_modal .case-study img {
  width: 100%;
  height: 9rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
  object-fit: cover;
}

#adam_landing_modal .case-study.selected-case {
  border-bottom: 4px solid var(--adam-accent-color);
}

/* FOOTERBAR */
.footerbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 1.5rem;
  padding: 0;
  text-align: right;
  background-color: var(--main-border-color);
}

.footerbar span {
  height: 0.675rem;
  font-size: 0.675rem;
  line-height: 1;
}
.footerbar img {
  width: auto;
  max-width: 1rem;
  height: auto;
  max-height: 1rem;
  vertical-align: middle;
}

/* login */
.iride-button,
.iride-button:hover {
}

.iride-icon {
  -webkit-font-smoothing: antialiased;
  display: inline-block;
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  line-height: 1;
}

.iride-icon::before {
  content: "";
  display: block;
  width: 50px;
  height: 50px;
  margin: auto;
  background-image: url(/static/images/iride_en.png);
  background-size: 50px 50px;
  background-repeat: no-repeat;
  background-position: center;
}
