html {
    background-color: #42464d;
}

.title {
    margin-top: 50px;
    font-size: 500%;
    box-sizing: border-box;
    text-align: center;
    color: white;
    font-family: Calibri, serif;
}

#textarea-label {
    height: 50vh;
    width: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

#buttons_container button {
    font-family: Calibri, serif;
    background-color: orange;
    border-radius: 4px;
    box-sizing: border-box;
    width: 25%;
    height: 40px;
    min-width: 80px;
    min-height: 10%;
    max-width: 150px;
    max-height: 40px;
    margin: 15px;
    border: 0;
    font-size: 100%;
    transition: 0.2s all;
    box-shadow: 7px 6px 28px 1px rgba(0, 0, 0, 0.24);
    outline: none;
}

#buttons_container button.disabled {
    background-color: #aaa;
    color: #444;
}

#buttons_container button.disabled.shake {
    animation: shake 0.82s cubic-bezier(.36,.07,.19,.97) both;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    perspective: 1000px;
}

@keyframes shake {
    10%, 90% {
        transform: translate3d(-1px, 0, 0);
    }

    20%, 80% {
        transform: translate3d(2px, 0, 0);
    }

    30%, 50%, 70% {
        transform: translate3d(-4px, 0, 0);
    }

    40%, 60% {
        transform: translate3d(4px, 0, 0);
    }
}

#buttons_container button.enabled {
    cursor: pointer;
}

#buttons_container button.enabled:hover {
    color: white;
    background-color: darkorange;
}

#buttons_container button.enabled:active {
    color: white;
    transform: scale(0.98);
    /* Scaling button to 0.98 to its original size */
    box-shadow: 3px 2px 22px 1px rgba(0, 0, 0, 0.24);
    /* Lowering the shadow */
}

#buttons_container {
    width: 100%;
    display: flex;
    align-content: center;
    justify-content: center;
}

#main-container {
    display: flex;
    flex-flow: column;
    align-items: center;
}

@keyframes textarea-focus {
    from {
        border: 0;
        border-radius: 20px;
        background-color: #aaa;
        padding-top: 20px;
        padding-left: 20px;
        height: 20%;
        width: 50%;
        color: black;
    }
    to {
        border: 2px solid orange;
        border-radius: 5px;
        background-color: #36394F;
        padding-top: 5px;
        padding-left: 5px;
        height: 100%;
        width: 90%;
        color: white;
    }
}

@keyframes textarea-focusout {
    from {
        color: white;
        border: 2px solid orange;
        border-radius: 5px;
        background-color: #36394F;
        padding-top: 5px;
        padding-left: 5px;
        height: 100%;
        width: 90%;
    }
    to {
        border: 0;
        border-radius: 20px;
        background-color: #aaa;
        padding-top: 20px;
        padding-left: 20px;
        height: 20%;
        width: 50%;
        color: black;
    }
}

textarea {
    caret-color: orange;
    font-family: Calibri, serif;
    pointer-events: auto;
    border: 0;
    border-radius: 20px;
    background-color: #aaa;
    padding-top: 20px;
    padding-left: 20px;
    height: 20%;
    width: 50%;
    resize: none;
    box-sizing: border-box;
    font-size: 18px;
    color: black;
    outline: none;
    cursor: auto;
}

textarea:focus {
    animation: textarea-focus 400ms forwards;
}

textarea.focusout {
    animation: textarea-focusout 400ms forwards;
}

::-webkit-scrollbar {
    width: 10px;
}

/* Track */
::-webkit-scrollbar-track {
    background: #bbb;
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: #888;
    cursor: grab;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: #999;
}

textarea::placeholder {
    color: #ddd;
    font-size: 22px;
}

/* The snackbar - position it at the bottom and in the middle of the screen */
#snackbar {
    visibility: hidden;
    min-width: 250px; /* Set a default minimum width */
    margin-left: -125px; /* Divide value of min-width by 2 */
    background-color: #7b6ecb;
    color: #ddd;
    font-family: Calibri, serif;
    text-align: left;
    border-radius: 5px; /* Rounded borders */
    padding: 10px 10px;
    position: fixed; /* Sit on top of the screen */
    z-index: 1; /* Add a z-index if needed */
    left: 50%; /* Center the snackbar */
    bottom: 100px;
    /*text-shadow: 1px 1px #555;*/
    display: flex;
    justify-content: space-between;
    align-content: center;
    align-items: center;
}

#snackbar div,
#close {
    cursor: pointer;
    background-color: #9282d8;
    border: 1px solid rgb(242, 230, 255);
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

#close {
    width: 40px;
    height: 40px;
}

#snackbar.show {
    visibility: visible;
    animation: fadein 0.5s;
}

#snackbar.hide {
    visibility: visible;
    animation: fadeout 0.5s;
}

@keyframes fadein {
    from {
        bottom: 0;
        opacity: 0;
    }
    to {
        bottom: 100px;
        opacity: 1;
    }
}

@keyframes fadeout {
    from {
        bottom: 100px;
        opacity: 1;
    }
    to {
        bottom: 0;
        opacity: 0;
    }
}

/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content/Box */
.modal-content {
    display: flex;
    background-color: #7b6ecb;
    border-radius: 15px;
    margin: 25% auto; /* 15% from the top and centered */
    border: 1px solid #888;
    width: 25%; /* Could be more or less, depending on screen size */
    height: 25%;
    align-items: center;
    align-content: center;
    justify-content: center;
    flex-direction: column;
}

.modal-content p {
    margin-bottom: 2px;
    font-size: 25px;
    color: white;
    font-family: Calibri, serif;
}

.modal-content input {
    background-color: #9282d8;
    color: white;
    font-family: Calibri, serif;
    font-size: 18px;
    outline: none;
    border: 0;
    box-sizing: border-box;
}

.modal-content input:focus {
    border: 1px solid pink;
}

.modal-content input::placeholder {
    color: #bbb;
}

.modal-content button {
    cursor: pointer;
    margin-top: 15px;
    font-family: Calibri, serif;
    height: 30px;
    width: 150px;
    background-color: pink;
    border-radius: 4px;
    box-sizing: border-box;
    border: 0;
    transition: 0.2s all;
    box-shadow: 7px 6px 28px 1px rgba(0, 0, 0, 0.24);
    outline: none;
}

.modal-content button:hover {
    border: 1px solid #42464d;
}

/* The Close Button */
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}