* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f5f5;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

header h1 {
    margin-bottom: 10px;
    color: #333;
}

header p {
    color: #666;
}

.category-group {
    margin-bottom: 30px;
    border-radius: 10px;
    padding: 20px;
    position: relative;
}

.category-title {
    position: absolute;
    top: -15px;
    left: 20px;
    background-color: inherit;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.category-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.category-button {
    padding: 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    color: white;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.category-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

#quote-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.quote-container {
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    max-width: 80%;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

#quote-text {
    font-size: 24px;
    line-height: 1.4;
    margin-bottom: 30px;
    color: #333;
}

.button-container {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.button-container button {
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.2s;
}

#retry-button {
    background-color: #3498db;
    color: white;
}

#retry-button:hover {
    background-color: #2980b9;
}

#close-button {
    background-color: #e74c3c;
    color: white;
}

#close-button:hover {
    background-color: #c0392b;
}

.hidden {
    display: none !important;
}
