@font-face {
  font-family: BlinkerRegular;
  src: url(../fonts/Blinker-Regular.ttf);
}

@font-face {
  font-family: BlinkerBold;
  src: url(../fonts/Blinker-Bold.ttf);
}

body {
  font-family: BlinkerRegular;
  margin: 0;
  padding: 0;
}

h2 {
  color: var(--input-bg-color);
}

.groups-placeholder,
.names-placeholder {
  text-align: center;
  margin-top: 30px;
  margin-bottom: 30px;
  font-size: 34px;
  color: var(--list-bg-color);
}

li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--list-bg-color);
  padding: 7px 10px;
  margin-right: 10px;
  height: 22px;
  color: var(--input-bg-color);
  margin-left: 10px;
}

span {
  color: gray;
  font-size: 14px;
}

/* DARK-MODE */
.light-theme {
  --container-bg-color: #e0e0e0;
  --input-bg-color: #333333;
  --dark-grey: #757575;
  --dark-mode-bg-color: #333333;
  --trash-color-hover: #f44336;
  --group-bg-color: #616161;
  --scroll-bg-color: #616161;
  --list-bg-color: #bdbdbd;
}

.dark-theme {
  --container-bg-color: #333333;
  --input-bg-color: #e0e0e0;
  --dark-grey: #bdbdbd;
  --dark-mode-bg-color: #e0e0e0;
  --trash-color-hover: #f44336;
  --group-bg-color: #757575;
  --scroll-bg-color: #9e9e9e;
  --list-bg-color: #616161;
}

/* CONTAINER */
.random-container {
  width: 100%;
  overflow-y: auto;
  background-color: var(--container-bg-color);
}

.title-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-left: 10px;
  height: 10%;
}

/* TOGGLE SWITCH */
.switch {
  position: relative;
  display: inline-block;
  width: 45px;
  height: 23px;
  margin-right: 20px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--input-bg-color);
  border-radius: 20px;
  transition: 0.4s;
}

.slider:before {
  position: absolute;
  bottom: 2.7px;
  left: 4px;
  content: "";
  width: 18px;
  height: 18px;
  background-color: var(--container-bg-color);
  border-radius: 50%;
  transition: 0.4s;
}

input:checked + .slider {
  background-color: var(--input-bg-color);
}

input:checked + .slider:before {
  background-color: var(--container-bg-color);
  transform: translateX(19px);
}
.main-container {
  display: flex;
  height: 90%;
}
.left-column {
  display: flex;
  flex-basis: 40%;
  flex-direction: column;
  flex-grow: 1;
}

.divider {
  width: 2px;
  margin: 0px 48px;
  background-color: var(--list-bg-color);
}

.right-column {
  flex-grow: 4;
  flex-basis: 100%;
}

/* TEXT INPUT */
.input-container {
  display: flex;
  margin-left: 10px;
}

.text-input {
  width: 100%;
  height: 35px;
  padding-left: 10px;
  border-radius: 5px;
  border-style: solid;
  background-color: var(--input-bg-color);
  color: var(--container-bg-color);
}

::placeholder {
  color: var(--container-bg-color);
}
/* ADD BUTTON */
.add-button {
  width: 37px;
  height: 35px;
  margin-left: 14px;
  padding: 0;
  cursor: pointer;
  background-color: var(--input-bg-color);
  border-style: solid;
  border-radius: 5px;
}

.add-button:active {
  padding: 0;
}

.add-button:active > span {
  font-size: 24px;
}

.mdi-plus-thick {
  font-size: 20px;
  color: var(--container-bg-color);
  transition: font-size 0.1s;
}

/* LIST */
.list {
  margin-top: 24px;
  padding-left: 0px;
  overflow-y: auto;
  width: 100%;
  font-size: 20px;
}

li .mdi-trash-can-outline {
  font-size: 22px;
  cursor: pointer;
  color: var(--input-bg-color);
  visibility: hidden;
}

li:hover .mdi-trash-can-outline {
  visibility: visible;
}

.mdi-trash-can-outline:hover {
  color: var(--trash-color-hover);
}

/* SCROLLBAR */
::-webkit-scrollbar {
  width: 10px;
}

/* Track */
::-webkit-scrollbar-track {
  box-shadow: inset 0 0 5px var(--input-bg-color);
  border-radius: 10px;
  background: var(--container-bg-color);
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: var(--scroll-bg-color);
  border-radius: 10px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: var(--dark-grey);
}

/* GENERATE BUTTON */
.generate {
  z-index: 2;
  position: fixed;
  right: 15px;
  bottom: 15px;
  font-size: 24px;
  padding: 15px 25px;
  border-radius: 5px;
  border-style: solid;
  cursor: pointer;
  background-color: var(--input-bg-color);
  color: var(--container-bg-color);
}

.mdi-recycle {
  color: var(--container-bg-color);
  font-size: 26px;
  margin-right: 5px;
}

/* GROUP */
.groups {
  display: flex;
  flex-wrap: wrap;
  max-height: 100%;
  overflow-y: auto;
}

.group {
  margin: 5px;
  flex-basis: 31%;
}

.group-number {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 40px;
  font-size: 18px;
  color: var(--container-bg-color);
  background-color: var(--input-bg-color);
}

.group-name {
  /* display: block; */
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0px 15px;
  height: 50px;
  font-size: 1.2rem;
  background-color: #bdbdbd;
}
/* MOBILE VIEW */
@media only screen and (max-width: 768px) {
  .random-container {
    position: fixed;
    top: 0;
    height: 100%;
    transform: translate3d(0, 0, 0);
  }

  .switch {
    margin-right: 10px;
  }

  .input-container {
    margin-left: 0;
  }
  .main-container {
    padding: 0 10px;
    display: block;
  }

  .left-column {
    max-height: 400px;
  }

  li .mdi-trash-can-outline {
    visibility: visible;
  }
  .divider {
    display: none;
  }

  .groups {
    max-height: none;
    overflow-y: unset;
  }

  .group {
    margin: 0 0 10px 0;
    flex-basis: 100%;
  }
  .generate {
    position: static;
    width: 100%;
    margin-top: 24px;
    margin-bottom: 20px;
    padding: 10px 25px;
    font-size: 18px;
  }
  .mdi-recycle {
    font-size: 22px;
  }
}
