/* Scale per browser */
html {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

body {
  margin: 1% 1% 1% 1%;
  /* overflow-X: hidden; */
}

button {
  cursor: pointer;
}

.global-div {
  margin-left: auto;
  margin-right: auto;
  width: 99%;
  background-color: rgb(240, 240, 240);
  padding: 1%;
  border-radius: 1%;
}

.voice-operation-div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 98%;
  background-color: white
}

.topBar {
  background-color: white;
  height: 60px;
  font-size: 24px;
  border-radius: 10px;
  justify-content: center;
  align-items: center;
  align-content: center;
  display: flex;
}

.save-button {
  margin-left: 40px;
  margin-top: 10px;
  font-size: 15px;
  font-family: courier;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  outline: none;
  background-color: #292929;
  color: rgb(170, 170, 170);
  border: none;
  border-radius: 5px 5px 5px 5px;
  width: 100px;
  height: 40px;
}

.newbuttons {
  border-radius: 5px 5px 5px 5px;
}

.lbuttons {
  border-radius: 5px 5px 5px 5px;
}

.rbuttons {
  border-radius: 5px 5px 5px 5px;
}

.playbuttons {
  border-radius: 5px 5px 5px 5px;
}

table {
  font-size: 20px;
}

th,
td {
  width: 6em;
  height: 2em;
  line-height: 2em;
  border: 1px solid #ccc;
  /* width: 8em;
  height: 2em;
  overflow: hidden; */
  /* display: inline-block; */
  white-space: nowrap;
  text-align: center;
}

.clicked-table tr:hover {
  background-color: #f5f5f5;
}

tr.empty,
tr.empty td {
  background: transparent url('http://davidrhysthomas.co.uk/linked/strike.png') 0 50% repeat-x;
}

.newbuttons {
  width: 25px;
  height: 25px;
  margin-left: 5px;
  margin-top: 5px;
}

.lbuttons {
  width: 25px;
  height: 25px;
  margin-left: 5px;
  margin-top: 5px;
}

.rbuttons {
  width: 25px;
  height: 25px;
  margin-left: 5px;
  margin-top: 5px;
}

.playbuttons {
  width: 25px;
  height: 25px;
  margin-left: 5px;
  margin-top: 5px;
}

#generate_voice_btn {
  margin-bottom: 10px;
  padding: 10px;
  width: 35%;
  height: 28%;
  background: rgb(224, 224, 224);
  color: rgb(0, 0, 0);
  font-family: 'Courier New';
  font-size: 20px;
}

#submit_btn {
  width: 25%;
  height: 28%;
  background: rgb(224, 224, 224);
  color: rgb(0, 0, 0);
  font-family: 'Courier New';
  font-size: 20px;
  padding: 10px;
  margin-bottom: 20px;
}

#play_opt {
  background: rgb(224, 224, 224);
  color: rgb(0, 0, 0);
  font-family: 'Courier New';
  width: 50px;
  height: 20px;
}

#clear_button_customizer {
  background: rgb(224, 224, 224);
  color: rgb(0, 0, 0);
  font-family: 'Courier New';
  width: 60px;
  height: 20px;
}

#save_opt {
  background: rgb(224, 224, 224);
  color: rgb(0, 0, 0);
  font-family: 'Courier New';
  width: 50px;
  height: 20px;
}


#loader {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  left: 45%;
  top: 40%;
  border: 16px solid #f3f3f3;
  /* Light grey */
  border-top: 16px solid #3498db;
  /* Blue */
  border-radius: 50%;
  width: 120px;
  height: 120px;
  animation: spin 2s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/*
p {
  margin-left: 30%;
  margin-top: 10%;
  font-size: 20px;
  font-family: courier;
  font-weight: bold;
} */

/* Toggle switch for visualization on/off */
.switch {
  position: relative;
  display: inline-block;
  width: 80px;
  height: 40px;
  margin-bottom: 5%;
  margin-left: 50%;
}

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

