body{
    font-family: 'Courier New', Courier, monospace;
    background-color: #1e1e1e;
    color: #e0e0e0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

.container{
    text-align: center;
    background-color: #2a2a2a;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    width: 90%;
}

h1{
    margin: 0;
    color: #fff;
}

.subtitle{
    font-size: 0.9em;
    color: #888;
    margin-bottom: 30px;
}

.circuit-board{
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-bottom: 30px;
    background: #222;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #444;
}

.input-group{
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.label{
    font-size: 0.8em;
    color: #aaa;
}

.toggle-btn{
    width: 60px;
    height: 60px;
    font-size: 24px;
    font-weight: bold;
    border: 2px solid #555;
    background: #333;
    color: white;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.toggle-btn:hover{
    border-color: #777;
}

.toggle-btn.active{
    background: #00d4ff;
    border-color: #00d4ff;
    color: #000;
    box-shadow: 0 0 15px #00d4ff;
}

.gate-section select{
    padding: 10px;
    font-family: inherit;
    background: #333;
    color: #fff;
    border: 1px solid #555;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
}

.output-section{
    margin-bottom: 30px;
}

.bulb-off{
    width: 60px;
    height: 60px;
    background-color: #333;
    border: 4px solid #444;
    border-radius: 50%;
    margin: 0 auto 10px auto;
    transition: 0.3s;
}

.bulb-on{
    width: 60px;
    height: 60px;
    background-color: #ffcc00;
    border: 4px solid #b38f00;
    border-radius: 50%;
    margin: 0 auto 10px auto;
    box-shadow: 0 0 40px #ffcc00;
    transition: 0.3s;
}

.result-text{
    font-size: 1.2em;
    font-weight: bold;
}

.info-panel{
    background: #222;
    padding: 15px;
    border-radius: 8px;
    border-top: 3px solid #00d4ff;
}

.truth-tableP{
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    font-size: 0.9em;
}

.truth-table th {
    border-bottom: 1px solid #555;
    padding: 8px;
    color: #aaa;
}

.truth-table td{
    padding: 8px;
    border-bottom: 1px solid #333;
}

.highlight-row{
    background-color: rgba(0, 212, 255, 0.2);
    color: #00d4ff;
    font-weight: bold;
}