* {
  margin: 0;
  padding: 0;
}

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Inter:wght@300;400;500;600;700;800&family=DM+Serif+Display:ital@0;1&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

.line {
  position: absolute;
  top: 15vh; /* Use viewport height for better scaling */
  left: 50%;
  transform: translateX(-50%);
 font-family: 'Playfair Display', 'DM Serif Display', 'Georgia', serif;
  font-weight: 500;
  font-style: italic;
  font-size: 4vh;
  font-weight: 2;
  text-align: center;
  color: #4a90e2;
  letter-spacing: 1px;
  line-height: 1.7;
  width: 85%;
  max-width: 500px;
  padding: 0 20px;
  z-index: 8; /* Between header (10) and converter (5) */
}

/* Large desktops */
@media (min-width: 1200px) {
  .line {
    top: 12vh; /* Higher up on large screens */
    font-size: 2.9vh;
  }
}

/* Standard desktops */
@media (min-width: 992px) and (max-width: 1199px) {
  .line {
    top: 13vh;
    font-size: 3.2vh;
  }
}

/* Tablets */
@media (min-width: 768px) and (max-width: 991px) {
  .line {
    top: 14vh;
    font-size: 3.5vh;
    width: 90%;
  }
}

/* Large phones */
@media (min-width: 576px) and (max-width: 767px) {
  .line {
    top: 16vh; /* More space from header */
    font-size: 3vh;
    width: 95%;
    padding: 0 15px;
  }
}

/* Small phones */
@media (max-width: 575px) {
  .line {
    top: 18vh; /* Even more space from header */
    font-size: 2.5vh;
    width: 98%;
    padding: 0 10px;
    line-height: 1.4;
  }
}

/* Very small screens */
@media (max-width: 360px) {
  .line {
    top: 20vh; /* Maximum space from header */
    font-size: 2.2vh;
    padding: 0 8px;
  }
}

/* Landscape phones */
@media (max-width: 767px) and (orientation: landscape) {
  .line {
    top: 25vh; /* Much higher in landscape */
    font-size: 2.8vh;
  }
}

body {
  height: 100%;
  margin: 0;
  display: flex;
  justify-content: center; /* horizontal center */
  align-items: center;     /* start at center */
  padding-top: 30vh ;
}

.amount{
  font-size: 1.3rem;
}
.from{
  font-size: 1.1rem;
}
.to{
  font-size: 1.1rem;
}

.container {
  background-color: rgba(255, 255, 255, 0.95);
  padding: 2rem;
  border-radius: 1rem;
  min-height: 40vh;
  width: 55vh;
  box-shadow: 0 0 20px rgba(74, 144, 226, 0.3);
  border: 1px solid rgba(74, 144, 226, 0.2);
  color: #2c3e50;
  
  /* Move slightly down from middle */
  transform: translateY(10px); /* adjust px as needed */
}

form {
  margin: 2rem 0 1rem 0;
}
@import url('https://fonts.googleapis.com/css2?family=Lobster&display=swap');

.mainn1 {
    font-family: 'Lobster', cursive;
    font-size: 40px;
    color: #2c3e50;
    margin-bottom: 55px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}


form select,
button,
input {
  width: 100%;
  border: none;
  outline: none;
  border-radius: 0.75rem;
}

form input {
  border: 1px solid rgba(74, 144, 226, 0.3);
  font-size: 1.5rem;
  height: 3rem;
  padding-left: 0.5rem;
  background-color: rgba(255, 255, 255, 0.9);
  color: #2c3e50;
}

.dropdown {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
}

.dropdown i {
  font-size: 1.5rem;
  margin-top: 1rem;
}

.select-container img {
  max-width: 2rem;
}

.select-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 6rem;
  border-radius: 0.5rem;
  border: 1px solid #4a90e2;
}

.select-container select {
  font-size: 1rem;
  width: auto;
}

.msg {
  margin: 2rem 0 2rem 0;
  color: #2c3e50;
  text-shadow: 0 0 5px rgba(74, 144, 226, 0.3);
  font-size: 3vh;
}

form button {
  height: 3rem;
  background-color: rgba(231, 76, 60, 0.9);
  color: #ffffff;
  font-size: 1.15rem;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(231, 76, 60, 0.4);
}


button {
 position: relative;
 border: none;
 background: transparent;
 padding: 0;
 cursor: pointer;
 outline-offset: 4px;
 transition: filter 250ms;
 user-select: none;
 touch-action: manipulation;
}

