:root {
    --primary-y-color: #F5C132;
    --primary-g-color: #565656;
    --primary-b-color: #000000;

    --second-ef-color: #F4A259;
    --second-ec-color: #BC4B51;
    --second-ece-color: #1481BA;

    --third-lap-color: #8CB369;
    --third-lin-color: #F4E285;
    --third-lal-color: #F4A259;
    --third-lom-color: #1481BA;
    --third-lbe-color: #BC4B51;
}

body {
    padding-top: 5rem;
}

a:link {
    color: var(--primary-g-color);
}

a:visited {
    color: var(--primary-g-color);
}

.btn-warning {
    background-color: var(--primary-y-color);
    border-color: var(--primary-y-color);
    color: #000000;
}

.btn-secondary {
    background-color: var(--primary-g-color);
    border-color: var(--primary-g-color);
    color: #fff;
}

ul.semaforo {
    position: relative;
    width: 100px;
    margin: 10px auto;
    padding: 0;
    list-style-type: none;
}

ul.semaforo li {
    position: relative;
    display: block;
    float: left;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: lightgrey;
}

.en-proceso li:nth-of-type(2) {
    background: var(--third-lin-color);
}

.con-retraso li:nth-of-type(1) {
    background: var(--third-lbe-color);
}

.completado li:nth-of-type(3) {
    background: var(--third-lap-color);
}

.box {
    width: 100%;
    height: 64vh;
    overflow: auto;
    scroll-behavior: smooth;
    /* <-- for smooth scroll */
}


/* M E S S A G E S */

.chat {
    list-style: none;
    background: none;
    margin: 0;
    padding: 0 0 50px 0;
}

.chat li {
    padding: 0.5rem;
    overflow: hidden;
    display: flex;
}

.other:before {
    content: "";
    position: relative;
    top: 0px;
    right: 0px;
    left: 0px;
    width: 0px;
    height: 0px;
    border: 5px solid #eef8ff;
    border-left-color: transparent;
    border-bottom-color: transparent;
}

.self {
    justify-content: flex-end;
    align-items: flex-end;
}

.self:after {
    content: "";
    position: relative;
    display: inline-block;
    bottom: 0px;
    right: 0px;
    width: 0px;
    height: 0px;
    border: 5px solid #eefff2;
    border-right-color: transparent;
    border-top-color: transparent;
}

.self .msg {
    background: #eefff2;
}

.other .msg {
    background: #eef8ff;
}

.msg {
    min-width: 50px;
    max-width: 35rem;
    padding: 10px;
    border-radius: 2px;
    word-break: break-all;
}

.msg .user {
    font-size: 16px;
    margin: 0 0 2px 0;
    font-weight: 700;
    margin-top: -2px;
    margin-bottom: 5px;
    transition: all .2s ease;
}

.msg p {
    font-size: 14px;
    margin: 0 0 2px 0;
    transition: all .2s ease;
}

.msg time {
    font-size: 0.7rem;
    margin-top: 3px;
    float: right;
    cursor: default;
}

/* R E S P O N S I V E   C O N F I G U R A T I O N */

@media screen and (max-width: 750px) {
    ::-webkit-scrollbar {
        display: none;
    }

    .chat {
        margin-bottom: 55px;
    }

    .msg p {
        font-size: 13px;
    }

    .msg .user {
        font-size: 15px;
    }
}

@media screen and (max-width: 550px) {
    .msg p {
        max-width: 250px;
    }
}

.btn-file {
    position: relative;
    overflow: hidden;
}

.btn-file input[type=file] {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 100%;
    min-height: 100%;
    font-size: 100px;
    text-align: right;
    filter: alpha(opacity=0);
    opacity: 0;
    outline: none;
    cursor: inherit;
    display: block;
}