body {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    font-family: 'Arial', sans-serif;
    background: url('/lines-alpha-anim.gif') repeat;
    color: #fff;
    overflow-x: hidden;
}

.background {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -1;
}

header {
    width: 100%;
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 10px 0;
    position: relative;
}

.menu-container {
    position: relative;
}

.menu-toggle {
    background-color: #333;
    color: #fff;
    border: none;
    font-size: 30px;
    cursor: pointer;
    padding: 10px;
    display: none;
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1000;
}

.menu-toggle:focus {
    outline: none;
}

nav {
    margin-top: 10px;
}

nav ul {
    list-style-type: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

nav ul li {
    display: inline-block;
}

nav ul li a {
    text-decoration: none;
    color: #fff;
    padding: 10px 20px;
    border: 2px solid #fff;
    background-color: #333;
    border-radius: 4px;
    transition: background-color 0.3s;
}

nav ul li a:hover {
    background-color: #555;
}

main {
    width: 100%;
    max-width: 900px; /* Daha geniş içerik alanı */
    margin: 20px;
    padding: 0 25px; /* Sağ ve sol köşelerde daha fazla boşluk */
    box-sizing: border-box;
}

.post {
    background-color: #2d2d2d;
    border: 3px double #ff0000;
    padding: 20px; /* Paddingi azaltarak alanı optimize ettim */
    margin-bottom: 20px;
    border-radius: 12px;
    box-sizing: border-box;
}

.date {
    font-size: 14px;
    color: #ccc;
    border-bottom: 1px solid #444;
    margin-bottom: 10px;
    display: block;
}

.posttext {
    color: #e1e1e1;
    font-size: 16px; /* Font boyutunu biraz daha küçülttüm */
    line-height: 1.6; /* Satır yüksekliğini azalttım */
    letter-spacing: -0.5px; /* Harfler arasındaki boşluğu azalttım */
    text-align: justify;
    word-wrap: break-word;
}

.posttext p {
    margin-bottom: 15px;
}

/* Mobilde hamburger menüsünü göstermek ve düzenlemek için */
@media screen and (max-width: 768px) {
    .menu-toggle {
        display: block; /* Hamburger menü tuşunu mobilde göster */
    }

    nav {
        position: fixed;
        top: 0;
        left: -250px;
        width: 250px;
        height: 100%;
        background-color: #333;
        box-shadow: 2px 0 5px rgba(0, 0, 0, 0.5);
        transition: left 0.3s ease;
        z-index: 500;
    }

    nav.open {
        left: 0;
    }

    nav ul {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        margin-top: 60px;
    }

    nav ul li {
        width: 100%;
        margin-bottom: 15px;
    }

    nav ul li a {
        width: 100%;
        text-align: left;
        padding: 15px;
        border-bottom: 1px solid #444;
    }

    nav ul li a:hover {
        background-color: #555;
    }

    html, body {
        overflow-x: hidden;
    }
}
