body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(to bottom, #1e3c72, #2a5298);
    color: #fff;
    overflow-x: hidden;
    transition: filter 0.3s ease;
}

body.blur {
    filter: blur(5px);
}

header {
    background-color: rgba(0, 121, 211, 0.2);
    color: white;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.3));
    transform: rotate(-45deg);
    z-index: 0;
    pointer-events: none;
    animation: shine 5s infinite linear;
}

@keyframes shine {
    0% {
        transform: rotate(-45deg) translateX(0);
    }

    100% {
        transform: rotate(-45deg) translateX(calc(100%));
    }
}

header h1 {
    margin: 0;
    font-size: 2.5em;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.auth-buttons {
    display: flex;
    gap: 10px;
}

.auth-buttons button {
    background-color: rgba(0, 121, 211, 0.7);
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.auth-buttons button:hover {
    background-color: rgba(0, 121, 211, 1);
}

#searchBar {
    width: 30%;
    padding: 12px;
    margin-top: 0;
    border: none;
    border-radius: 25px;
    background-color: rgba(255, 255, 255, 0.9);
    color: #333;
    font-size: 1em;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

#searchBar:focus {
    outline: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
}

#postList {
    width: 80%;
    max-width: 800px;
}

.post {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    margin-bottom: 20px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    color: #333;
    position: relative;
}

.post:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.post h3 {
    font-size: 1.5em;
    margin-top: 0;
    margin-bottom: 10px;
    color: #0079D3;
}

.post p {
    line-height: 1.6;
}

.post .post-actions {
    position: relative;
    bottom: 0px;
    right: 0px;
    display: flex;
    align-items: center;
}

.post .post-actions button {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    margin-left: 10px;
    font-size: 1em;
    transition: color 0.3s ease;
}

.post .post-actions button:hover {
    color: #0079D3;
}

#postCreation {
    width: 80%;
    max-width: 800px;
    margin-top: 30px;
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#postCreation h2 {
    color: #0079D3;
    text-align: center;
    margin-bottom: 20px;
}

#postCreation input[type="text"],
#postCreation textarea {
    width: 95%;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

#postCreation input[type="text"]:focus,
#postCreation textarea:focus {
    outline: none;
    border-color: #0079D3;
}

#postCreation button {
    background-color: #0079D3;
    color: white;
    padding: 15px 25px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
}

#postCreation button:hover {
    background-color: #005aa1;
}

.comment-section {
    margin-top: 10px;
    padding: 10px;
    background-color: rgba(240, 240, 240, 0.8);
    border-radius: 8px;
}

.comment-input {
    width: 95%;
    padding: 8px;
    margin-bottom: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.submit-comment {
    background-color: #4CAF50;
    color: white;
    padding: 8px 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.comments-display {
    margin-top: 10px;
}

.comment {
    padding: 8px;
    margin-bottom: 5px;
    background-color: #fff;
    border-radius: 5px;
    color: #333;
}

.video-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 15px;
}

.video-container video {
    width: 100%;
    height: auto;
    display: block;
}

.video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 10px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.video-container:hover .video-controls {
    opacity: 1;
}

.video-controls button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.2em;
}

.expanded-post-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s, opacity 0.3s linear;
}

.expanded-post-overlay.active {
    visibility: visible;
    opacity: 1;
}

.expanded-post {
    background-color: #fff;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 80%;
    max-width: 800px;
    color: #333;
    position: relative;
}

.expanded-post .close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    color: #666;
}

.expanded-post .close-button:hover {
    color: #0079D3;
}

.expanded-post h3 {
    font-size: 2em;
    margin-bottom: 15px;
    color: #0079D3;
}

.expanded-post p {
    font-size: 1.2em;
    line-height: 1.7;
}

.expanded-post .video-container {
    margin-top: 15px;
}

.menu-button {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 2;
}

.menu-button button {
    background-color: #e0e7ff;
    color: #374151;
    padding: 10px 20px;
    border: 2px solid #9ca3af;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 1em;
    font-weight: bold;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
}

.menu-button button:hover {
    background-color: #d1d5db;
    color: #1f2937;
    border-color: #6b7280;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 5px;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {background-color: #ddd;}

.menu-button:hover .dropdown-content {
    display: block;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 30%;
    border-radius: 10px;
    position: relative;
}

.modal .close-button {
    color: #aaa;
    position: absolute;
    right: 10px;
    top: 5px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.modal .close-button:hover,
.modal .close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal input[type="text"],
.modal input[type="password"] {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    display: inline-block;
    border: 1px solid #ccc;
    box-sizing: border-box;
    border-radius: 5px;
}

.modal button {
    background-color: #0079D3;
    color: white;
    padding: 14px 20px;
    margin: 8px 0;
    border: none;
    cursor: pointer;
    width: 100%;
    border-radius: 5px;
}

.modal button:hover {
    opacity: 0.8;
}