canvas {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 0;
    pointer-events: none;
    cursor: auto;
}

html, body {
    margin: 0;
    height: 100%; 
    overflow: hidden
}

* {
    margin: 0;
    padding: 0;
    font-family: Nunito Sans,sans-serif;
    font-weight: 200;
}

body{
    font-family: Courier, monospace;
    color: black;
    background-color: #EFF4F7;
    font-size:  16px;
    line-height: 1.5;
    height:auto;
}

main{
    overflow: hidden;
    pointer-events: none;
}

p {
    white-space: pre-wrap;
}

main>div {
    margin-top : 10px;
    width: 300px;
    border-radius: 5px;
    margin-left : 10px;
    padding: 10px;
    box-shadow: inset;
    height: 21.5px;
    overflow: hidden;
    cursor: pointer;
    pointer-events: auto;
    position: relative;
    z-index: 10;
    transition: 
        height 0.7s ease,
        width 0.7s ease,
        margin 0.3s ease,
        background-color 0.7s ease,
        border-radius 0.7s ease,
        margin-left 0.5s ease,
        margin-right 0.5s ease;

    margin-right: 10px;
    float: left;
    clear:left;
}

.smallnav {
    bottom:0;
    clear: none;
    width:21.5px;
}

main>div:hover:not(.activepanel):not(.smallnav) {
    margin-left : 30px;
}

#exercisepanel {
    border : 1px solid #ff7996;
    background-color: #ffc8d5;
}

#dietpanel {
    border : 1px solid #ff705d;
    background-color: #ffc4c2;
}

#goalpanel {
    border : 1px solid #ff8e5d;
    background-color: #ffd4c2;
}

#historypanel {
    border : 1px solid #ffa15d;
    background-color: #ffe2c2;
}

#accountpanel {
    border : 1px solid #5d9eff;
    background-color: #c2dbff;
}

#socialpanel {
    border : 1px solid #ffa15d;
    background-color: #ffe2c2;
}

#achievementpanel {
    border : 1px solid #8e5dff;
    background-color: #d9c2ff;
}

#accountpanel:not(.activepanel),#achievementpanel:not(.activepanel),#settingspanel:not(.activepanel),#creditspanel:not(.activepanel),#historypanel:not(.activepanel) {
    background-color: #ffffff !important;
    border : 1px solid #ffffff;
    position: absolute;
    bottom:5px;
}

#accountpanel:not(.activepanel) {
    clear:left;
    left: 0px;
}

#achievementpanel:not(.activepanel) {
    left: 50px;
}

#settingspanel:not(.activepanel) {
    left: 150px;
}

#creditspanel:not(.activepanel) {
    left: 200px;
}

#historypanel:not(.activepanel) {
    left: 100px;
}


main>div:hover {
    border-width: 3px;
}

.activepanel {
  height: 100vh;
  margin : 0;
  width:400px;
  border-radius: 0px;
  backdrop-filter: blur(40px) saturate(1.4);
  background-color: #66666624 !important;
  cursor:auto;
  overflow: scroll;
  padding-left: 30px;
  padding-right: 30px;
}

#accountpanel.activepanel {
    width:300px !important;
}

#creditspanel.activepanel {
    width:0px !important;
}

.hiddenpanel {
    height: 0;
    margin: -5px;
    padding: 0;
    margin-left: -1000px;
    width: 0;
}

.hidden {
    display: none;
}

canvas.enableddetectionarea {
    pointer-events: all !important;
    cursor: pointer !important;
}

.formtab {
    display: none;
}

.activetab {
    display: block;
}

h4 {
    margin-bottom:8px;
}

.activepanel h4 {
    display: none;
}

#notificationparent {
    position: absolute;
    right:0;
    top:0;
    margin:0px;
}

