/******************************/
/*        COLOR SCHEME        */
/******************************/

:root {
    --background:#eaeaea;
    --spot:#e3003b;
    --grey: #ddd;
    --green: #22e300;
    --hover: #ffdd00;
}
  
/******************************/
/*        GENERAL CSS         */
/******************************/

*{
    margin:0;
    padding:0;
    border:0;
    box-sizing:border-box;
}

html{
    font-family:MavenPro, Arial, sans-serif;
    min-height:100%;
    background:#eaeaea;
}

main{
    width:98%;
    max-width:600px;
    margin:0 auto;
    min-height:80vh;
}

a{
    text-decoration:none;
}

h1,h2,h3,h4,h5,h6{
    margin-bottom:8px;
}

header{
    background:#fff;
    text-align:center;
    padding:7px;
}

header img{
    width:200px;
}

footer{
    text-align:center;
    font-size:11px;
    color:#aaa;
}

#centered{
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:88vh;
}

#login{
    width:340px;
    text-align:center;
}

#login input, #login button{
    margin-top:10px;
    width:100%;
}

/********************************/
/*        NAVIGATION CSS        */
/********************************/

nav{
    width:100%;
    display:flex;
    justify-content:center;
    background:#000;
}

nav a{
    padding:12px;
    color:#fff;
    text-transform:uppercase;
    font-size:12px;
    font-weight:bold;
}

nav a:hover{
    text-decoration:underline;
}

nav a:not(:last-child){
    border-right:1px solid #ccc;
}

/*********************************/
/*         DASHBOARD CSS         */
/*********************************/

.contentbox{
    background:#fff;
    padding:20px;
    width:100%;
    margin:20px 0;
    box-shadow: 0 0 3px #999;
}

.motivator{
    background:#eee;
    padding:20px;
    width:90%;
    margin:20px auto;
    box-shadow: 0 0 4px #999;
    border-radius:12px;
}

.goals{
    padding:20px;
    width:90%;
    margin:20px auto;
    border-radius:12px;
    border:1px solid #ccc;
}

#questionbutton{
    text-align:center;
    display:block;
    padding:16px;
    width:100%;
    margin:20px auto;
    background:#ffd900;
    color:#000;
    box-shadow: 0 0 3px #888;
}

.batteries{
    margin-top:30px;
    display: flex;
    align-items:center;
    justify-content:space-evenly;
}

.batteries img{
    width:100px;
}

.drainers{
    border:1px solid #555;
    padding-bottom:12px;
    padding-left:12px;
    margin-bottom:20px;
    border-radius:12px;
}

.messageitem{
    display:flex;
    justify-content:space-between;
    align-items:center;
    width:100%;
    height:50px;
    background:#54a0ff;
    color:#fff;
    padding:10px;
    font-weight: bold;
    margin-bottom:3px;
}

.newmessageitem{
    display:flex;
    justify-content:space-between;
    align-items:center;
    width:100%;
    height:50px;
    background:#54a0ff;
    color:#fff;
    padding:10px;
    font-weight: bold;
    margin-bottom:3px;
}

.messageitem img {
    width:18px;
    position:relative;
    top:3px;
    left:2px;
}

.chat-from{
    float:left;
    clear:both;
}

.chat-to{
    float:right;
    clear:both;
    text-align:right;
}

.chat p:first-child{
    font-size:9px;
}

.chat p:last-child{
    display:inline-block;
    border-radius:11px;
    padding:9px;
    margin-bottom:14px;
}

.chat-from p:last-child{
    background:var(--spot);
    color:#fff;
}

.chat-to p:last-child{
    background:var(--grey);
}

/********************************/
/*           FORM CSS           */
/********************************/

input, textarea, select, button, .button{
    border:1px solid #ccc;
    padding:14px;
}

input[type=radio]{
    margin:10px 0;
}

button, .button{
    background:var(--spot);
    color:#fff;
    cursor:pointer;
    transition:all 200ms ease-in-out;
    margin-bottom:8px;
}