/* switch label */
.switch h5 {
  position: absolute;
  left: -18rem;
  top: -0.6rem;
  margin: 0.75rem;
  color: white;
  font-family: 'Courier New', Courier, monospace;
  font-size: medium;
  font-weight: lighter;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0.5rem;
  right: 0;
  bottom: 0.5rem;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

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

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

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

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

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

.slider.round:before {
  border-radius: 5px 5px 5px 5px;
}

.on {
  display: none;
}

.on {
  color: white;
  position: absolute;
  transform: translate(-50%, -50%);
  top: 50%;
  left: 25%;
  font-size: 15px;
  font-family: courier;
}

.off {
  color: white;
  position: absolute;
  transform: translate(-50%, -50%);
  top: 50%;
  left: 75%;
  font-size: 15px;
  font-family: courier;
}

input:checked+.slider .on {
  display: block;
}

input:checked+.slider .off {
  display: none;
}

/* Listview (popup) */
#li-bold {
  position: relative;
}

#li-bold>* {
  position: absolute;
}

.loading-spinner-mix {
  position: absolute;
  background-color: rgb(230, 224, 224);
  border-radius: 10px;
  width: 270px;
  height: 100px;
  display: flex;
  margin-top: -120px;
  text-align: center;
  align-items: center;
  justify-content: center
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  align-content: center;
  display: flex;
}

nav li {
  position: relative;
  align-items: center;
  justify-content: center;
  align-content: center;
  display: flex;
}

nav a {
  border-radius: 10px;
  text-decoration: none;
  color: #333;
  padding: 10px;
  margin-right: 50px;
  background-color: rgb(247, 245, 245);
}

nav a:hover {
  padding: 10px;
  margin-right: 50px;
  text-decoration: none;
  color: #333;
  background-color: lightgray;
}

nav .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1;
  padding: 0;
  margin: 0;
  list-style: none;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .2);
}

nav .dropdown-menu {
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

nav .dropdown:hover .dropdown-menu {
  opacity: 1;
  border-radius: 5px;
}

nav .description {
  width: 500px;
  padding: 1rem;
  text-align: justify;
}


/******************************************************************/
/******************** CSS STYLE of upload.html ********************/
/******************************************************************/
.upload-text {
  color: white;
  font-family: courier;
  font-size: 30px;
  /* font-weight:bold; */
  margin-left: 3%;
}

.upload-div {
  margin-left: 3%;
}

.next-page-div {
  float: right;
  margin-top: 14%;
  margin-right: 5%;
  width: 10%;
  height: 10%;
}

#nextpg-button {
  width: 100%;
  height: 100%;
}


.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.514);
}

.popup-content {
  background-color: white;
  padding: 20px;
  max-width: 900px;
  border: 2px solid #ccc;
  border-radius: 5px;
  margin: auto;
  top: 10%;
  position: relative;
}

.popup-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.popup-section {
  padding: 10px;
  margin: 10px;
  border: 3px solid #ddd;
  font-size: 20px;
  text-align: justify;
}

.close-button {
  margin: 20px;
  text-align: right;
}

.closePopup {
  font-size: 20px;
  background-color: #2196F3;
  border-radius: 10px;
  color: white;
  padding: 10px;
  font-weight: 300;
  border: 0;
}

.openPopup {
  display: block;
  color: white;
  background-color: #2196F3;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  border-radius: 10px;
  font-family: 'Poppins';
  font-size: 20px;
  border: 0px;
}

.openPopup:hover {
  background-color: #6d9cc2;
}

.closePopup:hover {
  background-color: #6d9cc2;
}

.tutorial {
  text-align: center;
  margin: auto;
}

/* Webkit browsers */
.slider-ui input[type="range"]::-webkit-slider-runnable-track {
  background: linear-gradient(to right, red, green);
  height: 6px;
  border: none;
}

.slider-ui input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 20px;
  height: 20px;
  background-color: #fff;
  border: 2px solid #555;
  border-radius: 50%;
  cursor: pointer;
  margin-top: -7px;
  /* Adjust for proper alignment */
}




li a {
  display: block;
  color: black;
  font-family: 'Poppins';
  font-size: 20px;
}

/* Change the link color to #111 (black) on hover */
li a:hover {
  color: #666;
}
