*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body{
    overflow-x: hidden;
    background-color: aliceblue;
}
header{
    width: 100%;
    height: 10vh;
    padding: 5px;
    background-color: #ff0000;
    border: 1px solid black;
    display: flex;
    flex-direction: row;
    align-items: center;
}
header>img{
    width: 6%;
    height: 100%;
    margin-left: 2%;
    border-radius: 50%;
}
nav{
    display: flex;
    margin-left: auto;
    margin-right: 15px;
    gap: 20px;
}
nav>a{
    display: flex;
    text-decoration: none;
}
nav>a>p{
    display: flex;
    color: black;
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    font-size: medium;
    font-weight: bold;
}
nav>a:hover, nav>a>p:hover{
    text-decoration: underline rgb(0, 0, 0);
}
main>h1{
    margin: 15px;
}
#scroll-bar{
    width: 200%;
    height: fit-content;
    display: flex;
    padding: 8px;
    margin-top: 1%;
    margin-bottom: 1%;
    background-color: #fff;
}
.post{
    flex-shrink: 0;
    width: 200px;
    display: flex;
    border-radius: 5px;
    white-space: nowrap;
    padding: 3px;
    animation: slide 10s linear infinite;
}
.post1{
    flex-shrink: 0;
    width: 200px;
    display: flex;
    border-radius: 5px;
    white-space: nowrap;
    padding: 3px;
    animation: slide1 10s linear infinite;
}
@keyframes slide1{
    0%{
        left: 0%;
        transform: translateX(0%);
    }
    100%{
        left: 100%;
        transform: translateX(-605%);
    }
}

@keyframes slide{
    0%{
        left: 0%;
        transform: translateX(0);
    }
    100%{
        left: 100%;
        transform: translateX(-600%);
    }
} 
.post>p, .post1>p{
    width: 100px;
    margin-top: 15px;
    margin: 5px;
    text-decoration: none;
    color: black;
}
.post>p, .post1>p{
    margin-top: 15px;
}
#scroll-post, #scroll-post1{
    display: flex;
    width: min-content;
}
#scroll-post1{
    margin-left: 40px;
}
#post1, #post2, #post3, #post4{
    margin-left: 40px;
}
#post1>p, #post2>p, #post3>P, #post4>p, #post>P{
    width: 80px;
    font-size: large;
}
#post-img-scroll{
    width: 70%;
    height: 60px;
    border-radius: 5px;
    margin-left: 5px;
}
#pp{
    margin-left: 40px;
}
#p1{
    width: 98%;
    display: flex;
    flex-direction: column;
    margin: 2%;
    text-wrap: wrap;
}
#pimagea{
    width: 60%;
    height: 30%;
    margin-left: 100px;
    margin-right: 15px;
}
#pimage{
    width: 100%;
    align-self: center;
}
#p1>a{
    text-decoration: none;
    color: black;
}
#ptext{
    word-wrap: wrap;
    width: 90%;
    margin-left: 25px;
    margin-right: 15px;
}
#ptitle{
    font-size: xx-large;
    word-wrap: wrap;
    width: 90%;
    margin-bottom: 10px;
    margin-left: 25px;
}
#ptitle:hover{
    color: rgba(0, 0, 0, 0.404);
}
#mside{
    display: flex;
    
}
#posts{
    width: 75%;
    background-color: #fff;
}
#editor{
    word-wrap: wrap;
}
aside{
    width: 25%;
    margin-left: 4px;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5px;
    border-radius: 5px;
}

aside>a{
    color: black;
    font-size: larger;
    margin-top: 20px;
}
aside>a:hover{
    color: rgb(34, 34, 34);
}
footer{
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    background: #fcfafa;
    border-top: 1px solid black;
}


.comment-section{
    width: 100%;
    height: 20%;
    margin-top: 55px;
    border: 1px solid black;
}
.comment-section>h3{
    margin-left: 3%;
}
#comments-container{
    width: 100%;
    margin-left: 5%;
    
}

.comment-form{
    width: 100%;
    margin-left: 3%;
    display: block;
}
#comment-name{
    width: 40%;
    height: 40px;
    margin-bottom: 5px;
    display: block;
    border-radius: 5px;
}
#comment-text{
    width: 40%;
    height: 40px;
    margin-bottom: 5px;
    display: block;
    border-radius: 5px;
}
#submit-comment{
    width: 10%;
    height: 40px;
    margin-bottom: 5px;
    display: block;
    border-radius: 5px;
}

main{
    margin-left: 25px;
}
#hamburger{
    display: none;
}
img{
    width: 80%;
    margin-left: 5px;
    border-radius: 15px;
}
@media screen and (max-width: 767px) {
    *{
        width: 100%;
    }
    body{
        width: 100%;
        overflow-x: hidden;
    }
    html{
        width: 100%;
        overflow-x: hidden;
    }
    nav{
        width: 10%;
        margin-left: 0;
    }
    #mside{
        width: 90%;
        display: block;
    }
    aside{
        text-align: center;
        width: 100%;
    }
    main{
        width: 90%;
    }

    #posts{
        width: 100%;
        overflow-x: hidden;
    }
    #p1{
        margin-left: 0;
    }
    #ptitle{
        font-size: x-large;
        font-weight: 1000;
        width: 100%;
        margin-left: 15px;
    }
    #pimagea{
        margin-left: 15px;
    }
    #ptext{
        margin-left: 5px;
        width: 100%;
        font-size: large;
    }
    #scroll-bar{
        width: 100%;
        overflow-x: hidden;
    }
    header{
        width: 100%;
    }
    nav{
        display: flex;
        flex-direction: column;
        width: 100%;
    }
    #hamburger{
        width: 30px;
        display: flex;
        margin-left: auto;
    }
    #hamburg{
        background-image: url(images/hamburger.svg);
        width: 35px;
        height: 30px;
        border: 4px solid black;
        margin-left: auto;
        margin-right: 3%;
        margin-bottom: -90%;
    }
    nav>a{
        width: 90px;
        display: none;
        margin-left: auto;
        margin-right: 3%;
        z-index: 10;
        border: 1px solid black;
        background: white;
        text-align: center;
        margin-bottom: -90%;
        margin-top: 90%;
    }
    nav.active a{
        display: flex;
    }
    header>img{
        width: 60px;
        height: 60px;
    }
    #comments-container{
        width: 50%;
    }
    .comment-section{
        width: 95%;
    }
    #submit-comment{
        width: 100px;
    }
    footer{
        width: 95%;
    }
}