/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #ddd;
}

h1 {
    color: #2c3e50;
}

h2 {
    color: #3498db;
    margin-bottom: 15px;
}

/* Controls Panel */
.controls-panel {
    background-color: #ecf0f1;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.control-group {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.control-group label {
    min-width: 120px;
    font-weight: bold;
    margin-right: 10px;
}

.control-group input[type="range"] {
    flex: 1;
    max-width: 300px;
    margin-right: 10px;
}

.control-group select {
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ccc;
    background-color: white;
    min-width: 200px;
}

.control-btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-right: 10px;
    transition: background-color 0.3s;
}

.control-btn:hover {
    background-color: #2980b9;
}

.buttons {
    margin-top: 20px;
}

/* Teleprompter Container */
.teleprompter-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.input-section, .display-section {
    flex: 1;
    min-width: 300px;
}

.input-section textarea {
    width: 100%;
    height: 300px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    resize: vertical;
    margin-bottom: 15px;
}

#update-teleprompter {
    display: block;
    width: 100%;
}

/* Teleprompter Display */
.teleprompter-frame {
    position: relative;
    height: 400px;
    overflow: hidden;
    background-color: #000;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.center-marker {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 2px;
    background-color: rgba(255, 0, 0, 0.5);
    z-index: 10;
}

#teleprompter-text {
    color: white;
    padding: 20px;
    font-size: 36px;
    font-family: 'Roboto', sans-serif;
    text-align: center;
    position: absolute;
    width: 100%;
    transition: transform 0.1s linear;
}

/* Footer */
footer {
    margin-top: 40px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #ddd;
    color: #7f8c8d;
}

footer a {
    color: #3498db;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 30px;
    width: 70%;
    max-width: 700px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #aaa;
}

.close-modal:hover {
    color: #333;
}

.modal-content ul {
    margin: 20px 0;
    padding-left: 20px;
}

.modal-content li {
    margin-bottom: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .teleprompter-container {
        flex-direction: column;
    }
    
    .control-group {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .control-group label {
        margin-bottom: 5px;
    }
    
    .control-group input[type="range"] {
        width: 100%;
        max-width: none;
        margin-bottom: 5px;
    }
    
    .modal-content {
        width: 90%;
        margin: 20% auto;
    }
}
