body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    text-align: center;
    background: linear-gradient(180deg, rgba(192, 0, 255, 1), #5b14b8);
    min-height: 100vh;
}


h1 {
    margin: 30px 0;
    color: white;
}

h2 {
    margin: 30px 0;
    color: white;
}

.black-title {
    margin: 30px 0;
    color: black;
    font-size: 20px;
}

.zodiac-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

.zodiac-card {
    background: rgba(255, 255, 255, 0.9); /* полупрозрачные карточки */
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.zodiac-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.zodiac-header {
    background: #4b0461;
    padding: 15px;
    color: white;
}

.zodiac-header h2 {
    margin: 0;
    font-size: 20px;
}

.zodiac-body {
    padding: 15px;
    color: #333;
    text-align: left;
}

.horoscope-card {
    max-width: 400px;
    margin: 40px auto;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    text-align: center;
}

.horoscope-card-details {
    max-width: 650px;
    margin: 40px auto;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    text-align: center;
}

.zodiac-body-details {
    padding: 15px;
    color: #333;
    text-align: left;
    font-size: 20px;
}

.home-options {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.home-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 20px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    color: #333;
    font-weight: bold;
    transition: transform 0.2s, box-shadow 0.2s;
}

.home-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.back-button-container {
    position: absolute; /* фиксируем в контейнере */
    top: 20px;
    left: 20px;
}

.back-button {
    display: inline-block;
    background: rgba(0, 0, 0, 0.5); /* полупрозрачный черный фон */
    color: white; /* текст белый */
    padding: 10px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.2s, box-shadow 0.2s;
}

.back-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

div.apps-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px; /* space between items */
    padding: 10px 40px;
}

div.apps-container div {
    border-radius: 25px;
    flex: 1 1 45%; /* each child ~45%, wraps on small screens */
    min-width: 250px; /* prevents being too small on mobile */
}

.app-card {
    background-color: white;
    text-align: center;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: fit-content;
    margin: 0 auto 30px auto; /* center card + spacing */
}

.app-card h2 {
    margin-bottom: 15px;
}

.app-image {
    display: block;
    margin: 0 auto 20px auto;
    max-width: 100%;
    border-radius: 10px;
}

.download-btn {
    display: inline-block;
    background-color: black;
    color: white;
    padding: 12px 24px;
    margin-bottom: 15px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 16px;
    transition: background 0.3s ease;
}

.download-btn:hover {
    background-color: #1e1d1d;
}

.center-img {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.img-container {
    text-align: center;
}

.ads-block {
    width: 728px;
    height: 90px;
    margin: 20px auto; /* выравнивание по центру страницы */
    background-color: #f0f0f0; /* временный фон, чтобы видеть блок */
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ccc; /* опционально, чтобы было видно границы */
}

.home-horoscope-selected-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0,0,0,0.15);
    background-color: #e0e0e0;
}

/* Контейнер для сетки карточек */
.home-horoscope-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0px; /* расстояние между карточками */
    padding: 10px 80px
}

.home-horoscope-selected-item {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 105px;             /* ширина карточки */
    height: 50px;             /* высота карточки */
    margin: 8px;              /* отступы между карточками */
    background-color: #f0f0f0;
    border-radius: 15px;      /* скруглённые углы */
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    font-size: 18px;
    font-weight: 600;
    color: #333;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
}

/* Hover эффект */
.home-horoscope-selected-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 8px rgba(0,0,0,0.15);
    background-color: #e0e0e0;
}


/* Выделенный/выбранный элемент */
.home-horoscope-selected-item.selected {
    background-color: rgba(204, 156, 255, 0.7); /* золотой фон */
    color: #ffffff;
    box-shadow: 0 6px 10px rgba(0,0,0,0.2);
}

.selected-sign-info {
    display: flex;
    flex-wrap: wrap;
    background-color: transparent;
    margin-top: 5px;
    height: auto;
}

.horoscope-today {
    max-width: 800px;
    margin: 10px auto;
    background: rgb(255, 255, 255);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    text-align: center;
}

.zodiac-header-details {
    height: 25px;
    font-weight: 700;            /* жирный шрифт */
    font-size: 16px;             /* размер текста */
    color: #333;                 /* цвет текста */
    text-align: center;          /* выравнивание по центру */
}

.zodiac-today-body {
    padding: 10px;
    text-align: left;
    font-size: 16px;
}

/* Контейнер для боковой рекламы */
.ads-side-container {
    position: fixed;       /* фиксируем на экране */
    top: 100px;            /* отступ сверху */
    width: 100%;
    pointer-events: none;  /* чтобы основной контент кликабельный */
    z-index: 1000;         /* поверх других элементов */
}

/* Левый блок */
.ads-side-container .ad-left {
    position: absolute;
    left: 10px;
    width: 160px;
    height: 600px;
    background-color: #f0f0f0;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: auto;
}

/* Правый блок */
.ads-side-container .ad-right {
    position: absolute;
    right: 10px;
    width: 160px;
    height: 600px;
    background-color: #f0f0f0;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: auto;
}

.app-icons {
  display: flex;
  justify-content: center; /* центрирование */
  gap: 20px; /* расстояние между иконками */
  margin-top: 15px;
}

.app-icons img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  cursor: pointer;
}
