*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
button,
fieldset,
input,
legend,
select,
textarea {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: transparent;
  border: none;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  outline: none;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  cursor: inherit;
  line-height: inherit;
}

button,
textarea,
input,
select,
a {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

html,
body {
  height: 100%;
  width: 100%;
  font-size: 16px;
  font-family: "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif;
  background-color: #f4f4f4;
  place-items: center;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

header {
  text-align: center;
  margin-bottom: 2rem;
}

header h1 {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  font-size: 2rem;
  padding: 0 5px 0;
}

header h1 > span {
  width: 100%;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}
header h1 > span:last-child {
  font-size: 1.3rem;
  color: #b3b3b3;;
}
header h3 {
  font-size: 1rem;
  padding: 0 16px 0;
}
header p {
  padding: 0 16px 0;
}

.logo {
  width: 72px;
  height: 72px;
  border-radius: 100px;
  -webkit-border-radius: 100px;
  -moz-border-radius: 100px;
  -ms-border-radius: 100px;
  -o-border-radius: 100px;
}

header .header-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid #ccc;
}

header .header-logo img {
  border-radius: 100px;
  -webkit-border-radius: 100px;
  -moz-border-radius: 100px;
  -ms-border-radius: 100px;
  -o-border-radius: 100px;
}

.container {
  max-width: 600px;
  margin: 0 auto;
  padding: 16px;
  margin-bottom: 2rem;
  font-family: arial,sans-serif;
}

form {
  width: 100%;
  background-color: #fff;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

.form-group {
  margin-bottom: 20px;
  position: relative;
}
.form-group label {
  display: block;
  margin-bottom: 5px;
}
.form-group input,
.form-group select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  color: rgb(0, 176, 240);
}
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23333'%3E%3Cpath d='M7.41 7.84L12 12.42l4.59-4.58L18 9.25l-6 6-6-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 20px;
  padding-right: 30px;
}

.form-group:has(.form-groups) {
  display: flex;
  align-items: flex-end; 
  justify-content: flex-start;
  gap: 1rem;
  width: 100%;
}

.form-groups {
  width: 100%;
}

input::placeholder,
textarea::placeholder {
  opacity: 1; /* Firefox */
  color: rgb(0, 176, 240);
}
 


button {
  font: 1.25rem sans-serif;
  border-radius: 0.25rem;
  cursor: pointer;
  padding: 0.75rem 1.25rem;
}

button[type="submit"] {
  background-color: rgb(0, 176, 240);
  color: white;
}

button[type="submit"]:hover {
  background-color: hsl(196deg, 100%, 47.06%);
}

button[type="reset"] {
  text-decoration: none;
  margin-left: 1rem;
}

button[type="reset"]:hover {
  text-decoration: none;
}
input:focus,
select:focus,
textarea:focus {
  outline: none;
  box-shadow: 0 0 0 4px hsl(213, 90%, 70%);
}

.popup {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  background-color: rgba(0, 0, 0, 0.5);
}
.popup .popup-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #fff;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  max-width: 600px;
  margin: 0 auto;
  min-width: 300px;
  min-height: 200px;
}
.popup .popup-header {
  margin-bottom: 20px;
  text-align: center;
}
.popup .popup-body {
  margin-bottom: 20px;
  min-height: 100px;
}
.popup .popup-footer {
  text-align: right;
}
.popup .ok-button {
  background-color: rgb(0, 176, 240);
  color: white;
}
.popup .ok-button:hover {
  background-color: hsl(196deg, 100%, 47.06%);
}
.popup #result {
  font-weight: bold;
  text-align: center;
  font-size: 1.5rem;
  color: rgb(0, 176, 240);
}

.popup:has(.splash) {
  display: flex;
  background-color: #f4f4f4;
}

.popup:has(.splash) img {
  border-radius: 100px;
  -webkit-border-radius: 100px;
  -moz-border-radius: 100px;
  -ms-border-radius: 100px;
  -o-border-radius: 100px;
}

.splash {
  display: flex;
  position: relative;
  width: 300px;
  min-height: 300px;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 25px;
  padding: 55px 35px 35px 35px;
  text-align: center;
  border-radius: 5px;
  z-index: 99999;
}

.app-loading {
  display: flex;
  position: relative;
  width: 180px;
  min-height: 15px;
  justify-content: flex-start;
  align-items: center;
  overflow: hidden;
  background-color: rgb(161, 230, 255);
  border-radius: 5px;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  -ms-border-radius: 5px;
  -o-border-radius: 5px;
}
#progressBar {
  display: block;
  position: relative;
  width: 0px;
  height: 13px;
  background-color: rgb(0, 176, 240);
  border-radius: 5px;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  -ms-border-radius: 5px;
  -o-border-radius: 5px;
}

.Settings_floating_btn {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  bottom: 0px;
  right: 16px;
  height: 50px;
  width: 50px;
  border-radius: 100px 100px 0 0;
  background-color: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.settings_list {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 10px;
  gap: 10px;
  border-bottom: 1px solid #f4f4f4;
  width: 100%;
}

.calculator-tabs {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 100%;
}

.tabs {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  height: 50px;
  width: 100%;
  padding: 0 10px 0;
  gap: 10px;
}
.tab {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  height: 50px;
  width: 100%;
  border-radius: 15px 15px 0 0;
  background-color: rgba(0, 0, 0, 0.2);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}
.tab.active {
    background-color: #fff;
}

.calculator {
  width: 100%;
  background-color: #fff;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  font-family: arial,sans-serif;
}

.calculator div:not(.display) {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 5px 0 5px;
}

.calculator .display {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-direction: column;
  gap: 5px;
  width: 100%;
  padding: 5px;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-bottom: 15px;
}
.calculator input {
  width: 100%;
  padding: 5px 10px 5px;
  font-weight: bold;
  text-align: right;
  font-size: 16px;
}

.calculator input:not(#input) {
  width: 100%;
  padding: 5px;
  color: rgb(0, 176, 240);
  font-size: 30px;
}

.calculator button {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f1f3f4;
  color: #202124;
  border: 1px solid #f1f3f4;
  border-radius: 4px;
  box-sizing: border-box;
  cursor: pointer;
  text-align: center;
  width: 100%;
  height: 50px;
}

.calculator button.divide,
.calculator button.multiply,
.calculator button.minus,
.calculator button.plus,
.calculator button.clear {
  background: #dadce0;
  color: #202124;
  border: 1px solid #dadce0;
  font-weight: bold;
  width: 50px;
}

.calculator button.clear {
  font-weight: normal;
}

.calculator button.equal {
  background: rgb(0, 176, 240);
  color: #fff;
  border: 1px solid rgb(0, 176, 240);
  font-weight: bold;
}
