html, body {
  height: 100%;
  background-color: rgba(161, 161, 161, 0.5);
  margin: 0;     
  overflow: visible;
  transform-origin: top left;
}

.dropdown{
  position: fixed !important;
}

.wnavbar:hover{
  height:8rem
}
.navbar-logo {
  height: 40px;       /* sets height */
  width: auto;        /* keeps aspect ratio */
  vertical-align: middle;
}

.wbutton {
  background-color:rgba(0,132,202, 0.7);
  border-radius: 5px;
  padding: 6px 16px;
  text-align: center;
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.wbutton:hover{
  background-color: rgb(93,93,92);
  color: white;
}

.wbutton.success{
  background-color: rgb(0, 128, 0, 0.7) !important;
}

.wbutton.warning{
  background-color: rgba(231, 235, 10, 0.7) !important;
}

.wbutton.danger{
  background-color: rgba(211, 39, 9, 0.7) !important;
}

.wnavbar{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 5rem;
  z-index: 1000;
  max-width: 100%;
  max-height: 8rem;
  background-color: rgba(96, 162, 197, 1);
  display:grid;
  color: rgb(93,93,92);
  overflow-y:hidden;
  overflow-x: hidden;
  padding: 10px;
  transition: height 0.4s ease-out;

}

.wcontent{
  position: relative;
  z-index: 500;
  top: 5rem;
  left: 0;
  right: 0;
  bottom: 0;
  overflow-y: auto;
  padding: 1rem;
  overflow: visible;
}

.wtable {
  background-color:white ;
  padding: 5px;
  text-align: left;
  color: black;
  width: 97%;
  border: 3px double rgb(93,93,92);
  border-radius: 10px;
  border-collapse:separate;
}
.wtable thead{
  background-color: rgba(0,132,202, 0.7);
  position:sticky;
  top: 0;
  color: beige;
  z-index: 2;
}
.wtable tr:hover, .wtable tr:active{
  background-color: rgba(0,132,202, 0.7);
  cursor: pointer;
}
.wtable th, td {
  padding: 5px;
}

.wcard {
  box-shadow: 10px 10px 5px rgba(86, 110, 122, 0.7);
  border-radius: 10px;
  padding: 1rem;
  background-color:  rgba(96, 162, 197, 0.7);
  color: black;
}

.messages {
    animation: fade-in-out 5s ease-in-out forwards;
    position: fixed;
    z-index: 9999;
    width: 100%;
    text-align: center;
    align-self: self-start !important;
    font-family: Arial, Helvetica, sans-serif Bold;
}
.messages {
    animation-fill-mode: forwards;
    animation-delay: 0s;
    animation-iteration-count: 1;
}


@keyframes fade-in-out {
    0% {
        opacity: 0;
        transform: translateY(-30px) scale(0.8);
    }
    25% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    50% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    75% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-30px) scale(0.8);
    } 
}
/* Container */
.switch-item {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  gap: 5px;
}

/* Hide default checkbox */
.switch-item input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* Slider track */
.slider {
  position: relative;
  width: 30px;
  height: 17px;
  background-color: #ccc;
  border-radius: 18px;
  transition: background-color 0.3s;
}

/* Knob */
.slider::before {
  content: "";
  position: absolute;
  height: 15px;
  width: 15px;
  left: 0.5px;
  top: 1px;
  background-color: #fff;
  border-radius: 50%;
  transition: transform 0.3s;
}

/* Checked state */
.switch-item input:checked + .slider {
  background-color: rgba(0,132,202, 1);
}

.switch-item input:checked + .slider::before {
  transform: translateX(13px);
}

/* Optional label styling */
.label-text {
  font-size: 15px;
  color: rgb(93, 93, 92);
}