:root {
    --color-main: #ffd400;
    --color-darkgrey: #5f5d5d;
    --color-lightgrey: #ebebeb;
    --color-transgrey: #5f5d5d23;
    --color-red: #ff4550;
    --color-green: #49ce7a;
    --color-brightblue: #0a76ff;
    --color-mediumgrey: #888888;
    --color-transwhite: rgba(255, 255, 255, 0.97);
    --color-transred: rgba(255, 69, 80, 0.85);
}


@font-face {
    font-family: 'YaleSolisW-Lt';
    src: url('../fonts/YaleSolisW-Lt/YaleSolisW-Lt.woff2') format('woff2'),
         url('../fonts/YaleSolisW-Lt/YaleSolisW-Lt.woff') format('woff');
    font-weight: normal;
    font-style: normal;

}
@font-face {
    font-family: 'YaleSolisW-Rg';
    src: url('../fonts/YaleSolisW-Rg/YaleSolisW-Rg.woff2') format('woff2'),
         url('../fonts/YaleSolisW-Rg/YaleSolisW-Rg.woff') format('woff');
    font-weight: normal;
    font-style: normal;

}
@font-face {
    font-family: 'YaleSolisW-Bd';
    src: url('../fonts/YaleSolisW-Bd/YaleSolisW-Bd.woff2') format('woff2'),
         url('../fonts/YaleSolisW-Bd/YaleSolisW-Bd.woff') format('woff');
    font-weight: normal;
    font-style: normal;

}

body {
    background-image: url(../img/landing_bg.jpg);
    background-repeat: no-repeat;
    background-position: left center;
}

.client {
    background-image: url(../img/yale-instala-logo-dark.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: left;
    margin-left: 1em;
    width: 9em;
    height: 46px;
}

#wrapper {
    width: 900px;
    margin: auto;
    background-color: rgba(0, 0, 0, 0.4);
    height: 100vh;
    position: relative;
}

.footer {
    text-align: center;
    color: #fff;
    display: flex;
    justify-content: space-between;
    width: 92%;
    margin: auto;
    padding-top: 10px;
    font-size: 0.8em;
    align-items: center;
    font-family: 'YaleSolisW-Lt', 'Helvetica', arial, sans-serif;
}

.footer a {
    color: #fff;
}


.header {
    position: absolute;
    top: 0px;
    left: 0px;
    color: #fff;
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 10px 0px;
    font-size: 0.8em;
    font-family: 'YaleSolisW-Lt', 'Helvetica', arial, sans-serif;
}

.header a {
    color: #fff;
}

#custom-input {
    font-family: 'YaleSolisW-Lt', 'Helvetica', arial, sans-serif;
}
#custom-input p {
    color: #fff;
}
#custom-input h1 {
    font-family: 'YaleSolisW-Bd', 'Helvetica', arial, sans-serif;
    color: #fff;
    text-transform: uppercase;
    font-size: 3em;
    margin: 0px;
}


.chat-context {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    /*padding: 1em;*/
    box-sizing: border-box;
    font-family: 'YaleSolisW-Lt', 'Helvetica', arial, sans-serif;
    padding-top: 0em;

        height: 92vh;
        width: 92%;
        margin: auto;
    

}

#chat {
    flex: 1 1 0;
    overflow-y: scroll;
    padding-left: 2.5em;
    padding-right: 2.5em;
    box-sizing: border-box;
}
#chat::-webkit-scrollbar, #ui-options::-webkit-scrollbar {
    width: 0 !important;
}
.button {
    cursor: pointer;
}
.chat-response {
    max-width: 80%;
    opacity: 0;
    padding: 1em;
    border-radius: 15px 15px 0px 15px;
    background-color: var(--color-main);
    text-align: right;
    margin-right: 0;
    margin-left: auto;
    margin-top: 1em;
    margin-bottom: 1em;
    position: relative;
    color: var(--color-transwhite);
    width: fit-content;
}
.chat-response p {
    margin: 0;
}
.chat-response.user {
	color: black;
}
.chat-response.robot {
    background-color: var(--color-lightgrey);
    border-radius: 15px 15px 15px 0px;
    text-align: left;
    margin-right: auto;
    margin-left: 0;
    color: var(--color-darkgrey);
}
.chat-response:after {
    content: "";
    width: 2em;
    height: 2em;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    position: absolute;
    bottom: -1em;
    left: -2em;
    font-size: 1.5em;
}
.chat-response.user:after {
    content: "";
    left: auto;
    right: -1.5em;
    bottom: -1.5em;
}

