/* topmenu.css
author: Gabriel Bourgeois
creation date: 14/10/2019
description: top menu css for the Covlab dashboard */

#topmenu {
  display: flex;
  height: 50px;
  max-height: 50px;
  background: linear-gradient(rgb(34 34 34), rgb(15 15 15));
  color: #f1f1f1;
  border-bottom: 1.5px solid rgb(0 0 0 / 45%);
  font-family: Charcoal, sans-serif;
  flex-grow: 1;
  justify-content: space-between;
  z-index: 5;
  overflow-y: hidden;
}

#topmenu,
#topmenu * {
  align-items: center;
}

#topmenu>.menu-section {
  display: flex;
  height: 50px;
  flex: 1 1 33.3%;
}

#topmenu>.menu-section:first-child {
  justify-content: flex-start;
}

#topmenu>.menu-section:nth-child(2) {
  justify-content: center;
  /*  flex: 2 1 33.3%;*/
}

#topmenu>.menu-section:last-child {
  justify-content: flex-end;
}

#topmenu a {
  padding: 15px;
  display: flex;
  flex: 0 0 auto;
  justify-content: center;
  height: -webkit-fill-available;
  height: fill;
  width: fit-content;
  /*max-width: 200px;*/
  white-space: nowrap;
}

#topmenu a:hover {
  background: linear-gradient(rgb(30, 190, 30), rgb(10, 80, 10));
}

#topmenu .image-container {
  height: 50px;
}

#topmenu img {
  display: flex;
  flex: 10 1 250px;
  max-height: 50px;
  object-fit: contain;
}

.notification-wrapper {
  position: absolute;
  top: 50px;
  right: 50px;
}

#notifications {
  background: rgb(0, 0, 0);
  background: linear-gradient(90deg,
      rgb(38 38 38) 0%,
      rgba(48, 48, 48, 1) 50%,
      rgb(38 38 38) 100%);
  padding: 15px;
  /*left: 138px;
  top: 782.5%;*/
  max-height: 700px;
  overflow-y: auto;
  border-left: 1px solid white;
  border-right: 1px solid white;
  border-bottom: 1px solid white;
  border-top-left-radius: 5.5px;
  border-bottom-left-radius: 9.5px;
  border-bottom-right-radius: 5.5px;
}

.notifItem {
  background-color: rgb(0 0 0 / 21%);
  padding: 10px;
}

.notifItem:first-child {
  border-top-left-radius: 9.5px;
}

.notifItem:last-child {
  border-bottom-left-radius: 15px;
}

@keyframes notifOnColorChange {
  0% {
    color: #ff3131;
  }

  50% {
    color: #ff6e6e;
  }

  100% {
    color: #ff3a3a;
  }
}

.notifButton {
  margin: 5px;
}

.notifButtonActive {
  position: relative;
  margin: 5px;
  /*top:15px;*/
  animation: notifOnColorChange 3s infinite;
}

.punch-button {
  color: #f1f1f1;
  border: solid 1px #f1f1f1;
  padding: 5px 15px;
  cursor: pointer;
  margin-right: 10px;
  background-color: transparent;
}

.punch-button i {
  margin-right: 5px;
}

.punch-button .out {
  display: none;
}

.punch-button .in {
  display: inherit;
}

.punch-button.punch-out .out {
  display: inherit;
}

.punch-button.punch-out .in {
  display: none;
}