body{
background-color: #D6D0C8;
background-image: url('https://i.imgur.com/Wg5ki1C.png');
margin-top: 0px;
font-family: "Cutive", Georgia, serif;
font-size: 13px;
color: #302A27;
}

#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;
}

#maincontainer{
width: 520px;
position: relative;
top: 65px;
color: #302A27;
}

#maincontainer h2{
margin: 55px 0 0px;
padding: 0px 5px 0px 0px;
text-align: right;
font-family: 'Special Elite', serif;
font-size: 20px;
font-weight: normal;
text-decoration: underline;
text-decoration-style: dashed;
}

.intro{
background-image: url(https://i.imgur.com/bm02JPx.png);
background-color: #faf7f5;
width: 480px;
box-shadow: 5px 5px #302A27;
margin-top: 0px;
margin-left: 35px;
}

.intro p{
margin: 0px;
padding: 15px;
text-align: justify;
letter-spacing: 1px;
}

.projects-list{
display: block;
}

.project-card{
position: relative;
display: block;
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;
margin-bottom: 40px;
}

.project-card__logo{
display: block;
width: 100px;
height: 100px;
box-shadow: 4px 4px #4E4B44;
position: absolute;
top: -45px;
left: -35px;
z-index: 3;
object-fit: cover;
background-color: #faf7f5;
}

.project-card__logo--empty{
display: flex;
align-items: center;
justify-content: center;
color: #d9d3c5;
background-color: #4E4B44;
background-image: url('https://i.imgur.com/jupbmhn.png');
font-family: 'Special Elite', serif;
font-size: 36px;
text-shadow: 2px 2px #302A27;
}

.project-card__title{
text-align: right;
padding: 5px 5px 0px 0px;
margin: 0px;
font-weight: normal;
font-family: 'Special Elite', serif;
font-size: 20px;
}

.project-card__description{
margin: 0px;
padding: 15px 15px 8px;
text-align: justify;
letter-spacing: 1px;
}

.project-card__meta{
display: flex;
flex-wrap: wrap;
justify-content: flex-end;
align-items: center;
gap: 10px;
padding: 0px 15px 12px;
}

.project-status{
font-family: 'Special Elite', serif;
font-size: 14px;
text-decoration: underline;
text-decoration-style: dashed;
}

.project-link{
display: inline-block;
padding: 4px 12px;
background-color: #4E4B44;
background-image: url('https://i.imgur.com/jupbmhn.png');
border-radius: 0px 0px 7px 7px;
font-family: 'Special Elite', serif;
font-size: 14px;
text-shadow: 2px 2px #302A27;
box-shadow: 2px 3px #302A27;
}

.message{
margin: 0px 0px 12px 35px;
font-size: 12px;
}

.message:empty{
display: none;
}

.message--error{
color: #7b2520;
}

::-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;
font-size: 16px;
}
 
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;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 5px 18px;
    }

    #nav a {
        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 {
        margin: 0px;
        font-weight: normal;
        text-align: center;
        font-size: 24px;
        line-height: 60px;
        text-shadow: 3px 3px #302A27;
    }

    #maincontainer {
        width: 100%;
        max-width: 100%;
        top: 0;
        margin: 0;
        box-sizing: border-box;
    }

    #maincontainer h2 {
        margin-top: 35px;
        font-size: 18px;
    }

    .intro {
        width: 100%;
        max-width: 100%;
        margin: 0;
        box-sizing: border-box;
        box-shadow: 3px 3px #302A27;
    }

    .intro p {
        padding: 12px;
        font-size: 14px;
        line-height: 1.6;
        letter-spacing: 0.4px;
        text-align: left;
        overflow-wrap: anywhere;
    }

    .project-card {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin: 50px 0 35px;
        padding: 0;
        box-shadow: 3px 3px #302A27;
    }

    .project-card__logo {
        width: 72px;
        height: 72px;
        top: -30px;
        left: 8px;
    }

    .project-card__title {
        font-size: 18px;
        padding: 10px 10px 0 88px;
    }

    .project-card__description {
        padding: 12px;
        font-size: 14px;
        line-height: 1.6;
        letter-spacing: 0.4px;
        text-align: left;
        overflow-wrap: anywhere;
    }

    .project-card__meta {
        padding: 0 12px 12px;
    }

    .project-status {
        font-size: 12px;
    }

    .message {
        margin-left: 0;
    }

    ::-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 {
        gap: 4px 12px;
    }

    #nav a {
        font-size: 12px;
    }

    #header h1 {
        font-size: 25px;
    }

    #header p {
        font-size: 13px;
    }

    .project-card__logo {
        width: 60px;
        height: 60px;
        top: -25px;
    }

    .project-card__title {
        font-size: 16px;
        padding-left: 76px;
    }

    .project-card__description {
        font-size: 13px;
        padding: 10px;
    }
}