* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #f5f5f5;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 700px;
    width: 100%;
}

.hero {
    text-align: center;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333333;
}

.quote-container {
    padding: 40px;
    border-radius: 4px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
     background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

/* Dark overlay for better text contrast */
.quote-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

/* IMPORTANT: More specific selectors to override the later rules */
.quote-container #quote {
    position: relative;
    z-index: 2;
    color: #ffffff !important; /* Using !important to ensure this takes precedence */
    font-size: 24px;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    line-height: 1.6;
    margin-bottom: 20px;
}

.quote-container #tags {
    position: relative;
    z-index: 2;
    color: #9c00e4 !important;
    font-size: 16px;
    font-style: italic;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    margin-bottom: 10px;
    text-align: left;
}

.quote-container #author {
    position: relative;
    z-index: 2;
    color: #f0f0f0 !important;
    font-size: 18px;
    font-weight: normal;
    text-align: right;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    font-style: italic;
}

/* These general styles are being overridden for elements inside .quote-container */
#quote {
    font-size: 24px;
    line-height: 1.6;
    margin-bottom: 20px;
    font-weight: 300;
    color: #333;
}

#author {
    text-align: right;
    font-size: 16px;
    color: #777;
    font-style: italic;
}

#tags {
    text-align: left;
    font-size: 16px;
    color: #777;
    font-style: italic;
}

.buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.generate {
    padding: 12px 20px;
    background-color: white;
    color: #333;
    cursor: pointer;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.2s ease;
}

#generate-button {
    background-color: #333;
    color: white;
    border: 1px solid #333;
}

.generate:hover {
    background-color: #f8f8f8;
}

#generate-button:hover {
    background-color: #444;
}

@media (max-width: 600px) {
    .buttons {
        flex-direction: column;
    }
    
    .generate {
        width: 100%;
        text-align: center;
    }
    
    .quote-container {
        padding: 25px;
    }
    
    .quote-container #quote {
        font-size: 20px;
    }
}