body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #eef6ff;
    background-image: radial-gradient(#c9ddf7 1px, transparent 1px);
    background-size: 20px 20px;
}

header {
    width: 100%;
    background: linear-gradient(90deg, #dcdcdc 0%, #f0f0f0 50%, #dcdcdc 100%);
    text-align: center;
    padding: 40px 20px;
    border-bottom: none;
    margin-bottom: 20px;
}

h1 {
    margin: 0;
    font-family: "Zen Dots", sans-serif;
    font-weight: 400;
    font-style: normal;
}

h2 {
    margin: 10px 0 0;
    font-family: "Zen Dots", sans-serif;
    font-style: normal;
    font-weight: normal;
    color: #ffffff;
}

/* Post cards align nicely */
.posts {
    max-width: 900px;
    margin: 0 auto;
}

.post-card {
    margin: auto;
    background: #fff;
    border-radius: 10px;
    width: 550px;
    padding: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.post-card img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 15px;
}

.post-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 8px;
}

.post-desc {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 15px;
}

.vote-buttons {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.vote-buttons button {
    cursor: pointer;
    background: #eee;
    border: 1px solid #ccc;
    padding: 10px 18px;      
    border-radius: 10px;
    font-size: 1.8rem;       
    transition: background 0.2s, transform 0.1s;
}

.vote-buttons button:hover {
    background: #ddd;
}

.vote-buttons button:active {
    transform: scale(0.95);
}

.votes-display {
    margin-top: 10px;
    font-size: 1rem;
    font-weight: bold;
}

/* --- Floating Left Menu --- */
.side-menu {
    position: fixed;
    top: 30%;
    left: 0;
    transform: translateY(-50%);
    background: #ffffffcc;
    backdrop-filter: blur(6px);
    padding: 15px 10px;
    border-radius: 0 12px 12px 0;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 999;
}

.side-menu a {
    font-family: Arial, sans-serif;
    text-decoration: none;
    font-size: 1rem;
    color: #333;
    padding: 8px 12px;
    background: #f3f3f3;
    border-radius: 8px;
    transition: 0.2s;
}

.side-menu a:hover {
    background: #e0e0e0;
    transform: translateX(4px);
}

/* --- Mobile Friendly Adjustments --- */

/* Make post cards scale on small screens */
@media (max-width: 600px) {
    .posts {
        padding: 10px;
    }

    .post-card {
        width:320px;
        max-width: 100%;
        padding: 18px;
    }

    .post-card img {
        width: 50px;
        height: 50px;
    }

    .post-title {
        font-size: 1.1rem;
    }

    .post-desc {
        font-size: 0.9rem;
    }

    /* Make vote buttons smaller on phones */
    .vote-buttons button {
        padding: 8px 14px;
        font-size: 1.5rem;
    }

    /* Resize left floating menu */
    .side-menu {
        top: auto;
        bottom: 20px;
        left: 10px;
        transform: none;
        flex-direction: row;
        padding: 10px;
        border-radius: 12px;
        gap: 10px;
    }

    .side-menu a {
        font-size: 0.9rem;
        padding: 6px 10px;
    }
}

/* Very small screens */
@media (max-width: 400px) {
    .vote-buttons button {
        padding: 6px 10px;
        font-size: 1.3rem;
    }

    .side-menu {
        gap: 6px;
        padding: 8px;
    }
}

