@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@300;700&family=Georgia&display=swap');

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

body {
    font-family: 'Georgia', serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #ffffff;
    min-height: 100vh;
}

header {
    padding: 20px 40px;
}

.home-link {
    color: #aaaaaa;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
}

.home-link:hover {
    color: #ffffff;
}

.limerick-container {
    max-width: 700px;
    margin: 60px auto;
    padding: 40px;
    text-align: center;
}

h1 {
    font-family: 'Roboto Slab', serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 50px;
    letter-spacing: 0.05em;
}

.input-section {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 40px;
    backdrop-filter: blur(10px);
}

label {
    display: block;
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #e0e0e0;
}

#topic {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    margin-bottom: 20px;
    font-family: 'Georgia', serif;
}

#topic::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

#topic:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.15);
}

#generateBtn {
    padding: 15px 40px;
    font-size: 1.1rem;
    background: #ffffff;
    color: #1a1a2e;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    font-family: 'Roboto Slab', serif;
}

#generateBtn:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

#generateBtn:active {
    transform: translateY(0);
}

#generateBtn:disabled {
    background: #666666;
    cursor: not-allowed;
    transform: none;
}

.output-section {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    display: none;
}

.output-section.visible {
    display: block;
}

.output-section h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #e0e0e0;
    font-weight: 300;
}

.limerick-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #ffffff;
    font-style: italic;
    white-space: pre-line;
}

.loading {
    color: #aaaaaa;
    font-style: italic;
}

@media (max-width: 768px) {
    .limerick-container {
        padding: 20px;
        margin: 40px auto;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .input-section, .output-section {
        padding: 25px;
    }
    
    label {
        font-size: 1.1rem;
    }
}