:root {
  --purple: rgb(111, 66, 193);
  --indigo: rgb(75, 0, 130);
  --grey: rgb(84, 84, 84);
  --darkgrey: rgb(33, 37, 41);
  --lightgrey: rgba(0, 0, 0, 0.03);
}

* {
  box-sizing: border-box;
}

html,
body {
  font-size: 18px;
  font-family: "Raleway", sans-serif;
  line-height: 1.5;
  padding-bottom: 200px;
  color: var(--grey);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-weight: normal;
  color: var(--darkgrey);
  margin: 0;
  padding: 0;
}

h1 {
  font-size: 1.78rem;
  margin: 12px 0;
}

h2 {
  font-size: 1.33rem;
  margin: 10px 0;
}

h3 {
  font-size: 1.2rem;
  margin: 5px 0;
}

h4 {
  font-size: 1.06rem;
}

.small-font {
  font-size: 0.8em;
}

.container {
  margin: 0 auto;
  padding: 0 13px;
  max-width: 100%;
}

.img-fluid {
  display: block;
  max-width: 100%;
  height: auto;
}

.grid-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 40px;
  margin-bottom: 70px;
}

.card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  background-color: #fff;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.1s ease-in-out;
}

.card-body {
  padding: 20px;
}

.card-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 10px 13px;
  background-color: #fafafa;
  border-top: 1px solid #ddd;
}

.theme {
  font-size: 0.8em;
}

.social-icons {
  text-align: right;
}

.social-icons a {
  color: var(--grey);
  margin-left: 4px;
  font-size: 1.1em;
  text-decoration: none;
}

.social-icons a:hover {
  color: var(--purple);
}

.view {
  position: relative;
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.view::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.7;
  pointer-events: none;
  transition: opacity 0.5s ease-in-out 0.12s;
}

.card:hover .view::after {
  opacity: 0;
}

.card:nth-of-type(1)>.view::after {
  background-image: linear-gradient(135deg, #0100ec, #fb36f4);
}

.card:nth-of-type(2)>.view::after {
  background-image: linear-gradient(135deg, #2bdce3, #42ffdb);
}

.card:nth-of-type(3)>.view::after {
  background-image: linear-gradient(135deg, #ffab1d, #f8501c);
}

.card:nth-of-type(4)>.view::after {
  background-image: linear-gradient(135deg, #a1c4fd, #c2e9fb);
}

@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }

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

@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }

  .card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }

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

@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}