/* static/css/style.css */
body {
    font-family: sans-serif;
    margin: 20px;
    background-color: #f4f4f4;
}
.container {
    max-width: 800px;
    margin: 0 auto;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
h1, h2 {
    color: #333;
}
video {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px 0;
}
.navigation a {
    display: inline-block;
    margin: 16px;
    padding: 8px 15px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}
.navigation a:hover {
    background-color: #0056b3;
}
hr {
    border: 0;
    border-top: 1px solid #eee;
    margin: 20px 0;
}
.button-small {
    padding: 5px 10px;
    font-size: 0.8em;
    margin-left: 10px; /* Space it from the text */
}
.content {
    margin: auto;
    max-height: 80vh;
    max-width: 100%
}
.comment {
    background-color: #f9f9f9;
    border: 1px solid #eee;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    display: flex; /* Use flexbox to align content and button */
    justify-content: space-between; /* Push button to the right */
    align-items: center; /* Vertically center items */
    flex-wrap: wrap; /* Allow wrapping if content is long */
}

/* Ensure the form itself doesn't cause layout issues */
.delete-comment-form {
    display: inline-block; /* Treat it like a button */
    margin-left: auto; /* Push it to the right */
    flex-shrink: 0; /* Don't let it shrink */
}

/* If you want the p and small tag inside comment to be on their own line */
.comment p, .comment small {
    margin: 0; /* Remove default margins */
}

.comment p {
    flex-grow: 1; /* Allow content to take up available space */
}
/* Basic form styling */
form div {
    margin-bottom: 10px;
}
form input[type="text"],
form input[type="password"],
form textarea,
form input[type="file"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box; /* Include padding in width */
}
form input[type="submit"],
form button[type="submit"] {
    padding: 10px 20px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
form input[type="submit"]:hover,
form button[type="submit"]:hover {
    background-color: #218838;
}		

.button-danger{
    background-color: #dc3545 !important; /* A vibrant red */
    color: white; /* White text for better contrast on red */
    border: 1px solid #bd2130; /* A slightly darker red for the border */
    transition: background-color 0.3s ease; /* Smooth transition for the hover effect */
}
.button-danger:hover {
  background-color: #c82333 !important; /* A darker shade of red for hover */
  border-color: #bd2130; /* Keep border consistent or slightly darker */
}

.flashes {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}
.flashes li {
    padding: 10px;
    margin-bottom: 5px;
    border-radius: 5px;
}
.flashes .success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.flashes .danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
.flashes .info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/*Error handling*/
.errors {
    list-style: none;
    padding: 0;
    margin: 5px 0 10px 0;
    color: #dc3545; /* Bootstrap's red for errors */
    font-size: 0.85em;
}
.errors li {
    margin-bottom: 2px;
}


/* Pagination Styling */
.pagination {
    margin-top: 30px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px; /* Space between pagination links */
}

.pagination-link {
    display: inline-block;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #007bff;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.pagination-link:hover:not(.active):not(.disabled) {
    background-color: #e9ecef;
    color: #0056b3;
}

.pagination-link.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
    cursor: default;
}

.pagination-link.disabled {
    color: #6c757d;
    cursor: not-allowed;
    background-color: #f8f9fa;
    border-color: #ddd;
}

.pagination-link.ellipsis {
    color: #6c757d;
    cursor: default;
    border: none;
    background: transparent;
}

