@import url('https://fonts.googleapis.com/css2?family=Agbalumo&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap'); 
 
 html, body {
      margin: 0;
      padding: 0;
      height: 100%;
      width: 100%;
      overflow-y: auto;   
      overflow-x: hidden;
  }


/*home section starts here*/
/* Home Section Starts */
.main-container {
  min-height: 100vh;
  background: linear-gradient(135deg, #000000 0%, #222222 100%);
  padding: 2rem;
}

/* Logo and Navbar */
.logo {
  font-family: Agbalumo;
  font-size: 2.5rem;
  color: #eef4ed;
}

nav {
  
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  display: flex;
  gap: 2rem;
  font-family: 'Montserrat', sans-serif;
  z-index: 1000;
}

nav a {
  color: #6e6b6b;
  text-decoration: none;
  position: relative;
  padding-bottom: 5px;
  transition: color 0.3s ease;
}

nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0%;
  background-color: #f0f1f1;
  transition: width 0.3s ease;
}

nav a:hover {
  color: #f3f8f8;
}

nav a:hover::after {
  width: 100%;
}


/* Heading */
.middle-section h1 {
  font-family: 'Montserrat';
  text-align: center;
  color: #adb5bd;
  margin: 5rem auto 2rem auto;
  font-size: 3.5rem;
  font-weight: 700;
  max-width: 80%;
  line-height: 1.2;
}
/*search bar*/
/*search bar starts*/
.grid {
 .grid {
  height: 800px;
  width: 800px;
  background-image: linear-gradient(to right, #0f0f10 1px, transparent 1px),
    linear-gradient(to bottom, #0f0f10 1px, transparent 1px);
  background-size: 1rem 1rem;
  background-position: center center;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  filter: blur(1px);
}

}
.white,
.border,
.darkBorderBg,
.glow {
  max-height: 70px;
  max-width: 314px;
  height: 100%;
  width: 100%;
  position: absolute;
  overflow: hidden;
  z-index: -1;
  /* Border Radius */
  border-radius: 12px;
  filter: blur(3px);
}
.input {
  background-color: #010201;
  border: none;
  width: 301px;
  height: 56px;
  border-radius: 10px;
  color: white;
  padding-inline: 59px;
  font-size: 18px;
}
#poda {
  display: flex;
  align-items: center;
  justify-content: center;
}
.input::placeholder {
  color: #c0b9c0;
}

.input:focus {
  outline: none;
}

#main:focus-within > #input-mask {
  display: none;
}

#input-mask {
  pointer-events: none;
  width: 100px;
  height: 20px;
  position: absolute;
  background: linear-gradient(90deg, transparent, black);
  top: 18px;
  left: 70px;
}
#pink-mask {
  pointer-events: none;
  width: 30px;
  height: 20px;
  position: absolute;
  background: #cf30aa;
  top: 10px;
  left: 5px;
  filter: blur(20px);
  opacity: 0.8;
  animation:leftright 4s ease-in infinite;
  transition: all 2s;
}
#main:hover > #pink-mask {
  animation: rotate 4s linear infinite;
  opacity: 0;
}

.white {
  max-height: 63px;
  max-width: 307px;
  border-radius: 10px;
  filter: blur(2px);
}

