html,body
{
    background: #e4e4e4;
}


#body
{
    main
    {
        @media(min-width:768px)
        {
            display: flex;
            flex-wrap:wrap;
            nav
            {
                width: 100%;
            }

            article
            {
                width: 70%;
                padding-right: 10px;
            }
            aside
            {
                padding-left:10px;
                width: 30%;
            }
        }
        @media(max-width: 767px)
        {

        }
        nav
        {
            width: 100%;
            margin-bottom:20px;
            padding-bottom:20px;
            border-bottom: 1px solid #ccc;
            ul
            {
                display: flex;
                li
                {
                    border-left: 1px solid #ccc;
                    a
                    {
                        display: block;
                        padding:0 10px;
                        color:#333;
                        font-weight: 100;
                        transition-duration: 0.5s;
                        &:hover
                        {
                            color:$main-color;
                        }
                    }
                    &:first-child
                    {
                        border-left: 0px;
                    }
                    &.active
                    {
                        a
                        {
                            color:$main-color;
                        }
                    }

                }
            }
        }
        article
        {
            section
            {
                margin-bottom: 20px;
                padding-bottom: 20px;
                border-bottom: 1px solid #ccc;
                a
                {
                    display: flex;
                    picture
                    {
                        width: 40%;
                        img
                        {
                            width: 100%;
                            display: block;
                        }
                    }
                    div
                    {
                        width: 60%;
                        padding-left: 10px;
                        h2
                        {
                            font-weight: 600;
                            font-size: 1.3em;
                            color:#333;
                            margin-bottom: 10px;
                            line-height: 150%;
                        }
                        time
                        {
                            color:#333;
                            font-size: 13px;
                            display: block;
                            margin-bottom: 10px;
                            i
                            {
                                margin-right: 5px;
                            }
                        }
                        p
                        {
                            line-height: 150%;
                            color:#333;
                            font-size:14px;
                            letter-spacing: 2px;
                        }
                    }
                }
            }


            #pagination
            {
                width: 100%;
                padding-top:50px;
                padding-bottom:50px;
                display: flex;
                justify-content:center;
                li
                {
                    padding:0 5px;
                    a
                    {
                        display: block;
                        width: 32px;
                        height: 32px;
                        text-align:center;
                        color:#333;
                        border:1px solid #333;
                        line-height: 30px;
                        border-radius: 5px;
                        transition-duration: 0.5s;
                        &:hover
                        {
                            background: $main-color;
                            border-color:$main-color;
                            color:#fff;
                        }
                    }
                    &.active
                    {
                        a
                        {
                            background: $main-color;
                            border-color:$main-color;
                            color:#fff;
                        }
                    }

                }
            }
        }
        aside
        {
            h2
            {
                font-weight: 600;
                font-size: 1.3em;
                color:#333;
                margin-bottom: 10px;
                line-height: 150%;
            }
            ul
            {
                li
                {
                    margin-bottom: 30px;
                    a
                    {
                        display: flex;
                        picture
                        {
                            width: 100px;
                            img
                            {
                                width: 100%;
                            }
                        }
                        div
                        {
                            padding-left: 10px;
                            width: calc(100% - 100px);
                            position: relative;
                            padding-bottom:20px;
                            span
                            {
                                color:#333;
                                display: block;
                                line-height: 150%;
                                letter-spacing: 1px;
                            }
                            time
                            {
                                position: absolute;
                                bottom:0px;
                                right: 0px;
                                color:#999;
                                font-size: 14px;
                            }
                        }
                    }
                }
            }
        }

    }
}
