html, body {
  height: 100%;
  margin: 0;
}

body{
  font-family: "Rubik", serif;
}

body.main,
body.client-page{
  background-color: #f0f2f5;
}

body.customer{
  background: #f2f4f7 !important;
}

.hidden {
  display: none !important;
}

.container {
  display: flex;
  flex-direction: column;
  justify-content: center;
/*  align-items: center;*/
  height: 100vh;
  margin: 0;
  width: 25%;
  margin: 0px auto;
}

.feedback .container,
.profile .container{
  width: 35% !important;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

/* Login form styles */
.login-form {
    width: 100%;
    max-width: 400px;
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.session-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.session-form {
    width: 100%;
    max-width: 400px;
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}


.content {
  margin-left: 0;
  padding: 20px 0 0 20px;
  flex-grow: 1;
  text-align: center;
  transition: padding-top 0.3s ease, margin-left 0.3s ease;
}

.logo{
  width: 50%;
  margin: 0px auto;
  margin-bottom: 30px;
}

.active{
  position: absolute;
  top: 15px;
  left: 40px;
  width: 8% !important;
}

#new-convo-button, #mic-button {
  font-family: "Rubik", serif;
  margin-top: 20px; /* Spacing above the button */
  font-size: 18px;
  padding: 15px 20px;
  border-radius: 15px;
  color: white;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s;
  font-size: 1.2em;
/*  background: linear-gradient(to left, #1581b8, #6a0195);*/
  background: #037cff;
}

#new-convo-button{
/*  background-color: #3f51b5 !important;*/
/*  background: linear-gradient(to left, #1581b8, #6a0195);*/
  background: #037cff;
}

#mic-button i {
  margin-right: 10px;
}

.refreshers{
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  gap: 10px;
}

#reload-button,
#end-button {
    font-family: "Rubik", serif !important;
    margin-top: 20px;
    font-size: 18px;
    padding: 10px;
    border-radius: 25px;
    background: transparent;
    color: black;
    border: 1px solid #ccc;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 0.9em;
    width: 150px;
}


#lang-picker-label{
/*  font-size: 1em;
  font-weight: 100;
  text-transform: capitalize;
  color: black;
  margin-top: 15px;
  padding-top: 15px;*/
}

#lang-picker{
  font-family: "Rubik", serif;
  height: 40px;
  box-sizing: border-box;
  padding: 6px 12px;
  /*font-size: 14px;*/
  background-color: #fff;
  background-image: none;
  border: 1px solid #ccc;
  border-radius: 4px;
  -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
  -webkit-transition: border-color ease-in-out .15s, -webkit-box-shadow ease-in-out .15s;
  -o-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
  transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
  margin-top: 5px;
}

#lang-picker{
/*    height: 35px !important;*/
}

#lang-picker{
/*  margin-bottom: 15px;*/
}

#conversationHeading {
  margin-top: 20px;
  color: black;
  font-weight: 400;
  text-align: center;
  font-family: "Rubik", serif;
}

#conversationCode {
  font-family: "Aleo", serif;
  font-weight: 400;
  font-size: 2.2em;
  color: black;
  display: none;
}

.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgba(0, 0, 0, 0.4); /* Black w/ opacity */
}

.modal-content {
  background-color: #fefefe;
  margin: 10% auto; /* Center the modal */
  padding: 20px;
  border: 1px solid #888;
  border-radius: 5px;
  width: 50%; /* Could be more or less, depending on screen size */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.modal-header {
  display: flex;
  justify-content: space-between; /* Distribute space between items */
  align-items: center; /* Center items vertically */
  border-bottom: 1px solid #ddd;
  padding-bottom: 10px;
}

.modal-header h2 {
  margin: 0; /* Remove default margin */
}


.close {
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
}

.modal-body {
  padding: 15px 0;
  text-align: center;
}

.modal-body p {
  margin: 5px 0;
}

.modal-body #modal-user{
  text-transform: uppercase;
  text-align: left;
}

.modal-body #modal-question-translated{
  font-size: 2em;
  margin-top: 36px;
}

.modal-body #modal-question-orig{
  font-size: 1.4em;
  font-style: italic;
  margin-top: 10px;
  color: gray;
}

.modal-body audio#audioPlayer {
  margin: 0px auto !important;
}

.modal-body h3{
  margin-top: 100px;
}


.toggle-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
  gap: 20px;
}

.toggle-switch {
  position: relative;
  width: 60px;
  height: 25px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 25px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 19px;
  width: 19px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #2be298;
}

input:checked + .slider:before {
  transform: translateX(35px);
}

/*#toggle-status-text{
  font-family: 'Verdana', sans-serif;
}*/


/* Error message */
.error-message {
    color: red;
    font-size: 14px;
    margin-top: 10px;
}


/*#preloader {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 99999;
    border: 30px solid #f3f3f3;
    border-top: 30px solid #0078a0;
    border-right: 30px solid #0078a0;
    border-radius: 100%;
    width: 140px;
    height: 140px;
    margin: -70px 0 0 -70px;
    animation: spin 1s ease-in-out infinite;
}*/
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.7);
    display: none; /* Hidden by default */
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
}

.hide{
  display: none !important;
}

#settings{
  position: absolute;
  top: 15px;
  right: 20px;
  text-align: center;
  color: gray;

}


@media (max-width: 991px) {
  .container{
    width: 60% !important;
  }
}

@media (max-width: 767px) {
  .container{
    width: 60% !important;
  }

  .modal-content{
    width: 85% !important;
  }

  .active{
    display: none !important;
  }
}