.white::before {
  content: "";
  z-index: -2;
  text-align: center;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(83deg);
  position: absolute;
  width: 600px;
  height: 600px;
  background-repeat: no-repeat;
  background-position: 0 0;
  filter: brightness(1.4);
  background-image: conic-gradient(
    rgba(0, 0, 0, 0) 0%,
    #a099d8,
    rgba(0, 0, 0, 0) 8%,
    rgba(0, 0, 0, 0) 50%,
    #dfa2da,
    rgba(0, 0, 0, 0) 58%
  );
  animation: rotate 4s linear infinite;
  transition: all 2s;
}
.border {
  max-height: 59px;
  max-width: 303px;
  border-radius: 11px;
  filter: blur(0.5px);
}
.border::before {
  content: "";
  z-index: -2;
  text-align: center;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(70deg);
  position: absolute;
  width: 600px;
  height: 600px;
  filter: brightness(1.3);
  background-repeat: no-repeat;
  background-position: 0 0;
  background-image: conic-gradient(
    #1c191c,
    #402fb5 5%,
    #1c191c 14%,
    #1c191c 50%,
    #cf30aa 60%,
    #1c191c 64%
  );
  animation: rotate 4s 0.1s linear infinite;
  transition: all 2s;
}
.darkBorderBg {
  max-height: 65px;
  max-width: 312px;
}
.darkBorderBg::before {
  content: "";
  z-index: -2;
  text-align: center;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(82deg);
  position: absolute;
  width: 600px;
  height: 600px;
  background-repeat: no-repeat;
  background-position: 0 0;
  background-image: conic-gradient(
    rgba(0, 0, 0, 0),
    #18116a,
    rgba(0, 0, 0, 0) 10%,
    rgba(0, 0, 0, 0) 50%,
    #6e1b60,
    rgba(0, 0, 0, 0) 60%
  );
  transition: all 2s;
}
#poda:hover > .darkBorderBg::before {
  transform: translate(-50%, -50%) rotate(262deg);
}
#poda:hover > .glow::before {
  transform: translate(-50%, -50%) rotate(240deg);
}
#poda:hover > .white::before {
  transform: translate(-50%, -50%) rotate(263deg);
}
#poda:hover > .border::before {
  transform: translate(-50%, -50%) rotate(250deg);
}

#poda:hover > .darkBorderBg::before {
  transform: translate(-50%, -50%) rotate(-98deg);
}
#poda:hover > .glow::before {
  transform: translate(-50%, -50%) rotate(-120deg);
}
#poda:hover > .white::before {
  transform: translate(-50%, -50%) rotate(-97deg);
}
#poda:hover > .border::before {
  transform: translate(-50%, -50%) rotate(-110deg);
}

#poda:focus-within > .darkBorderBg::before {
  transform: translate(-50%, -50%) rotate(442deg);
  transition: all 4s;
}
#poda:focus-within > .glow::before {
  transform: translate(-50%, -50%) rotate(420deg);
  transition: all 4s;
}
#poda:focus-within > .white::before {
  transform: translate(-50%, -50%) rotate(443deg);
  transition: all 4s;
}
#poda:focus-within > .border::before {
  transform: translate(-50%, -50%) rotate(430deg);
  transition: all 4s;
}

.glow {
  overflow: hidden;
  filter: blur(30px);
  opacity: 0.4;
  max-height: 130px;
  max-width: 354px;
}
.glow:before {
  content: "";
  z-index: -2;
  text-align: center;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(60deg);
  position: absolute;
  width: 999px;
  height: 999px;
  background-repeat: no-repeat;
  background-position: 0 0;
  /*border color, change middle color*/
  background-image: conic-gradient(
    #000,
    #402fb5 5%,
    #000 38%,
    #000 50%,
    #cf30aa 60%,
    #000 87%
  );
  /* change speed here */
  animation: rotate 4s 0.3s linear infinite;
  transition: all 2s;
}

@keyframes rotate {
  100% {
    transform: translate(-50%, -50%) rotate(450deg);
  }
}
@keyframes leftright {
  0% {
    transform: translate(0px, 0px);
    opacity: 1;
  }

  49% {
    transform: translate(250px, 0px);
    opacity: 0;
  }
  80% {
    transform: translate(-40px, 0px);
    opacity: 0;
  }

  100% {
    transform: translate(0px, 0px);
    opacity: 1;
  }
}

#filter-icon {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  max-height: 40px;
  max-width: 38px;
  height: 100%;
  width: 100%;

  isolation: isolate;
  overflow: hidden;
  border-radius: 10px;
  background: linear-gradient(180deg, #161329, black, #1d1b4b);
  border: 1px solid transparent;
}
.filterBorder {
  height: 42px;
  width: 40px;
  position: absolute;
  overflow: hidden;
  top: 7px;
  right: 7px;
  border-radius: 10px;
}

