/* style.css */

body {
    background: url('/static/bg.png') no-repeat center center fixed;
    background-size: cover;
    font-family: Arial, sans-serif;
    text-align: center;
    color: white;
}

.container {
    background: rgba(0, 0, 0, 0.7);
    padding: 20px;
    margin: 100px auto;
    width: 50%;
    border-radius: 10px;
}

form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

input[type="text"] {
    padding: 10px;
    width: 80%;
    border-radius: 5px;
}

button {
    margin-top: 10px;
    padding: 10px;
    background: orange;
    border: none;
    cursor: pointer;
}

/* New Button styling for links (e.g., login) */
.btn {
    display: inline-block;
    background: orange;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    margin-top: 10px;
}

/* Success message */
.success {
    color: green;
    margin-top: 10px;
}

/* Results container uses flex with wrapping to line items horizontally */
.results {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

/* Treat each video item as a "card" with a fixed width */
.video-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 220px;
    background: rgba(255, 255, 255, 0.2);
    padding: 10px;
    border-radius: 5px;
    box-sizing: border-box;
}

/* Scale down the thumbnail to fit the card width */
.video-item img {
    width: 100%;
    max-width: 200px;
    height: auto;
    border-radius: 5px;
    margin-bottom: 10px;
}

/* Optionally, ensure text doesn't get too large */
.video-item p {
    font-size: 14px;
    line-height: 1.2em;
    margin: 0;
}

/* Search box container */
.search-container {
    background: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 10px;
    width: 50%;
    margin: 20px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Style search input and button */
.search-container input[type="text"] {
    padding: 10px;
    width: 100%;
    border-radius: 5px;
    border: 1px solid white;
}

.search-container button {
    margin-top: 10px;
    padding: 10px;
    background: orange;
    border: none;
    cursor: pointer;
    font-weight: bold;
    border-radius: 5px;
}

/* Persistent success message styling */
.persistent-success {
    margin-top: 15px;
    padding: 10px;
    font-size: 18px;
    font-weight: bold;
    font-style: italic;
    color: #000;
    background: rgba(36, 36, 36, 0.884);
    border-radius: 5px;
}
