body{
background-color: #D6D0C8;
background-image: url('https://i.imgur.com/Wg5ki1C.png');
margin-top: 0px;
}
 
#all{
width: 660px;
position: relative;
left: 10%;
}
 
#header{
background-image: url('https://i.imgur.com/jupbmhn.png');
background-color: #4E4B44;
color: #d9d3c5;
font-family: 'Special Elite', serif;
border-radius: 0px 0px 7px 7px;
width: 460px;
height: 105px;
margin-left: 12px;
box-shadow: 5px 5px #302A27;
}
 
#header h1{
margin: 0px;
font-weight: normal;
text-align: center;
font-size: 40px;
line-height: 105px;
text-shadow: 3px 3px #302A27;
}

#header p{
margin: 0px;
font-weight: normal;
text-align: center;
font-size: 24px;
line-height: 60px;
text-shadow: 3px 3px #302A27;
}
 
#img {
position: absolute;
top: 30px;
right: 2px;
max-width: 20%;
max-height: 30%;
z-index: 2;
}
 
#maincontainer{
width: 520px;
}
 
.postcontainer{
width: 520px;
position: relative;
top: 65px;
color: #302A27;
}
 
.icon{
width: 100px;
height: 100px;
box-shadow: 4px 4px #4E4B44;
position: absolute;
top: -45px;
z-index: 3;
}
 
.post{
background-image: url(https://i.imgur.com/bm02JPx.png);
background-color: #faf7f5;
width: 480px;
box-shadow: 5px 5px #302A27;
margin-top: 55px;
margin-left: 35px;
}
 
.subheaders{
text-align: right;
padding: 5px 5px 0px 0px;
margin: 0px;
font-weight: normal;
font-family: 'Special Elite', serif;
font-size: 20px;
 
}
 
.date{
text-align: right;
padding: 0px 5px 0px 0px;
margin: 0px;
font-weight: normal;
font-family: 'Special Elite', serif;
font-size: 14px;
text-decoration: underline;
text-decoration-style: dashed;
}
 
.posttext{
padding: 15px;
text-align: justify;
letter-spacing: 1px;
}
 
::-webkit-scrollbar{
width: 6px; 
}
 
::-webkit-scrollbar-track{
background-color: #302a27;
}
 
::-webkit-scrollbar-thumb{
background-color: #615955;
}
 
#credit{
font-size: 12px;
position: fixed;
bottom: 0;
right: 0;
}
 
#nav{
position: fixed;
top: 0px;
right: 7%;
width: 145px;
background-image: url('https://i.imgur.com/jupbmhn.png');
background-color: #4E4B44;
border-radius: 0px 0px 7px 7px;
text-align: center;
font-family: 'Special Elite', serif;
box-shadow: 2px 3px #302A27;
}
 
ul{
padding: 0px;
margin: 0px;
}
 
li{
list-style-type: none;
margin: 7px 0;
text-shadow: 2px 2px #302A27;
}
 
a{
color: #d9d3c5;
text-decoration: none;
}
 
a:visited{
color: #d9d3c5;
}
 
a:hover{
color: #d9d3c5;
font-style: italic;
}
 
a:active{
color: #d9d3c5;
font-style: italic;
font-weight: bold;
}

@media screen and (max-width: 700px) {

    html {
        overflow-x: hidden;
    }

    body {
        margin: 0;
        padding: 0;
        background-size: auto;
        overflow-x: hidden;
    }

    #all {
        width: 100%;
        max-width: 100%;
        left: 0;
        margin: 0;
        padding: 55px 12px 30px;
        box-sizing: border-box;
    }

    #nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;

        width: 100%;
        box-sizing: border-box;

        border-radius: 0 0 7px 7px;

        padding: 5px 8px;

        z-index: 1000;

        display: flex;
        justify-content: center;
        align-items: center;
    }

    #nav ul {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;

        gap: 5px 18px;

        width: 100%;
    }

    #nav li {
        margin: 5px 0;
        font-size: 14px;
    }

    #header {
        width: 100%;
        height: auto;
        min-height: 85px;

        margin: 0;
        box-sizing: border-box;

        border-radius: 0 0 7px 7px;
    }

    #header h1 {
        font-size: clamp(25px, 7vw, 34px);
        line-height: 1.2;

        padding: 18px 8px;
    }

    #header p {
        font-size: 18px;
        line-height: 1.4;
        padding: 0 8px 12px;
    }

    #img {
        position: relative;
        display: block;

        top: auto;
        right: auto;

        max-width: 55%;
        max-height: 150px;

        margin: 20px auto;
        object-fit: contain;
    }

    #maincontainer {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .postcontainer {
        width: 100%;
        max-width: 100%;

        top: 0;
        margin: 0;
        box-sizing: border-box;
    }

    .icon {
        width: 72px;
        height: 72px;

        top: -30px;
        left: 8px;

        object-fit: cover;
    }

    .post {
        width: 100%;
        max-width: 100%;

        box-sizing: border-box;

        margin: 50px 0 35px;
        padding: 0;

        box-shadow: 3px 3px #302A27;
    }

    .subheaders {
        font-size: 18px;

        padding: 10px 10px 0 88px;
    }

    .date {
        font-size: 12px;
        padding-right: 10px;
    }
    .posttext {
        padding: 12px;

        font-size: 14px;
        line-height: 1.6;

        letter-spacing: 0.4px;
        text-align: left;

        overflow-wrap: anywhere;
    }

    ::-webkit-scrollbar {
        width: 4px;
        height: 4px;
    }

    #credit {
        position: relative;

        bottom: auto;
        right: auto;

        margin-top: 25px;
        padding: 10px;

        text-align: center;
    }
}

@media screen and (max-width: 380px) {

    #all {
        padding-left: 8px;
        padding-right: 8px;
    }

    #nav ul {
        gap: 4px 12px;
    }

    #nav li {
        font-size: 12px;
    }

    #header h1 {
        font-size: 25px;
    }

    #header p {
        font-size: 15px;
    }

    .icon {
        width: 60px;
        height: 60px;
        top: -25px;
    }

    .subheaders {
        font-size: 16px;
        padding-left: 76px;
    }

    .posttext {
        font-size: 13px;
        padding: 10px;
    }
}