.filterBorder::before {
  content: "";

  text-align: center;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(90deg);
  position: absolute;
  width: 600px;
  height: 600px;
  background-repeat: no-repeat;
  background-position: 0 0;
  filter: brightness(1.35);
  background-image: conic-gradient(
    rgba(0, 0, 0, 0),
    #3d3a4f,
    rgba(0, 0, 0, 0) 50%,
    rgba(0, 0, 0, 0) 50%,
    #3d3a4f,
    rgba(0, 0, 0, 0) 100%
  );
  animation: rotate 4s linear infinite;
}
#main {
  position: relative;
}
#search-icon {
  position: absolute;
  left: 20px;
  top: 15px;
}
/*search bar ends*/

/*search bar ends*/

/* Scrolling Text */
.scrolling-line {
  margin-top: 1rem;
  position: relative;
  width: 100%;
  height: 2.5rem;
  overflow: hidden;
  background: #1a1818;
  border-radius: 8px;
}

.scrolling-content,
.scrolling-content.duplicate {
  font-size: 2rem;
  padding: 0.5rem;
  font-family: Montserrat;
  position: absolute;
  display: flex;
  gap: 72px;
  white-space: nowrap;
  animation: scroll-left 20s linear infinite;
}

.scrolling-content.duplicate {
  left: 100%;
}

.scrolling-content span {
  font-weight: 600;
  font-size: 1.3rem;
  color: #ddd;
  opacity: 0.9;
  user-select: none;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.15), 0 0 20px rgba(255, 255, 255, 0.1);
}

@keyframes scroll-left {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* Why Scribly Heading */
.section-title {
  text-align: center;
  margin-top: 5rem;
  font-size: 2.5rem;
  font-family: 'Montserrat';
  color: #adb5bd;
}

/* Below Cards */
.below-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem;
  margin-top: 2rem;
}

.card {
  width: 320px;
  border-radius: 24px;
 transition: transform 0.3s ease-in-out;

}

.content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 36px;
  border-radius: 22px;
  color: #ffffff;
  background: rgba(16, 15, 15, 0.7);
  position: relative;
  overflow: hidden;
}

.content::before,
.content::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  height: 90%;
  border-radius: inherit;
  z-index: -1;
  transition: all 0.48s cubic-bezier(0.23, 1, 0.32, 1);
}

.content::before {
  top: -4%;
  background: #ced8ff;
  z-index: -1;
}

.content::after {
  top: -8%;
  background: #e7ecff;
  z-index: -2;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.08);
}

.card:hover .content::before {
  top: 0;
  width: 100%;
  height: 100%;
  
}

.card:hover .content::after {
  top: 0;
  width: 100%;
  height: 100%;
  
}

.content svg {
  width: 48px;
  height: 48px;
}

.content .para {
  text-align: justify;
  font-size: 1rem;
  line-height: 1.6;
  font-family: 'Montserrat';
}

.content h4 {
  font-family: 'Montserrat';
  font-size: 1.2rem;
  margin-left: auto;
  margin-right: auto;
}

/* End */

/*home page ends here*/

/*meaning starts*/
.img-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.img-heading img {
  height: 8rem;
  width: 16rem;
  object-fit: contain;
  padding-top: 1rem;
}

.meaning {
  position: relative;
  min-height: 100vh;
  width: 100%;
  padding: 2rem;
  background-color: #000;
  box-sizing: border-box;
}

.img-heading h1 {
  text-transform: capitalize;
  font-family: 'Montserrat';
  font-size: 3rem;
  color: #F0F2BD;
  text-align: center;
  margin: 1rem 0;
}

.word {
  font-family: 'Montserrat';
  font-size: 3.5rem;
  color: #00ffd5;
  margin: 1.5rem 0 0.5rem 0;
}

