body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #0a0a2a, #23234d);
    color: #dad9ff;
    overflow-x: hidden;
    height: 100vh;
}

.app-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center; /* центр по горизонтали */
    margin-top: 50px;    /* отступ от верха страницы */
    z-index: 1;
}

/* Луна */
#moon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #e6e6e6; /* базовый серый цвет */
    background-image:
        /* Кратеры */
        radial-gradient(circle 6px at 10% 15%, #888 100%, transparent 101%),
        radial-gradient(circle 4px at 75% 20%, #bbb 100%, transparent 101%),
        radial-gradient(circle 5px at 20% 40%, #999 100%, transparent 101%),
        radial-gradient(circle 3px at 35% 50%, #888 100%, transparent 101%),
        radial-gradient(circle 6px at 50% 55%, #aaa 100%, transparent 101%),
        radial-gradient(circle 4px at 65% 60%, #777 100%, transparent 101%),
        radial-gradient(circle 5px at 30% 70%, #bbb 100%, transparent 101%),

        radial-gradient(circle 3px at 80% 50%, #777 100%, transparent 101%),
        radial-gradient(circle 2px at 15% 60%, #bbb 100%, transparent 101%),
        /* Лунные моря (немного тёмнее) */
        radial-gradient(circle 12px at 40% 35%, #d6d6d6 100%, transparent 101%),
        radial-gradient(circle 10px at 60% 70%, #cfcfcf 100%, transparent 101%),
        radial-gradient(circle 8px at 25% 50%, #d0d0d0 100%, transparent 101%),
        radial-gradient(circle 6px at 70% 30%, #d8d8d8 100%, transparent 101%);
    background-repeat: no-repeat;
    box-shadow: 0 0 15px #f0f0d0; /* мягкий свет */
    margin-bottom: 20px;
    position: relative;
    animation: glow 4s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        box-shadow: 0 0 15px #f0f0d0, 0 0 25px #f0f0d080;
        transform: scale(1);
    }
    to {
        box-shadow: 0 0 25px #ffffc2, 0 0 45px #f0f0d0;
        transform: scale(1.05);
    }
}

.controls-container {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    width: 100%;
    max-width: 400px; /* такая же ширина, как у .result */
}


.btn {
    flex: 1; /* кнопки занимают равные доли */
    border: none;
    outline: none;
    padding: 10px; 
    border-radius: 15px;
    background: linear-gradient(15deg, #111129, #23234d); 
    box-shadow: 0 4px 15px #00000080, 
                inset 0 0 10px #23234d;
    color: #dad9ff; 
    cursor: pointer;
    font-size: 14px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Эффект при наведении btn*/
.btn:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6),
                inset 0 0 15px rgba(255, 255, 255, 0.15);
}

.result {
    margin-top: 20px;
    padding: 20px;
    border-radius: 15px;
    background: linear-gradient(120deg, #0a0a2a, #23234d);
    box-shadow: 0 4px 15px #00000080, 
                inset 0 0 10px #23234d;
    color: #dad9ff;
    font-size: 16px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    max-width: 365px; /* одинаково с .controls-container */
}


.moon-day {
    font-size: 24px;
    margin-bottom: 10px;
}

.moon-details .detail-item {
    margin: 5px 0;
}

.highlight {
    font-weight: bold;
    color: #f0f0d0;
}

/* Контейнер выбора даты */
.date-picker-inline {
    display: none; /* изначально скрыт */
    border: none;
    outline: none;
    margin: 10px auto;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.date-picker-inline.show {
    display: flex; /* показываем при добавлении класса */
}

.date-picker-inline input[type="date"] {
    padding: 10px;
    font-size: 14px;
    border: none;
    outline: none;
    border-radius: 10px; /* Скруглённые углы */
    background: linear-gradient(120deg, #0a0a2a, #23234d);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), 
                inset 0 0 10px rgba(255, 255, 255, 0.1); /* Внешняя и внутренняя тень */
    color: #dad9ff;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.date-picker-inline:hover {
    border-radius: 10px; /* Скруглённые углы */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6),
                inset 0 0 15px rgba(255, 255, 255, 0.15);
}

.date-picker-inline button {
    padding: 5px 15px;
    border: none;
    outline: none;
    background-color: #7373b9;
    color: #f0f0d0;
    cursor: pointer;
}

/* Звёзды */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.star {
    position: absolute;
    border-radius: 50%;
    animation-name: twinkle;
    animation-iteration-count: infinite;
    animation-direction: alternate;
    animation-timing-function: ease-in-out;
}

/* мерцание */
@keyframes twinkle {
    0%   { opacity: 0.2; transform: scale(0.9); }
    50%  { opacity: 1;   transform: scale(1.2); }
    100% { opacity: 0.2; transform: scale(0.9); }
}

.zodiac-icon {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-right: 6px;
  }

  