body {
    font-family: 'Arial', sans-serif;
    background-color: #000;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: #333;
}

.container {
    text-align: center;
    width: 90%;
    max-width: 1200px;
    padding: 30px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.5s ease-in-out;
}

h1 {
    color: #444;
    margin-bottom: 30px;
}

.search-box {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    gap: 10px;
}

#hexInput {
    padding: 12px 15px;
    width: 250px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: all 0.3s ease;
}

#hexInput:focus {
    border-color: #FC004E;
    outline: none;
    box-shadow: 0 0 5px rgba(252, 0, 78, 0.3);
}

#searchBtn {
    padding: 12px 25px;
    background-color: #FC004E;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#searchBtn:hover {
    background-color: #D80042;
    transform: translateY(-2px);
}

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

.color-comparison {
    width: 100%;
    height: 150px;
    display: flex;
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.original-color-info {
    position: absolute;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    text-align: left;
    z-index: 2;
}

.color-label {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
}

.color-hex {
    font-size: 24px;
    color: white;
    font-weight: bold;
}

.selected-pantone {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    width: 300px;
    height: 100px;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    z-index: 2;
    background-color: rgba(255, 255, 255, 0.2);
}

.select-prompt {
    font-size: 18px;
    margin-bottom: 5px;
    font-weight: bold;
}

.pantone-name {
    font-size: 20px;
    text-align: center;
    font-weight: bold;
}

.results-container {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.color-card {
    padding: 10px;
    border-radius: 8px;
    background-color: white;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    animation: fadeInUp 0.5s ease-out;
    cursor: pointer;
}

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

.color-card.selected {
    outline: 3px solid #FC004E;
    transform: scale(1.05);
}

.color-preview {
    width: 100%;
    height: 60px;
    border-radius: 5px;
    margin-bottom: 8px;
}

.color-info {
    text-align: center;
}

.color-name {
    font-weight: bold;
    margin-bottom: 3px;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.color-hex-wrapper {
    position: relative;
    display: inline-block;
}

.color-hex {
    color: #666;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s;
}

.color-hex1 {
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.color-hex:hover {
    color: #FC004E;
}

.copy-notification {
    position: absolute;
    top: -20px;
    right: -40px;
    background: #FC004E;
    color: white;
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 10px;
    opacity: 0;
    transition: opacity 0.3s;
}

.copy-notification.show {
    opacity: 1;
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    color: #666;
    padding: 20px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1200px) {
    .results-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .results-container {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .search-box {
        flex-direction: column;
        align-items: center;
    }
    
    #hexInput {
        width: 100%;
    }
    
    #searchBtn {
        width: 100%;
    }
    
    .color-comparison {
        height: 120px;
    }
    
    .selected-pantone {
        width: 200px;
        height: 80px;
    }
}

@media (max-width: 480px) {
    .results-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .color-comparison {
        height: 100px;
    }
    
    .selected-pantone {
        width: 150px;
        height: 60px;
        right: 15px;
    }
    
    .original-color-info {
        left: 15px;
    }
    
    .color-label, .color-hex {
        font-size: 18px;
    }
    
    .select-prompt, .pantone-name {
        font-size: 16px;
    }
}