.phonetic {
  font-style: italic;
  color: #cccccc;
  margin-bottom: 1rem;
}

.meaning-text {
  font-family: 'Montserrat';
  font-size: 1rem;
  color: #ffffff;
  line-height: 1.6;
  max-width: 70ch;
  margin-bottom: 1.2rem;
}

.example {
  color: #bbbbbb;
  font-style: italic;
  margin-bottom: 1rem;
}



.part-of-speech {
  font-style: italic;
  font-size: 1.1rem;
  color: #E7EFC7;
  margin-bottom: 0.8rem;
  font-family: 'Montserrat';
}

.status-message {
  color: #ffffff;
  font-family: 'Montserrat';
  font-size: 1.2rem;
  text-align: center;
  margin-top: 6rem;
}


/*meaning ends*/

/*antonym starts*/

.searchanto {
  height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
}

.search-heading {
  font-family: 'Montserrat';
  position: relative;
  text-align: center;
  color: #d8d8d8;
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
}


.antonym-body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', sans-serif;
  background: black;
  height: 100vh;
  justify-content: center;
  align-items: center;
  color: #fff;
}

.antonym-container {
  background-color: #000;
  overflow: hidden;  /* if you don’t want scrollbars */
}
.anto-img img
{
  margin-left: 4rem;
  padding: 1rem;
  margin-top: 2rem;
  width: 16rem;
  height: 8rem;
}

.anto-img
{
 display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap; /* for mobile support */
  gap: 1rem;
}

.main-title {
  margin: 1rem;
  font-family: 'Montserrat';
  text-align: center;
  font-size: 5rem;
  color: #F0F2BD;;
  margin-bottom: 40px;
  letter-spacing: 2px;
  text-shadow: 0 0 10px #00ffe7;
}

.word-section {
  width: 30rem;
  padding-top: 2rem;
  padding-left: 15rem;
  font-family: 'Montserrat';
  text-align: left;
  
}

.searched-word {
  font-family: 'Montserrat';
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #ffffff;
  text-transform: capitalize;
}

.result-box {
  
  width: 100%;
  max-width: 50rem;
  font-family: 'Montserrat';
  background-color: #121212;
  padding: 20px;
  border-left: 5px solid #00ffe7;
  font-size: 20px;
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(0, 255, 231, 0.3);
  color: #ccc;
}

.back-link {
  margin-left: 15rem;
  color: #00ffe7;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
  margin-top: 2rem;
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 5px;
}

.back-link:hover {
  color: #00cccc;
}

/*antonym ends*/
/*  Learn a New Word Page Starts*/

.learn-body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #000;
  color: #fff;
  min-height: 100vh;
}

/* Container */
.learn-container {
  background-color: #000;
  overflow: hidden;
}

/* Top Heading with Images */
.learn-img {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 1rem;
}

.learn-img img {
  width: 18rem;
  height: 8rem;
  padding: 1rem;
}

.main-title {
  font-family: 'Montserrat';
  font-size: 3rem;
  color: #F0F2BD;
  margin: 0 2rem;
  text-align: center;
  letter-spacing: 2px;
  text-shadow: 0 0 10px #00ffe7;
}

/* Word and Meaning Section */
.learn-section {
  padding: 2rem 10rem;
  font-family: 'Montserrat';
  text-align: left;
}

.searched-word {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #00ffd5;
}

.result-box {
 font-size: 1rem;
  line-height: 1.6;
  color: #fff;
  max-width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
  padding-right: 1rem;
  padding-left: 1rem;
  box-sizing: border-box;
}

/* Try Another Word Button */
#newWordBtn {
  font-family: 'Montserrat';
  margin: 0 10rem 3rem 10rem; /* top reduced, bottom added for spacing */
  padding: 10px 20px;
  font-size: 0.9rem;
  background-color: #333;
  color: #fff;
  border: 1px solid #666;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
#newWordBtn:hover {
  background-color: #444;
}

/* Learn a New Word Page Ends  */

