/*
--- 01 TYPOGRAPHY SYSTEM

- Font sizes (px)
10 / 12 / 14 / 16 / 18 / 20 / 24 / 30 / 36 / 44 / 52 / 62 / 74 / 86 / 98

- Font weights
Default: 400
Medium: 500
Bold: 700

- Line heights
Default: 1
Small: 1.05
Medium: 1.2
Paragraph default: 1.6
Large: 1.8

- Letter spacing
-0.5px
0.75px

--- 02 COLORS

- Primary: #191c29 #0d1117
- Secondary: #0faf59
- Tints:
#2b3040;
#131722
#eb984e

- Shades: 
#cf711f
#45260a

For TInts: #2b3040
- btn active border: #43474f
- btn hover border: #8b949e


- Accents:
- Greys

#888
#767676 (lightest grey allowed on #fff)
#6f6f6f (lightest grey allowed on #fdf2e9)
#555
#333

--- 05 SHADOWS

0 2.4rem 4.8rem rgba(0, 0, 0, 0.075);

--- 06 BORDER-RADIUS

Default: 9px
Medium: 11px

--- 07 WHITESPACE

- Spacing system (px)
2 / 4 / 8 / 12 / 16 / 24 / 32 / 48 / 64 / 80 / 96 / 128
*/

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  overflow-x: hidden;
}

/**************************/
/* GENRAL REUSABLE COMPONENTS */
/**************************/

.container {
  max-width: 130rem;
  /* padding: 0 3.2rem; */
  margin: 0 auto;
}

.grid {
  display: grid;
  column-gap: 2.4rem;
  row-gap: 2.4rem;
}

.grid--2-cols {
  grid-template-columns: repeat(2, 1fr);
}

.grid--4-cols {
  grid-template-columns: repeat(4, 1fr);
}

/* .grid:not(:last-child) {
  margin-bottom: 9.6rem;
} */

.heading-primary,
.heading-secondary,
.heading-tertiary {
  font-weight: 700;
  letter-spacing: -0.5px;
}

.heading-primary {
  font-size: 4.4rem;
  line-height: 1.2;
  margin-bottom: 3.2rem;
}

.heading-secondary {
  font-size: 4.4rem;
  line-height: 1.2;
  /* margin-bottom: 1.6rem; */
}
/*
.heading-tertiary {
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 3.2rem;
} */

.btn,
.btn--full,
.btn--outline,
.btn-link:link,
.btn-link:visited {
  display: inline-block;
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  padding: 1.6rem 3.2rem;
  border-radius: 9px;

  /* Only necessary for .btn */
  border: none;
  cursor: pointer;
  font-family: inherit;

  transition: all 0.3s;
}

.btn--full,
.btn--full:link,
.btn--full:visited {
  background-color: #0faf59;
  border: 1px solid #6fcf9b;
  color: #fff;
}

.btn--full:hover,
.btn--full:active {
  background-color: #35b972;
  border: 1px solid #b7e7cd;
  color: #fff;
}

.btn--outline,
.btn--outline:link,
.btn--outline:visited {
  background-color: #2b3040;
  border: 1px solid #43474f;
  color: #fff;
}

.btn--outline:hover,
.btn--outline:active {
  background-color: #444b5d;
  border: 1px solid #8b949e;
  color: #fff;
}

.btn--danger,
.btn--danger:link,
.btn--danger:visited {
  background-color: #f03e3e;
  border: 1px solid #f68b8b;
  color: #fff;
}

.btn--danger:hover,
.btn--dangerl:active {
  background-color: #fa5252;
  border: 1px solid #fbc5c5;
  color: #fff;
}

.small {
  font-size: 16px;
  font-weight: 500;
  padding: 1.2rem 1.6rem;
  border-radius: 5px;
  /* line-height: 18px; */
}

.long {
  width: 100%;
}

.trading-subsection-title .heading-secondary {
  font-size: 1.8rem;
  padding: 0.8rem 0;
  font-weight: 500;
  /* text-transform: uppercase; */
}

.trading-subsection-title {
  display: flex;
  justify-content: center;
  border-bottom: 4px solid #43474f;
  /* background-color: #2b3040; */
  /* margin-bottom: 1.6rem; */
}

.side-page {
  padding: 3rem;
}

.mini-container {
  padding: 2rem;
  border: 0.5px solid rgba(139, 139, 146, 0.603);
  border-radius: 4px;
  background-color: rgba(97, 101, 122, 0.312);
}

