/* Rules for sizing the icon. */
.material-icons.md-18 { font-size: 18px; }
.material-icons.md-24 { font-size: 24px; }
.material-icons.md-36 { font-size: 36px; }
.material-icons.md-48 { font-size: 48px; }

/* Rules for using icons as black on a light background. */
.material-icons.md-dark { color: rgba(0, 0, 0, 0.54); }
.material-icons.md-dark.md-inactive { color: rgba(0, 0, 0, 0.26); }

/* Rules for using icons as white on a dark background. */
.material-icons.md-light { color: rgba(255, 255, 255, 1); }
.material-icons.md-light.md-inactive { color: rgba(255, 255, 255, 0.3); }

*, *::before, *::after {
  box-sizing: border-box;
}

body, html {
  /* height: 100%; */
}
body {
  /* --background-main-rgb: 224, 240, 255; */
  /* --background-main-rgb: 26, 44, 61; */
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  background: rgba( var(--background-main-rgb), 1 );
  background-color: #444444;
  padding: 1rem;
}

.custom-card {
  --max-width-card: 420px;
  border-top: solid 1px rgba(0, 0, 0, 0.1);
  border-right: solid 1px rgba(0, 0, 0, 0.3);
  border-bottom: solid 1px rgba(0, 0, 0, 0.3);
  border-left: solid 1px rgba(0, 0, 0, 0.1);
  padding: 1.5rem 1rem;
  width: 100%;
  max-width: var(--max-width-card);
  border-radius: 1rem;
  margin: 1rem;
  aspect-ratio: 1/.65;
  box-shadow: 4px 5px 5px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
  overflow: hidden;
  background-color: #efefef;
  transition: 0.3s ease;
}

.custom-card:hover {
  transform: rotateZ(-3deg);
}

.custom-card::before, .custom-card::after {
  content: '';
  position: absolute;
  z-index: 1;
}

.custom-card::before {
  top: 0;
  left: 0;
  background: linear-gradient( to top, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.5) );
  filter: blur(6px);
  border-radius: 50%;
  width: 1rem;
  height: 100%;
  margin-left: 10px;
}

.custom-card::after {
  top: 0;
  right: 0;
  background: linear-gradient( to top, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.1) );
  filter: blur(7px);
  border-radius: 25%;
  width: 1rem;
  height: 100%;
}

.card-logo {
  margin-bottom: 1rem;
}

.card-logo span.material-icons {
  font-size: 7rem;
  display: flex;
  justify-content: center;
}

.custom-card .lead {
  font-size: 1rem !important;
}

/* --- */
.custom-card:nth-child(1) {
  background: linear-gradient( to top, rgba(203, 209, 214, 1),  rgba(245, 246, 247, 1) );
}
.custom-card:nth-child(1) span.material-icons {
  color: #4db9e3;
}
.custom-card:nth-child(1) .display-6 {
  color: #4db9e3;
}
.custom-card:nth-child(1) .lead {
  color: #222222;
}

/* --- */
.custom-card:nth-child(2) {
  background: linear-gradient( to top, rgba(33, 33, 33, 1),  rgba(69, 69, 69, 1) );
}
.custom-card:nth-child(2) span.material-icons {
  color: #306fcf;
}
.custom-card:nth-child(2) .display-6 {
  color: #306fcf;
}
.custom-card:nth-child(2) .lead {
  color: #999999;
}


/* --- */
.custom-card:nth-child(3) {
  background: linear-gradient( to top, rgba(46, 31, 24, 1),  rgba(74, 49, 37, 1) );
}
.custom-card:nth-child(3) span.material-icons {
  color: #b3922e;
}
.custom-card:nth-child(3) .display-6 {
  color: #b3922e;
}
.custom-card:nth-child(3) .lead {
  color: #99752b;
}

/* --- */
.custom-card:nth-child(4) {
  background: linear-gradient( 45deg, rgba(100, 57, 133, 1),  rgba(133, 57, 72, 1) );
}
.custom-card:nth-child(4) span.material-icons {
  color: #93edc6;
}
.custom-card:nth-child(4) .display-6 {
  color: #93edc6;
}
.custom-card:nth-child(4) .lead {
  color: #55ad87;
}

/* --- */
.custom-card:nth-child(5) {
  background: linear-gradient( 45deg, rgba(100, 57, 133, 1),  rgba(133, 57, 72, 1) );
  background: linear-gradient( 15deg, rgba(153, 23, 23, 1), rgba(23, 153, 82, 1),  rgba(23, 101, 153, 1) );
}
.custom-card:nth-child(5) span.material-icons {
  color: #e1cef0;
}
.custom-card:nth-child(5) .display-6 {
  color: #e1cef0;
}
.custom-card:nth-child(5) .lead {
  color: #cab8d9;
}

/* --- */
.custom-card:nth-child(6) {
  background: linear-gradient( -25deg, rgba(99, 17, 17, 1),  rgba(171, 29, 29, 1) );
}
.custom-card:nth-child(6) span.material-icons {
  color: #111111;
}
.custom-card:nth-child(6) .display-6 {
  color: #111111;
}
.custom-card:nth-child(6) .lead {
  color: #cccccc;
}