* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background: #1a1a1a;
    color: #fff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    width: 100%;
    max-width: 1200px;
    padding: 20px;
}

.screen {
    display: none;
}

.screen.active {
    display: block;
}

#welcome-screen {
    text-align: center;
}

#welcome-screen h1 {
    font-size: 2.5em;
    margin-bottom: 30px;
    color: #4CAF50;
}

.device-selection {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.select-container {
    display: flex;
    flex-direction: column;
    gap: 5px;
    text-align: left;
}

.select-container label {
    color: #4CAF50;
    font-size: 14px;
    margin-left: 5px;
}

select {
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    background: #333;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    width: 100%;
    outline: none;
}

select:hover {
    background: #404040;
}

select:focus {
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.3);
}

.name-input {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

input[type="text"] {
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    background: #333;
    color: #fff;
    font-size: 16px;
}

button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    background: #4CAF50;
    color: #fff;
    cursor: pointer;
    transition: background 0.3s;
}

button:hover {
    background: #45a049;
}

.video-container {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
}

#remote-video {
    width: 100%;
    background: #333;
    border-radius: 10px;
    transform: scaleX(-1);
    aspect-ratio: 16/9;
}

#local-video {
    position: absolute;
    width: 20%;
    max-width: 200px;
    min-width: 160px;
    background: #333;
    border-radius: 10px;
    transform: scaleX(-1);
    bottom: 20px;
    right: 20px;
    border: 2px solid #4CAF50;
    z-index: 10;
}

.chat-container {
    background: #333;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
}

#chat-messages {
    height: 200px;
    overflow-y: auto;
    margin-bottom: 15px;
    padding: 10px;
}

.chat-input {
    display: flex;
    gap: 10px;
}

.chat-input input {
    flex: 1;
}

.controls {
    display: flex;
    gap: 10px;
    justify-content: center;
}

#bounce {
    background: #f44336;
}

#bounce:hover {
    background: #da190b;
}

.message {
    margin-bottom: 10px;
    padding: 8px;
    border-radius: 5px;
    background: #444;
}

.message .username {
    font-weight: bold;
    color: #4CAF50;
    margin-right: 8px;
}

@media (max-width: 768px) {
    .video-container {
        grid-template-columns: 1fr;
    }
    
    video {
        max-height: 300px;
        object-fit: cover;
    }
    
    .device-selection {
        padding: 0 20px;
    }
} 