/* For the debug / messages display box on bottom of page */
.textbox1 {
  font-family: "Gentium Basic", Arial;
  font-size: 22px;
  color: white;
  background-image: url("imgs/ux/button-background.png");

  /* background-color: white; */
  /* border-color: rgb(191, 189, 189);  211, 194, 170 */

  border-style: solid;
  border-color: rgb(211, 194, 170);
  padding-top: 5px;
  padding-left: 5px;
  padding-right: 5px;
  width: 685px;
  height: 150px;
  overflow: auto;
}

.textbox2 {
  font-family: "Gentium Basic", Arial;
  font-size: 22px;
  background-color: white;
  border-style: solid;
  border-color: rgb(211, 194, 170);
  padding-left: 5px;
  padding-right: 5px;
  width: 685px;
  height: 425px;
  overflow: auto;
}

/* Create two equal columns that floats next to each other */
.column {
  float: left;
  max-width: 980px;
  width: 80%;
}

/* Clear floats after the columns */
.row:after {
  content: "";
  display: table;
  clear: both;
}

/* Responsive layout - makes the two columns stack on top of each other instead of next to each other */
@media screen and (max-width: 1200px) {
  .column {
    width: 100%;
  }
}

body {
  touch-action: manipulation;
  margin: 0;
  padding: 0;
  background-image: url("imgs/backgrounds/yipe-background2.png");
}

.yipe {
  font-family: "Gentium Basic", Arial;
  font-size: 18px;
}

/* For toggle switch */
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 24px;
}

.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: 0.4s;
  transition: 0.4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 22px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

input:checked + .slider {
  background-color: #242626;
}

input:focus + .slider {
  box-shadow: 0 0 1px #242626;
}

input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

/* Music Player */
i.fa-play-circle,
i.fa-pause-circle {
  cursor: pointer;
}

.playpause-track:hover {
  opacity: 1;
}

.playpause-track {
  padding: 25px;
  opacity: 0.8;

  /* Smoothly transition the opacity */
  transition: opacity 0.2s;
}

.track-name {
  font-size: 1.5rem;
}

.track-artist {
  font-size: 1rem;
}
.slider_container {
  display: flex;
  align-items: center;
}
.volume_slider {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  height: 5px;
  background: black;
  opacity: 0.7;
  -webkit-transition: 0.2s;
  transition: opacity 0.2s;
}

.volume_slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 15px;
  height: 15px;
  background: orange;
  cursor: pointer;
  border-radius: 50%;
}

.volume_slider:hover {
  opacity: 1;
}

.volume_slider {
  width: 80px;
}

i.fa-volume-down,
i.fa-volume-up {
  padding: 10px;
}

/* Used in settings pop-up */
.alignleft {
  float: left;
}

.alignright {
  float: right;
}

a:link,
a:visited {
  color: orange;
  background-color: transparent;
}
a.default:link,
a:visited {
  color: var(--primary);
  background-color: transparent;
}

/* w3 school CSS modal */
.w3-modal {
  z-index: 3;
  display: none;
  padding-top: 70px;
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0, 0, 0);
  background-color: rgba(0, 0, 0, 0.4);
}
.w3-modal-content {
  margin: auto;
  background-image: url("imgs/backgrounds/scroll.png");
  position: relative;
  padding: 0;
  outline: 0;
  width: 600px;
}
.w3-modal-content2 {
  margin: auto;
  background-image: url("imgs/backgrounds/scroll.png");
  position: relative;
  padding: 0;
  outline: 0;
  width: 735px;
}
.w3-container:after,
.w3-container:before,
.w3-panel:after,
.w3-panel:before,
.w3-row:after,
.w3-row:before,
.w3-row-padding:after,
.w3-row-padding:before,
.w3-cell-row:before,
.w3-cell-row:after,
.w3-clear:after,
.w3-clear:before,
.w3-bar:before,
.w3-bar:after {
  content: "";
  display: table;
  clear: both;
}
.w3-teal,
.w3-hover-teal:hover {
  color: #000;
  background-image: url("imgs/backgrounds/scroll.png");
}
/*.w3-black,.w3-hover-black:hover{color:#fff;background-color:#000;padding-top:5px;padding-bottom:5px;}*/
.w3-black,
.w3-hover-black:hover {
  color: #ffa500;
  background-image: url("imgs/ux/button-background.png");
  padding-top: 5px;
  padding-bottom: 5px;
}
.w3-red {
  color: red;
}
.w3-container,
.w3-panel {
  padding: 0.01em 16px;
}
.w3-panel {
  margin-top: 10px;
  margin-bottom: 10px;
}
.w3-display-topleft {
  position: absolute;
  left: 0;
  top: 0;
}
.w3-display-topright {
  position: absolute;
  right: 0;
  top: 0;
}

