@import url('https://fonts.googleapis.com/css2?family=Anton&family=Lato:wght@400;900&display=swap');

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

[x-cloak] { display: none !important; }

body {
    font-family: 'Lato', sans-serif;
    background: url(../images/obidatti.jpeg) no-repeat center center fixed;
    background-size: cover;
}

header {
    position: relative;
    z-index: 999;
    max-width: 1024px;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

header img {
    width: 150px;
    margin-right: 15px;
}

header h2 {
    font-family: 'Anton', sans-serif;
    font-size: 51px;
    color: #019634;
    text-transform: uppercase;
    letter-spacing: 10px;
}

header p {
    width: 100%;
    text-align: center;
    font-size: 23px;
    margin-top: 10px;
    letter-spacing: 5px;
}

.container {
    display: flex;
    height: 80vh;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 999;
    margin: 0 auto;
    max-width: 1024px;
}

.form-group {
    margin-bottom: 25px;
}

.form-container {
    width: 50%;
}

.form-control {
    width: 100%;
    height: 45px;
    padding: 2px 20px;
    border-radius: 5px;
    border: 1px solid #019634;
    font-size: 18px;
}

.form-group .control-label {
    cursor: pointer;
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: #333;
    margin-bottom: 10px;
}

.custom-file {
    position: relative;
    display: inline-block;
    width: 100%;
    height: 45px;
    margin-bottom: 0;
    background: #fff;
    border: 1px solid #019634;
    border-radius: 5px;
}

input[type=file] {
    display: block;
}

.file-input-custom {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 45px;
    margin: 0;
    overflow: hidden;
    opacity: 0;
}

.custom-file-label {
    margin-bottom: 0;
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1;
    height: 45px;
    padding: 7px 20px;
    overflow: hidden;
    font-weight: 400;
    line-height: 1.5715;
    color: #333;
    background-color: transparent;
    border: 1px solid transparent;
    border-radius: 5px;
}

.custom-file-label::after {
    content: "Browse";
}

.custom-file-label::after {
    position: absolute;
    top: 0px;
    right: 0px;
    bottom: 0px;
    z-index: 3;
    display: block;
    height: 41px;
    padding: 7px 25px;
    color: #fff;
    content: "Browse";
    background-color: #019634;
    border-left: inherit;
    border-radius: 0 5px 5px 0;
}

.form-group.file {
    margin-top: 40px;
}

.custom-file-control {
    cursor: pointer;
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: #333;
    margin-top: -29px;
}

.result-container {
    width: 300px;
}

.imgPreview {
    max-width: 400px;
}

.sr-only {
    position: absolute;
    left: -9999px;
    width: 0;
    height: 0;
}

.overlay {
    position: fixed;
    background: rgba(255, 255, 255, .8);
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.btn {
    cursor: pointer;
    display: block;
    width: 100%;
    background: #ea0d03;
    border: 1px solid #ea0d03;
    color: #fff;
    border-radius: 5px;
    height: 45px;
    font-size: 18px;
    font-weight: 600;
    transition: all .2s ease-in-out;
}

.btn:hover {
    background: #019634;
    border-color: #019634;
}

footer {
    position: relative;
    z-index: 999;
    max-width: 1024px;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.footer-contact {
    width: 100%;
    margin: 0 auto;
    margin-bottom: 60px;
    text-align: center;
}

.footer-contact-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 45px;
    margin-top: 25px;
}

.footer-contact-header {
    font-weight: 600;
}

.footer-contact-content a {
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.footer-contact-content a i {
    background: #00acee;
    color: #fff;
    margin-right: 5px;
    border-radius: 50%;
    padding: 5px;
}

footer .copyright {
    letter-spacing: 5px;
}

.share-container {
    list-style: none;
    position: absolute;
    right: 40px;
    top: 20%;
}

.share-container li {
    display: block;
    margin-bottom: 20px;
    text-align: center;
}

.share-container .share-text {
    text-align: center;
    font-weight: 600;
    margin-bottom: 10px;
}

.share-container li a {
    color: #fff;
    background: transparent;
    font-size: 21px;
    border-radius: 50%;
    display: inline-block;
    height: 45px;
    width: 45px;
    line-height: 45px;
}

.share-container li a.facebook {
    background: #3b5998;
}

.share-container li a.twitter {
    background: #00acee;
}

.share-container li a.linkedin {
    background: #0077b5;
}

.share-container li a.whatsapp {
    background: #25d366;
}

.share-container li a.telegram {
    background: #0088cc;
}

.help-block {
    margin-top: 5px;
    display: block;
    font-size: 15px;
    margin-left: 5px;
    color: #999;
}

@media only screen and (max-width: 1000px) {
    header {
        display: block;
        text-align: center;
        margin: 20px auto;
    }

    header img {
        margin: 0;
        width: 100px;
    }

    header h2 { 
        font-size: 32px;
        letter-spacing: 4px;
    }

    header p {
        font-size: 14px;
        letter-spacing: 1px;
    }

    .container {
        display: block;
        margin: 20px 20px;
        height: 100%;
    }

    .form-container {
        width: 100%;
    }

    .result-container {
        width: 100%;
        margin: 20px 0;
    }

    .share-container {
        position: relative;
        left: 0;
        right: 0;
        top: 0;
        margin: 0 20px;
        text-align: center;
    }

    .share-container li {
        display: inline-block;
        margin-right: 20px;
    }

    .imgPreview {
        max-width: 100%;
    }

    footer {
        display: block;
        text-align: center;
        margin-top: 20px;
    }

    .footer-contact {
        margin-bottom: 20px;
    }

    footer .copyright {
        letter-spacing: 1px;
        font-size: 14px;
    }
}