body {
    font-family: 'Arial', sans-serif;
    background-color: #121212;
    color: #fff;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    flex-direction: column;
    animation: colorShift 5s infinite alternate;
}

.banner-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
    margin-bottom: 20px;
    animation: slideUp 1s ease-in-out, float 3s infinite ease-in-out;
}

.banner-container img {
    width: 100%;
    height: auto;
    animation: zoomInOut 5s infinite alternate;
}

.form-container {
    background-color: #1e1e1e;
    color: #fff;
    padding: 30px;
    border-radius: 10px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    margin: 20px;
    box-sizing: border-box;
    animation: glow 2s infinite alternate;
}

h2 {
    font-size: 30px;
    margin-bottom: 20px;
    color: #cc0000;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
    animation: slideInLeft 1s ease-in-out;
}

label {
    font-size: 16px;
    color: #bbb;
    display: block;
    margin-bottom: 5px;
    animation: colorChange 3s infinite alternate;
}

input[type="text"], input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    border: 1px solid #444;
    border-radius: 5px;
    background-color: #2a2a2a;
    color: #fff;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus, input[type="password"]:focus {
    border-color: #cc0000;
    outline: none;
}

.submit-btn {
    background-color: #cc0000;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    width: 100%;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #b30000;
}

p {
    margin-top: 20px;
    color: #bbb;
}

a {
    color: #cc0000;
    text-decoration: none;
    animation: linkGlow 2s infinite alternate;
}

a:hover {
    text-decoration: underline;
}

form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation: slideInRight 1s ease-in-out;
}

.post-container {
    background-color: #1e1e1e;
    color: #fff;
    padding: 30px;
    border-radius: 10px;
    width: 100%;
    max-width: 800px;
    margin: 20px auto;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.3);
}

.post-title {
    font-size: 36px;
    color: #cc0000;
    margin-bottom: 20px;
}

.post-content {
    font-size: 18px;
    color: #ccc;
    white-space: pre-wrap;
    padding-left: 0;
    padding-right: 0;
}

small {
    display: block;
    margin-top: 20px;
    color: #888;
}

a.back-home {
    color: #cc0000;
    text-decoration: none;
    font-weight: bold;
    margin-top: 20px;
    animation: bounce 2s infinite;
}

a.back-home:hover {
    text-decoration: underline;
}

.post-list-container {
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation: slideInDown 1s ease-in-out;
}

.post-preview {
    background-color: #1e1e1e;
    padding: 20px;
    border-radius: 10px;
    color: #fff;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.3);
    animation: float 3s infinite ease-in-out;
}

.post-preview h3 {
    font-size: 28px;
    color: #cc0000;
    animation: textGlow 2s infinite alternate;
}

.post-preview small {
    font-size: 14px;
    color: #888;
    animation: spin 3s infinite linear;
}

.post-preview a {
    color: #cc0000;
    text-decoration: none;
    animation: linkGlow 2s infinite alternate;
}

.post-preview a:hover {
    text-decoration: underline;
}

.captcha-image {
    margin-top: 10px;
    margin-bottom: 10px;
    max-width: 100%;
    height: auto;
}

footer {
    width: 100%;
    text-align: center;
    padding: 20px;
    background-color: #1e1e1e;
    color: #bbb;
    position: fixed;
    bottom: 0;
}

footer {
    border-top: 1px solid #444;
}

.error-message {
    color: red;
    font-size: 1.2em;
    margin-bottom: 15px;
}

.search-form {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.search-input {
    padding: 10px;
    font-size: 16px;
    border-radius: 5px;
    border: 1px solid #ccc;
    width: 250px;
}

.search-button {
    padding: 10px 15px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    margin-left: 10px;
}

.search-button i {
    margin-right: 5px;
}

.search-button:hover {
    background-color: #0056b3;
}

.search-button:focus {
    outline: none;
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes slideUp {
    0% { transform: translateY(20px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

@keyframes bounceIn {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes colorShift {
    0% { background-color: #121212; }
    50% { background-color: #1a1a1a; }
    100% { background-color: #121212; }
}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

@keyframes zoomInOut {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes glow {
    0% { box-shadow: 0px 0px 10px rgba(204, 0, 0, 0.5); }
    50% { box-shadow: 0px 0px 20px rgba(204, 0, 0, 1); }
    100% { box-shadow: 0px 0px 10px rgba(204, 0, 0, 0.5); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes slideInLeft {
    0% { transform: translateX(-100px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

@keyframes colorChange {
    0% { color: #bbb; }
    50% { color: #cc0000; }
    100% { color: #bbb; }
}

@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
    100% { transform: translateX(0); }
}

@keyframes pulseFocus {
    0% { border-color: #cc0000; }
    50% { border-color: #ff0000; }
    100% { border-color: #cc0000; }
}

@keyframes hoverEffect {
    0% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0); }
}

@keyframes floatText {
    0% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0); }
}

@keyframes linkGlow {
    0% { color: #cc0000; }
    50% { color: #ff0000; }
    100% { color: #cc0000; }
}

@keyframes slideInRight {
    0% { transform: translateX(100px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes textGlow {
    0% { text-shadow: 0px 0px 5px rgba(204, 0, 0, 0.5); }
    50% { text-shadow: 0px 0px 10px rgba(204, 0, 0, 1); }
    100% { text-shadow: 0px 0px 5px rgba(204, 0, 0, 0.5); }
}

@keyframes textFlow {
    0% { transform: translateX(0); }
    50% { transform: translateX(10px); }
    100% { transform: translateX(0); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes bounce {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

@keyframes slideInDown {
    0% { transform: translateY(-100px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

@keyframes slideInUp {
    0% { transform: translateY(100px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}