.w3-btn,
.w3-button {
  font-size: 24px;
  border: none;
  display: inline-block;
  padding: 8px 16px;
  vertical-align: middle;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background-color: inherit;
  text-align: center;
  cursor: pointer;
  white-space: nowrap;
}
.w3-btn,
.w3-button {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
.w3-disabled,
.w3-btn:disabled,
.w3-button:disabled {
  cursor: not-allowed;
  opacity: 0.3;
}
.w3-disabled *,
:disabled * {
  pointer-events: none;
}
.w3-button:hover {
  color: #000;
  background-color: #ccc;
}
.w3-dropdown-hover:hover > .w3-button:first-child,
.w3-dropdown-click:hover > .w3-button:first-child {
  background-color: #ccc;
  color: #000;
}
.w3-bar-block .w3-dropdown-hover .w3-button,
.w3-bar-block .w3-dropdown-click .w3-button {
  width: 100%;
  text-align: left;
  padding: 8px 16px;
}
.w3-bar .w3-button {
  white-space: normal;
}

@media (max-width: 600px) {
  .w3-modal-content {
    margin: 0 10px;
    width: auto;
  }
  .w3-modal {
    padding-top: 30px;
  }
}
@media (max-width: 768px) {
  .w3-modal-content {
    width: 500px;
  }
  .w3-modal {
    padding-top: 10px;
  }
  .textbox2 {
    margin: 0 10px;
    height: 300px;
  }
}
@media (min-width: 993px) {
  .w3-modal-content {
    width: 600px;
  }
  .w3-hide-large {
    display: none;
  }
  .w3-sidebar.w3-collapse {
    display: block;
  }
}
@media (max-device-width: 900px) {
  .w3-modal {
    padding-top: 10px;
  }
  .textbox2 {
    margin: 0 10px;
    height: 300px;
  }
}

input.invisible {
  width: 0;
  height: 0;
  visibility: hidden;
  overflow: hidden;
  position: absolute;
}
.flex {
  display: flex;
}
.w-100 {
  width: 100%;
}
.flex-center {
  align-items: center;
  justify-content: center;
}
.m-auto {
  margin: auto;
}
.text-right {
  text-align: right;
}
.show-login,
.show-notlogin {
  display: none !important;
}
body.logined .show-login {
  display: block !important;
}
body.not-logined .show-notlogin {
  display: block !important;
}
.float-right {
  float: right;
}
.mr-3 {
  margin-right: 1rem;
}
.ml-auto {
  margin-left: auto;
}
.mb-0 {
  margin-bottom: 0;
}
#newgameWizardmodal .w3-modal-content {
  width: 680px;
  padding: 0.5rem;
}
#newgameWizardmodal input:checked + label .checkbox > img {
  display: block;
}
#newgameWizardmodal .checkbox {
  width: 45px;
  height: 45px;
  border: 2px solid currentColor;
}
#newgameWizardmodal .checkbox > img {
  width: 35px;
  height: 35px;
  display: none;
}
#newgameWizardmodal label:hover img {
  display: block;
}
#newgameWizardmodal input:not(:checked) + label .checkbox > img {
  opacity: 0.6;
}
#newgameWizardmodal .checkbox-content {
  width: 80%;
}
#newgameWizardmodal .checkbox-container {
  display: flex;
  flex: 1;
}
#newgameWizardmodal button.submit {
  margin: 0 1rem 1rem 0;
}

#newgamemodal .name {
  margin: 0px;
}
#newgamemodal .w3-modal-content {
  width: 680px;
  padding: 0.5rem;
}
#loadgamemodal .w3-modal-content {
  padding: 0.5rem;
}
#loadgamemodal button.submit {
  margin: 0 1rem 1rem auto;
}
#loadgamemodal .body {
  position: relative;
}
#loadgamemodal .loading {
  display: none;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
#loadgamemodal .saved-games {
  width: 500px;
  border-collapse: collapse;
}
#loadgamemodal tr.data {
  border: 2px solid #000;
  border-width: 0px 2px;
}
#loadgamemodal tr > td {
  padding: 0.5rem 0.75rem;
}
#loadgamemodal tr.data > td {
  border: 2px solid #000;
  background: #fff;
  box-sizing: border-box;
  border-collapse: collapse;
  border-width: 2px 0px;
}
.w3-modal .auth-profile .name{
  margin-bottom: 0;
}
