@tailwind base;
@tailwind components;
@tailwind utilities;

@import "styles/CardWindow.scss";

@font-face {
  font-family: "Proxima Nova";
  src: local("Proxima Nova"),
    url("/fonts/Proxima\ Nova\ Regular.otf") format("opentype");
}

body {
  margin: 0;
  font-family: "Proxima Nova", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

code {
  font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New",
    monospace;
}

button {
  border: none;
  cursor: pointer;
}

input:focus,
select:focus,
textarea:focus,
button:focus {
  outline: none;
}

// app.scss

.App {
  position: relative;
  display: flex;
  align-items: stretch;
  height: 100vh;
  background: #8047eb;
}

.More-Buttons {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  z-index: 1000;
}

.More-Buttons a {
  background-color: #ffffff;
  border-radius: 10px;
  color: #7d17ea;
  border: none;
  font-size: 16px;
  font-weight: 600;
  padding: 15px 28px;
  margin: 0 12px;
  box-shadow: 0px 0px 12px rgba(95, 111, 119, 0.5);
  text-decoration: none;
}

.Github-Icon {
  font-size: 120%;
  color: #000000;
  margin-right: 5px;
  vertical-align: middle;
}

.Discord-Icon {
  font-size: 120%;
  color: #7289da;
  margin-right: 5px;
  vertical-align: middle;
}

.About-Icon {
  color: #000000;
  margin-right: 5px;
  vertical-align: middle;
}

.Main-Content {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: stretch;
}

.Token {
  flex-grow: 1;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.Card-Header {
  background-color: #deebff;
}

.Card-Body {
  position: relative;
  padding-top: 24px;
  padding-bottom: 36px;
  padding-left: 56px;
  padding-right: 56px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.Card-Token-Content {
  display: flex;
  align-items: stretch;
}

.Card-Image {
  width: 40%;
  flex: 1;
  opacity: 0.5;
  background-size: contain;
  background-repeat: no-repeat;
}

.Token-Select {
  padding: 12px 0px;
  font-size: 16px;
  font-weight: 600;
}

.Dropdown-Indicator {
  width: 18px;
}

.Dropdown-Indicator-Open {
  transform: rotate(180deg);
}

.Token-Balance {
  flex: 1;
  display: flex;
  align-items: flex-start;
  font-size: 32px;
  font-weight: 600;
  margin-right: 16px;
  margin-top: 24px;
  margin-bottom: 24px;
}
.Token-Balance-Numbers {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.Token-Balance-Current {
  white-space: nowrap;
  margin: 0;
}
.Token-Balance-Change {
  font-size: 12px;
  color: #7d17ea;
  margin: 0;
}

.Token-Balance img {
  height: 24px;
  width: 24px;
  margin-top: 6px;
  margin-right: 12px;
}

.Token-Name {
  margin-top: 12px;
  font-size: 14px;
  font-weight: normal;
  text-transform: uppercase;
}

.Card {
  display: flex;
  flex-direction: column;
  width: calc(100% - 64px - 102px);
  max-width: 420px;
  background-color: #ffffff;
  border-radius: 5px;
  overflow: hidden;
  -webkit-box-shadow: 0px 0px 30px rgba(95, 111, 119, 0.5);
  -moz-box-shadow: 0px 0px 30px rgba(95, 111, 119, 0.5);
  box-shadow: 0px 0px 30px rgba(95, 111, 119, 0.5);
}

.Token-Left .Card {
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  border-bottom-left-radius: 20px;
}

.Token-Right .Card {
  border-bottom-right-radius: 20px;
  border-top-right-radius: 20px;
  border-bottom-left-radius: 20px;
}

.Tweet-Body {
  padding: 24px 56px;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.Instructions {
  font-size: 14px;
  margin: 0 0 12px 0;
}

.Identifier {
  font-size: 12px;
  word-break: break-word;
  color: #788e99;
  margin: 0 0 12px 0;
}

.Action {
  color: #7d17ea;
  font-size: 18px;
  margin-bottom: 12px;
}

.URL-Input {
  padding: 8px;
  margin-bottom: 12px;
  border: none;
  background: #f4f5f7;
  border-bottom: 1px solid #202e66;
}

.Cancel {
  word-break: break-word;
  cursor: pointer;
  margin: 12px 0 0 0;
  text-align: center;
}

.First-Button {
  background-color: #7d17ea;
  color: white;
  font-size: 16px;
  font-weight: 600;
  border-radius: 16px;
  padding: 12px 32px;
  width: 100%;
}

.First-Button:disabled,
.Send-Button:disabled {
  background: #b8c4d5;
  cursor: not-allowed;
}
.Minting-Button:disabled,
.Sending-Button:disabled {
  cursor: not-allowed;
}

.Minting-Button,
.Sending-Button {
  color: white;
  font-size: 16px;
  font-weight: 600;
  border-radius: 16px;
  padding: 12px 32px;
  background-color: #fca311;
  display: flex;
  align-items: center;
  justify-content: center;
}

.Minting-Button img,
.Sending-Button img {
  height: 18px;
  margin: 0 4px;
}

.Ellipsis-Gif {
  height: 12px;
  margin-left: 2px;
  align-self: flex-end;
}

.Mint-Success {
  background-color: #fca311;
}
.Mint-Success:disabled {
  background-color: #fca311;
}

.Mint-Success i {
  margin-right: 8px;
  font-size: 14px;
}

.Send-Button {
  background-color: #7d17ea;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  border-radius: 16px;
  padding: 12px 32px;
}

.Send-Success {
  background-color: #fca311;
}
.Send-Success:disabled {
  background-color: #fca311;
}

.Send-Success i {
  margin-right: 8px;
  font-size: 14px;
}

.Send-Transaction-URL {
  color: gray;
  display: block;
  text-align: center;
  margin-top: 15px;
}

.Middle-Button-Container {
  width: 0;
  overflow: visible;
  z-index: 1;
  position: relative;
}

.Swap-Button {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 112px;
  width: 112px;
  border-radius: 64px;
  padding: 8px;
  text-align: center;
  line-height: 20px;
  font-size: 16px;
  background-color: #7d17ea;
  color: #ffffff;
  z-index: 900;
  -webkit-box-shadow: 0px 0px 30px rgba(95, 111, 119, 0.5);
  -moz-box-shadow: 0px 0px 30px rgba(95, 111, 119, 0.5);
  box-shadow: 0px 0px 30px rgba(95, 111, 119, 0.5);
}

.Swap-Button:disabled {
  cursor: not-allowed;
  background-color: #b8c4d5;
}

.Swap-Button img {
  height: 30px;
}

.Transferring-Circle {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  height: 112px;
  width: 112px;
  border-radius: 64px;
  background-color: #fcd116;
  overflow: hidden;
}

.Transferring-Circle img {
  width: 100%;
  height: 100%;
}

.Flip-Image img {
  transform: scaleX(-1);
}

.Transfer-Success {
  background-color: #fcd116;
  color: #2602ab;
}
.Transfer-Success:disabled {
  background-color: #fcd116;
}

.Transfer-Error {
  background-color: #b41f1f;
}
.Transfer-Error:disabled {
  background-color: #b41f1f;
}

.Footer {
  position: fixed;
  display: flex;
  justify-content: center;
  bottom: 0;
  width: 100%;
  background: #facd48;
  text-decoration: none;
  font-size: 16px;
  padding: 12px 0;
  margin: 0;
  cursor: pointer;
  text-align: center;
  color: black;
}

.Heart-Icon {
  margin-right: 5px;
  margin-left: 5px;
  color: #7d17ea;
}

@media screen and (max-width: 768px) {
  .More-Buttons {
    justify-content: center;
  }
  .More-Buttons a {
    padding: 8px 20px;
    text-align: center;
  }
  .More-Buttons a i {
    font-size: 200%;
    padding: 10px;
    margin: 0;
  }
  .Main-Content {
    flex-direction: column;
  }
  .Token-Left {
    padding-top: 120px;
    padding-bottom: 60px;
  }
  .Token-Right {
    padding-top: 60px;
    padding-bottom: 60px;
  }
  .Card {
    width: calc(100% - 48px - 102px);
    min-width: 200px;
    margin: 24px;
  }
  .Card-Image {
    display: none;
  }

  .Card-Token-Content {
    margin-bottom: 24px;
  }
  .Token-Balance {
    margin: 0;
  }
  .Middle-Button-Container {
    width: auto;
    height: 0;
  }
  .Swap-Button {
    width: 96px;
    height: 96px;
    font-size: 14px;
    top: 0;
    left: 50%;
  }
  .Transferring-Circle {
    width: 96px;
    height: 96px;
    top: 0;
    left: 50%;
  }
  .Footer {
    font-size: 12px;
    padding: 8px;
  }
}

button {
  outline: none;
}

@keyframes fadeOut {
  0% {
    opacity: 1;
    visibility: visible;
  }
  100% {
    opacity: 0;
    visibility: hidden;
  }
}
@-moz-keyframes fadeOut {
  0% {
    opacity: 1;
    visibility: visible;
  }
  100% {
    opacity: 0;
    visibility: hidden;
  }
}
@-webkit-keyframes fadeOut {
  0% {
    opacity: 1;
    visibility: visible;
  }
  100% {
    opacity: 0;
    visibility: hidden;
  }
}
@-ms-keyframes fadeOut {
  0% {
    opacity: 1;
    visibility: visible;
  }
  100% {
    opacity: 0;
    visibility: hidden;
  }
}

// loading.scss
.Loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: rgba(244, 245, 247, 0.8);
  z-index: 999;
}

.Loading-fadeout {
  -moz-animation-name: fadeOut;
  -webkit-animation-name: fadeOut;
  -ms-animation-name: fadeOut;
  animation-name: fadeOut;
  -moz-animation-duration: 0.5s;
  -webkit-animation-duration: 0.5s;
  -ms-animation-duration: 0.5s;
  animation-duration: 0.5s;
  -moz-animation-fill-mode: forwards;
  -webkit-animation-fill-mode: forwards;
  -ms-animation-fill-mode: forwards;
  animation-fill-mode: forwards;
}

.Loading-Circle {
  height: 96px;
  width: 96px;
  border-radius: 64px;
  background-color: #fcd116;
  overflow: hidden;
}

.Loading-Circle img {
  width: 100%;
  height: 100%;
}

.Loading-Message {
  margin-top: 24px;
  font-size: 14px;
}
