﻿* {
    box-sizing: border-box;
}

html, body {
    min-height: 100vh;
    padding: 0;
    margin: 0;
    font-family: Roboto, Arial, sans-serif;
    font-size: 14px;
    color: #666;
}

input, textarea {
    outline: none;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 20px;
    background: #5a7233;
}

h1 {
    color: white;
}

body > div {
    color: white;
}

a {
    color: white;
    font-weight: 500;
}

#sentence_region {
    display: block;
    position: relative;
    width: 100%;
    padding: 15px;
    margin-bottom: 10px;
    border: none;
    border-radius: 20px;
    background: white;
    color: black;
    min-height: 10ex;
    overflow-x: auto;
    white-space: nowrap;
}

#string_to_classify {
    font-weight: 400;
    font-size: 20px;
}

#classification_output {
    padding-top: 2em;
    padding-bottom: 0.5em;
    text-align: center;
    font-size: 1.5em;
}

#classification_details {
    padding-top: 1.5em;
    font-size: 0.8em;
    text-align: center;
    visibility: collapse;
}

.token {
    /*border: 1px solid grey;*/
}

.bars {
    /*border:dashed 2px magenta;*/
    width: 100%;
    padding: 1px;
}

.bar {
    display: inline-block;
    border-width: 4px;
    border-style: solid;
    margin-right: 2px;
}

.barUpper {
    vertical-align: bottom;
    border-bottom-width: 0 !important;
}

.barLower {
    vertical-align: top;
    border-top-width: 0 !important;
}

.example {
    font-weight: bold;
}

.example::after {
    content: " <- Try it!";
    font-weight: normal;
}

.example:hover {
    text-decoration: underline;
    cursor: pointer;
}

form {
    position: relative;
    width: 80%;
    border-radius: 30px;
    background: #d0dfe8;
    margin-top: 2em;
    margin-bottom: 2em;
}

    form h2 {
        margin-top: 0;
        font-weight: 500;
    }

.form-left-decoration,
.form-right-decoration {
    content: "";
    position: absolute;
    width: 50px;
    height: 20px;
    border-radius: 20px;
    background: #5a7233;
}

.form-left-decoration {
    bottom: 60px;
    left: -30px;
}

.form-right-decoration {
    top: 60px;
    right: -30px;
}

    .form-left-decoration:before,
    .form-left-decoration:after,
    .form-right-decoration:before,
    .form-right-decoration:after {
        content: "";
        position: absolute;
        width: 50px;
        height: 20px;
        border-radius: 30px;
        background: #fff;
    }

.form-left-decoration:before {
    top: -20px;
}

.form-left-decoration:after {
    top: 20px;
    left: 10px;
}

.form-right-decoration:before {
    top: -20px;
    right: 0;
}

.form-right-decoration:after {
    top: 20px;
    right: 10px;
}

.circle {
    position: absolute;
    bottom: 80px;
    left: -55px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
}

.form-inner {
    padding: 40px;
}


button.classify {
    width: 100%;
    padding: 10px;
    margin-top: 20px;
    border-radius: 20px;
    border: none;
    border-bottom: 4px solid #3e4f24;
    background: #5a7233;
    font-size: 16px;
    font-weight: 400;
    color: #fff;
}

    button.classify:hover {
        background: #3e4f24;
    }

.collapsible {
    all: unset;
    cursor: pointer;
    text-align: center;
}

.collapsible::before{
    content: "Show ";
}

.collapsible.active::before{
    content: "Hide ";
}

.collapsible:hover {
    text-decoration: underline;
}

@media (min-width: 568px) {
    form {
        width: 60%;
    }
}
