/* css/style.css */
body {
    font-family: sans-serif;
    margin: 20px;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h2, h3 {
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-top: 20px;
}

form div {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input[type="text"],
input[type="password"],
input[type="file"],
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    font-size: 1em;
}

button {
    display: inline-block;
    background-color: #5cb85c;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #4cae4c;
}

a {
    color: #0275d8;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.message {
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid transparent; /* Add a border for consistency */
    border-radius: 4px;
    font-weight: bold;
}

#message { /* Specific styling for registration/login messages */
    min-height: 1.2em; /* Reserve space to prevent layout shifts */
}


.message[style*="green"] {
    background-color: #dff0d8;
    color: #3c763d;
    border-color: #d6e9c6;
}

.message[style*="red"] {
     background-color: #f2dede;
     color: #a94442;
     border-color: #ebccd1;
}

.message[style*="blue"] {
     background-color: #d9edf7;
     color: #31708f;
     border-color: #bce8f1;
}


ul#mediaFileList {
    list-style: disc;
    padding-left: 20px;
}

ul#mediaFileList li {
    margin-bottom: 10px;
    border-bottom: 1px dotted #eee;
    padding-bottom: 5px;
}

#playbackContainer {
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 20px;
    margin-top: 30px;
    background-color: #fafafa;
}

#mediaPlayerArea video,
#mediaPlayerArea audio {
    display: block; /* Prevents extra space below the element */
    margin-top: 20px;
    max-width: 100%; /* Ensures video fits within the container */
    height: auto; /* Maintain aspect ratio */
    background-color: #000; /* Black background for video player area */
}