a{
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
}
body{
font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  -webkit-user-select: none;
  user-select: none;
}
#logo{
    height:46px;
}
h1{
    text-transform: uppercase;
}
.slider{
    margin-top:10px;
    margin-right:30px;
    margin-left:30px;
}
.friend{
    background-color: black;
    border-radius: 20px;
    height: 33px;
    padding: 0 10px 0 5px;
    text-align: center;
    font-size: 20px;
    display: inline-block;
    margin: 2px;
    color: white;
    cursor: pointer;
}
#craving_predifined{
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    width: 100%;
    height:30px;

}
#craving_description{
    box-sizing: border-box;
    width: 100%;
    display: none;
}
#container{
    max-width: 500px;
    width:100%;
    padding:20px;
    margin: auto;
    margin-top:20px;
}
.footer{
    position: fixed;
    bottom: 0;
    max-width: 500px;
    width:100%;
    z-index:10;
}
.footer .menu{
    cursor: pointer;
    width: 15%;
    display: inline-block;
    text-align: center;
    border: 1px solid lightgray;
    border-radius: 10px 10px 0 0;
    background-color: black;
    color: white;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    
}
#new_cravings, #new_goals{
    background-color: red;
    border-radius: 13px;
    height: 20px;
    width: 20px;
    position: relative;
    top: -5px;
    left: -5px;
    font-size: 14px;
    display: inline-block;
}
.fade-out {
    opacity: 0;
    transition: opacity 0.6s ease;
}
.top-bar{
    background-color:black;
    height: 50px;
    color: white;
    align-items: center;
    padding: 2px 20px;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    
}
.top-bar .avatar-logo{
    margin-top:4px;
    height: 38px;;
    float: right;
}
.friend .avatar-logo{
    margin-top: -4px;
    height: 24px;
    border-radius: 20px;
    margin-left: -1px;
}
.inbox_craving{
    border-radius: 20px;
    padding: 10px;
    margin-bottom: 10px;
}
.inbox_craving.active_craving{
    background-color: #d5e9e0;
}
.inbox_craving.goal_craving{
    background-color: #D4AF37;
}
.inbox_craving.expired{
    background-color: #efd4d4;
}
.active_craving .expird_message{
    display: none;
}
.expired .expird_message{
    display: block;
    color: red;
    font-weight: bold;
    text-align: center;
}
.answer_message{
    text-align: center;
    font-size: 10px;
}
.expired .answer_message{
    display: none;
}

.craving_description{
    margin-top: 10px;
    text-align: center;
    font-size: 18px;
}

/*Silder effekter*/

.active_craving .ui-slider-handle {
  transform: translateZ(0);
}

/* pulserende ring */
.active_craving .ui-slider-handle::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(255, 0, 0, 0.9);
  animation: pulseStrong 1s infinite;
  pointer-events: none;
}

/* puls animation */
@keyframes pulseStrong {
  0% {
    transform: scale(0.8);
    opacity: 0.9;
    box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.6);
  }

  50% {
    transform: scale(1.4);
    opacity: 0.3;
    box-shadow: 0 0 20px 10px rgba(255, 0, 0, 0.2);
  }

  100% {
    transform: scale(1.8);
    opacity: 0;
    box-shadow: 0 0 0 0 rgba(255, 0, 0, 0);
  }
}
.goal_score{
    font-size: 24px;
    font-weight: bold;
    color: green;
    text-align: center;
}