*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: "Anaheim", sans-serif;
    margin: 0;
    background-image: url(img/woodtexture.jpg);
}

main {
    max-width: 1200px;
    margin: 20vh auto auto auto;
    padding: 10px;
}

h1 {
    text-align: center;
    font-family: "Diplomata SC", serif;
    color: white;
}

h2,
h3 {
    color: #4a2c20;
    font-family: "Smokum", serif;
}

.error {
    color: red;
}

.nav {
    display: flex;
    gap: 20px;
    padding: 15px 20px;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #38140485;
    z-index: 99;
    font-family: "Smokum", serif;
    color: white;
}

.nav h1 {
    margin: auto;
    order: -3;
}

.nav p {
    order: -4;
}

.nav .accueil {
    order: -2;
}

.nav .disconnect {
    order: 4;
}

.nav .profil {
    order: -4;
    margin-right: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.nav .archive {
    order: -1;
}

a,
input[type='submit'] {
    font-family: "Smokum", serif;
    font-size: medium;
    border: none;
    text-decoration: none;
    padding: 10px 20px;
    color: #642e17;
    transition: all ease 0.2s;
    background-color: transparent;
    border: #642e17 solid 2px;
}

a:hover,
input[type='submit']:hover {
    position: relative;
    top: 1px;
    background-color: #6a391044;
}

.subtle {
    border: none;
}

.nav a {
    border: none;
    background-color: transparent;
    transition: all ease 0.2s;
    color: white;
}

.nav a:hover {
    background-color: transparent;
    text-decoration: underline;
}

.post-wrapper {
    display: flex;
    flex-wrap: wrap;
    margin: 75px auto auto auto;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.post-card {
    padding: 30px;
    display: flex;
    flex-flow: column wrap;
    line-height: 1;
    width: 300px;
    background-image: url(img/paper.png);
    background-size: cover;
}

.post-card .button {
    text-align: center;
}

.preview {
    display: block;
    width: 250px;
    height: 16px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.date {
    color: #642e17;
    font-size: 0.8rem;
    margin: 0;
}

.papier {
    background-image: url(img/paper.png);
    background-size: cover;
    padding: 75px;
}

.papier h1 {
    color: #642e17;
}

.pfp_mini {
    width: 40px;
    height: 40px;
}

.comment_header {
    display: flex;
    align-items: center;
    gap: 20px;
}


.comment {
    background-color: antiquewhite;
    max-width: 800px;
    padding: 15px 20px;
    margin: 30px auto;
    overflow-wrap: break-word;
    color: #4a2c20;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
    position: relative;
}

.comment:before,
.comment:after {
    content: '';
    position: absolute;
    border: 2px dashed #8b4513;
    width: calc(100% - 20px);
    height: calc(100% - 20px);
    top: 5px;
    left: 5px;
    pointer-events: none;
}

.comment .text {
    margin-left: 60px;
}

.auteur {
    font-family: 'Smokum', serif;
}

label {
    font-family: "Smokum", serif;
    font-size: larger;
}

.login,
.signup,
.post {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    max-width: 500px;
    margin: auto;
    padding: 20px 50px;
    border: #8e3813 dashed 2px;
}

input[type='text'],
input[type='password'],
textarea {
    font-family: 'Anaheim', serif;
    height: 25px;
    border: solid #8e3813 1px;
    font-size: medium;
    padding: 5px;
}

textarea {
    height: 100px;
}

.comment textarea {
    width: calc(100% - 20px);
}

a:focus,
input:focus,
textarea:focus {
    outline: dashed #ffc400 2px;
    border: none;
    box-shadow: 0px 0px 5px 2px rgba(255, 196, 0, 0.6);
}

fieldset {
    display: flex;
    flex-direction: column;
    padding: 20px;
    border: #8e3813 dashed 2px;
    gap: 20px;
    background-color: antiquewhite;
}

.center {
    margin: 50px auto 0 auto;
    width: fit-content;
    padding: 25px;
}

.center a {
    margin-left: 20px;
}


.profile {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap-reverse;
    padding: 15px 20px;
    background-color: antiquewhite;
    position: relative;
}

.profile .info {
    width: 300px;
}

.profile:before,
.profile:after {
    content: '';
    position: absolute;
    border: 2px dashed #8b4513;
    width: calc(100% - 20px);
    height: calc(100% - 20px);
    top: 5px;
    left: 5px;
    pointer-events: none;
}

.profile .right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.profile-form {
    display: flex;
    justify-content: center;
}

.profile-form .pfp-form {
    text-align: center;
}

.buttons {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
}

.addpost {
    text-align: center;
}

div.responsive {
    overflow-x: auto;
}

table {
    max-width: 1000px;
    border-collapse: collapse;
    border: #4a2c20 double 5px;
    background-color: antiquewhite;
    margin: auto;
}

thead {
    background-color: #dac095;
}

th {
    font-family: 'Smokum', serif;
    color: #4a2c20;
}

th,
td {
    border: solid #4a2c20 1px;
    padding: 10px 15px;
}

tr:nth-of-type(even) {
    background-color: #f1e1c7;
}

strong {
    font-weight: 700;
}

.skull {
    display: block;
    width: 200px;
    margin: auto;
}

.text-center {
    text-align: center;
}

.nav .icon {
    display: none;
}

.icon img {
    width: 40px;
}

footer {
    background-color: #4a2c20;
    color: white;
    margin-top: 100px;
}

footer a {
    color: white;
    border: none;
}

footer a:hover {
    background-color: transparent;
    text-decoration: underline;
}

footer h3 {
    color: white;
    font-family: "Diplomata SC", serif;
    padding: 10px 20px;
}

footer li {
    list-style: none;
    margin-bottom: 5px;
}

footer ul {
    max-width: 1000px;
    margin: auto;
    padding: 0;
}

.copyright {
    margin-bottom: 0;
    text-align: center;
    padding-bottom: 10px;
}

@media screen and (max-width: 600px) {

    .nav a:not(.profil) {
        display: none;
    }

    .nav a.icon {
        float: right;
        display: block;
    }

    .nav.responsive {
        padding-top: 50px;
        display: flex;
        flex-direction: column;
    }

    .nav.responsive .profil {
        order: -3;
        margin: 0;
        flex-direction: column;
        text-align: center;
    }

    .nav.responsive a.icon {
        position: absolute;
        right: 40px;
        top: 0;
    }

    .nav.responsive a {
        float: none;
        display: block;
        text-align: left;
    }

    .profile-form {
        flex-direction: column;
    }
}