/* Import the Meticula font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Meticula:wght@400&display=swap');

body {
    font-family: sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    text-align: center;
    position: relative; /* Needed for absolute positioning of the background */
    overflow: hidden; /* Prevents potential scrollbar issues */
}

#background-container {
    position: absolute; /* Position the background container */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Place the background behind other content */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: opacity 1s ease-in-out;
}

#background-container.fade-out {
    opacity: 0;
}

#affirmation-text {
    font-family: 'Meticula', sans-serif;
    font-size: clamp(1.5rem, 5vw, 3rem);
    line-height: 1.6;
    color: #fff;
    margin: 0;
    text-shadow:
        -1px -1px 0 #000,
         1px -1px 0 #000,
        -1px  1px 0 #000,
         1px  1px 0 #000;
    padding: 20px;
    max-width: 80%;
    position: relative; /*Ensure text is in front of background*/
}

#generate-button {
    background-color: rgba(255, 255, 255, 0.2); /* Semi-transparent white */
    color: #fff; /* White text */
    border: 1px solid rgba(255, 255, 255, 0.5); /* Light white border */
    padding: 15px 30px;
    font-size: 1em;
    border-radius: 10px;
    text-shadow:
        -0.5px -0.5px 0 #000,
        0.5px -0.5px 0 #000,
        -0.5px  0.5px 0 #000,
        0.5px  0.5px 0 #000;
    cursor: pointer;
    transition: background-color 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3); /* Subtle shadow */
    font-weight: bold;
    position: relative; /*Ensure button is in front of background*/
}

#generate-button:hover {
    background-color: rgba(255, 255, 255, 0.5); /* More opaque white on hover */
}

@media (max-width: 600px) {
    #generate-button {
        padding: 12px 24px;
    }
}

#mute-button-container {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#mute-button {
    cursor: pointer;
    font-size: 24px;
    color: #333;
    text-shadow:
    -1px -1px 0 #fff,
     1px -1px 0 #fff,
    -1px  1px 0 #fff,
     1px  1px 0 #fff;
}

#music-title {
    font-size: 16px;
    color: #333;
    margin-bottom: 5px;
    text-shadow:
    -1px -1px 0 #fff,
     1px -1px 0 #fff,
    -1px  1px 0 #fff,
     1px  1px 0 #fff;
}

#meditation-button-container {
    position: absolute;
    top: 80px; /* Adjust as needed */
    left: 10px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#meditation-mute-button {
    cursor: pointer;
    font-size: 24px;
    color: #333;
    text-shadow:
    -1px -1px 0 #fff,
     1px -1px 0 #fff,
    -1px  1px 0 #fff,
     1px  1px 0 #fff;
}

#meditation-title {
    font-size: 16px;
    color: #333;
    margin-bottom: 5px;
    text-shadow:
        -1px -1px 0 #fff,
         1px -1px 0 #fff,
        -1px  1px 0 #fff,
         1px  1px 0 #fff;
}