#ui-response {
    height: 60px;
    max-height: 60px;
    position: relative;
    transition: all .5s ease-out;
    -webkit-transition: all .5s ease-out;
    -moz-transition: all .5s ease-out;
}
#ui-response.full-submit #response-text {
    display: none;
}
#ui-response.full-submit #ui-submit {
    width: 100%;
}
#ui-response.hide {
    overflow: hidden;
    animation: hide .5s forwards;
    -webkit-animation: hide .5s forwards;
    -moz-animation: hide .5s forwards;
}
@keyframes hide {
    0% {
        opacity: 1;
    }
    99.9999% {
        opacity: 0;
        max-height: 60px;
    }
    100% {
        max-height: 0em;
    }
}

#ui-submit {
    width: 60px;
    height: 60px;
    background-color: var(--color-green);
    color: var(--color-transwhite);
    position: absolute;
    bottom: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    cursor: pointer;
}
#response-text {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    padding-left: 1em;
    border: 1px solid var(--color-lightgrey);
    transition: all .5s ease-in;
    -webkit-transition: all .5s ease-in;
    -moz-transition: all .5s ease-in;
    color: var(--color-darkgrey);
    font-size: 16px;
}
#response-text:focus {
    outline: none;
    box-shadow: 0 0 15px var(--color-lightgrey);
}
#response-text.invalid {
    background-color: var(--color-transred);
    color: var(--color-transwhite);
}
#ui-options {
    display: flex;
    justify-content: center;
    padding: 1em;    
    overflow-x: visible;
    flex-wrap: wrap;
}
#ui-options:empty {
    padding: 0em;
}
.ui-option {
    border-radius: 3px;
    border: 1px solid var(--color-main);
    /*padding: 1em;*/
	padding: 0.7em;
    margin-right: 1em;
    margin-bottom: 1em;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    transition: background-color .2s ease-in;
    color: var(--color-darkgrey);
    background-color: #ebebeb;
	font-size: 14px;
	width: 20%;
}
.ui-option:hover, .ui-option.selected {
    background-color: var(--color-main);
    /*color: #FFF;*/
    color: black;
}
.ui-option:last-child {
    margin-right: 0;
}
.ui-option p {
    margin: 0;
}
.ui-option .subtext {
    color: var(--color-mediumgrey);
    font-size: .85em;
}
.ui-option:hover .subtext, .ui-option.selected .subtext {
    /*color: var(--color-transwhite);*/
    color: black;
}
.ui-option.filtered-out {
    display: none;
}
#ui-control > * {
    opacity: 1;
    transition: opacity 1s ease-in-out, max-height 1s ease-in-out;
    -moz-transition: opacity 1s ease-in-out, max-height 1s ease-in-out;
    -webkit-transition: opacity 1s ease-in-out, max-height 1s ease-in-out;
}
#ui-control .hidden {
    opacity: 0;
    -webkit-transition: background 0s;
    -moz-transition: background 0s;
    -ms-transition: background 0s;
    -o-transition: background 0s;
    transition: background 0s;
}


.loader {
    border: 16px solid #f3f3f3;
    border-top: 16px solid var(--color-main);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    margin: auto;
    animation: spin 2s linear infinite;
}
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}
@media (max-height: 700px) {
	#ui-options {
		/*display: flex;*/
		/*justify-content: center;*/
		padding: 0em;    
		overflow-x: visible;
		flex-wrap: wrap;
	}
	#ui-control {
		max-height: 80vh;
    }
}

@media (max-width: 600px) {
    #wrapper {
        width: 100%;
        margin: 0;
    }

    .chat-context {
        padding: 0em;
        height: 86vh;
        width: 92%;
        margin: auto;
    }
    #chat {
        padding: 1.25em;
        padding-bottom: 0em;
    }
    .chat-response.user:after {
        right: -1em;
    }
    .chat-response:after {
        left: -1em;
        bottom: -1em;
        font-size: 1em;
    }

    .ui-option {
        padding: 1em;
        margin-right: 0em;
        display: flex;
        width: 39%;
		/*padding: 0.7em;
        margin-right: 0em;
        display: flex;
        width: 37%;*/
    }

    .ui-option:nth-child(odd) {
        margin-right: 1em;
    }
    #ui-control {
        /*max-height: 80vh;*/
		max-height: 70vh;
        zoom: 0.8;
        overflow-y:auto;
    }

}

input[type="color"],
input[type="date"],
input[type="datetime"],
input[type="datetime-local"],
input[type="email"],
input[type="month"],
input[type="number"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="text"],
input[type="time"],
input[type="url"],
input[type="week"],
select:focus,
textarea {
  font-size: 16px;
}