/* styles.css */

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 900px;
    margin: auto;
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.inputs {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.input-group {
    flex: 1 1 200px;
    display: flex;
    flex-direction: column;
}

.input-group label {
    margin-bottom: 5px;
    color: #555;
}

.input-group input[type="color"],
.input-group input[type="number"],
.input-group select {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.input-group.full-width {
    flex: 1 1 100%;
    display: flex;
    justify-content: center;
}

#generateBtn {
    padding: 12px 25px;
    background-color: #28a745;
    color: #fff;
    border: none;
    cursor: pointer;
    border-radius: 6px;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

#generateBtn:hover {
    background-color: #218838;
}

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

.color-swatch {
    flex: 1 1 calc(20% - 15px);
    min-width: 120px;
    height: 120px;
    position: relative;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.color-swatch:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.color-code {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(255,255,255,0.8);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
}
.related-posts {
    margin-top: 20px;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.related-posts h2 {
    font-size: 1.5em;
}

.related-posts ul {
    list-style-type: none;
    padding: 0;
}

.related-posts ul li {
    margin-bottom: 10px;
}

.related-posts ul li a {
    text-decoration: none;
    color: #007BFF;
}

.related-posts ul li a:hover {
    text-decoration: underline;
}