.deposit-withdrawal {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr auto;
  gap: 2rem;
  /* padding: 3rem; */
  min-height: 95vh;
  padding-bottom: 1rem;
}

.border-bottom-custom {
  border-bottom: 1px solid rgba(139, 139, 146, 0.603);
}

.mini-header .h2 {
  font-weight: 500;
  letter-spacing: 1px;
  font-size: 3rem;
  margin-bottom: 1rem;
}

/*---------- Toggle Button Design (v2 Update) -----------*/

.switch {
  position: relative;
  display: inline-block;
  width: 30px;
  height: 17px;
}

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

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

.slider:before {
  position: absolute;
  content: '';
  height: 13px;
  width: 13px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  -webkit-transition: 0.5s;
  transition: 0.5s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: rgba(253, 223, 71, 0.704);
}

input:focus + .slider {
  box-shadow: 0 0 1px rgba(253, 223, 71, 0.525);
}

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

/*----------- Toggle Button End----------*/

/*---------------------*/
/* Footer Group
/*-------------*/

.footer-group {
  display: grid;
  grid-template-columns: 28rem 1fr;
  padding: 2rem;
  border-radius: 4px;
  background-color: rgba(47, 55, 81, 0.583);
}

.advantages-list {
  padding: 0;
  margin: 0;
  border-right: 0.5px solid rgba(139, 139, 146, 0.603);
}

.advantages-item {
  font-weight: 400;
  display: flex;
  align-items: center;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.advantages-list .last {
  margin-bottom: 0;
}

.advantages-item .ph {
  font-size: 1.6rem;
  color: #0faf59;
  padding-right: 0.5rem;
}

.advantages-item .amount {
  color: #0faf59;
}

.footer-group .logo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5rem;
}

.footer-group .logo .img {
  height: 3.2rem;
  filter: grayscale(100);
  opacity: 60%;
}

/**************************/
/* ALERT backend js */
/**************************/

/* .alert-container {
  position: fixed;
  color: #fff;
  font-size: 1.6rem;
  line-height: 1.4;
  top: 10%;
  right: 1.4rem;
  margin-left: 3rem;
  z-index: 10000;
  text-align: center;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  opacity: 0;
  animation: fadeIn 0.5s ease-in-out forwards;
} */

.alert-container {
  position: fixed;
  color: #fff;
  font-size: 1.6rem;
  line-height: 1.4;
  top: 10%;
  right: 50%;
  /* margin-left: 3rem; */
  transform: translateX(50%);
  z-index: 10000;
  /* text-align: center; */
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  opacity: 0; /* Initially set to invisible */
  animation: fadeIn 0.5s ease-in-out forwards;
}

.alert-container .alert-success {
  /* width: 32rem; */
  color: #fff;
  background-color: #146c43;
  padding: 1.4rem;
  border: 1px solid #3a7d44;
  border-radius: 4px;
  margin-bottom: 0;
}

.alert-container .alert-danger {
  color: #fff;
  background-color: #b02a37;
  padding: 1.4rem;
  border: 1px solid #fa5252;
  border-radius: 4px;
  margin-bottom: 0;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-50%) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(-50%) scale(1);
  }
}

.alert {
  padding: 0;
}

/**************************/
/* ALERT frontend js */
/**************************/

.absolute-alert {
  position: fixed;
  top: 3%;
  right: 50%;
  font-size: 1.4rem;
  background-color: #286cff;
  color: white;
  padding: 10px;
  /* border: 1px solid #286cff; */
  border-radius: 4px;
  z-index: 1000;
}

.success-alert {
  position: fixed;
  top: 2.5%;
  right: 50%;
  transform: translateX(50%);
  font-size: 1.4rem;
  line-height: 1.4;
  color: #fff;
  background-color: #146c43;
  padding: 1.2rem;
  border: 1px solid #3a7d44;
  border-radius: 4px;
  z-index: 20000;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  opacity: 0; /* Initially set to invisible */
  animation: fadeIn 0.5s ease-in-out forwards;
}

.warning-alert {
  position: fixed;
  top: 2.5%;
  right: 50%;
  transform: translateX(50%);
  font-size: 1.4rem;
  line-height: 1.4;
  color: #fff;
  background-color: #b02a37;
  padding: 1.2rem;
  border: 1px solid #fa5252;
  border-radius: 4px;
  z-index: 20000;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  opacity: 0; /* Initially set to invisible */
  animation: fadeIn 0.3s ease-in-out forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