.notification {
    position: absolute;
    right:0;
    top:0;
    width:300px;
    background-color: #ffffff;
    margin:5px;
    height: 100px !important;
    border-radius: 5px;
    border: 1px solid black;
    pointer-events: none;
    cursor: pointer;
    opacity: 1;
    transition: 
        opacity 5s ease-in;
    z-index: 200;
}

.notificationend {
    opacity: 0;
}

.loadingscreenactive {
    position: absolute;
    z-index: 100;
    width: 100%;
    height: 100%;
    background-color: rgb(233, 246, 255);
    opacity: 1;
    transition: 
        opacity 0.5s ease,
        background-color 5s ease;
    margin : 0px;
    top:0;
    left:0;
    pointer-events: all;
    cursor:wait;
}

.loadingscreenanimation {
    background-color: #ff7070;
}

.loadingscreenanimationaccount {
    background-color: #4d97ff;
}

.loadingscreenunactive {
    opacity: 0;
    pointer-events: none;
}

#loadingtext {
    position: absolute;
    bottom: 30px;
    left:20px;
    font-size:30px
}

form {
  background: white;
  padding: 8px;
  border-radius: 12px;
  margin: 1px;
  max-width: 400px;
}

.formpair {
  display: grid;
  gap: 1px;
  margin-bottom: 5px;
}

input {
  width: auto;
  padding: 6px;
  border: 1px solid #e7e7e7;
  border-radius: 8px;
}

input:focus {
  border-color: #a3a3a3;
  outline: none;
}

button {
    padding: 12px;
    color: rgb(0, 0, 0);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: none;
}

.submitbutton {
    width: 100%;
}

.tab button:not(.activetabbutton){
    width: 49%;
    color:white;
    background-color: #4d97ff;
    margin-bottom:5px;
}

.tab button.activetabbutton{
    width: 49%;
    background-color: #ffffff;
    color: black;
    border: none;
    margin-bottom:5px;
}

#signupsubmit, #loginsubmit{
    background-color: #4d97ff;
}

#exercisesubmit {
    background-color: #ff7996;
}

#dietsubmit {
    background-color: #ff705d;
}

#goalsubmit {
    background-color: #ff8e5d;
}

#accounteditbutton {
    background-color: #4d97ff;
    width:100%
}

#accounteditdiscardbutton {
    background-color: #ffffff;
    width: 49%;
    color:black;
}

#accounteditconfirmbutton {
    background-color: #4d97ff;
    width: 49%;
    color:white;
}

.tablecontainer {
  background: transparent;
  border-radius: 12px;
  overflow: hidden;
  margin: 5px;
  max-width: 800px;
}

table {
  width: 100%;
  font-family: inherit;
  border-collapse: separate; 
  border-spacing: 0 10px; 
}

td{
    background-color: white;
    border: solid rgb(211, 211, 211) 1px;
    padding-left: 5px;
    padding-right: 5px;
}

td:first-child {
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}

td:last-child {
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
}

.exercisetable td:hover {
  background-color: #ff7996;
}

.diettable td:hover {
  background-color: #ff705d;
}

.goaltable td:hover {
  background-color: #ff8e5d;
}

.historytable td:hover {
  background-color: #4bc2d7;
}

.accounttable td:hover {
  background-color: #4d97ff;
}

img {
    border-radius: 50%;
}

#accounttable tr input {
    border-top-left-radius: 0px;
    border-bottom-left-radius: 0px;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    background-color: #4d97ff;
    padding-top: 5px;
    padding-bottom: 5px;
    padding-left: 5px;
    padding-right: 5px;
    color : white;
    border: solid rgb(211, 211, 211) 1px;
}

#messages{
    height: 500px;
    width: 375px;
    overflow: auto;
    display: inline-block;
}
#messages h2{
    width: auto;
    display: inline; 
}

#messages div{
    border-bottom: 5px solid #4bc2d7;
}

b{
    font-size: large;
}

.pfp_message{
    width: 35px;
    height: 35px;
    border-radius: 50%;
    padding: 5px
}