/* Global reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f0f4f8, #d9e2ec);
    color: #333;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 20px;
}

.container {
    background: #fff;
    padding: 30px 40px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    max-width: 800px;
    width: 100%;
}

h1 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 2em;
    color: #0a2540;
}

h2 {
    margin-top: 30px;
    margin-bottom: 10px;
    color: #0a2540;
    font-size: 1.5em;
    border-bottom: 2px solid #0a2540;
    padding-bottom: 5px;
}

p {
    margin-bottom: 15px;
    line-height: 1.5;
}

textarea {
    width: 100%;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    font-size: 1em;
    resize: vertical;
    transition: all 0.2s;
}

textarea:focus {
    outline: none;
    border-color: #0a2540;
    box-shadow: 0 0 10px rgba(10,37,64,0.2);
}

button {
    background: #0a2540;
    color: #fff;
    padding: 12px 25px;
    border: none;
    border-radius: 10px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s;
    margin-right: 10px;
    margin-top: 10px;
    width: 100%;
}

button:hover {
    background: #1a3a66;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

#status {
    margin-top: 20px;
    font-weight: 600;
    color: #0a2540;
}

#decrypted-output {
    margin-top: 15px;
    padding: 15px;
    background: #f1f5f9;
    border-radius: 10px;
    max-height: 300px;
    overflow-y: auto;
    font-family: monospace;
    white-space: pre-wrap;
    line-height: 1.4;
}

/* Markerede ord */
.match {
    color: red;
    font-weight: 900;
}

/* Små skærme */
@media (max-width: 600px) {
    .container {
        padding: 20px;
    }
    button {
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
    }
}