.shadow {
 position: absolute;
 top: 0;
 left: 0;
 width: 100%;
 height: 100%;
 border-radius: 12px;
 background: hsl(0deg 0% 0% / 0.25);
 will-change: transform;
 transform: translateY(2px);
 transition: transform
    600ms
    cubic-bezier(.3, .7, .4, 1);
}

.edge {
 position: absolute;
 top: 0;
 left: 0;
 width: 100%;
 height: 100%;
 border-radius: 12px;
 background: linear-gradient(
    to left,
    hsl(210deg 60% 25%) 0%,
    hsl(210deg 60% 45%) 8%,
    hsl(210deg 60% 45%) 92%,
    hsl(210deg 60% 25%) 100%
  );
}


.front {
 display: block;
 position: relative;
 padding: 12px 27px;
 border-radius: 12px;
 font-size: 1.1rem;
 color: white;
 background: hsl(210deg 70% 55%);
 will-change: transform;
 transform: translateY(-4px);
 transition: transform
    600ms
    cubic-bezier(.3, .7, .4, 1);
}

button:hover {
 filter: brightness(110%);
}

button:hover .front {
 transform: translateY(-6px);
 transition: transform
    250ms
    cubic-bezier(.3, .7, .4, 1.5);
}

button:active .front {
 transform: translateY(-2px);
 transition: transform 34ms;
}

button:hover .shadow {
 transform: translateY(4px);
 transition: transform
    250ms
    cubic-bezier(.3, .7, .4, 1.5);
}

button:active .shadow {
 transform: translateY(1px);
 transition: transform 34ms;
}

button:focus:not(:focus-visible) {
 outline: none;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: #1e3c72;
  color: #fff;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  box-sizing: border-box;
}

.nav-links {
  display: flex;
  font-size: 16px;
  gap: 15px;
  flex-wrap: wrap; /* Allow wrapping on very small screens */
}

.nav-links a {
  text-decoration: none;
  color: #fff;
  font-size: 25px;
  font-weight: 500;
  transition: color 0.3s, transform 0.3s;
  white-space: nowrap; /* Prevent text wrapping */
}

.nav-links a:hover {
  color: #4a90e2;
  transform: scale(1.05);
}

/* Tablet styles */
@media (max-width: 768px) {
  .site-header {
    padding: 12px 15px;
  }
  
  .nav-links {
    gap: 12px;
  }
  
  .nav-links a {
    font-size: 15px;
  }
}

/* Mobile styles */
@media (max-width: 480px) {
  .site-header {
    padding: 10px 12px;
    flex-wrap: wrap;
  }
  
  .nav-links {
    gap: 10px;
  }
  
  .nav-links a {
    font-size: 14px;
    padding: 5px 8px;
  }
}

/* Very small screens */
@media (max-width: 360px) {
  .site-header {
    padding: 8px 10px;
  }
  
  .nav-links {
    gap: 8px;
  }
  
  .nav-links a {
    font-size: 13px;
    padding: 4px 6px;
  }
}


.logo {
  font-size: 33px;
  font-weight: bold;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 1px;
  color: #ffffff;
}

.nav-links a {
  margin-left: 25px;
  text-decoration: none;
  font-size: 16px;
  color: #fff;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #4a90e2;
}

/* Modal background */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7); /* background dim */
}

/* Modal box */
.modal-content {
  position: relative;
  background: #fff;
  margin: 5% auto;
  border-radius: 15px;
  width: 70%;
  max-width: 800px;
  height: 75%;
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
  overflow: hidden;
  animation: fadeIn 0.3s ease;
}

/* Iframe fills box */
.modal-content iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Close button */
.close {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
}

@keyframes fadeIn {
  from {opacity: 0; transform: translateY(-20px);}
  to {opacity: 1; transform: translateY(0);}
}

/* About Box Overlay */
#about-box {
  display: none;              /* hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6); /* dark overlay background */
  justify-content: center;    /* center the box */
  align-items: center;
  z-index: 9999;              /* keep it on top */
}

/* Inside Content */
.about-content {
  width: 60%;
  background: rgba(255, 255, 255, 0.1); /* semi-transparent glass */
  backdrop-filter: blur(8px);           /* frosted glass effect */
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  position: relative;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

/* Close Button */
.close-btn {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  color: #2c3e50;
}
.close-btn:hover {
  color: #e74c3c;
}

.about-section {
  margin-bottom: 2.5rem;
  background-color: rgba(255, 255, 255, 0.1); /* semi-transparent */
  backdrop-filter: blur(5px); /* glass effect */
}

.about{
font-size: 3rem;
color: #01060c;
}

.p1{
  color: #ffffff;
}
.p2{
  color: #ffffff;
}
.p3{
  color: #ffffff;
}