/******************************/
/*        COLOR SCHEME        */
/******************************/

:root {
    --maxwidth:1200px;
	--button:#000;
	--buttonhover:#444;
}
  
/******************************/
/*        GENERAL CSS         */
/******************************/

*{
    margin:0;
    padding:0;
    border:0;
    box-sizing:border-box;
}

html{
    font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
    min-height:100%;
    background:#fff;
}

main{
    width:98%;
    max-width:var(--maxwidth);
    margin:0 auto;
    min-height:80vh;
}

a{
    text-decoration:none;
}

h1,h2,h3,h4,h5,h6{
    margin-bottom:8px;
}

header{
	box-shadow:0 0 3px 6px #aaa;
	margin-bottom:20px;
}

header img{
	width:75px;
}

header div{
	width:98%;
	max-width:var(--maxwidth);
    background:#fff;
    display:flex;
    align-items:center;
    justify-content:space-between;
	padding:12px;
	margin:0 auto;
}

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 a{
    padding:12px;
    color:#000;
    text-transform:uppercase;
    font-size:16px;
}

nav a:hover{
    background:#000;
	color:#fff;
}

/*********************************/
/*         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;
}

/********************************/
/*           FORM CSS           */
/********************************/

input, textarea, select, button, .button{
    border:1px solid #ccc;
    padding:14px;
}

button, .button{
    background:var(--button);
    color:#fff;
	font-size:18px;
    cursor:pointer;
    transition:all 200ms ease-in-out;
	text-transform: uppercase
}

.button{
	line-height:50px
}

button:hover,.button:hover{
    background:var(--buttonhover);
	color:#fff;
}

label{
    display: block;
    width: 100%;
}

.adminform label, .adminform input, .adminform select, .adminform button, .adminform textarea{
    display:block;
    width:100%;
    margin-top:12px;
}

.editview label{
	font-size:12px;
	margin-top:10px;
}

.editview input{
	width:300px;
}

/******************************/
/*         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;
}

/*****************************/
/*         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 3s 1;
    z-index:10;
    border-bottom-left-radius:12px;
    border-bottom-right-radius:12px;
}

.error{
    background:#cf6363;
}

.message{
    background:#63cf80;
}

@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){}
