@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700;900&display=swap');

html {
    font-size: 16px;
}

body {
    font-family: 'Lato', sans-serif;
    background-color: #C9B1BD;
    color: #282C34;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
}

/* --- DESKTOP STYLES --- */

h1 {
    font-size: 3rem; 
    font-weight: 400;
    margin-bottom: 2rem;
}

h2 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #282C34;
    margin-bottom: 0.5rem;
}

button {
    font-size: 1rem;
    background-color: #282C34;
    color: #FFFFFF;
    border: none;
    padding: 12px 24px;
    font-family: 'Lato', sans-serif;
    font-weight: 300;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

button:hover {
    opacity: 0.9;
}

#output {
    font-size: 1.1rem;
    margin-top: 2rem;
    padding: 2rem;
    max-width: 500px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(40, 44, 52, 0.1);
    line-height: 1.6;
    display: none; 
}

.button-group {
    margin-top: 1.5rem;
    display: none;
    gap: 10px;
    justify-content: center;
}

#generate {
    margin-top: 2rem;
}

#generateAgain,
#copyBtn {
    font-size: 1rem;
    padding: 10px 16px;
    background-color: rgba(255, 255, 255, 0.5);
    color: #282C34;
    border: 1.5px solid #282C34;
    border-radius: 8px;
    font-weight: 400;
    width: 200px;
    text-align: center;
    display: inline-block;
}

#generateAgain:hover,
#copyBtn:hover {
    background-color: #282C34 !important;
    color: #FFFFFF !important;
}

footer {
    position: fixed;
    bottom: 20px;
    left: 0;
    width: 100%;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Lato', sans-serif;
    font-size: 0.8rem;
}

footer a {
    color: #282C34 !important;
    text-decoration: none;
    font-weight: 700;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.footer-content {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border-radius: 50px;
    backdrop-filter: blur(5px);
}

/* --- MOBILE STYLES --- */

@media (max-width: 768px) {
    
    body {
        padding-bottom: 20px; 
        height: auto;
        min-height: 100vh;
    }

    h1 {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
        line-height: 1.2;
    }
    
    h2 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    #output {
        font-size: 1.25rem;
        padding: 1.5rem;
        width: 90%;
        max-width: none; 
        margin-top: 1.5rem;
        box-sizing: border-box;
    }

    button {
        font-size: 1.1rem;
        padding: 18px 24px;
        border-radius: 12px;
        width: 90%;
        max-width: 350px;
    }

    .button-group {
        flex-direction: column;
        width: 100%;
        gap: 15px;
        align-items: center;
    }

    #generateAgain,
    #copyBtn {
        font-size: 1.1rem;
        padding: 16px;
        width: 90%;
        max-width: 350px;
    }

    #generate {
    margin-top: 2rem;
}
    
    footer {
        position: relative;
        bottom: 0;
        margin-top: 50px;
        background: transparent;
        padding: 15px 0;
    }

    .footer-content {
        background: transparent;
        backdrop-filter: none;
    }
}
