* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    background-color: #f5f5f5;
    position: relative;
    z-index: 1;
}
.background-gif {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}
.background-gif img {
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    opacity: 0.5;
    filter: blur(0.5px);
}
main, .header, .content-boxes, .comment-section {
    position: relative;
    z-index: 1;
}

/* Header section */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

/* Hamburger menu */
.hamburger-menu {
    width: 30px;
    height: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

.hamburger-menu span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #333;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger-menu:hover span {
    background-color: #555;
}

/* Search bar */
.search-bar {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 500px;
    flex-grow: 1;
}

.search-bar input {
    width: 100%;
    padding: 10px 15px;
    padding-right: 40px;
    border: 1px solid #ddd;
    border-radius: 25px;
    outline: none;
    font-size: 16px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.search-bar input:focus {
    border-color: #4a90e2;
}

.search-bar input::placeholder {
    color: #999;
}

.search-icon {
    margin-left: -35px;
    color: #999;
    cursor: pointer;
}

/* Content boxes */
.content-boxes {
    margin-bottom: 40px;
}

.content-box {
    padding: 18px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 14px;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.small-box {
    min-height: 70px;
}

.large-box {
    min-height: 120px;
}

/* Comment section */
.comment-section {
    padding: 18px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.comment-section h2 {
    margin-bottom: 14px;
    color: #333;
    font-size: 21px;
}

.comment {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
}

.comment:last-child {
    border-bottom: none;
    margin-bottom: 10px;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #4a90e2;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.comment-content {
    flex-grow: 1;
}

.comment-user {
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.comment-text {
    color: #555;
    line-height: 1.5;
}

.comment-time {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

.comment-form {
    margin-top: 18px;
}

.comment-form h3 {
    margin-bottom: 10px;
    color: #333;
}

.comment-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    min-height: 70px;
    margin-bottom: 10px;
    font-size: 15px;
    resize: vertical;
}

.comment-submit {
    background-color: #4a90e2;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 15px;
    transition: background-color 0.3s;
}

.comment-submit:hover {
    background-color: #3a7bc8;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        align-items: stretch;
    }
    .hamburger-menu {
        order: -1;
    }
    .search-bar {
        order: 1;
        margin-top: 15px;
    }
    .content-box {
        padding: 20px;
    }
    .comment-section {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 15px;
    }
    .content-box {
        padding: 15px;
    }
    .comment {
        flex-direction: column;
    }
    .comment-avatar {
        align-self: flex-start;
    }
}
.side-nav {
    position: fixed;
    top: 0;
    left: -250px;
    width: 250px;
    height: 100%;
    background: #fff;
    box-shadow: 2px 0 8px rgba(0,0,0,0.1);
    transition: left 0.3s;
    z-index: 1000;
    padding-top: 60px;
}
.side-nav.open {
    left: 0;
}
.side-nav ul {
    list-style: none;
    padding: 0;
}
.side-nav li {
    margin: 20px 0;
    padding-left: 30px;
}
.side-nav a {
    color: #333;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.2s;
}
.side-nav a:focus, .side-nav a:hover {
    color: #4a90e2;
    outline: none;
}
.hamburger-menu {
    background: none;
    border: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
}
.hamburger-menu:focus {
    outline: 2px solid #4a90e2;
}
.post-meter-container {
    position: absolute;
    top: 50%;
    right: -40px;
    transform: translateY(-50%);
    width: 18px;
    height: 120px;
    background: rgba(200,200,200,0.18);
    border-radius: 12px;
    display: flex;
    align-items: flex-end;
    box-shadow: 0 2px 8px rgba(74,144,226,0.08);
    z-index: 2;
}
.post-meter-bar {
    width: 100%;
    background: linear-gradient(180deg, #4a90e2 0%, #357ab8 100%);
    border-radius: 12px;
    transition: height 0.3s;
    height: 70%; /* Placeholder value */
}
.post-meter-label {
    position: absolute;
    right: -60px;
    top: 50%;
    transform: translateY(-50%) rotate(90deg);
    font-size: 14px;
    color: #357ab8;
    font-weight: bold;
    letter-spacing: 1px;
}
.content-box.large-box {
    position: relative;
}
@media (max-width: 900px) {
    .post-meter-container {
        right: -28px;
        height: 90px;
        width: 12px;
    }
    .post-meter-label {
        right: -48px;
        font-size: 12px;
    }
}
.next-post-btn {
    display: block;
    margin-left: auto;   /* This pushes the button to the right */
    margin-right: 0;
    margin-top: 24px;
    background-color: #4a90e2;
    color: #e4e4e4;
    border: none;
    border-radius: 6px;
    padding: 12px 28px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(74,144,226,0.08);
    transition: background 0.2s, box-shadow 0.2s;
}
.next-post-btn:hover {
    background-color: #357ab8;
    box-shadow: 0 4px 16px rgba(74,144,226,0.15);
}
