body {
    font-family: 'Courier New', Courier, monospace;
    margin: 0;
    background-image: url(img/bg.jpg);
    background-attachment: fixed;

    background-size: cover;
}

@property --rotate {
    syntax: "<angle>";
    initial-value: 132deg;
    inherits: false;
}

h1 {
    text-align: center;
    color: aliceblue;
    font-size: 50px;
}


.esperluette {
    font-size: 80px;
    color: white;
    text-shadow: 1px 1px 2px blue, 1em 1em 1em #84dae7, 0 0 0.2em #84dae7;
}

.shareTitle {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.shareTitle h3 {
    margin: 0;
}

.shareTitle img {
    height: 40px;
    width: auto;
}

#input, #output {
    width: 100%;
    height: 4rem;
}

.inputEncode {
    padding-top: 2rem;
}






.share, .encode {
    position: relative;
    max-width: 600px;
    margin: 4rem auto;
    padding: 3rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;

}

.share:hover, .encode:hover {
    transform: scale(1.02);
    transition: transform 0.3s ease, box-shadow 0.3s ease;

}

.share::before, .encode::before {
    content: "";
    width: 104%;
    height: 102%;
    border-radius: 8px;
    filter: blur(15px);
    background-image: linear-gradient(var(--rotate), #5ddcff, #3c67e3 43%, #4e00c2);
    position: absolute;
    z-index: -1;
    top: -1%;
    left: -2%;
    animation: spin 3.5s linear infinite;
    opacity: 1;
    transition: opacity .5s;

}

.share:hover::before, .encode:hover::before {
    animation: none;
    opacity: 0;
}


@keyframes spin {
    0% {
        --rotate: 0deg;
    }

    100% {
        --rotate: 360deg;
    }
}


.share h3 {
    margin-bottom: 10px;
    font-size: 2rem;
}

.share .subjet,
.share .body,
.share .link {
    margin-bottom: 15px;
}

.share input[type="text"],
.share input[type="url"] {
    width: calc(100% - 10px);
    height: 3rem;
    padding: 8px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 3px;
}


button {
    margin: 1rem;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    text-align: center;
    outline: none;
    color: #fff;
    background-color: #2a2aff;
    border: none;
    border-radius: 5px;
    box-shadow: 0 5px 3px #999;
}

button:hover {
    background-color: #582db0;
}

button:active {
    background-color: #5c62f3;
    box-shadow: 0 2px 1px #666;
    transform: translateY(4px);
}

.button-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#Result {
    margin-top: 20px;
}


@media screen and (max-width: 768px) {
    h1 {
        font-size: 15px;
    }

    .esperluette {
        font-size: 25px;
    }

    .share, .encode {
        margin: 2rem 1rem;
        padding: 2rem;
    }

    .shareTitle {
        flex-direction: column;
        align-items: center;
    }

    .shareTitle h3, .shareTitle img {
        margin-bottom: 10px;
    }

    .button-container {
        width: 100%;
    }

    button {
        width: calc(100% - 20px);
        margin: 10px;
    }

    .share input[type="text"],
    .share input[type="url"] {
        width: 100%;
    }


}