/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

header, footer {
    padding: 1.5rem;
    text-align: center;
    color: #000000;
}

footer {
    margin-top: 2rem;
    font-size: 0.9rem;
}

h1 {
    margin-bottom: 0.5rem;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1rem;
}

/* Color preview grid */
.color-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(105px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.color-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s ease;
    position: relative;
}

.color-preview:hover {
    transform: translateY(-5px);
}

.color-box {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s ease;
}

.color-preview:hover .color-box {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.color-label {
    margin-top: 10px;
    font-weight: bold;
    text-align: center;
}

/* Updated color customizer layout */
.color-customizer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

/* Styling for the left preview */
.custom-color-preview-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#custom-color-preview {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background-color: #000000;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#custom-color-preview:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

#custom-color-picker {
    font-size: 2rem;
    margin-right: 0.5rem;
}

#custom-color-hex {
    font-family: monospace;
    font-size: 1.2rem;
    padding: 0.5rem;
    border-radius: 4px;
    width: 100%;
    text-align: center;
    text-decoration: underline;
    text-underline-offset: 10px;
}

/* Styling for the right controls */
.color-control-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.color-picker-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

input[type="color"] {
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

/* Update the color wheel label alignment */
.color-wheel-label {
    color: #343a40;
    padding: 0.75rem 0; /* Remove left/right padding, keep top/bottom */
    cursor: pointer;
    transition: background-color 0.2s;
    display: inline-flex;
    align-items: center;
}

.color-wheel-label i {
    display: none; /* Hide the icon */
}

.color-wheel-label:hover {
    text-decoration: none; /* Optional: add underline on hover for better usability */
}

/* Update the download options heading alignment */
.download-options h3 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    color: #343a40;
    text-align: left; /* Ensure left alignment */
    padding-left: 0; /* Remove any potential left padding */
}

/* Download options styling */
.download-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.download-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.download-btn {
    padding: 0.6rem 1.2rem;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.download-btn:hover {
    background-color: #218838;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .color-customizer {
        grid-template-columns: 1fr;
    }
    
    .download-buttons {
        justify-content: center;
    }
}

/* Custom color section */
.custom-color-section {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.custom-color-section h2 {
    margin-bottom: 1rem;
    color: #343a40;
}

#custom-color-form {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

#color-input {
    flex: 1;
    min-width: 200px;
    padding: 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 1rem;
}

button {
    padding: 0.75rem 1.5rem;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.2s;
}

button:hover {
    background-color: #0069d9;
}

/* Full-screen display */
#fullscreen-display {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1000;
    cursor: none;
}

/* Add this class to body when in fullscreen */
body.in-fullscreen {
    overflow: hidden;
    margin: 0;
    padding: 0;
    height: 100vh;
}

.hidden {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .color-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 1rem;
    }
    
    #custom-color-form {
        flex-direction: column;
    }
    
    button {
        width: 100%;
    }
}

.customize-btn {
    display: none; /* Hide it instead of removing completely in case there are dependencies */
}

.hidden-color-picker {
    position: absolute;
    width: 0;
    height: 0;
    padding: 0;
    border: none;
    overflow: hidden;
    opacity: 0;
}

/* Color Uses Section */
.color-uses-section {
    margin-top: 3rem;
    padding: 2rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.color-uses-section h2 {
    margin-bottom: 1.5rem;
    color: #343a40;
    text-align: center;
}

.color-uses-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.use-category {
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.use-category h3 {
    color: #007bff;
    margin-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.5rem;
}

.use-category h4 {
    color: #28a745;
    margin: 1rem 0 0.5rem;
    font-weight: 600;
}

.use-category p {
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .color-uses-container {
        grid-template-columns: 1fr;
    }
} 