﻿

.Index-Window {
    width: 90%;
    max-width: 450px;
    height: 100%;
    max-height: 700px;
    background: #ffffff;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    overflow: hidden;
    /* Con Flexbox en el main, este margen auto refuerza el centrado */
    margin: auto;
    opacity: 1;
    visibility: hidden;
}
.Index-Window.visible {
 visibility:visible;
 opacity:1;
}

.Index-Content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 30px;
    box-sizing: border-box;
}

/* Barra de progreso */
.bar-Container {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 10px;
    overflow: hidden;
}

.bar-progress {
    width: 0%;
    height: 100%;
    background: #ff4b2b;
    transition: width 0.1s linear;
}

/* Pantalla inicial */
.welcome-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
    cursor: pointer;
    text-align: center;
    padding: 20px;
}

.romantic-title {
    font-family: 'Dancing Script', cursive;
    font-size: 2.8rem;
    margin-bottom: 10px;
}

/* Tarjeta e Imagen */
.media-card {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
}

.memory-img {
    width: 80%;
    max-height: 250px;
    object-fit: fill;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transition: opacity 0.5s ease;
}

.memory-info {
    text-align: center;
    margin-top: 15px;
    color: #333;
}

.memory-date {
    font-size: 0.85rem;
    font-weight: 600;
    color: #e63946;
    text-transform: uppercase;
}

.memory-title {
    font-family: 'Dancing Script', cursive;
    font-size: 1.8rem;
    margin: 5px 0;
}

.memory-text {
    font-size: 0.7rem;
    color: #4a4a4a;
}

/* Controles */
.controls-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 10px 0;
}

.btn-control {
    background: white;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

    .btn-control:hover {
        transform: scale(1.1);
    }

.main-btn {
    width: 55px;
    height: 55px;
    font-size: 1.5rem;
    background: #ff4b2b;
    color: white;
}
