html {
    background-color: #161718;
    margin: 0;
    padding: 0;
    width: 100%;
}

body {
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    box-sizing: border-box;
    padding: 20px 40px;
    max-width: 100%;
    padding-bottom: 40px;
}

h1, h2 {
    margin: 0 0 15px;
}

a {
    color: #fff;
    font-weight: 700;
    text-transform: none;
    text-decoration: none;
}

input {
    color: #161718;
}

#form-mail, #result {
    margin: 20px 0;
    padding: 40px;
    border-radius: 10px;
    background-color: #fff;
    max-width: 80%;
    color: #161718;
}

#form-mail a {
    color: #161718;
}

#result {
    display: none;
}

footer {
    padding: 15px;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    background-color: rgba(0,0,0,0.3);
    box-sizing: border-box;
}

footer a {
    color: #ff1709;
}

label {
    width: 100%;
    display: inline-block;
    margin-bottom: 5px;
}

#form-mail > div > div {
    width: 49%;
}

.anonyme > div {
    width: 32% !important;
}

#form-mail input, #form-mail textarea {
    padding: 8px 12px;
    border-radius: 3px;
    border: 1px solid #d9d9d9;
    background-color: #ededed;
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
}

#form-mail textarea {
    min-height: 150px;
    min-width: 550px;
}

#form-mail .btn-send a, .reset a, .download a, .edit a {
    padding: 8px 16px;
    display: inline-block;
    background: transparent;
    color: #161718;
    border-radius: 500px;
    font-size: 18px;
    text-transform: uppercase;
    margin-top: 10px;
    border: 2px solid #161718;
    transition: all 0.3s ease-in-out;
}

#form-mail .btn-send a:hover {
    background-color: #ff1709;
    border-color: #ff1709;
    color: #fff;
}

.download a, .edit a {
    color: #161718;
    border-color: #161718;
}

.reset a {
    color: #fff;
    border-color: #fff;
}

.reset a:hover, .download a:hover, .edit a:hover {
    background-color: #ff1709;
    border-color: #ff1709;
    color: #fff;
}

.edit a {
    margin-right: 10px;
}

#form-mail > div {
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    width: 50%;
}

#form-mail > div > h2 {
    width: 100%;
}

p.result-mess {
    white-space: pre-wrap;
    margin-bottom: 0;
}

p.result-object {
    margin-top: 10px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #161718;
    font-weight: bold;
}

#result .expeditaire p {
    font-weight: 700;
    margin-bottom: 10px;
    display: inline-block;
    margin-top: 0;
}

#result .destinataire p {
    margin-top: 0;
    margin-bottom: 10px;
}

p.result-object span {
    font-weight: 400;
}

.footer-btn {
    display: flex;
    flex-flow: row wrap;
    align-items: center;
}

.download {
    margin-right: 10px;
}

#result {
    width: 800px;
    height: auto;
    box-sizing: border-box;
    max-width: 100%;
    position: relative;
    overflow: hidden;
}

section#result > * {
    width: 100%;
    box-sizing: border-box;
    z-index: 20;
}

section#result.image {
    margin: 0;
}

.reset {
    display: none;
}

#form-mail > div > div.anonyme {
    display: flex;
    width: 100%;
    max-width: 100%;
    flex-flow: row wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.anonyme > div {
    width: 50%;
}

#form-mail .anonyme input, #form-mail .anonyme label {
    width: auto;
}

#form-mail .anonyme h3 {
    display: inline-block;
    width: 100%;
    margin-bottom: 10px;
}

section#result > img {
    width: 50px;
    height: 50px;
    position: absolute;
    top: 40px;
    right: 40px;
}

#form-mail > .btn-send {
    margin-bottom: 0;
}

@media all and (max-width: 768px) {
    h1 {
        text-align: center;
        display: inline-block;
        width: 100%;
        margin-bottom: 0;
    }

    #form-mail textarea {
        max-width: 100%;
        min-width: 100%;
    }
    
    body {
        padding: 10px;
        margin: 0;
        padding-bottom: 40px;
    }
    
    #form-mail > div {
        width: 100%;
    }

    #result {
        padding: 20px;
    }
    
    section#result > img {
        width: 20px;
        height: 20px;
        top: 20px;
        right: 20px;
    }

    #form-mail, #result {
        margin: 10px 0;
        max-width: 100%;
    }
    
    #form-mail {
        padding: 20px;
    }

    h2 {
        margin-bottom: 10px;
    }
}