:root {
    --background: #1e222b; /* #d9f9b1; /*#AABFC8; /*rgba(122, 157, 172, 0.644); */
    --black:      #333;
    --duration:   0.4s;
    --fly-begin:  -30px;
    --tip-time:   3s;
    --width:
    min(90vw, 400px);
    --input-bg: #353942;
}

* {
    box-sizing:  border-box;
    font-weight: 100;
    font-family: Kalam, Gill Sans, Roboto;
    /* font-size: 16px;
    line-height: 1.5em; */
    color: #dadcde;
}

html {
    background: var(--background);
    transition: background 0.3s;
}

h1 {
    margin: 7px 0;
    font-size: 22px;
    font-weight: 500;
    text-align: center;
}
body {
    margin: 10px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    /* justify-content: center; */
    height: 100vh;
    padding-top: 3vh;
}
body > * {
    width: var(--width);
    line-height: 30px;
}
img {
    width: min(200px, 40vw);
}
#done {
    width: min(70vw, 400px);
    position: absolute;
    display: flex;
    flex-direction: column;
    background: white;
    padding: 20px;
    border-radius: 10px;
    /* animation: fly 1.2s cubic-bezier(0.1, 0.7, 1.0, 0.5) forwards; */
    display: none;
    justify-content: center;
    align-items: center;
}
#done img {
    width: 80px;
}
#done.fly {
    display: flex;
    animation: fly 2.8s ease-in-out forwards; 
}
#done p {
    color: black;
    font-size: 20px;
    font-weight: 400;
    margin: 10px;
    text-align: center;
}
@keyframes fly {
    from {
        top: 28vh;
        opacity: 0;
    }
    30% {
        opacity: 1;
        transform: scale(1);
        /* top: 26vh; */
    }
    70% {
        opacity: 1;
        top: 24vh;
    }
    to {
        top: 22vh;
        opacity: 0;
        /* transform: scale(0.92); */
    }
  }
input, button, textarea {
    background-color: var(--input-bg);
    padding: 8px 10px;
    outline: none;
    resize: vertical;
}
input, textarea {
    border: none;
    border-radius: 5px;
    font-size: 17px;
}
textarea {
    height: 120px;
}
button {
    background: linear-gradient(45deg, #764be0, #4654de);
    border-radius: 4px;
    color: white;
    border: none;
    font-size: 20px;
    font-weight: 400;
    line-height: 32px;
    /* width: 300px; */
    margin-top: 10px;
}
[disabled] {
    opacity: 0.5;
}
