/* Cryptographic Compiler - UI Styling and Layout */

/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background-color: #0a1a2b;
    margin: 0;
    padding: 0;
}

header {
    background-color: #132f4c;
    text-align: center;
    padding: 1rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

header h1 {
    font-size: 2.5rem;
    letter-spacing: 1px;
}

main {
    padding: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

textarea {
    width: 100%;
    border: 1px solid #1e3a5a;
    border-radius: 4px;
    padding: 0.8rem;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1rem;
    background-color: #132f4c;
    color: #ffffff;
    resize: vertical;
    margin-bottom: 1rem;
    transition: border-color 0.3s ease;
}

textarea:focus {
    border-color: #1e90ff;
    outline: none;
}

textarea::placeholder {
    color: #9dadc5;
}

.controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

button {
    background-color: #1e90ff;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
}

button:hover {
    background-color: #1c86ee;
    transform: translateY(-2px);
}

button:active {
    background-color: #187bcd;
    transform: translateY(1px);
}

label {
    font-size: 1rem;
    cursor: pointer;
}

input[type="checkbox"] {
    margin-right: 0.5rem;
    transform: scale(1.2);
    cursor: pointer;
    transition: transform 0.2s ease;
}

input[type="checkbox"]:checked {
    transform: scale(1.2) rotate(20deg);
}

pre {
    background-color: #1e3a5a;
    color: #ffffff;
    border: 1px solid #244a66;
    border-radius: 4px;
    padding: 1rem;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1rem;
    white-space: pre-wrap;
    word-wrap: break-word;
    margin-top: 0.5rem;
    transition: background-color 0.3s ease;
}

pre:hover {
    background-color: #1c3d5b;
}

pre#compiler-output {
    margin-bottom: 2rem;
}

/* Footer */
footer {
    margin-top: 2rem;
    text-align: center;
    padding: 1rem 0;
    background-color: #132f4c;
    color: #9dadc5;
    font-size: 0.9rem;
}