body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

.page {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100vh;
    max-width: 1024px;
    margin: 0 auto;
    padding: 20px;
}

.button-container {
    margin: 20px 0;
}

button {
    padding: 10px 20px;
    margin: 0 10px;
    font-size: 16px;
    cursor: pointer;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
}

button:hover {
    background-color: #45a049;
}

.video-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 20px;
}

.video-box {
    width: 48%;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
}

.video-box h2 {
    text-align: center;
    margin-top: 0;
}

video {
    width: 100%;
    background-color: #222;
    border-radius: 4px;
    min-height: 240px;
    cursor: pointer;
}

.video-note {
    font-size: 12px;
    color: #666;
    text-align: center;
    margin-top: 5px;
    font-style: italic;
}

.sdp-container {
    width: 100%;
    margin-top: 20px;
}

.sdp-row {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.sdp-col {
    width: 48%;
}

.sdp-container h3 {
    margin-bottom: 10px;
}

#sdpOffer,
#sdpAnswer {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: monospace;
    resize: vertical;
}

/* Connection status indicators */
.connected .video-box {
    border-color: #4CAF50;
    box-shadow: 0 0 15px rgba(76, 175, 80, 0.5);
}

.connected h1:after {
    content: " - Connected";
    color: #4CAF50;
}

/* Connection failed state */
.connection-failed .video-box {
    border-color: #f44336;
    box-shadow: 0 0 15px rgba(244, 67, 54, 0.5);
}

.connection-failed h1:after {
    content: " - Connection Failed";
    color: #f44336;
}

/* Status message at the bottom */
.status-message {
    margin-top: 20px;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
    background-color: #f8f8f8;
    display: none;
}

.connected .status-message.success {
    display: block;
    background-color: #e8f5e9;
    color: #4CAF50;
}

.connection-failed .status-message.error {
    display: block;
    background-color: #ffebee;
    color: #f44336;
}