/* 📱 Small Devices: Phones (0px to 480px) */
@media (max-width: 480px) {
  .logo {
    font-size: 1.8rem;
  }



  .middle-section h1 {
    font-size: 2rem;
    margin: 3rem auto 1.5rem auto;
  }

  .input {
    width: 240px;
    font-size: 16px;
    padding-inline: 40px;
  }

  .white, .border, .darkBorderBg, .glow {
    max-width: 250px;
    max-height: 60px;
  }

  .card {
    width: 90%;
  }

  .scrolling-content span {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .content {
    padding: 24px;
    gap: 16px;
  }
}

/* 📱 Medium Devices: Phones (481px to 767px) */
@media (min-width: 481px) and (max-width: 767px) {
  .logo {
    font-size: 2.2rem;
  }

 
  .middle-section h1 {
    font-size: 2.5rem;
  }

  .input {
    width: 260px;
    font-size: 16px;
  }

  .white, .border, .darkBorderBg, .glow {
    max-width: 270px;
  }

  .card {
    width: 85%;
  }

  .section-title {
    font-size: 2rem;
  }

  .content {
    padding: 28px;
    gap: 20px;
  }
}

/* 💻 Tablets (768px to 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
  .logo {
    font-size: 2.5rem;
  }



  .middle-section h1 {
    font-size: 3rem;
  }

  .input {
    width: 280px;
    font-size: 17px;
  }

  .white, .border, .darkBorderBg, .glow {
    max-width: 290px;
  }

  .card {
    width: 300px;
  }

  .section-title {
    font-size: 2.3rem;
  }

  .content {
    padding: 32px;
    gap: 20px;
  }
}

/* 🖥️ Large Devices: Desktops (1025px and above) */
@media (min-width: 1025px) {
  .card {
    width: 320px;
  }

  .input {
    width: 301px;
  }

  .white, .border, .darkBorderBg, .glow {
    max-width: 314px;
  }

  .middle-section h1 {
    font-size: 3.5rem;
  }
}


/* Very Small Devices (Phones < 360px) */
@media (max-width: 359px) {
  .img-heading img {
    width: 100%;
    height: auto;
  }

  .img-heading h1 {
    font-size: 1.8rem;
    padding: 1rem;
  }

  .word {
    font-size: 2rem;
  }

  .meaning-text {
    width: 100%;
    font-size: 0.9rem;
  }

  .play-audio {
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
  }
}

/* Small Phones (360px to 480px) */
@media (min-width: 360px) and (max-width: 480px) {
  .img-heading h1 {
    font-size: 2rem;
  }

  .word {
    font-size: 2.5rem;
  }

  .meaning-text {
    width: 100%;
    font-size: 1rem;
  }

  .play-audio {
    font-size: 1rem;
    padding: 0.5rem 1rem;
  }
}

/* Medium Phones (481px to 768px) */
@media (min-width: 481px) and (max-width: 768px) {
  .img-heading h1 {
    font-size: 2.4rem;
  }

  .word {
    font-size: 3rem;
  }

  .meaning-text {
    width: 90%;
  }
}

/* Tablets and small laptops (769px to 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .img-heading h1 {
    font-size: 2.8rem;
  }

  .word {
    font-size: 3.2rem;
  }

  .meaning-text {
    width: 80%;
  }
}

/* Large screens (above 1025px) */
@media (min-width: 1025px) {
  .img-heading h1 {
    font-size: 3rem;
  }

  .word {
    font-size: 3.5rem;
  }

  .meaning-text {
    width: 70rem;
  }
}

/* === Learn a New Word - Media Queries === */

/* For very small devices (≤ 420px) */
@media (max-width: 420px) {
  .learn-img {
    flex-direction: column;
    padding: 1rem;
  }

  .learn-img img {
    width: 12rem;
    height: auto;
    padding: 0.5rem;
  }

  .main-title {
    font-size: 2rem;
    margin: 1rem 0;
  }

  .learn-section {
    padding: 1rem;
  }

  .searched-word {
    font-size: 1.5rem;
  }

  .result-box {
    font-size: 0.9rem;
  }

  #newWordBtn {
    margin: 1.5rem auto;
    display: block;
  }
}

