body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 20px;
    background-color: #f5f5f5;
    color: #333;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 10px;
}

h2 {
    color: #3498db;
    border-bottom: 2px solid #3498db;
    padding-bottom: 5px;
}

.instructions {
    background-color: #e3f2fd;
    border-radius: 5px;
    padding: 15px;
    margin: 20px 0;
}

.instructions h2 {
    margin-top: 0;
    color: #0d47a1;
    border-bottom: 1px solid #0d47a1;
}

.instructions ol {
    text-align: left;
    padding-left: 20px;
}

.instructions li {
    margin-bottom: 10px;
}

p {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 30px;
}

.color-inputs {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-bottom: 30px;
    gap: 20px;
}

.color-picker {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.color-picker label {
    font-weight: bold;
    font-size: 1.1em;
}

.color-picker input[type="color"] {
    width: 80px;
    height: 40px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

.color-picker input[type="text"] {
    padding: 8px;
    border: 2px solid #3498db;
    border-radius: 5px;
    font-size: 1em;
    width: 120px;
    text-align: center;
}

.results {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.contrast-display {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contrast-info {
    margin-top: 15px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 5px;
    text-align: center;
}

#sample-text {
    padding: 30px;
    font-size: 1.5em;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.contrast-results {
    flex: 1;
    min-width: 300px;
}

.contrast-results ul {
    list-style-type: none;
    padding: 0;
}

.contrast-results li {
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
}

.contrast-results li.pass {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.contrast-results li.fail {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

#contrast-ratio {
    font-weight: bold;
    font-size: 1.2em;
}

.pass-status {
    color: #28a745;
    font-weight: bold;
}

.fail-status {
    color: #dc3545;
    font-weight: bold;
}

@media (max-width: 768px) {
    .color-inputs {
        flex-direction: column;
        align-items: center;
    }
    
    .results {
        flex-direction: column;
    }
    
    .container {
        padding: 15px;
    }
}