* { 
    box-sizing: border-box; 
}

body {
    background-color: #333;
    font-family: 'Montserrat', sans-serif;
    margin: 0px;
}

body > div {
    background-color: #fff;
}
            
input, select, textarea {
    border-radius: 4px;
    padding: 10px;
}
   
.action {
    color: #667;
    cursor: pointer;
    margin-right: 15px;
}

.action:hover {
    cursor: pointer;
    opacity: .7;
    transition: .2s ease;
}

.actions {
    text-align: right;
}

.banner {
    display: flex;
    height: 100px;
    width: 100%;
}

.banner > .banner {
    margin-top: initial;
}

.banner.half {
    min-height: 400px;
}

.button {
    background-color: #8bc219;
    border: 1px solid #667;
    border-radius: 4px;
    cursor: pointer;
    display: inline-block;
    opacity: .7;
    padding: 10px 30px;
    user-select: none;
}

.button:hover {
    color: #fff;
    opacity: .9;
    transition: .2s ease;
}

.button.disabled {
    background-color: #fff;
    color: #667;
}

.clickable {
    cursor: pointer;
}
           
.clickable:hover{
    cursor: pointer;
    opacity: .7;
    transition: .2s ease;
}

.container > .content {
    margin: 0 auto;
    width: 80%;
}

.content {
    display: flex;
    gap: 40px;
}

.content table {
    border-collapse: collapse;
    width: 600px;
}

.content table th {
    border-bottom: 3px solid #667;
    min-width: 200px;
    text-align: left;
}

.content table td {
    border-bottom: 1px solid #667;
}

.disabled {
    pointer-events: none;
}

.double {
    height: 200px;
}

.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}
            
.field {
    padding-bottom: 10px;
}

.field > .label {
    display: inline-block;
    margin: 10px 0px;
    width: 100px;
}

.field.data > input.error {
    border: 2px solid rgba(255 0 0 );
    box-shadow: 0px 0px 2px 2px #f00;
}

.icon {
    height: 25px;
    width: 25px;
}

.third {
    width: 33%;
    height: 100%;
    border: solid black 1px;
    display: inline-block;
}

.left {
    float: left;
}
            
.link {
    cursor: pointer;
    color: blue;
    text-align: right;
}
           
.message {
    border-bottom: 1px solid #667;
    display: flex;
    flex-direction: column;
    font-size: 8pt;
    padding: 10px;
}

.message:hover {
    background-color: #d3d3d3;
}

.message .top {
    display: flex;
    justify-content: space-between;
}

.message .bottom {
    font-weight: 650;
}

.message.selected {
    background-color: #87cefa;
    color: white;
}
            
.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.next, .prev {
    background-color: rgba(0,0,0,0.8);
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    margin-top: -22px;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    z-index: 1;
}

.right {
    float: right;
}

.title {
    color: #8bc219;
    font-family: 'Montserrat', sans-serif;
    font-size: 60px;
    user-select: none;
}
            
#addMessage {
    border-top: 1px solid #667;
    display: flex;
    justify-content: space-between;
    padding: 5px 10px;
}

#conversation {
    border-left: 0px;
    display: flex;
    flex-direction: column;
    height: 250px;
    justify-content: space-between;
    min-width: 500px;
    overflow-y: auto;
}

#conversations {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

#conversations > #conversation > #selected > .to, #conversations > #conversation > #selected > .them {
    text-align: end;
}
            
#header {
    display: flex;
    background-color: #fff;
    justify-content: space-between;
}

#header > #company > img.small {
    height: 150px;
}

#header.small {
    height: 150px;
}

#footer {
    background-color: #333;
    color: white;
    padding: 20px;
    text-align: center;
}

#message {
    width: 400px;
}

#messages, #conversation {
    border: 1px solid #667;
}

#messages {
    height: 250px;
    min-width: 300px;
    overflow-y: auto;
}

#pageHeader {
    align-items: center;
    background-image: url(/images/computer.png);
    background-position-y: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    height: 150px;
    margin-bottom: 20px;
}

#pageHeader > .title {
    background-color: rgba(255, 255, 255, .6);
    border-radius: 4px;
    margin-left: 40px;
    padding: 5px 10px;
    user-select: none;
}

#password.hidden {
    visibility: hidden;
}
 
#selected {
    overflow-y: auto;
}

#selected .to div:first-child, #selected .them div:first-child{
    color: #8bc219;
}

#selected .from div:first-child, #selected .me div:first-child{
    color: #0436f4;
}

#selected > div {
    padding: 5px 10px;
}

#selected > div:nth-child(even) {
    background-color: #f5f5f5;
}

#signInIcon {
    color: #8bc219;
    font-size: 30px;
}
            
#spinner {
    align-items: center;
    display: flex;
    flex-direction: column;
}
            
#spinner .active, #spinner .dot:hover {
  background-color: #717171 !important;
}

#spinner .display {
    position: relative;
    margin-bottom: 10px;
}

#spinner .display .show {
    display: block !important;
}

#spinner .dots {
    display: flex;
}

#spinner .dot {
    background-color: #bbb;
    border-radius: 50%;
    cursor: pointer;
    display: inline-block;
    height: 15px;
    margin: 0 2px;
    transition: background-color 0.6s ease;
    width: 15px;
}

#spinner .slide {
    display: none;
}

@keyframes fade {
    from {opacity: .4}
    to {opacity: 1}
}

@media screen and (max-width: 1023px) {
    .banner {
        height: auto;
        min-height: 400px !important;
    }
    
    .button {
        font-size: 17px;
        margin-right: 0;
        padding: 10px 10px;
    }
    
    .buttons {
        display: flex;
        gap: 20px;
    }
    
    .content {
        flex-direction: column;
    }
    
    .field {
        display: flex;
    }
    
    .field > div {
        width: 100%;
    }
    
    .next, .prev {
        font-size: 30px;
    }

    #container > #content > .login > .entry > .field > input {
        margin: 0px auto !important;
    }
    
    #content {
        border: none !important;
        padding: none;
        width: 100% !important;
    }
    
    #container > #content > .login {
        width: 100%;
    }
    
    #conversation {
        display: none;
        height: initial;
        min-width: initial;
        overflow-y: initial;
    }
    
    #conversations {
        flex-direction: column;
    }
    
    #header {
        display: flex;
    }
    
    #header.small {
        height: 150px;
        justify-content: center;
        min-height: initial;
    }
    
    #header > #company img.small {
        height: 150px;
    }
    
    #footer {
        -webkit-text-size-adjust: 150%;
        text-size-adjust: 150%;
    }
    
    #pageHeader > .title {
        font-size: 2em;
    }
    
    #selected {
        height: 200px;
    }
    
    #services {
        background-size: cover !important;
    }

    #signInIcon {
        font-size: 30px;
    }
}