/* For medium devices (≤ 768px) */
@media (max-width: 768px) {
  .learn-section {
    padding: 1.5rem;
  }

  .main-title {
    font-size: 2.5rem;
  }

  #newWordBtn {
    margin: 1.5rem auto;
    display: block;
  }
}

/* For tablets and small laptops (≤ 1024px) */
@media (max-width: 1024px) {
  .learn-section {
    padding: 2rem;
  }

  #newWordBtn {
    margin: 1.5rem auto;
    display: block;
  }
}

@media (max-width: 480px) {
  .result-box {
    font-size: 0.95rem;
    padding: 0 1rem;
    max-width: 100%;
  }
}


/* Small Devices (Phones ≤ 420px) */
@media (max-width: 420px) {
  .anto-img {
    flex-direction: column;
    gap: 0.5rem;
  }

  .anto-img img {
    width: 12rem;
    height: auto;
    margin: 0;
  }

  .main-title {
    font-size: 2.2rem;
    margin-bottom: 1rem;
  }

  .word-section {
    padding: 1rem;
    width: 100%;
  }

  .searched-word {
    font-size: 1.2rem;
  }

  .result-box {
    font-size: 0.9rem;
    padding: 1rem;
  }

  .back-link {
    margin-left: 0;
    text-align: center;
    display: block;
  }
}

/* Medium Devices (Tablets ≤ 768px) */
@media (max-width: 768px) {
  .main-title {
    font-size: 3rem;
  }

  .anto-img img {
    width: 14rem;
    height: auto;
  }

  .word-section {
    padding: 1.5rem;
    width: 100%;
  }

  .result-box {
    font-size: 1rem;
  }

  .back-link {
    margin-left: 1.5rem;
  }
}

/* Large Devices (≤ 1024px) */
@media (max-width: 1024px) {
  .word-section {
    padding-left: 5rem;
  }

  .main-title {
    font-size: 4rem;
  }

  .result-box {
    max-width: 100%;
  }

  .back-link {
    margin-left: 5rem;
  }
}

@media (max-width: 480px) {
  .word-section {
    padding: 1rem;
    width: 100%;
  }

  .result-box {
    font-size: 1rem;
    padding: 1rem;
    width: 100%;
    box-sizing: border-box;
    border-left: 4px solid #00ffe7;
  }

  .back-link {
    margin-left: 1rem;
  }
}
@media (max-width: 1024px) {
  .anto-img {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
  }

  .anto-img img {
    margin: 0;
    padding: 0.5rem;
    width: 12rem;
    height: auto;
  }

  .main-title {
    font-size: 3rem;
    margin: 0;
  }

  .word-section {
    padding: 1rem;
    width: 100%;
    max-width: 90%;
    margin: auto;
  }

  .result-box {
    width: 100%;
    font-size: 1rem;
    padding: 1rem;
  }

  .back-link {
    margin-left: 1rem;
  }
}

/* Mobile (max-width: 600px) */
@media (max-width: 600px) {
  nav {
    position: static; /* remove absolute */
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    padding: 1rem 0;
    background-color: black; /* optional for visibility */
  }

  nav a {
    font-size: 0.9rem;
    padding: 0.4rem;
    color: #ccc;
  }
}

/* Tablet (601px - 1024px) */
@media (min-width: 601px) and (max-width: 1024px) {
  nav {
    top: 1rem;
    right: 1rem;
    gap: 1.5rem;
  }

  nav a {
    font-size: 1rem;
  }
}

/* Desktop (1440px and above) */
@media (min-width: 1440px) {
  nav {
    top: 2rem;
    right: 3rem;
    gap: 2.5rem;
  }

  nav a {
    font-size: 1.1rem;
  }
}

