:root {
  --primary-color: #003D1F;
  --bg-color: #02f67c;
  --light-bg-color: #fff;
  --text-color: #111116;
  --light-text-color: #cdccd1;
  --primary-text-color: #fff;
}
::-webkit-scrollbar {
  width: 5px;
}
::-webkit-scrollbar-track {
  border-radius: 30px;
  background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
  border-radius: 30px;
  background:  #00ad56;
}
::-webkit-scrollbar-thumb:hover {
  background: #007e3f;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body.dark {
  --bg-color: #111116;
  --light-bg-color: #1c1b20;
  --text-color: #fff;
  --light-text-color: #58575c;
}
.fedo {
  position: relative;
  width: 1200px;
  padding: 0 20px;
  display: flex;
  gap: 10px;
  font-weight: bold !important;
  transform: translateY(60px);
  max-height: calc(100vh - 160px);
}
.fedo .card {
  flex: 1;
  padding: 30px;
  border-radius: 15px;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 6;
  border: 2px solid white;
}
.fedo .card .from,
.fedo .card .to {
  display: flex;
  align-items: center;
  gap: 20px;
}
.fedo .card .from {
  margin-right: 20px;
}
.fedo .card .to {
  margin-left: 20px;
}
.fedo .card .heading {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--light-text-color);
  white-space: nowrap;
}
.dropdown-container {
  position: relative;
  margin-bottom: 10px;
  width: 100%;
}
.dropdown-container .dropdown-toggle {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  border-radius: 30px;
  background-color: var(--bg-color);
  cursor: pointer;
  transition: all 0.3s;
}
.dropdown-container .dropdown-toggle span {
  flex: 1;
  margin-left: 10px;
  color: black;
}
.dropdown-container .dropdown-toggle ion-icon {
  color: black;
  font-size: 20px;
  transition: transform 0.3s ease;
}
.dropdown-container.active .dropdown-toggle {
  border-radius: 20px 20px 0 0;
}
.dropdown-container.active .dropdown-toggle ion-icon:last-child {
  transform: rotate(180deg);
}
.dropdown-container .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 300px;
  overflow: auto;
  display: none;
  padding: 20px;
  z-index: 1;
  list-style: none;
  flex-direction: column;
  background-color: #003D1F;
  transition: all 1s;
  border-radius: 0 0 20px 20px;
}
.dropdown-container .dropdown-menu::-webkit-scrollbar {
  display: none;
}
.dropdown-container.active .dropdown-menu {
  display: flex;
}

.po{
  color: white;
  font-weight: bold;
}

.dropdown-container .dropdown-menu li {
  padding: 10px 20px;
  cursor: pointer;
  font-size: 1rem;
  border-radius: 15px;
  border: 3px solid #003D1F;
  background-color: #02f67c;
  color: black;
  font-weight: bold;
  cursor: pointer;
  margin-bottom: 8px;
}
.dropdown-container .dropdown-menu li:hover {
  background-color: rgb(0, 0, 0);
  color: white;
  border: 3px solid #02f67c;
  transition: .3s;
}

.dropdown-container .dropdown-menu li.active {
  background-color: rgb(0, 0, 0);
  color: white;
  border: 3px solid #ffffff;
}

.fedo .text-area {
  position: relative;
}
.fedo textarea {
  width: 100%;
  padding: 20px;
  margin: 10px 0;
  background-color: transparent;
  resize: none;
  outline: none;
  border: none;
  color: white !important;
  font-size: 18px;
  font-family: "Poppins", sans-serif;
}
.fedo .text-area .chars {
  position: absolute;
  bottom: 0;
  right: 0;
  padding: 10px;
  font-size: 0.8rem;
  color: var(--light-text-color);
}
.fedo .center {
  position: relative;
}
.swap-position {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 7;
  border: 5px solid white;
  transition: all 0.3s ease;
  color: var(--primary-text-color);
  background-color: black;
}
.swap-position ion-icon {
  font-size: 25px;
}
.swap-position:hover {
  transform: translateX(-50%) scale(1.1);
}
.card-bottom {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  padding-top: 20px;
  border-top: 2px solid var(--bg-color);
}
.card-bottom p {
  margin-bottom: 20px;
}
.card-bottom label {
  height: 50px;
  display: flex;
  align-items: center;
  gap: 20px;  
  border-radius: 15px;
  padding: 1.5rem;
  border: 2px solid black;
  background-color: #02f67c;
  color: black;
  font-weight: bold;
  cursor: pointer;
}
.card-bottom label:hover {
  outline-color: #02f67c;
  outline-style: solid;
  outline-offset: 2px;
  transition: .1s;
}
.card-bottom span {
  font-size: 15px;
  pointer-events: none;
}
.card-bottom ion-icon {
  font-size: 20px;
}

.card-bottom button {
  height: 50px;
  display: flex;
  align-items: center;
  gap: 20px;  
  border-radius: 15px;
  padding: 1.5rem;
  border: 2px solid black;
  background-color: #02f67c;
  color: black;
  font-weight: bold;
  cursor: pointer;
}
.card-bottom button:hover {
  outline-color: #02f67c;
  outline-style: solid;
  outline-offset: 2px;
  transition: .1s;
}

.mode {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1;
}
.toggle {
  position: relative;
  cursor: pointer;
}
.toggle-track {
  width: 24px;
  height: 50px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 3px 0;
  justify-content: space-between;
  border: 1px solid var(--light-text-color);
  background-color: var(--light-bg-color);
  transition: all 0.2s ease;
}
.toggle-checkbox {
  display: none;
}
.toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--primary-color);
  transition: all 0.5s;
}
.toggle input:checked ~ .toggle-thumb {
  transform: translateY(25px);
}
.toggle img {
  width: 20px;
  height: 20px;
}

/* media quiries */
@media (max-width: 800px) {
  .fedo {
    width: 100%;
    margin-top: 20px;
    flex-direction: column;
    max-height: calc(100vh - 150px);
    transform: translateY(60px);
    overflow-y: auto;
  }
  .fedo .card {
    width: 100%;
  }
  .fedo .card .from {
    margin-right: 0;
  }
  .fedo .card .to {
    margin-left: 0;
  }
  .fedo .card .from,
  .fedo .card .to {
    flex-direction: column;
  }

  .swap-position {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  .swap-position:hover {
    transform: translate(-50%, -50%) scale(1.1);
  }
  .swap-position ion-icon {
    transform: rotate(90deg);
  }
}
