@import url('https://fonts.googleapis.com/css2?family=Uncial+Antiqua&display=swap');

body {
    font-family: 'Uncial Antiqua', cursive;
    background-color: #5a4a3a;
    color: #f0e0d0;
    margin: 0;
    padding: 0;
    background-image: url('https://www.transparenttextures.com/patterns/metal-background.png');
}

header {
    background-color: #3b2a1a;
    padding: 1rem;
    text-align: center;
    border-bottom: 4px solid #8b4513;
    position: relative;
}

header::before, header::after {
    content: '⚙️';
    font-size: 2rem;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

header::before {
    left: 20px;
}

header::after {
    right: 20px;
}

h1, h2 {
    margin: 0;
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px #000;
}

h2 {
    font-size: 1.8rem;
    border-bottom: 2px solid #8b4513;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

a {
    color: #f0e0d0;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #ffdead;
}

main {
    padding: 2rem;
}

#controls {
    margin-bottom: 2rem;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 1rem;
    border-radius: 10px;
    border: 2px solid #8b4513;
}

select, button {
    font-family: 'Uncial Antiqua', cursive;
    background-color: #8b4513;
    color: #f0e0d0;
    border: 2px solid #f0e0d0;
    padding: 0.5rem 1rem;
    margin: 0 0.5rem;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    border-radius: 5px;
}

select:hover, button:hover {
    background-color: #a0522d;
    transform: scale(1.05);
}

#content-wrapper {
    display: flex;
    gap: 2rem;
}

#fsm-network {
    flex: 3;
    height: 600px;
    border: 4px solid #8b4513;
    background-color: #fdf5e6;
    border-radius: 10px;
    box-shadow: inset 0 0 10px #000;
}

#input-container {
    flex: 1;
    padding: 1rem;
    border: 4px solid #8b4513;
    background-color: #4a3a2a;
    border-radius: 10px;
    box-shadow: inset 0 0 10px #000;
    height: 600px;
    overflow-y: auto;
}

#input-sequence {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 1.2rem;
}

.input-item {
    padding: 0.5rem;
    background-color: rgba(0,0,0,0.2);
    border-radius: 5px;
    border: 1px solid #8b4513;
    transition: background-color 0.3s, transform 0.3s ease;
    text-align: center;
}

.input-item.current {
    background-color: #a0522d;
    color: #fff;
    font-weight: bold;
    transform: scale(1.1);
}