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

body {
  background: linear-gradient(135deg, #686767, #2c2c2c);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  color: #fff;
}

/* Main container */
.main-div {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 2rem;
}

/* Glassmorphism card */
.main {
  background: rgba(20, 20, 20, 0.75);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 3rem;
  width: 550px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: #f0f0f0;
}

/* Heading */
.heading {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  font-weight: 700;
  background: linear-gradient(90deg, #de082c, #441571);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Amount input */
input {
  width: 100%;
  padding: 1.8rem;
  font-size: 1.5rem;
  border-radius: 15px;
  border: none;
  outline: none;
  text-align: center;
  margin-bottom: 2rem;
  background-color: rgba(40, 40, 40, 0.8);
  color: #fff;
  transition: 0.3s ease;
}

input:focus {
  background-color: rgba(0, 0, 0, 0.9);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
  border: none;
  outline-style: none;
}

/* FROM / TO labels */
.text {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: #ccc;
}
.convertor_img {
  cursor: pointer;
}
/* Flags and select layout */
.flags {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.selection {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

/* Flag images */
.flag img {
  width: 100px;
  height: auto;
  margin-bottom: 0.5rem;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.6);
}

/* Select styling */
select {
  width: 100%;
  padding: 1rem 1.2rem;
  border-radius: 15px;
  border: none;
  background: rgba(50, 50, 50, 0.85);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s ease;
  font-size: 1.2rem;
}

select:hover {
  background: rgba(70, 70, 70, 0.9);
}

/* Conversion arrow */
.convertor_img {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 1rem;
  color: #fff;
}

/* Convert button */
#convertorBtn {
  background: linear-gradient(90deg, #ae122c, #093772);
  color: #fff;
  font-size: 1.3rem;
  padding: 1.3rem 2rem;
  border: none;
  border-radius: 15px;
  cursor: pointer;
  font-weight: 700;
  transition: 0.3s ease;
  width: 100%;
  margin-bottom: 1rem;
}

#convertorBtn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}

/* Result box */
#result {
  background: rgba(50, 50, 50, 0.9);
  padding: 1rem;
  border-radius: 15px;
  font-size: 1.4rem;
  font-weight: 600;
  color: #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

/* Responsive */
@media screen and (max-width: 600px) {
  .main {
    width: 90%;
    padding: 2rem;
  }

  .flag img {
    width: 80px;
  }

  select {
    font-size: 1rem;
    padding: 0.8rem 1rem;
  }

  #convertorBtn {
    font-size: 1rem;
    padding: 1rem;
  }

  input {
    padding: 1.5rem;
    font-size: 1.2rem;
  }
}
