@import url("root.css");

body {
    background: linear-gradient(-45deg, rgb(160, 5, 5), var(--black) 45%, var(--white) 150%);
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    color: var(--white);
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
}

h1 {
    margin-bottom: 20px;
    font-size: 32px;
    margin-bottom: 50px;
    margin-top: 50px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}


.category-card {
    background: #ffffff2c;
    border: 1px solid var(--light);
    border-radius: 12px;
    padding: 25px 10px;
    text-align: center;
    cursor: pointer;
    transition: 0.25s ease;
    height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
 
}

.category-card:hover {
    background: rgba(165, 165, 165, 0.096);
    transform: translateY(-5px);
}

.cat-icon {
    width: 150px;
    height: 150px;
    margin: 0 auto 12px;
    opacity: 1;
}


.category-card p {
    font-size: 18px;
    margin: 0;
    color: var(--white);
}

/* Кнопка назад */
.back-btn {
  position: fixed;
  top: 15px;
  left: 15px;
  z-index: 9999;
  padding: 5px 14px;
  color: var(--white);
  text-decoration: none;
  border: none;
  transition: 0.2s;
}

.back-btn:hover {
  transform: translateY(-2px);
}

/* Анимация появления */
@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Начальное состояние + анимация */
.category-card {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.9s ease forwards;
}

.category-grid .category-card:nth-child(1) { animation-delay: 0.10s; }
.category-grid .category-card:nth-child(2) { animation-delay: 0.20s; }
.category-grid .category-card:nth-child(3) { animation-delay: 0.30s; }
.category-grid .category-card:nth-child(4) { animation-delay: 0.40s; }
.category-grid .category-card:nth-child(5) { animation-delay: 0.50s; }
.category-grid .category-card:nth-child(6) { animation-delay: 0.60s; }
.category-grid .category-card:nth-child(7) { animation-delay: 0.70s; }
.category-grid .category-card:nth-child(8) { animation-delay: 0.80s; }

::selection {
    background: #47474793;
    color: white;
}
