html {
  height: 100%;
}
body {
  font-family: "Proxima Nova", "Ubiquity Nova", sans-serif;
  background-color: #06061aff;
  color: #fff;
  background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAABYWlDQ1BrQ0dDb2xvclNwYWNlRGlzcGxheVAzAAAokWNgYFJJLCjIYWFgYMjNKykKcndSiIiMUmB/yMAOhLwMYgwKicnFBY4BAT5AJQwwGhV8u8bACKIv64LMOiU1tUm1XsDXYqbw1YuvRJsw1aMArpTU4mQg/QeIU5MLikoYGBhTgGzl8pICELsDyBYpAjoKyJ4DYqdD2BtA7CQI+whYTUiQM5B9A8hWSM5IBJrB+API1klCEk9HYkPtBQFul8zigpzESoUAYwKuJQOUpFaUgGjn/ILKosz0jBIFR2AopSp45iXr6SgYGRiaMzCAwhyi+nMgOCwZxc4gxJrvMzDY7v////9uhJjXfgaGjUCdXDsRYhoWDAyC3AwMJ3YWJBYlgoWYgZgpLY2B4dNyBgbeSAYG4QtAPdHFacZGYHlGHicGBtZ7//9/VmNgYJ/MwPB3wv//vxf9//93MVDzHQaGA3kAFSFl7jXH0fsAAAA4ZVhJZk1NACoAAAAIAAGHaQAEAAAAAQAAABoAAAAAAAKgAgAEAAAAAQAAABigAwAEAAAAAQAAABgAAAAAwf1XlwAAACNJREFUSA3t0IEAAAAMBKFHm7/UTaQQWnXDgAEDBgwYMGDgAXaJAz4RVVHYAAAAAElFTkSuQmCC");
  min-height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}
@font-face {
  font-family: "Ubiquity Nova";
  font-style: normal;
  font-weight: 400;
  src: url(./fonts/ubiquity-nova-standard.eot);
  src:
    url(./fonts/ubiquity-nova-standard.eot#iefix) format("embedded-opentype"),
    url(./fonts/ubiquity-nova-standard.woff) format("woff"),
    url(./fonts/ubiquity-nova-standard.ttf) format("truetype");
}

/* Header Styles */

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  height: 60px;
}

#header-logo {
  display: flex;
  align-items: center;
  margin-right: auto;
}

#logo-icon {
  width: 30px;
  height: auto;
}

#logo-text {
  margin-left: 10px;
  font-size: 1.2rem;
  white-space: nowrap;
}

#page-selector {
  display: flex;
  gap: 20px;
  margin-right: auto;
}

#page-selector a {
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
}

/* Error Modal */

.error-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.error-modal-content {
  border: 1px solid #f22207;
  background-color: #111010;
  padding: 20px;
  padding-left: 30px;
  border-radius: 8px;
  width: 100%;
  max-width: 500px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.error-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.error-title {
  font-size: 1.5rem;
  font-weight: 400;
  margin: 0;
  color: #f22207;
}

.error-close-modal {
  background: none;
  border: none;
  cursor: pointer;
}

.error-close-modal svg {
  width: 30px;
  height: 30px;
}

.error-modal-body {
  margin-top: 15px;
  color: #ffffff;
  font-size: 1rem;
  line-height: 1.5;
}

.error-message {
  max-height: 400px;
  white-space: pre-wrap;
  text-overflow: ellipsis;
  overflow-y: scroll;
  word-break: break-word;
}

/* Success Modal */

.success-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.success-modal-content {
  border: 1px solid #5af55a;
  background-color: #111010;
  padding: 20px;
  padding-left: 30px;
  border-radius: 8px;
  width: 100%;
  max-width: 500px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.success-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.success-title {
  font-size: 1.5rem;
  font-weight: 400;
  margin: 0;
  color: #5af55a;
}

.success-close-modal {
  position: relative;
  top: 0;
  right: 0;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}

.success-close-modal svg {
  width: 30px;
  height: 30px;
}

.success-modal-body {
  margin-top: 15px;
  color: #ffffff;
  font-size: 1rem;
  line-height: 1.5;
}

.success-message {
  display: flex;
  flex-direction: column;
  max-height: 400px;
  white-space: pre-wrap;
  text-overflow: ellipsis;
  word-break: break-word;
}

.tx-hash {
  color: #fff;
  text-decoration: underline;
  padding-right: 30px;
}

/* Content Area Styles */

#content-area {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 50px;
}

.loading {
  content: "";
  display: block;
  width: 48px;
  height: 48px;
  border: 4px solid #ffffff40;
  border-top: 4px solid #fff;
  border-radius: 50%;
  animation:
    spin 1.5s cubic-bezier(1, 0, 1, 1) infinite alternate,
    fadeOut 1.5s ease-out 5s forwards;
  top: calc(50vh - (24px + 2px));
  opacity: 1;
  transition: 0.5s all ease-in-out;
  right: calc(50% - (24px + 2px));
  pointer-events: none;
}

@keyframes spin {
  0% {
    transform: rotate(0);
  }
  75% {
    transform: rotate(5400deg);
    border-bottom-color: #fff;
  }
  100% {
    transform: rotate(7200deg);
    border-color: #fff;
  }
}
@keyframes fadeOut {
  0% {
    filter: opacity(1);
  }
  100% {
    filter: opacity(0);
    border-color: transparent;
  }
}

.approve {
  display: flex;
  box-shadow: 0 0 10px 1px #fff;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  min-height: 200px;
  border-radius: 15px;
  border: 1px solid #fff;
  padding: 50px;
}

.approve-header {
  width: 100%;
}

.approve-content {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding-bottom: 40px;
  padding-top: 24px;
}

.current-allowance {
  font-size: 1.1rem;
  color: #808080;
}

.approve-selectors {
  padding-top: 8px;
  width: 100%;
  display: flex;
  justify-content: left;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.amount-selector {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  border-radius: 80px;
  height: 10px;
  padding: 15px;
  font-size: 1.1rem;
  width: 140px;
}

.token-selector {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  border-radius: 80px;
  height: 10px;
  padding: 15px;
  font-size: 1.1rem;
  flex: 1;
  min-width: 180px;
  overflow: ellipsis;
}

.amount-selector:hover,
.token-selector:hover {
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.approve-footer {
  display: flex;
  position: relative;
  bottom: 0;
  width: 100%;
  gap: 10px;
}

.approve-footer button {
  background-color: rgba(255, 255, 255, 0.8);
  color: #111;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
}

.approve-footer button:hover {
  background-color: rgba(255, 255, 255, 1);
}

.approve-footer :disabled {
  background-color: rgba(255, 255, 255, 0.4);
  color: #333;
  cursor: not-allowed;
}

h1 {
  margin: 0px 0px 10px 0px;
  font-size: 2rem;
}

p {
  margin: 0;
  font-size: 1rem;
}
