/* .ppFlexContainer > a.btn {
  width: 225px !important;
  height: 90px !important;
  align-content: center;
} */

.navbar-collapse.show {
  background-color: #fff;
}

h1,
h2 {
  font-weight: bold !important;
}

.crmEntityFormView,
.crmEntityFormView > * {
  border: none !important;
}
body {
  background-image: url(https://royaloak.mason.digital/wp-content/uploads/2024/07/traingles-bg-1.svg);
  background-color: rgba(255, 255, 255, 90%) !important;
  background-blend-mode: overlay;
}

/* Customize the logo to make it a little more readable */
img[src="/Royal Oak Logo.png"] {
  transform: scale(1.45);
  transform-origin: bottom;
}

/* add corner box styling to Entity Forms */
div[id^="EntityFormControl_"]:not([id*="EntityFormView"]) {
  position: relative !important;
}

div[id^="EntityFormControl_"]:not([id*="EntityFormView"])::before {
  content: "";
  position: absolute;
  width: 164px;
  height: 164px;
  border-radius: 3px;
  background-color: var(--portalThemeColor2);
  top: 9px;
}
div[id^="EntityFormControl_"]:not([id*="EntityFormView"])::before {
  left: -11px;
}

[id$="_EntityFormView"] {
  margin: 20px;
  padding-top: 1px;
}

/* end corner box styling  */

/* style the forms on the site */
#EntityFormPanel {
  position: relative;
  z-index: 5;
  box-shadow: -10px 10px 20px rgba(0, 0, 0, 0.2),
    10px 10px 20px rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

/* add some style to buttons  */
button:not([aria-label="Search Results"]),
input[type="button"] {
  margin: 15px !important;
}

#backButton {
  margin-bottom: 30px !important;
}

/*  add some style to the lists */
div.entity-grid.entitylist {
  box-shadow: -10px 10px 20px rgba(0, 0, 0, 0.2),
    10px 10px 20px rgba(0, 0, 0, 0.2);
  padding: 15px;
}

/*  overwrite some microsoft/bootstrap styling  */
.columnBlockLayout {
  margin-top: 0 !important;
}
/* styling for the resource cards */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* Collapse grid to one column when the width is under 575px */
@media (max-width: 575px) {
  .resource-grid {
    grid-template-columns: 1fr;
  }
}

.resource-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px;
  background-color: var(--portalThemeColor1);
  border-radius: 3px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.25);
  max-width: 1340px;
  margin: 0 auto;
  z-index: 1;
}

.resource-card p {
  flex-grow: 1;
}

.resource-card-container {
  position: relative;
  display: grid;
  gap: 20px;
  padding: 20px;
  background-color: transparent;
  max-width: 1340px;
  margin: 0 auto;
  z-index: 1;
}

.resource-card-container::before {
  content: "";
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 3px;
  background-color: var(--portalThemeColor2); /* green color */
  top: 8px;
  left: 6px;
  z-index: -1;
}

.resource-snippet-title {
  color: var(--portalThemeColor3);
  font-size: 1.5em;
  margin: 0;
  line-height: 1.2;
}

.download-resource {
  display: inline-block;
  background-color: var(--portalThemeColor1);
  color: var(--portalThemeColor2);
  border: 2px solid var(--portalThemeColor2);
  transition: all 0.3s;
}

.download-resource:hover {
  background-color: var(--portalThemeColor2);
  color: var(--portalThemeColor1);
}
