body {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f7f7f7;
}

.container {
    text-align: center;
}

h1 {
    font-size: 36px;
    color: #8B4513;
    margin-top: 20px;
    z-index: 1;
}

.flower-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.flower {
    width: 200px;
    height: 200px;
    margin: 10px;
    position: relative;
}

.modal {
  display: none; /* Oculto por defecto */
  position: fixed; /* Se queda fijo en la pantalla */
  z-index: 1; /* Se muestra encima de otros elementos */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto; /* Permite el desplazamiento si el contenido es grande */
  background-color: rgba(0,0,0,0.4); /* Fondo semitransparente */
}

.modal-contenido {
  background-color: #fefefe;
  margin: 15% auto; /* Centra la ventana */
  padding: 20px;
  border: 1px solid #888;
  width: 50%; /* Ancho del mensaje */
  border-radius: 20px;
  border-color: crimson ;
  font-size: 30px;
}

.cerrar {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.cerrar:hover,
.cerrar:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.mis-flores {
    background-color: #ff4081;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1em;
    cursor: pointer;
    border-radius: 15px;
}

.mis-flores:hover {
    background-color: #f50057;
}

.no-mis-flores {
    background-color: #ff4081;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1em;
    cursor: pointer;
    border-radius: 15px;
}

.no-mis-flores:hover {
    background-color: gray;
    cursor: not-allowed;
    pointer-events: none;
}

.petal {
    width: 45px;
    height: 90px;
    background-color: #FFD700;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform-origin: 0 100%;
}

.p1 { transform: translate(-50%, -50%) rotate(0deg); }
.p2 { transform: translate(-50%, -50%) rotate(36deg); }
.p3 { transform: translate(-50%, -50%) rotate(72deg); }
.p4 { transform: translate(-50%, -50%) rotate(108deg); }
.p5 { transform: translate(-50%, -50%) rotate(144deg); }
.p6 { transform: translate(-50%, -50%) rotate(180deg); }
.p7 { transform: translate(-50%, -50%) rotate(216deg); }
.p8 { transform: translate(-50%, -50%) rotate(252deg); }
.p9 { transform: translate(-50%, -50%) rotate(288deg); }
.p10 { transform: translate(-50%, -50%) rotate(324deg); }

/* Agrega las siguientes clases para las animaciones */
@keyframes fadeInPetal {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOutPetal {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.petal {
    /* Agrega una animación de entrada a los pétalos */
    animation: fadeInPetal 0.5s ease-in-out both;
}


