/* Общие настройки */
body {
    margin: 0;
    padding: 0;
    font-family: 'Comfortaa', cursive;
    background: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%);
    color: #004d6e;
    overflow-x: hidden; /* Чтобы снежинки не растягивали экран */
    min-height: 100vh;
}

/* Контейнер для контента */
.content {
    position: relative;
    z-index: 10; /* Поверх снега */
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

/* Эффект стекла (Glassmorphism) */
.glass-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

h1 {
    font-family: 'Pacifico', cursive;
    color: #2b7a9e;
    font-size: 2.5em;
    margin-bottom: 5px;
}

h2 {
    color: #2b7a9e;
    margin-top: 0;
}

.subtitle {
    color: #5d8aa8;
    font-size: 1.2em;
}

/* Галерея */
.photo-grid {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.photo-frame img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 15px;
    border: 3px solid #fff;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Цитаты */
.quote-item {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 10px;
    font-size: 0.9em;
}

/* Кнопка */
.magic-btn {
    background: linear-gradient(45deg, #ff9a9e 0%, #fecfef 99%, #fecfef 100%);
    border: none;
    padding: 15px 30px;
    font-size: 1.2em;
    color: #fff;
    border-radius: 50px;
    cursor: pointer;
    font-family: 'Comfortaa', cursive;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.4);
    transition: transform 0.2s;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.magic-btn:active {
    transform: scale(0.95);
}

/* Скрытая загадка */
.hidden-riddle {
    display: none; /* Скрыто по умолчанию */
    margin-top: 20px;
    border-top: 2px dashed #a1c4fd;
    padding-top: 15px;
    animation: fadeIn 1s ease-in;
}

.clue-location {
    font-weight: bold;
    font-size: 1.3em;
    color: #e91e63;
    margin-top: 10px;
}

/* Анимация появления */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Снег */
.snowflake {
    position: fixed;
    top: -10px;
    color: #fff;
    font-size: 1em;
    pointer-events: none; /* Чтобы нельзя было кликнуть на снег */
    z-index: 1;
    animation-name: fall;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

@keyframes fall {
    to { transform: translateY(100vh); }
}

.clue-card {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.clue-card h3 {
    margin-top: 0;
    color: #2b7a9e;
}

.pin-input {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.pin-input input {
    width: 80px;
    padding: 8px;
    font-size: 1.1em;
    text-align: center;
    border-radius: 8px;
    border: 1px solid #ccc;
}

.pin-input button {
    padding: 8px 15px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    background: linear-gradient(45deg, #84fab0, #8fd3f4);
    color: #fff;
    font-weight: bold;
}

.slider img {
    width: 100%;
    max-width: 250px;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.slider-controls {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.slider-controls button {
    border: none;
    border-radius: 50%;
    padding: 10px 15px;
    font-size: 1.2em;
    cursor: pointer;
}