/* Estilização inspirada na referência escura e elegante */
body {
    font-family: 'Arial', sans-serif;
    background-color: #000;
    color: #fff;
    text-align: center;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh; /* Alterado para min-height para telas maiores */
}

.container {
    width: 90%; /* Ajustado para ocupar 90% da tela em vez de 100% */
    max-width: 400px;
    padding: 20px;
}

.phone-frame {
    background: linear-gradient(145deg, #111, #222);
    border-radius: 30px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.1);
}

.content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.slideshow {
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    position: relative;
}

.slide {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    border-radius: 15px;
    position: absolute;
    top: 0;
    left: 0;
}

.slide.active {
    opacity: 1;
}

h1 {
    font-size: 24px;
    color: #e63946;
    font-family: 'Cursive', sans-serif;
    margin-top: 10px;
}

.love-message {
    font-size: 14px;
    color: #ddd;
    margin: 10px 20px;
    line-height: 1.5;
}

.contador-text {
    font-size: 16px;
    font-weight: bold;
    margin-top: 10px;
    margin-bottom: 10px;
}

#contador {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 20px;
}

.contador-item {
    background-color: #1e1e1e;
    padding: 15px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.contador-numero {
    font-size: 2em;
    font-weight: bold;
    color: #fff;
}

.contador-label {
    font-size: 0.8em;
    color: #ccc;
    text-transform: uppercase;
}

.music-player {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 15px;
    width: 100%; /* Garante que o player ocupa a largura do frame */
}

.music-player audio {
    width: 100%; /* Garante que o player de áudio ocupa a largura disponível */
}

.controls button {
    background: none;
    border: none;
    font-size: 24px;
    color: #e63946;
    cursor: pointer;
    margin: 5px;
}

.controls button:hover {
    color: #fff;
}

.pwa-install {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 16px;
    padding: 16px;
    z-index: 20;
}

.pwa-install p {
    margin: 0 0 12px;
    font-size: 13px;
    color: #ddd;
}

.pwa-install button {
    background: #e63946;
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 8px 14px;
    margin-right: 8px;
    cursor: pointer;
}

.pwa-install-fechar {
    background: transparent !important;
    color: #aaa !important;
}

.hidden {
    display: none;
}

/* Media queries para responsividade */

/* Para telas menores que 600px (celulares) */
@media (max-width: 600px) {
    .container {
        width: 95%;
        padding: 15px;
    }

    .phone-frame {
        padding: 15px;
    }

    #contador {
        grid-template-columns: repeat(2, 1fr); /* Reduz para 2 colunas em telas menores */
    }

    .contador-item {
        padding: 10px;
    }

    .contador-numero {
        font-size: 1.5em;
    }

    .contador-label {
        font-size: 0.7em;
    }

    h1 {
        font-size: 20px;
    }

    .love-message {
        font-size: 12px;
    }
}

/* Para telas maiores que 600px e menores que 992px (tablets) */
@media (min-width: 601px) and (max-width: 992px) {
    .container {
        width: 80%;
    }
}

/* Para telas maiores que 992px (desktops) */
@media (min-width: 993px) {
    .container {
        width: 60%;
    }
}