/* Общие стили */
body {
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Arial", sans-serif;
    margin: 0;
    overflow: hidden;
}

h1 {
    font-size: 1.2rem;
    margin-top: 0;
}

p {
    color: rgb(107, 114, 128);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    margin-top: 0.25rem;
}

.card {
    max-width: 100%;
    margin: 0 auto;
    padding: 0.5rem;
    border: 1px solid lightgray;
    border-radius: 0.5rem;
}

.card p:last-child {
    margin-bottom: 0;
}

@media (min-width: 640px) {
    body {
        padding: 0;
    }
    h1 {
        font-size: 1.6rem;
    }
    p {
        font-size: 1rem;
    }
    .card {
        max-width: 620px;
        padding: 1rem;
        border-radius: 1rem;
    }
}

iframe {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    margin: 0;
    padding: 0;
}

#installButton, #iosInstallPrompt {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    z-index: 1000;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 10px #007bff;
    transition: box-shadow 0.3s ease-in-out, transform 0.3s ease-in-out;
}

#installButton:hover, #iosInstallPrompt:hover {
    box-shadow: 0 0 20px #007bff, 0 0 30px #007bff;
    transform: translateX(-50%) scale(1.05);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 10px #007bff;
    }
    50% {
        box-shadow: 0 0 20px #007bff, 0 0 30px #007bff;
    }
    100% {
        box-shadow: 0 0 10px #007bff;
    }
}

#installButton.pulse-animation, #iosInstallPrompt.pulse-animation {
    animation: pulse 2s infinite;
}

#iosInstallPrompt {
    background-color: #28a745;
    box-shadow: 0 0 10px #28a745;
}

#iosInstallPrompt:hover {
    box-shadow: 0 0 20px #28a745, 0 0 30px #28a745;
}

#iosInstallModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1001;
}

#iosInstallModal .modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    max-width: 80%;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

#iosInstallModal img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    cursor: pointer;
}

#iosInstallModal h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

#closeIosModal {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 15px;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

#closeIosModal:hover {
    background-color: #0056b3;
}

#imageZoomModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1002;
    overflow: auto;
}

#zoomedImage {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#closeZoomModal {
    color: white;
    position: absolute;
    top: 15px;
    right: 35px;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}