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

html {
  scroll-behavior: smooth;
}

:root {
    --navy: #06265C;
    --blue: #0878F9;
    --cyan: #08C2E8;
    --teal: #10C59A;
    --white: #FFFFFF;
}

body {
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    color: black;
    background: linear-gradient(100deg, #0878F9, #08C2E8);
    font-family: Arial, sans-serif;
}

a {
  text-decoration: none;
  color: #ffffff;
  outline: none;
}

.header-main {
    width: 100%;
    min-height: 80px;
    max-height: 90px;
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 25px;
    padding: 12px 5%;
    top: 0;
    position: sticky;
    background: linear-gradient(135deg, #0878F9, #08C2E8);
}

.header-main img {
    width: 80px;
    height: 75px;
    object-fit: cover;
    border-radius: 25%;
    margin-right: 7vw;
    box-shadow: 0 1px 3px 1px;
    
  }

nav {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    font-size: 1em;
}

nav a {
    color: #ffffff;
    font-size: 1em;
    font-weight: 700;
    text-decoration: none;
    transition: color 2s ease;
}

nav a:hover {
    color: black;
    transform: translateY(2px);
    border-radius: 15px;
}

.hero {
    margin: 40px 0;
}

.hero h2 {
    color: #ffffff;
    text-align: center;
    font-family: 'Cinzel';
    font-weight: 700;
    letter-spacing: 0.2rem;
}

.hero p {
    color: black;
    text-align: center;
    line-height: 1.6rem;
    margin-bottom: 50px;
    font-weight: 400;
    /*letter-spacing: 0.6rem;*/
    font-family: 'Comorant Garamond';
}

span {
  color: white;
  font-size: 1rem;
  font-weight: 700;
}

.converters {
  border: 3px solid #fff;
  margin: 20px 22%;
  border-radius: 25px;
  text-align: center;
  padding: 10px 30px;
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  z-index: -999;
  background: linear-gradient(135deg, #0878F9, #08C2E8);
  cursor: pointer;
}

.converters:hover {
  border: 3px solid black;
  box-shadow: 0 0 5px 2px;
  color: #fff;
}

.converter-section {
  display: flex;
  flex-direction: row;
 /* justify-content: center;
  align-items: center;*/
  gap: 20px;
  padding: 10px 20px;
}

.converter-card {
  background: linear-gradient(135deg, #0878F9, #08C2E8);
  width: 150px;
  color: black;
  height: 140px;
  border-radius: 15px;
  padding: 10px;
  box-shadow: 0 1px 3px 1px;
}

.converter-card i {
  padding: 2px 40% 5px;
  font-size: 30px;
  color: #10c59a;
}

.converter-card h3, p {
  text-align: center;
  line-height: 1.5rem;
}

.converter-card a:hover {
  color: black;
}

footer {
  margin: 20px;
}

footer p {
  font-weight: 700;
  font-size: 0.8rem;
  animation: rotateBackAndForth 2s ease-in-out infinite alternate;
  transform-origin: center center;
  transition: transform 0.5s ease;
}

footer a:hover {
  text-decoration: white;
  color: black;
}

@keyframes rotateBackAndForth {
  0% {
    transform: scale(0.9);
  }
  50% {
    transform: scale(1.3);
  }
  100% {
    transform: scale(0.9);
  }
}

/* Responsive layout */
/*@media (max-width: 600px) {
  .header-main {
    min-height: 70px;
    padding: 10px 4%;
    align-items: center;
    display: flex;
    gap: 12px;
  }

  .header-main img {
    width: 58px;
    height: 55px;
    margin-right: 15vw;
  }

  nav {
    justify-content: center;
    gap: 10px;
    font-size: 5rem;
  }

  nav a {
    font-size: 40px;
  }

  .hero {
    margin: 30px 15px;
  }

  .hero h2 {
    font-size: 1.35rem;
    letter-spacing: 0.08rem;
  }

  .hero p {
    margin-bottom: 35px;
    font-size: 0.95rem;
  }

  .converters {
    display: block;
    width: fit-content;
    margin: 20px auto;
    text-align: center;
  }

  .converter-section {
    gap: 12px;
    padding: 8px 12px;
  }

  .converter-box,
  .result-box {
    width: calc(100% - 24px);
    margin: 20px 12px;
  }

  .converter-box input,
  .converter-box select {
    width: 100%;
  }

  .converter-box button,
  .result-box p {
    margin-left: auto;
    margin-right: auto;
  }

  .converter-card {
    width: calc(50% - 6px);
    max-width: 180px;
    height: auto;
    min-height: 140px;
  }

  .converter-card i {
    display: block;
    padding: 2px 0 5px;
    text-align: center;
  }

  .converter-card h3 {
    font-size: 1rem;
  }

  .converter-card p {
    font-size: 0.85rem;
  }

  footer {
    margin: 20px 10px;
  }
}

@media (max-width: 360px) {
  .header-main {
    align-items: flex-start;
  }

  .header-main img {
    width: 48px;
    height: 46px;
  }

  nav {
    gap: 7px;
  }

  nav a {
    font-size: 12px;
  }

  .converter-section {
    flex-direction: column;
  }

  .converter-card {
    width: min(100%, 180px);
  }
}

@media (min-width: 601px) {
  .converter-box,
  .result-box {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
  }
}*/

/*Temperature styles*/

.back {
  margin: 20px;
}

.back a {
  border: 2px double #ffffff;
  padding: 10px;
  border-radius: 25%;

}

.back a:hover {
  color: #10c59a;
}

.converter-box {
  width: 90%;
  height: auto;
  background: linear-gradient(135deg, #0878F9, #08C2E8);
  border-radius: 15px;
  padding: 15px;
  box-shadow: 0 1px 3px 1px;
  display: flex;
  justify-content: center;
  flex-direction: column;
  margin: 20px;
}

.converter-box input {
  width: 96%;
  height: 45px;
  border-radius: 12px;
  margin: 2px 0 10px;
  padding: 15px;
  border: none;
  background: #f6f8ec;
  box-shadow: 0 1px 3px 1px;
}

.converter-box label {
  display: block;
  font-weight: 700;
  margin-top: 10px;
}

.converter-box select {
  width: 96%;
  height: auto; /* Change from 20px to auto */
  min-height: 45px; /* Give it a comfortable touch target */
  padding: 10px 15px;
  border-radius: 12px;
  margin: 2px 0 10px;
  border: none;
  background: #f6f8ec;
  z-index: 999;
  box-shadow: 0 1px 3px 1px;
}

.converter-box h2 {
  color: #ffffff;
    text-align: center;
    font-family: 'Cinzel';
    font-weight: 700;
    letter-spacing: 0.2rem;
}

.converter-box p {
  color: black;
    text-align: center;
    line-height: 1.6rem;
    margin-bottom: 50px;
    padding-bottom: 5px;
    font-weight: 700;
    /*letter-spacing: 0.6rem;*/
    font-family: 'Comorant Garamond';
}

#convertButton {
  padding: 10px 20px;
  width: 150px;
  border-radius: 15px;
  margin: 5px 25%;
  font-weight: 700;
  border: none;
  outline: none;
  box-shadow: 0 1px 3px 1px;
  /*animation: rotateBackForth 1s ease-in-out infinite alternate;
  transform-origin: center center;*/
}

#searchs {
  padding: 10px;
  width: 90%;
  border-radius: 15px;
  margin: 5px;
  font-weight: 700;
  border: none;
  outline: none;
  box-shadow: 0 1px 3px 1px;
}

/*@keyframes rotateBackForth {
  0% {
    transform: translate(-4px, 4px) scaleX(1.02);
  }
  50% {
    transform: translate(4px, -4px) scaleX(1.02);
  }
  100% {
    transform: translate(-4px, 4px) scaleX(1.02);
  }
}*/

.result-box {
  width: 90%;
  height: auto;
  background: linear-gradient(135deg, #0878F9, #08C2E8);
  border-radius: 15px;
  padding: 15px;
  box-shadow: 0 1px 3px 1px;
  display: flex;
  justify-content: center;
  flex-direction: column;
  margin: 20px;
}

.result-box p {
  background: #ffffff;
  padding: 10px 20px;
  width: 150px;
  border-radius: 15px;
  margin: 5px 25%;
  font-weight: 700;
  border: none;
  box-shadow: 0 1px 3px 1px;
}

.currency-picker { 
  position: relative; 
  width: 100%;
} 
.currency-select { 
  width: 100%; 
  min-height: 50px; 
  padding: 13px 15px; 
  border-radius: 12px; 
  border: 1px solid rgba(255,255,255,0.15); 
  background: rgba(0,0,0,0.25); 
  color: white; 
  font-size: 15px; 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  gap: 10px; 
  text-align: left; 
  cursor: pointer; 
  outline: none; 
} 
.currency-select:hover { 
  border-color: #00d4ff; 
} 
.currency-select:focus { 
  border-color: #00d4ff; 
  box-shadow: 0 0 0 3px rgba(0,212,255,0.1); 
} 
.arrow { 
  color: #00d4ff; 
  font-size: 12px; 
  transition: 0.2s; 
} 
.currency-picker.open .arrow { 
  transform: rotate(180deg); 
} 
.currency-menu { 
  position: absolute; 
  top: calc(100% + 8px); 
  left: 0; width: 100%; 
  background: #101c2d; 
  border: 1px solid rgba(255,255,255,0.15); 
  border-radius: 14px; 
  padding: 10px; 
  z-index: 1000; 
  display: none; 
  box-shadow: 0 15px 35px rgba(0,0,0,0.45); 
} 
.currency-picker.open .currency-menu { 
  display: block; 
} 
.currency-search { 
  width: 100%; 
  padding: 12px; 
  border-radius: 9px; 
  border: 1px solid rgba(255,255,255,0.15); 
  background: rgba(255,255,255,0.07); 
  color: white; 
  outline: none; 
  font-size: 14px; 
  margin-bottom: 8px; 
} .currency-search::placeholder { 
  color: #8290a3; 
} 
.currency-search:focus { 
  border-color: #00d4ff; 
} 
.currency-list { 
  max-height: 240px; 
  overflow-y: auto; 
} 
.currency-item { 
  padding: 11px 12px; 
  border-radius: 8px; 
  cursor: pointer; 
  color: #dce5ef; 
  font-size: 14px; 
  transition: 0.15s; 
} 
.currency-item:hover { 
  background: rgba(0,212,255,0.15); 
  color: #00d4ff; 
} 
.no-results { 
  padding: 15px; 
  text-align: center; 
  color: #8290a3; 
  font-size: 13px; 
} 
.currency-list::-webkit-scrollbar { 
  width: 5px; 
} 
.currency-list::-webkit-scrollbar-thumb { 
  background: #00d4ff; 
  border-radius: 10px; 
} 
@media (max-width: 600px) { 
  .currency-menu { 
    position: absolute; 
    max-height: 300px; 
  } 
  .currency-list { 
    max-height: 220px; 
    } 
  }

