@keyframes fade-in {
  0% {
    opacity: 0;
    transform: translateY(-70px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Home page ───────────────────────────────────────── */

.container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
}

.section {
  border-radius: 20px;
  padding: 15px;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
  height: 320px;
  transform: translateY(-70px);
  opacity: 0;
  transition: transform 3s;
}

.section.first  { animation: fade-in 0.5s ease 0.3s forwards; }
.section.second { animation: fade-in 0.5s ease 0.5s forwards; }
.section.third  { animation: fade-in 0.5s ease 0.7s forwards; }
.section.fourth { animation: fade-in 0.5s ease 0.9s forwards; }
.section.fifth  { animation: fade-in 0.5s ease 1.1s forwards; }
.section.sixth  { animation: fade-in 0.5s ease 1.3s forwards; }

.section:hover {
  box-shadow: rgba(0, 40, 56, 0.18) 0px 6px 16px;
}

.section img {
  height: 110px;
  object-fit: cover;
}

.section h3 {
  margin: 10px 0px;
  font-size: 1.1rem;
}

.section p {
  font-size: 0.8rem;
  font-weight: 200;
}

@media (max-width: 768px) {
  .container {
    grid-template-columns: none;
  }
}

a.homepage-section-icon {
  color: #002838;
}

a.homepage-section-icon:hover {
  color: #5566EC;
}

/* ── Devices overview ────────────────────────────────── */

.buttons-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.button-item {
  border-radius: 10px;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 10px;
  text-align: center;
  padding: 10px 0;
}

.button-item > p.title {
  margin: 0;
  font-size: 1rem;
  color: #002838;
}

.button-item > img {
  height: 200px;
  object-fit: contain;
}

.button-item:hover {
  box-shadow: rgba(0, 40, 56, 0.18) 0px 4px 14px;
  background-color: rgba(110, 220, 76, 0.1);
}

.button-item:hover > p.title {
  color: #002838;
}

@media screen and (max-width: 700px) {
  .buttons-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media screen and (max-width: 500px) {
  .buttons-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── Support page ────────────────────────────────────── */

.small-container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  grid-auto-rows: 100px;
}

.support-button {
  box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 8px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #002838 !important;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 20px;
  text-align: center;
}

.support-button:hover {
  background-color: rgba(110, 220, 76, 0.1);
  box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 10px;
  color: #002838 !important;
}

.more-container {
  opacity: 0;
  transform: translateY(-70px);
  animation: fade-in 0.5s ease 0.3s forwards;
}

/* ── Users / Developers landing ──────────────────────── */

.description {
  margin: 0;
  display: block;
  margin-bottom: 20px;
  font-weight: 300;
}
