body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #1a1a1a;
    color: #f0f0f0;
    margin: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

h1 { 
    color: #4CAF50; 
    margin-bottom: 20px;
}

.card {
    background: #3d3d3d;
    padding: 20px;
    margin: 20px 0;
    border-left: 5px solid #4CAF50;
    border-radius: 4px;
    max-width: 600px;
    width: 100%;
}

#requirement {
    border-left-color: #FFC107;
}

#textbox, #paragraph {
    margin-bottom: 20px;
}

#school-link {
    color: #4CAF50;
}

button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    margin-top: 10px;
    margin-right: 5px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s;
}

button:hover {
    background-color: #45a049; 
}

.output-button {
    display: block;
    width: 100%;
    margin-top: 15px;
    font-size: 1rem;
    font-weight: bold;
}

.filter-controls {
    margin-bottom: 20px;
}

.output {
    background: #3d3d3d;
    padding: 20px;
    margin-bottom: 20px;
    border-left: 5px solid #2196F3;
    border-radius: 4px;
    width: 100%;
    max-width: 700px;
    display: none;
}

.hidden-details {
    display: none;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #555;
}

.details-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-start;
}

.bio-text {
    flex: 1;
}

.char-portrait {
    max-width: 150px;
    border-radius: 8px;
    border: 2px solid #555;
}

/* Back Link Styling */
.back-link {
    margin-top: 30px;
    color: #888;
    text-decoration: none;
    font-size: 0.9rem;
}
.back-link:hover {
    color: #fff;
    text-decoration: underline;
}

.bio-layout {
    display: flex; 
    align-items: center; 
    gap: 20px; 
    text-align: left;
}

.bio-info {
    flex: 1;
}

.bio-image img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border: 3px solid #4CAF50;
}

@media (max-width: 600px) {
    .bio-layout {
        flex-direction: column-reverse;
        text-align: center;
    }
}