body {
    background-color: #fffdf9;
    font-family: "Instrument Serif", serif;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#logo {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: .2;
    top: 35px;
    animation: appear .5s forwards;
    cursor: default;
}

#gradient {
    width: 200px;
    height: 150px;
    border-radius: 170px;
    background-color: #C8A6F1;
    filter: blur(40px);
    position: absolute;
    top: 25px;
    z-index: -1;
}

#userinput {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    top: 200px;
    background-color: #fffdf9;
    box-shadow: 2px 2px 65px #c8a6f1a6, inset 0px 0px 12px #0e051938 ;
    width: 500px;
    height: 250px;
    border-radius: 15px;
    transition: .43s;
}

#userinput:hover {
    scale: 1.04;
    box-shadow: 2px 2px 35px #c8a6f1a6, inset 0px 0px 12px #0e051938 ;
}

#userinput button {
    position: absolute;
    right: 20px;
    bottom: 18px;
    transition: .4s;
}

button:active {
    scale: .9;
}

#userinput textarea {
    padding: 10px 10px;
    width: 435px;
    height: 143px;
    position: absolute;
    background-color: transparent;
    border-radius: 5px;
    border-color: rgba(227, 227, 227, 0.835);
    top: 18px;
    resize: none;
    transition: .2s;
    font-family: "Instrument Serif", serif;
    font-size: 25px;
}

#userinput textarea:focus {
    border-color: #c99cfd9d;
    outline: none;
}

button {
    color: white;
    font-family: "Instrument Serif", serif;
    padding: 4px 35px;
    background-color: #B478FA;
    border: none;
    border-radius: 25px;
    font-size: 25px;
    cursor: pointer;
    box-shadow: inset 5px -7px 4px 0 rgba(12, 12, 12, 0.25), 2px 2px 30px rgba(0, 0, 0, 0.027);
}

#loading {
    display: none;
    position: absolute;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    backdrop-filter: blur(30px);
    z-index: 1000;
    flex-direction: column;
    align-items: center;
    transition: .3s;
    animation: open .2s forwards;
}

#loading h1 {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    font-size: 50px;
}

#result {
    display: none;
    position: absolute;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    backdrop-filter: blur(30px);
    z-index: 1000;
    flex-direction: column;
    align-items: center;
    transition: .3s;
    animation: open .2s forwards;
}

#result .text {
    font-size: 30px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#preview {
    position: relative;
    top: 30px;
    margin: 0 auto;        
    width: 90vw;
    height: 90vh;
    border-radius: 12px;
    border: none;
    box-shadow: 2px 2px 100px #b578fa46;
}

#downloadbtn {
    position: fixed; 
    bottom: 5px; 
    right: 5px;
    color: white;
    font-family: "Instrument Serif", serif;
    padding: 4px 35px;
    background-color: #B478FA;
    border: none;
    border-radius: 25px;
    font-size: 25px;
    cursor: pointer;
    text-decoration: none;
    box-shadow: inset 5px -7px 4px 0 rgba(12, 12, 12, 0.25), 2px 2px 30px rgba(0, 0, 0, 0.027);
}

#downloadbtn:active {
    scale: .9;
}

@keyframes open {
    0% {
        opacity: 0;
    } 100% {
        opacity: 1;
    }
}

@keyframes appear {
    0% {
        opacity: 0;
        scale: .5;
    } 100% {
        opacity: 1;
        scale: 1;
    }
}
