@tailwind base;
@tailwind components;
@tailwind utilities;

@font-face {
  font-family: "Monda";
  src:
    local("Monda"),
    url("/static/fonts/Monda/Monda-Regular.ttf") format("truetype"),
    url("/static/fonts/Monda/Monda-Bold.ttf") format("truetype");

}

html {
  font-family: "Monda", sans-serif !important;
}

nav{
  color: #193d89;
}

nav .active{
  background-color: #193d8921;
}


*:disabled{
  opacity: 0.4;
}

.container{
  width: calc(var(--container-width, 100%) - (2 * var(--outer-gutter, 0)));
  margin-right: auto;
  margin-left: auto;
}

table.displayDetails.tr.td{
  text-align: left;
}
table,tr,td{
  text-align: center;
}

#checkBoxButton {
  position: relative;
  width: 63px;
  height: 45px;
  margin: 5px;
  float: left;
  box-sizing: border-box;
}
#checkBoxButton input{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
#checkBoxButton div{
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  line-height: 25px;
}

input[type=checkbox]:checked ~ div {
  color: white;
  background-color: #e6c276;
}

/* Sliding switch */
.switch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 20px;
}

.switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 12px;
  width: 12px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

.delete-slider input:checked + .slider {
  background-color: crimson;
}

.delete-slider input:focus + .slider {
  box-shadow: 0 0 1px crimson;
}

input:checked + .slider:before {
  -webkit-transform: translateX(18px);
  -ms-transform: translateX(18px);
  transform: translateX(18px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

/* Input type radio as Buttons */

.radioAsButton input[type="radio"]{
  opacity: 0;
  position: absolute;
}

.radioAsButton input[type="radio"]:checked + label {
  color: white;
  background:#e6c276;
}

.radioAsButton label{
  cursor: pointer;
  position: relative;
}

/* disable inputs */
.disabled {
  opacity: 0.4;
}

/* tooltip */
.tooltip {
  position: relative;
  display: inline-block;
}
.tooltip span {
  visibility: hidden;
  width: max-content;
  background-color: lightgray;
  color: black;
  text-align: center;
  border-radius: 6px;
  padding: 5px 0;
  
  /* Position the tooltip */
  position: absolute;
  z-index: 1;
  bottom: 100%;
  left: 50%;
  margin-left: -60px;
}
.tooltip:hover span{
  visibility: visible;
  opacity: 1;
}
