:root {
  --cs-primary: #6DC9B5 !important;
  --cs-pri-btn-bg: #6DC9B5 !important;
  --cs-pri-btn-border-color: #6DC9B5 !important;
  --cs-pri-btn-hover-bg: #519b8e !important;
  --cs-pri-btn-hover-border-color: #3e7c72 !important;
  --cs-pri-btn-active-bg: #3a6e64 !important;
  --cs-pri-btn-active-border-color: #325e55 !important;
  --cs-pri-btn-disabled-bg: #6DC9B5 !important;
  --cs-pri-btn-disabled-border-color: #6DC9B5 !important;

  --cs-secondary: #111f4a !important;
  --cs-sec-btn-bg: #111f4a !important;
  --cs-sec-btn-border-color: #111f4a !important;
  --cs-sec-btn-hover-bg: #0e1b41 !important;
  --cs-sec-btn-hover-border-color: #0c1838 !important;
  --cs-sec-btn-active-bg: #0a142f !important;
  --cs-sec-btn-active-border-color: #081128 !important;
  --cs-sec-btn-disabled-bg: #111f4a !important;
  --cs-sec-btn-disabled-border-color: #111f4a !important;

  --bs-dark: #111f4a !important;
  --bs-dark-rgb: 17,31,74 !important;
  --bs-emphasis-color-rgb: 17,31,74 !important;
  --option-full: #FB3640;
  --option-selected: #fb8f36;
  --my-selection: #036D19;
}

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

body {
  height: 100%;
  margin: 0;
  padding: 0;
}

.btn-cs-primary {
  --bs-btn-font-weight: 600;
  --bs-btn-color: var(--bs-white);
  --bs-btn-bg: var(--cs-pri-btn-bg);
  --bs-btn-border-color: var(--cs-pri-btn-border-color);
  --bs-btn-border-radius: .5rem;
  --bs-btn-hover-color: var(--bs-white);
  --bs-btn-hover-bg: var(--cs-pri-btn-hover-bg);
  --bs-btn-hover-border-color: var(--cs-pri-btn-hover-border-color);
  --bs-btn-focus-shadow-rgb: var(--cs-pri-btn-hover-border-color);
  --bs-btn-active-color: var(--bs-white);
  --bs-btn-active-bg: var(--cs-pri-btn-active-bg);
  --bs-btn-active-border-color: var(--cs-pri-btn-active-border-color);
  max-width: 10rem;
  min-width: 8rem;
}

.btn-cs-secondary {
  --bs-btn-font-weight: 600;
  --bs-btn-color: var(--bs-white);
  --bs-btn-bg: var(--cs-sec-btn-bg);
  --bs-btn-border-color: var(--cs-sec-btn-border-color);
  --bs-btn-border-radius: .5rem;
  --bs-btn-hover-color: var(--bs-white);
  --bs-btn-hover-bg: var(--cs-sec-btn-hover-bg);
  --bs-btn-hover-border-color: var(--cs-sec-btn-hover-border-color);
  --bs-btn-focus-shadow-rgb: var(--cs-sec-btn-hover-border-color);
  --bs-btn-active-color: var(--bs-white);
  --bs-btn-active-bg: var(--cs-sec-btn-active-bg);
  --bs-btn-active-border-color: var(--cs-sec-btn-active-border-color);
  max-width: 10rem;
  min-width: 8rem;
}

button {
  min-width: 8rem !important;
}

.error-lbl:empty {
  display: none;
}

.section-img {
  flex: 0 0 45% !important;
}


.collapse:not(.show) {
  display: none !important;
}

.flex-1 {
  flex: 1;
}

select:invalid {
  color: gray;
}

.navbar {
  flex: 0 0 75px !important;
}

input[type="text"] {
  max-width: 30rem;
}

/* CHOOSIMUL - TEACHER UI */
#teacherBar {
  width: 75px !important;
  position: fixed;
  right: 0;
  top: 74px;
  bottom: 0;
}

#teacherBar button, #showQRCodeBtn {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 1.5rem;
  outline: none !important;
  position: relative;
  min-width: 50px !important;
}

#setSelectionsBtn.enabled:after {
  background-color: var(--cs-pri-btn-bg);
  border-radius: 12rem;
  color: white;
  content: '';
  height: 45px;
  left: 15px;
  margin: auto;
  position: absolute;
  top: -3px;
  width: 45px;
  z-index: -999;
}


/* CHOOSIMUL - MODALS */
.modal-header button {
  width: 3rem !important;
  min-width: 3rem !important;
}

.modal-body {
  max-height: calc(100vh - 109px);
  overflow: auto;
  margin-bottom: 1rem;
}

.list-row {
  cursor: pointer;
  display: flex;
  margin-bottom: 1rem;
  position: relative;
}


/* CHOOSIMUL - USERS MODAL */