.button {
    line-height:50px;
}

button:hover,.button:hover{
    background:var(--hover);
    color:#000;
}

label{
    display: block;
    width: 100%;
}

.adminform label, .adminform input, .adminform select, .adminform button, .adminform textarea{
    display:block;
    width:100%;
    margin-top:12px;
}

.adminform input[type='checkbox']{
	width:20px;
	display:inline;
}

.adminform input[type='radio']{
    width:20px;
    display:inline;
}

input[type=range][orient=vertical] {
    appearance:slider-vertical;
    height:160px;
}

.questionform label{
    width:100%;
    text-align:center;
    font-weight:bold;
    display:block;
    margin-top:50px;
}
.questionform div {
    width:100%;
    display:flex;
    align-items:center;
    justify-content:center;
    margin-top:10px;
}

.questionform img{
    height:160px;
}

.questionform textarea{
    height:180px;
    width:100%;
    margin-top:10px;
}

.answerform label{
    width:100%;
    background:#fafafa;
    padding:0 8px;
    margin:4px 0;
    cursor:pointer;
    border-radius:6px;
}

.answerform label:has(input[type="radio"]:checked) { background: #ade3ff; }

/******************************/
/*         TABLE CSS          */
/******************************/

table{
    width:100%;
    border-collapse:collapse;
}

/* tr:nth-child(odd){} */
/* tr:not(:last-child){} */

tr{
    border-top:1px solid #ccc;
}

td{
    padding:4px;
}

td:last-child{
    text-align:right;
    width:100px;
}

td a{
    color:#000;
}

.editbutton{
    width:20px;
}

.tag-green, .tag-red, .tag-purple{
    display:inline-block;
    color:#fff;
    text-shadow: 1px 1px 1px #000;
    padding:4px 8px;
    border-radius:12px;
}

.tag-green{background:#24ff00;}
.tag-red{background: #ff0000;}
.tag-purple{background: #dd00ff;}

/*****************************/
/*         RATE CSS          */
/*****************************/

.rate {
    float: left;
    height: 46px;
    padding: 0 10px;
}
.rate:not(:checked) > input {
    position:absolute;
    top:-9999px;
}
.rate:not(:checked) > label {
    float:right;
    width:1em;
    overflow:hidden;
    white-space:nowrap;
    cursor:pointer;
    font-size:30px;
    color:#ccc;
}
.rate:not(:checked) > label:before {
    content: '★ ';
}
.rate > input:checked ~ label {
    color: #ffc700;
}
.rate:not(:checked) > label:hover,
.rate:not(:checked) > label:hover ~ label {
    color: #deb217;
}
.rate > input:checked + label:hover,
.rate > input:checked + label:hover ~ label,
.rate > input:checked ~ label:hover,
.rate > input:checked ~ label:hover ~ label,
.rate > label:hover ~ input:checked ~ label {
    color: #c59b08;
}

/******************************/
/*         POPUP CSS          */
/******************************/

.popup{
    width:100%;
    max-width:800px;
    height:80px;
    position:absolute;
    top:-90px;
    left:0;
    right:0;
    margin:0 auto;
    display:flex;
    flex-direction:column;
    justify-content:center;
    text-align:center;
    font-weight:bold;
    border:1px solid #444;
    animation:fadeinout 4s 1;
    z-index:10;
    border-bottom-left-radius:12px;
    border-bottom-right-radius:12px;
}

.error{
    background:var(--spot);
}

.message{
    background:var(--green);
}

@keyframes fadeinout{
  from {top:-90px;}
  10%  {top:0}
  90%  {top:0}
  to   {top:-90px;}
}

/********************************/
/*           FONT CSS           */
/********************************/

@font-face {
    font-family:MavenPro;
    src:url("../fonts/MavenPro.woff2");
}


/********************************/
/*        Responsive CSS        */
/********************************/

@media all and (max-width: 700px){}
