/* General Styles */
body {
    font-family: Arial, sans-serif;
    background-color: #f3f4f6;
    margin: 0;
    padding: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    width: 100%;
}

h1 {
    font-size: 2.5em;
    color: #333;
}

h2 {
    color: #333;
    margin: 0 0 10px;
}

/* Container Layout */
#container {
    width: 90%;
    max-width: 1500px;
    margin: 10px auto;
    display: flex;
    gap: 20px;
}

/* Sidebar */
#sidebar {
    width: 250px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#simulator-list {
    list-style: none;
    padding: 0;
}

#simulator-list li {
    cursor: pointer;
    padding: 10px;
    border-bottom: 1px solid #ddd;
    background: white;
    margin: 5px 0;
    border-radius: 5px;
}

#simulator-list li:hover {
    background: #e9ecef;
}

/* Main Content */
#main-content {
    flex: 1;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Centers the entire simulator details section */
#simulator-details {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center horizontally */
    justify-content: flex-start; /* Align at the top */
    min-height: 100vh;
    padding: 20px;
}

#calypso-header {
    text-align: center;
    width: 100%;
    max-width: 600px;
    background: #f4f4f4;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
}

/* Calypso Section */
#calypso-box {
    width: 100%;
    max-width: 800px;
    border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background: #fff;
    margin: 10px auto;
}

.calypso-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 equal columns */
    gap: 20px; /* Space between columns */
    max-width: 600px; /* Optional: Prevents it from stretching too wide */
    margin-bottom: 20px; /* Add spacing below */
}

/* Style each calypso item */
.calypso-item {
    display: flex;
    flex-direction: column; /* Stack label and input vertically */
}

/* Titans Section */
#titans {
    width: 100%;
    max-width: 5000px;
    text-align: center;
    margin-top: 10px;
}

#titans-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(280px, 1fr));
    gap: 10px;
    width: 100%;
    margin-top: 10px;
}

.titan-box {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 10px;
    background: #fff;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.titan-settings {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.noise-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-left: 50px;
}

/* Relays */
.relay-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 10px 0;
}

.relay {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #e02424; /* Off */
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.relay.on {
    background-color: #84cc16; /* On */
}

/* Buttons */
button {
    background-color: #5850ec;
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #3b37ce;
}

/* Transitions */
* {
    transition: all 0.1s ease-in-out;
}
/* Relay Light Styling */
.relay {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.channel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 5px 0;
}

.digital-input-label {
    display: flex;
    align-items: center;
    margin-left: 10px;
}

.digital-input-label input {
    margin-right: 5px;
}
/* Style input fields */
input {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    transition: border 0.3s;
}

/* Style error messages */
.error-message {
    color: red;
    font-size: 12px;
    margin-top: 3px;
    display: block;
