* {
    font-family:Arial;
}

body,header{
    margin:0;
    padding:0;
    background-color: #e3e3e3;
}

body#login{
    background-image: url("img/bg.jpg");
    background-size: cover;
    background-position: center;
}

.athlete{
    width: 200px;
    background: #2b2b2b;
    padding: 10px;
    color: white;
    display: inline-block;
    margin-right: 10px;
    text-align: center;
    margin-bottom:10px;
}

.athlete img{
    width:200px;
    height:200px;
}

.athlete a{
    width: 100%;
    color: white;
    background: #595959;
    display: block;
    text-align: center;
    padding: 3px;
    border-radius: 3px;
    text-decoration: none;
}

.athlete a:hover{
    transition: 0.1s linear;
    background-color: #185918;
}

.athlete p {
    margin-bottom:0px;
}

.athlete small {
    font-size: 60%;
    color: lightblue;
    padding: 10px 0px;
    display: block;
}

#logRefForm{
    width:30%;
    margin-left:auto;
    margin-right: auto;
    background: #e3e3e3;
    margin-top:10%;
    min-height: 350px;
    box-shadow: 1px 10px 15px rgba(0,0,0,0.3);
}

#logRefForm h1{
    background: #2b2b2b;
    color: #4ad48c;
    padding: 20px;
    cursor: pointer;
    text-align: center;
}

#logRefForm h1 span{
    color: #c0c0c0;
}

#logRefForm label , #logRefForm input{
    display: block;
    width: 90%;
    box-sizing: border-box;
    text-align: center;
    padding: 3px;
    border: none;
    position: relative;
    margin: 0px auto;
}

#logRefForm label{
    font-size: 0.8em;
}

#logRefForm input{
    padding:10px 0px;
    cursor: text;
}

#logRefForm p{
    width: 90%;
    margin: 10px auto;
    color: red;
}

input[type=submit]{
    text-transform: uppercase;
    background: #4AD48C;
    color: #2b2b2b;
    font-weight: 700;
}

header{
    background-color: #2b2b2b;
    color:white;
    font-size: 3em;
    padding: 10px 40px;
    text-align: center;
}

header span{
    color:#4AD48C;
}

main{
    padding:10px 40px;
}

main textarea,main input, table, main select{
    width:100%;
    margin: 0 auto;
    display: block;
    box-sizing: content-box;
    padding: 0;
    min-height: 30px;
    border:0;
    border-bottom:1px grey solid;
    margin-bottom:10px;
}

main textarea{
    padding:20px;
    box-sizing: border-box;
    min-height: 200px;
}

main input{
    min-height: 30px;
}

#displaySection, #entrySection{
    margin-top:20px;
}

table tr:first-child{
    background-color: black;
    color:white;
    padding: 5px;
    text-align:left;
    box-sizing: border-box;
}

#entrySection textarea{
    box-shadow: 1px 10px 15px rgba(0,0,0,0.3);
}

table th{
    padding: 5px;
    box-sizing: border-box;
}

table tbody{
    width: 100%;
    box-sizing: border-box;
    display: block;
}

table tr{
    width:100%;
    display: block;
}

table a{
    text-decoration: none;
    color:red;
}

td,th{
    display: inline-block;
    box-sizing: border-box;
}
td:nth-child(1),th:nth-child(1){
    width:20%;
}

td:nth-child(2),th:nth-child(2){
    width:50%;
}

td:nth-child(3),th:nth-child(3){
    width:20%;
}

td:nth-child(4),th:nth-child(4){
    width:7%;
}

tr:nth-child(even) {
    background-color: #f1f1f1;
}

@media screen and (max-width: 900px){
    header{font-size: 2em;}
    #logRefForm{
        width:80%;
    }
    main textarea,main input, table{
        width:100%;
    }

}

.message-right{
    background: #48c986;;
    width: 70%;
    border-radius: 5px;
    color: black;
    display: block;
    padding: 5px;
    float: right;
    margin-top:2px;
    margin-bottom:2px;
    margin-right: 10px;
    word-break: break-all;
    position: relative;
}

.message-left{
    background: #2f4587;
    width: 70%;
    border-radius: 5px;
    color: white;
    display: block;
    padding: 5px;
    float: left;
    margin-top:2px;
    margin-bottom:2px;
    margin-right: 10px;
    word-break: break-all;
}

.message-blank{
    background: #535253;
    width: 70%;
    border-radius: 5px;
    color: #ffffff;
    display: block;
    padding: 5px;
    float: left;
    margin-top:2px;
    margin-bottom:2px;
    margin-right: 10px;
}

.message-container small{
    display: block;
    color: #c7c7c7;
    margin-top: 5px;
    font-size: 70%;
}

.message-right small{
    color: #1d1d1d;
}

.message-container{
    height: 70%;
    display: block;
    overflow-y: scroll;
}

#message-text{
    margin-top:20px;
}
#message-text input{
    width: 100%;
    border-radius: 5px;
}

#message-text input[type=text]{
    height: 20%;
    min-height: 100px;

}

#message-text input[type=submit]{
    color:white;
    margin-top:3px;
    background-color: #595959;
}

#message-text input[type=submit]:hover{
    color:white;
    transition: 0.1s linear;
    background-color: #185918;
}

.tooltip {
    position: absolute;
    right:5px;
    bottom:5px;
    color:red;
    text-decoration: none;
}

/* Tooltip text */
.tooltip .tooltiptext {
    width: 100px;
    background-color: #555;
    color: #fff;
    text-align: center;
    padding: 2px 0;
    border-radius: 6px;
    position: absolute;
    z-index: 1;
    bottom: 0%;
    right: 20px;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
}

/* Show the tooltip text when you mouse over the tooltip container */
.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

.dashboard-button {
    background-color: #117f11;
    border-radius: 3px;
    padding: 10px;
    color: white;
    text-decoration: none;
    margin-bottom: 10px;
    display: inline-block;
    min-height: 10px;
}

.dashboard-button:hover{
    transition: 0.3s linear;
    transform:scale(1.03);
}

.back-arrow{
    text-decoration: none;
    color: #117f11;
    padding: 2px 5px;
}

.back-arrow:hover{
    color:black;
    background-color: #48c986;
    transition: 0.3s linear;
    border-radius: 5px;
}

main.page-chat h1, main.page-chat h1 + a{
    display: inline-block;
}

main.page-chat h1 + a{
    background-color: #2b2b2b;
    color: #48c986;
    padding: 5px 10px;
    border-radius: 5px;
    margin-left: 50px;
}
