@font-face { 
    font-family: "NotoSerif";
    src: url(../font/NotoSerif-Regular.ttf) format("truetype");
}

html,
body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: #706574;
    user-select: none;
}

h1 {
    padding-top: 1rem;
    text-align: center;
    font-size: 4rem;
    font-family: "NotoSerif", serif;
    color: #dac5d8;
}

main {
    margin: 1rem auto;
    display: flex;
    justify-content: center;
    transition: all 0.2s ease;
}

footer {
    background-color: #564c58;
}

footer a {
    line-height: 1.5rem;
    padding-left: 0.4rem;
    font-size: 1rem;
    font-family: "NotoSerif", serif;
    color: #a59aa8;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
    color: #cabcce;
}

footer p#version {
    float: right;
    line-height: 1.5rem;
    padding-right: 0.4rem;
    font-size: 1rem;
    font-family: "NotoSerif", serif;
    color: #8b7d8f;
}

footer p#version span {
    font-size: 0.6rem;
    color: #7a6d7e;
    line-height: 0.6rem;
}

.wrap {
    width: 45rem;
    height: 25rem;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;

    position: relative;

    background-color: #9a83a0;
    border-radius: 10px;
    box-shadow: 2px 2px 10px hsla(0, 0%, 0%, 0.5);

    transition: all 0.2s ease;
}

.textWrap {
    margin-top: 1rem;
    padding: 0.5rem;
    width: 30rem;
    height: 9rem;
    background-color: white;
    border-radius: 0.4rem;
}

textarea#input {
    width: 100%;
    height: 100%;
    resize: none;
    border: none;
    outline: none;
    font-family: "NotoSerif", serif;
    color: #7a0d71;
    transition: font-size 0.1s ease;
}

.textSize1 {
    font-size: 3rem;
}

.textSize2 {
    font-size: 2rem;
}

.textSize3 {
    font-size: 1.5rem;
}

.textSize4 {
    font-size: 1.2rem;
}

textarea::selection {
    background-color: #c26fbb;
    color: white;
}

::-webkit-scrollbar {
    width: 0.4rem;
}

::-webkit-scrollbar-thumb {
    border-radius: 0.2rem;
    background-color: #7a0d71;
}

div#output {
    font-size: 4rem;
    font-family: "NotoSerif", serif;
    min-width: 20rem;
    height: 5rem;
    text-align: center;
    line-height: 5rem;

    color: #7a0d71;

    background: linear-gradient(to right, #9a83a0, #ffffff, #9a83a0);
    border-radius: 10rem/1rem;
}

#button {
    width: 12rem;
    height: 4rem;
    margin-bottom: 1rem;

    border: none;
    outline: none;
    background-color: #7a0d71;
    border-radius: 0.3rem;

    color: white;
    font-size: 2rem;
    font-family: "NotoSerif", serif;
    cursor: pointer;
    transition: all 0.05s ease;
}

#button:hover {
    background-color: #9c4a95;
}

#button:active {
    background-color: #af5fa8;
    font-size: 2.1rem;
    width: 13rem;
}

#file {
    display: none;
}

#fileLabel {
    background-color: #b89dbe;
    border-radius: 0 10px 0 0;
    color: #7a0d71;
    cursor: pointer;
    font-family: "NotoSerif", serif;
    position: absolute;
    left: 0;
    bottom: 0;
    font-size: 1.2rem;
    padding: 1rem;
    transition: all 0.1s ease;
}

#fileLabel:hover {
    background-color: #8d7294;
    color: #d1bccf;
}

#drop-area {
    background-color: #d3b3dbec;
    border: 0.4rem #9c4a95;
    border-style: dashed;
    position: absolute;
    box-sizing: border-box;
    width: 45rem;
    height: 25rem;
    border-radius: 10px;

    pointer-events: none;

    display: none;
}

#drop-area::after {
    position: absolute;
    content: "Drop text-file here";
    color: #7a0d71;
    font-family: "NotoSerif", serif;
    font-size: 4rem;
    top: 30%;
    left: 10%;
}

#sideButtons {
    position: absolute;
    padding: 1rem;
}

.sideButtons_wrap {
    background-color: #7a0d71;
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    border-radius: 10px;
    overflow: hidden;
}

.opaqueButton {
    background-color: transparent;
}

.sideButton {
    flex: 1;
    display: inline;
    padding: 0.2rem 0.2rem;
    text-align: center;
    font-size: 2rem;
    cursor: pointer;

    font-family: "NotoSerif", serif;
    color: white;

    transition: all 0.05s ease;
}

.sideButton:hover {
    background-color: #963d8e;
}

#clrInp:hover {
    background-color: #b16dab;
}

.sideButton:active,
#clrInp:active {
    background-color: #dda3d8;
    color: #814b7d;
}

@media screen and (min-width: 1500px) {
    .wrap {
        width: 60rem;
        height: 35rem;
    }

    .textWrap {
        width: 45rem;
        height: 15rem;
    }

    .textSize1 {
        font-size: 4.7rem;
    }
    
    .textSize2 {
        font-size: 3rem;
    }
    
    .textSize3 {
        font-size: 2.2rem;
    }

    .textSize4 {
        font-size: 1.7rem;
    }

    #button {
        width: 19rem;
        height: 6rem;
        font-size: 3rem;
    }

    #button:active {
        font-size: 3.1rem;
        width: 20rem;
    }
}

@media screen and (max-width: 760px) {
    .wrap {
        width: auto;
        transition: all 0.2s ease;
    }
}

@media screen and (max-width: 550px) {
    main, .wrap {
        width: 100%;
        transition: all 0.2s ease;
    }

    .textWrap {
        width: 95%;
    }

    textarea#input {
        font-size: 2rem;
    }

    div#output {
        min-width: 10rem;
        font-size: 2.5rem;
        height: 2.5rem;
        line-height: 2.5rem;
        margin-bottom: 1rem;
    }

    #fileLabel {
        position: relative;
        border-radius: 0;
        margin-bottom: 1rem;
        width: 80%;
        text-align: center;
    }
}

@media screen and (max-width: 450px) {
    h1 {
        font-size: 3rem;
    }

    .wrap {
        height: 28rem;
        transition: all 0.2s ease;
    }

    .textWrap {
        height: 12rem;
    }
}

@media screen and (max-width: 350px) {
    h1 {
        font-size: 2rem;
    }
}