@import url("https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;600;700&display=swap");

:root {
  --desa-primary: #11468f;
  --desa-dark-primary: #041562;
  --desa-background: #eef4ff;
  --desa-primary-text: #fff;
  --desa-dark-primary-text: #fff;
}

body {
  font-family: "Source Sans Pro", sans-serif;
  line-height: 1.5;
  background-color: var(--desa-background);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Source Sans Pro", sans-serif;
  font-weight: 600;
}

a {
  text-decoration: none;
  color: inherit;
}

li {
  list-style: none;
}

ul {
  margin: 0;
  padding: 0;
}

.color-white {
  color: #fff !important;
}

.color-desa {
  color: var(--desa-primary);
}

.color-desa-dark {
  color: var(--desa-dark-primary);
}

.bg-desa {
  background-color: var(--desa-primary);
  color: var(--desa-primary-text);
}

.bg-desa-dark {
  background-color: var(--desa-dark-primary);
  color: var(--desa-dark-primary-text);
}

footer.bg-desa a:hover,
#topbar.bg-desa-dark a:hover {
  color: var(--desa-primary-text);
  opacity: 0.8;
  filter: alpha(opacity=80);
}

/* Component Style */
.antialiased {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  grid-gap: 20px;
}

.card {
  border: none;
  border-radius: 0.5rem;
  background-color: #fff;
  padding: 1.2rem;
}

.card-hover {
  transition: all 0.2s ease-in-out;
}

.card-hover:hover {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.d-grid {
  display: grid;
  grid-gap: 16px;
}

.d-grid-column-2 {
  grid-template-columns: repeat(2, 1fr);
}

.d-grid-column-3 {
  grid-template-columns: repeat(3, 1fr);
}

.d-grid-column-4 {
  grid-template-columns: repeat(4, 1fr);
}

.d-grid-fill--12 {
  grid-template-columns: repeat(auto-fill, minmax(min(12rem, 100%), 1fr));
}

.d-grid-fill--15 {
  grid-template-columns: repeat(auto-fill, minmax(min(15rem, 100%), 1fr));
}

.d-grid-fill--20 {
  grid-template-columns: repeat(auto-fill, minmax(min(20rem, 100%), 1fr));
}

.nav-link {
  color: var(--desa-primary-text);
}

.floating-buttons {
  position: fixed;
  bottom: 16px;
  right: 16px;
  z-index: 99;
  padding: 1rem;
  transition: all 2s linear;
}

.floating-buttons .btn {
  margin-bottom: 0.8rem;
  width: 48px;
  height: 48px;
}
/* centering icon */

.floating-buttons .btn i {
  font-weight: bolder;
  font-size: 1.2rem;
}

.fit-cover {
  object-fit: cover;
}

.fit-contain {
  object-fit: contain;
}

.navbar-brand {
  transition: all 0.2s ease-in-out;
}

.navbar-brand:hover {
  opacity: 0.8;
  filter: alpha(opacity=80);
  transition: all 0.2s ease-in-out;
}

/* Custom Bootstrap 5 Ratio  */
.ratio-9x16 {
  --bs-aspect-ratio: calc(16 / 9 * 100%);
}

.ratio-3x4 {
  --bs-aspect-ratio: calc(4 / 3 * 100%);
}

.ratio-4x6 {
  --bs-aspect-ratio: calc(6 / 4 * 100%);
}

.ratio-legal {
  --bs-aspect-ratio: calc(14 / 8.5 * 100%);
}

.showmore {
  color: var(--desa-primary);
  opacity: 0.8;
  filter: alpha(opacity=80);
  font-weight: 800;
  cursor: pointer;
  margin-left: 0.5rem;
  margin-right: 0.5rem;
  border: 1px solid var(--desa-primary);
  border-radius: 0.5rem;
  padding: 0.25rem 0.75rem;
}

.showmore:hover {
  color: var(--desa-dark-primary);
  opacity: 1;
  filter: alpha(opacity=100);
  border: 1px solid var(--desa-dark-primary);
}

footer .maps {
  width: 100%;
  height: 90%;
}

footer .maps iframe {
  width: 100%;
  height: 100%;
  border-radius: 5%;
}

/* OVERRIDE THEMES */
.theme--green {
  --desa-primary: #0d9488;
  --desa-dark-primary: #061d1c;
}

.theme--red {
  --desa-primary: #df367c;
  --desa-dark-primary: #301630;
  --desa-background: #efefef;
}

.theme--violet {
  --desa-primary: #6d28d9;
  --desa-dark-primary: #223248;
  --desa-background: #f5f3ff;
}

.theme--amber {
  --desa-primary: #f6dc3b;
  --desa-dark-primary: #10113c;
  --desa-primary-text: #10113c;
}

.theme--clay {
  --desa-primary: #1e293b;
  --desa-dark-primary: #8599b6;
  --desa-background: #edf3f8;
}

.theme--peach {
  --desa-primary: #ff7a59;
  --desa-dark-primary: #253749;
  --desa-background: #ececec;
}

/* OVERRIDE THEMES COMPONENT */
.theme--amber .showmore {
  color: var(--desa-dark-primary);
  border: 1px solid var(--desa-dark-primary);
}

.theme--amber .nav-link:hover {
  color: var(--desa-dark-primary);
  opacity: 0.8;
  filter: opacity(80%);
}

.theme--amber h1.color-desa {
  color: var(--desa-dark-primary);
}