button#connectedUsersListBtn:after {
  background-color: var(--cs-pri-btn-bg);
  border-radius: 45px;
  bottom: -12px;
  content: attr(data-player-count);
  font-size: 0.8rem;
  font-weight: bold;
  height: 20px;
  left: 22.8px;
  position: absolute;
  width: 32px;
}


.kick-btn, .delete-btn {
  width: 3rem !important;
  min-width: 3rem !important;
  padding: 0;
}

#editListBtn.edit-mode {
  background-color: var(--cs-sec-btn-bg);
}

#choiceListHolder.edit-mode .delete-btn {
  display: block;
}

#choiceListHolder:not(.edit-mode) .delete-btn {
  display: none;
}



/* CHOOSIMUL GRID */

#choiceGrid .grid-content {
  display: flex;
  flex-wrap: wrap;
  height: auto;
  justify-content: center;
  padding: 1rem 1rem 0 1rem;
  margin-right: 75px;
}

#content.student {
  overflow: auto;
}

#content.student .grid-content {
  margin-right: 0;
}

.grid-option {
  align-items: center;
  border: 1px solid black;
  cursor: pointer;
  display: flex;
  flex: 1 1 auto;
  font-size: 1.5rem;
  height: auto;
  justify-content: center;
  min-height: 45px;
  min-width: 45px;
  padding: 1rem;
  position: relative;
  text-align: center;
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none; /* IE 10 and IE 11 */
  user-select: none; /* Standard syntax */
  width: fit-content;
}

.grid-option.selected.full, .grid-option.disabled {
  color: var(--bs-white);
  background-color: var(--option-full) !important;
}

.grid-option.selected:not(.full) {
  color: var(--bs-white);
  background-color: var(--option-selected);
}

.grid-option.selected.mine {
  background-color: var(--my-selection) !important;
}

.grid-option.selected.multi:not(.disabled):after {
  background-color: #111f4a;
  border-radius: 5rem;
  bottom: 0.25rem;
  content: attr(data-remcount);
  font-size: 1.1rem;
  height: 25px;
  line-height: 25px;
  position: absolute;
  right: 0.25rem;
  width: 25px;
}

/* CHOOSIMUL - LOADING ANIMATION */

.lds-default {
  bottom: 0;
  display: inline-block;
  height: 64px;
  left: 0;
  margin: auto;
  position: fixed;
  right: 0;
  top: 60px;
  width: 64px;
}
.lds-default div {
  animation: lds-default 1.2s linear infinite;
  background: #000;
  border-radius: 50%;
  height: 5px;
  position: absolute;
  width: 5px;
}
.lds-default div:nth-child(1) {
  animation-delay: 0s;
  left: 53px;
  top: 29px;
}
.lds-default div:nth-child(2) {
  animation-delay: -0.1s;
  left: 50px;
  top: 18px;
}
.lds-default div:nth-child(3) {
  animation-delay: -0.2s;
  left: 41px;
  top: 9px;
}
.lds-default div:nth-child(4) {
  animation-delay: -0.3s;
  left: 29px;
  top: 6px;
}
.lds-default div:nth-child(5) {
  animation-delay: -0.4s;
  left: 18px;
  top: 9px;
}
.lds-default div:nth-child(6) {
  animation-delay: -0.5s;
  left: 9px;
  top: 18px;
}
.lds-default div:nth-child(7) {
  animation-delay: -0.6s;
  left: 6px;
  top: 29px;
}
.lds-default div:nth-child(8) {
  animation-delay: -0.7s;
  left: 9px;
  top: 41px;
}
.lds-default div:nth-child(9) {
  animation-delay: -0.8s;
  left: 18px;
  top: 50px;
}
.lds-default div:nth-child(10) {
  animation-delay: -0.9s;
  left: 29px;
  top: 53px;
}
.lds-default div:nth-child(11) {
  animation-delay: -1s;
  left: 41px;
  top: 50px;
}
.lds-default div:nth-child(12) {
  animation-delay: -1.1s;
  left: 50px;
  top: 41px;
}
@keyframes lds-default {
  0%, 20%, 80%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.5);
  }
}

/* CHOOSIMUL - MEDIA QUERIES */
@media (hover: hover) {
  .hovertext {
    position: relative;
  }

  .hovertext:before {
    content: attr(data-hover);
    visibility: hidden;
    opacity: 0;
    width: 140px;
    background-color: black;
    color: #fff;
    text-align: center;
    border-radius: 5px;
    padding: 5px 0;
    transition: opacity 1s ease-in-out;

    position: absolute;
    z-index: 1;
    left: 0;
    top: 110%;
  }

  .hovertext:hover:before {
    opacity: 1;
    visibility: visible;
  }
}

::-webkit-scrollbar-thumb{ background-color: rgba(204, 204, 204, 0.6); border-radius: 25px; }
::-webkit-scrollbar{ width: 13px; }

