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

.container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 100%;
}

/* Color Preview Container Styles */
.color-preview-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    background-color: #fff;
    border: 2px solid #333;
    border-radius: 8px;
    padding: 20px;

}

.color-preview {
    width: 100%;
    height: 100px;
    border: 1px solid #333;
    border-radius: 4px;
    background-color: #000000;
}

.hex-combined {
    font-family: monospace;
    font-weight: bold;
    font-size: 24px;
}

.bytes-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 20px;
    width: 100%;
}

.byte {
    display: flex;
    flex-direction: column;
    border: 2px solid #333;
    padding: 10px;
    border-radius: 8px;
    background-color: #fff;
    flex: 1;
}

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

.bits {
    display: flex;
    gap: 5px;
    justify-content: space-between;
    width: 100%;
}

.bit-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
}

.bit-value {
    font-weight: bold;
    margin-bottom: 5px;
}

.toggle {
    position: relative;
    display: inline-block;
    width: 30px;
    height: 17px;
    transform: rotate(-90deg);
    margin-top: 15px;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 17px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 13px;
    width: 13px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #2196F3;
}

input:checked + .slider:before {
    transform: translateX(13px);
}

.byte-value {
    text-align: center;
    margin-top: 10px;
    font-weight: bold;
    display: none !important;
}

/* Values Container Styles */
.values-container {
    display: flex;
    justify-content: center;
    background-color: #fff;
    border: 2px solid #333;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.rgb-values {
    display: flex;
    gap: 20px;
    justify-content: space-evenly;
    width: 100%;
}

.value-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    flex: 1;
}

.value-label {
    font-weight: bold;
    color: #333;
    font-size: 18px;
}

.decimal-value {
    font-size: 24px;
    font-weight: bold;
}

.hex-value {
    color: #666;
    font-family: monospace;
    margin-bottom: 5px;
}

.single-color-preview {
    width: 40px;
    height: 20px;
    border: 1px solid #333;
    border-radius: 4px;
    margin-top: 5px;
}

@media (max-width: 768px) {
    .bytes-container {
        flex-wrap: wrap;
    }
    
    .byte {
        width: 100%;
    }
    
    .values-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .rgb-values {
        justify-content: space-between;
        width: 100%;
    }
} 