/* Flexbox */
.flex {
  display: flex;
}

.flex .column {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  flex: 1;
  margin: 30px;
}

.flex-row {
  display: flex;
  margin: 2rem 0;
}

.flex-row-reverse {
  display: flex;
  flex-direction: row-reverse;
}

/* Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 0.5rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 10px;
}

.gap-sm{
  gap: 1rem;
}

.Card {
  width: 350px;
  background-color: var(--second);
  padding: 1rem;
  border-radius: 5px;
  box-shadow: rgba(14, 30, 37, 0.12) 0px 2px 4px 0px,
    rgba(14, 30, 37, 0.32) 0px 2px 16px 0px;
  margin: 0.5rem auto;
  transition: 0.4s all;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.Card:hover{
  transform: scale(1.02);
}

.Card p {
  font-size: 0.9rem;
  text-align: justify;
  flex: 1;
}

/* Button */
.btn {
  cursor: pointer;
  display: inline-block;
  padding: 5px 10px;
  color: #fff;
  border: none;
  border-radius: 5px;
  background-color: var(--fourth);
  color: white;
}

.btn:hover {
  opacity: 0.8;
}

.bg-primary {
  background: var(--first);
}

.bg-secondary {
  background-color: var(--second);
}

.bg-second {
  background-color: var(--fourth);
  color: #fff;
}

.btn-outline {
  background: transparent;
  border: 1px solid #fff;
}

/* Images */
.rounded {
  height: 150px;
  border-radius: 50%;
}

.container {
  padding-top: 20px;
  width: 400px;
  margin: auto;
}

.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100px;
  font-size: 0.8rem;
}

.footer a {
  font-size: 0.9rem;
  color: #fff;
}

.footer a:hover {
  opacity: 0.8;
}

.footer .social > * {
  margin-right: 30px;
}
